fgpilj2 gui leak f3x
Key RequiredUniversal

fgpilj2 gui leak f3x

Universal Scriptrendery0lolrendery0lol 2.4K views 2.9K executesUpdated Jul 3, 2026
5.0/ 5(2 votes)
20100% Positive
Lua Script•16425 lines (387853 chars)
local CoreGui = game:GetService("CoreGui")
local guiname = "CoolGui"


local removeme = CoreGui:FindFirstChild(guiname)

if removeme then
    removeme:Destroy()
else
    print("workingkkskskakl")
end



blak = Color3.new(0,0,0)
rede = Color3.new(255/255,0/255,0/255)
tef = "SourceSans"
whit = Color3.new(255/255,255/255,255/255)
local cka = Instance.new("ScreenGui", game.CoreGui)
cka.Name= "CoolGui"
local frame = Instance.new("Frame")
	frame.Parent = cka
	frame.BackgroundColor3 = blak
	frame.BorderColor3 = rede
	frame.BorderSizePixel = 3
	frame.Name = "Frame"
	frame.Position = UDim2.new(0, 3, 0, 0)
	frame.Size = UDim2.new(0,300,0,400)
local pges = Instance.new("Frame")
	pges.Parent = frame
	pges.BackgroundColor3 = blak
	pges.BorderColor3 = rede
	pges.BorderSizePixel = 3
	pges.Name = "Pages"
	pges.Position = UDim2.new(0,0,0,0)
	pges.Size = UDim2.new(1,0,1,0)
local cope = Instance.new("TextButton")
	cope.Parent = cka
	cope.Active = true
	cope.AutoButtonColor = true
	cope.BackgroundColor3 = blak
	cope.BorderColor3 = rede
	cope.BorderSizePixel = 3
	cope.Name = "Close/Open"
	cope.Position = UDim2.new(0,3,0,380)
	cope.Selectable = true
	cope.Size = UDim2.new(0,300,0,20)
	cope.ZIndex = 3
	cope.Font = "SourceSans"
	cope.FontSize = "Size18"
	cope.Text = "Close"
	cope.TextColor3 = Color3.new(255,255,255)
	cope.TextXAlignment = "Center"
	cope.TextYAlignment = "Center"
	cope.MouseButton1Down:connect(function()
		if cope.Text == "Close" then
		frame.Visible = false
		cope.Text = "Open" else
		frame.Visible = true
		cope.Text = "Close"	
		end	
	end)
local page1 = Instance.new("Frame")
	page1.Parent = pges	
	page1.BackgroundColor3 = blak
	page1.BorderColor3 = rede
	page1.BorderSizePixel = 3
	page1.Name = "Page1"
	page1.Position = UDim2.new(0,0,0,83)
	page1.Size = UDim2.new(1,0,1,-106)
	page1.ZIndex = 2
	page1.Visible = true
local page2 = Instance.new("Frame")
	page2.Parent = pges
	page2.BackgroundColor3 = blak
	page2.BorderColor3 = rede
	page2.BorderSizePixel = 3
	page2.Name = "Page2"
	page2.Position = UDim2.new(0,0,0,83)
	page2.Size = UDim2.new(1,0,1,-106)
	page2.ZIndex = 2
	page2.Visible = false
local page3 = Instance.new("Frame")
	page3.Parent = pges
	page3.BackgroundColor3 = blak
	page3.BorderColor3 = rede
	page3.BorderSizePixel = 3
	page3.Name = "Page3"
	page3.Position = UDim2.new(0,0,0,83)
	page3.Size = UDim2.new(1,0,1,-106)
	page3.ZIndex = 2
	page3.Visible = false
local page4 = Instance.new("Frame")
	page4.Parent = pges
	page4.BackgroundColor3 = blak
	page4.BorderColor3 = rede
	page4.BorderSizePixel = 3
	page4.Name = "Page4"
	page4.Position = UDim2.new(0,0,0,83)
	page4.Size = UDim2.new(1,0,1,-106)
	page4.ZIndex = 2
	page4.Visible = false
local page5 = Instance.new("Frame")
	page5.Parent = pges
	page5.BackgroundColor3 = blak
	page5.BorderColor3 = rede
	page5.BorderSizePixel = 3
	page5.Name = "Page5"
	page5.Position = UDim2.new(0,0,0,83)
	page5.Size = UDim2.new(1,0,1,-106)
	page5.ZIndex = 2
	page5.Visible = false
page = Instance.new("Frame")
	page.Parent = frame
	page.BackgroundColor3 = blak
	page.BorderColor3 = rede
	page.BorderSizePixel = 3
	page.Name = "Settings"
	page.Position = UDim2.new(1,3,0,0)
	page.Size = UDim2.new(1,0,1,0)
	page.ZIndex = 1
	page.Visible = true
right = Instance.new("TextButton")
	right.Parent = frame	
	right.BackgroundColor3 = blak
	right.BorderColor3 = rede
	right.BorderSizePixel = 3
	right.Name = ">"
	right.Position = UDim2.new(0.5,3,0,40)
	right.Size = UDim2.new(0.5,-3,0,40)
	right.ZIndex = 2
	right.Font = tef
	right.FontSize = "Size48"
	right.Text = ">"
	right.TextColor3 = whit
addonr = Instance.new("TextButton")
	addonr.Parent = page5	
	addonr.BackgroundColor3 = blak
	addonr.BorderColor3 = rede
	addonr.BorderSizePixel = 3
	addonr.Name = "addonr"
	addonr.Position = UDim2.new(0,153,0,-40)
	addonr.Size = UDim2.new(0.49,0,0.125,0)
	addonr.Font = tef
	addonr.FontSize = "Size48"
	addonr.Text = ">"
	addonr.TextColor3 = whit
	addonr.ZIndex = 3
left = Instance.new("TextButton")
	left.Parent = frame	
	left.BackgroundColor3 = blak
	left.BorderColor3 = rede
	left.BorderSizePixel = 3
	left.Name = "<"
	left.Position = UDim2.new(0,0,0,40)
	left.Size = UDim2.new(0.5,-3,0,40)
	left.ZIndex = 2
	left.Font = tef
	left.FontSize = "Size48"
	left.Text = "<"
	left.TextColor3 = whit
addonl = Instance.new("TextButton")
	addonl.Parent = page1	
	addonl.BackgroundColor3 = blak
	addonl.BorderColor3 = rede
	addonl.BorderSizePixel = 3
	addonl.Name = "addonl"
	addonl.Position = UDim2.new(0,0,0,-40)
	addonl.Size = UDim2.new(0.49,0,0.125,0)
	addonl.Font = tef
	addonl.FontSize = "Size48"
	addonl.Text = "<"
	addonl.TextColor3 = whit
	addonl.ZIndex = 3
local title = Instance.new("TextLabel")
	title.Parent = frame
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Position = UDim2.new(0,0,0,0)
	title.Size = UDim2.new(1,0,0,40)
	title.ZIndex = 2
	title.Font = tef
	title.FontSize = "Size24"
	title.Text = "c00lgui by fgpilj2"
	title.TextColor3 = whit
--           inside pages        --
local acg = Instance.new("Frame")
	acg.Parent = page1
	acg.BackgroundColor3 = blak
	acg.BorderColor3 = rede
	acg.BorderSizePixel = 3
	acg.Name = "Admin Commands/Guis"
	acg.Position = UDim2.new(0.5,3,0,0)
	acg.Size = UDim2.new(0.5,-3,1,0)
	acg.ZIndex = 2
local sd = Instance.new("Frame")
	sd.Parent = page1
	sd.BackgroundColor3 = blak
	sd.BorderColor3 = rede
	sd.BorderSizePixel = 3
	sd.Name = "Server Destruction"
	sd.Position = UDim2.new(0,0,0,0)
	sd.Size = UDim2.new(0.5,-3,1,0)
	sd.ZIndex = 2
local gt = Instance.new("Frame")
	gt.Parent = page2
	gt.BackgroundColor3 = blak
	gt.BorderColor3 = rede
	gt.BorderSizePixel = 3
	gt.Name = "Gear/Tools"
	gt.Position = UDim2.new(0.5,3,0,0)
	gt.Size = UDim2.new(0.5,-3,1,0)
	gt.ZIndex = 2
local ws = Instance.new("Frame")
	ws.Parent = page2
	ws.BackgroundColor3 = blak
	ws.BorderColor3 = rede
	ws.BorderSizePixel = 3
	ws.Name = "Weapon Scripts"
	ws.Position = UDim2.new(0,0,0,0)
	ws.Size = UDim2.new(0.5,-3,1,0)
	ws.ZIndex = 2
local localp = Instance.new("Frame")
	localp.Parent = page3
	localp.BackgroundColor3 = blak
	localp.BorderColor3 = rede
	localp.BorderSizePixel = 3
	localp.Name = "LocalPlayer"
	localp.Position = UDim2.new(0.5,3,0,0)
	localp.Size = UDim2.new(0.5,-3,1,0)
	localp.ZIndex = 2
local misc = Instance.new("Frame")
	misc.Parent = page3
	misc.BackgroundColor3 = blak
	misc.BorderColor3 = rede
	misc.BorderSizePixel = 3
	misc.Name = "Misc"
	misc.Position = UDim2.new(0,0,0,0)
	misc.Size = UDim2.new(0.5,-3,1,0)
	misc.ZIndex = 2
pmi = Instance.new("Frame")
	pmi.Parent = page4
	pmi.BackgroundColor3 = blak
	pmi.BorderColor3 = rede
	pmi.BorderSizePixel = 3
	pmi.Name = "Preset Music IDs"
	pmi.Position = UDim2.new(0.5,3,0,0)
	pmi.Size = UDim2.new(0.5,-3,1,0)
	pmi.ZIndex = 2
local psd = Instance.new("Frame")
	psd.Parent = page4
	psd.BackgroundColor3 = blak
	psd.BorderColor3 = rede
	psd.BorderSizePixel = 3
	psd.Name = "Preset Skybox/Decal IDs"
	psd.Position = UDim2.new(0,0,0,0)
	psd.Size = UDim2.new(0.5,-3,1,0)
	psd.ZIndex = 2
local edn = Instance.new("Frame")
	edn.Parent = page5
	edn.BackgroundColor3 = blak
	edn.BorderColor3 = rede
	edn.BorderSizePixel = 3
	edn.Name = "End"
	edn.Position = UDim2.new(0.5,3,0,0)
	edn.Size = UDim2.new(0.5,-3,1,0)
	edn.ZIndex = 2
local pgi = Instance.new("Frame")
	pgi.Parent = page5
	pgi.BackgroundColor3 = blak
	pgi.BorderColor3 = rede
	pgi.BorderSizePixel = 3
	pgi.Name = "Preset Gear IDs"
	pgi.Position = UDim2.new(0,0,0,0)
	pgi.Size = UDim2.new(0.5,-3,1,0)
	pgi.ZIndex = 2
--      inside pages end        --
-- Admin Commands/Guis --
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "iOrb"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "i0rb"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
    
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

-- HD ADMIN

local RequestCommand = ReplicatedStorage
	:WaitForChild("HDAdminHDClient")
	.Signals
	.RequestCommandSilent

local player = Players.LocalPlayer

RequestCommand:InvokeServer(
    ";title me "..player.Name.."'s [iOrb]2"
)

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

local hrp = char:WaitForChild("HumanoidRootPart")
local head = char:WaitForChild("Head")

-- FIND F3X

local tool

for _,v in pairs(player:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
		break
	end
end

if not tool then
	for _,v in pairs(ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
			break
		end
	end
end

if not tool then
	error("SyncAPI not found")
end

local remote = tool.SyncAPI.ServerEndpoint

local function send(args)
	return remote:InvokeServer(unpack(args))
end

-- FUNCTIONS

local function ClonePart(part)
	send({
		"Clone",
		{part},
		workspace
	})
end

local function MovePart(part,cf)
	send({
		"SyncMove",
		{{
			Part = part,
			CFrame = cf
		}}
	})
end

local function Anchor(part,bool)
	send({
		"SyncAnchor",
		{{
			Part = part,
			Anchored = bool
		}}
	})
end

local function Collision(part,bool)
	send({
		"SyncCollision",
		{{
			Part = part,
			CanCollide = bool
		}}
	})
end

local function Color(part,color)
	send({
		"SyncColor",
		{{
			Part = part,
			Color = color,
			UnionColoring = false
		}}
	})
end

local function Material(part,mat)
	send({
		"SyncMaterial",
		{{
			Part = part,
			Material = mat
		}}
	})
end

local function Resize(part,size)
	send({
		"SyncResize",
		{{
			Part = part,
			Size = size,
			CFrame = part.CFrame
		}}
	})
end

-- CREATE iORB

ClonePart(head)

task.wait(0.5)

local cloneHead

for _,v in pairs(workspace:GetDescendants()) do
	if v:IsA("BasePart")
	and v.Name == "Head"
	and v ~= head
	and (v.Position - head.Position).Magnitude < 5 then

		cloneHead = v
		break
	end
end

if not cloneHead then
	warn("Clone head failed")
	return
end

Anchor(cloneHead,true)
Collision(cloneHead,false)

Color(cloneHead,Color3.new(0,0,0))
Material(cloneHead,Enum.Material.Neon)

Resize(cloneHead,Vector3.new(0.6,0.6,0.6))

-- REMOVE FACE

for _,d in pairs(cloneHead:GetDescendants()) do
	if d:IsA("Decal") then
		d:Destroy()
	end
end

-- WHITE FIRE

send({
	"CreateDecorations",
	{{
		Part = cloneHead,
		DecorationType = "Fire"
	}}
})

task.wait(0.1)

send({
	"SyncDecorate",
	{{
		Part = cloneHead,
		DecorationType = "Fire",
		Color = Color3.new(1,1,1),
		SecondaryColor = Color3.new(1,1,1),
		Heat = 1,
		Size = 2
	}}
})

-- ORBIT

local angle = 0
local radius = 5
local speed = math.rad(20)
local verticalAmplitude = 1

RunService.Heartbeat:Connect(function(dt)

	angle += speed * dt

	local x = math.cos(angle) * radius
	local z = math.sin(angle) * radius
	local y = 2 + math.sin(angle * 2) * verticalAmplitude

	local position = hrp.Position + Vector3.new(x,y,z)

	local lookDir = Vector3.new(
		-math.sin(angle),
		0,
		math.cos(angle)
	)

	local cf = CFrame.new(
		position,
		position + lookDir
	)

	MovePart(cloneHead,cf)

end)

-- REMOVE TITLE AFTER 1 SECOND

task.wait(1)

RequestCommand:InvokeServer(";untitle "..player.Name)



	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Kohls Admin"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Rocky2u's Project Duck"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
--[[
---------------------------------------------------------------
|   _____           _           _     _____             _      |
|  |  __ \         (_)         | |   |  __ \           | |     |
|  | |__) | __ ___  _  ___  ___| |_  | |  | |_   _  ___| | __  |
|  |  ___/ '__/ _ \| |/ _ \/ __| __| | |  | | | | |/ __| |/ /  |
|  | |   | | | (_) | |  __/ (__| |_  | |__| | |_| | (__|   <   |
|  |_|   |_|  \___/| |\___|\___|\__| |_____/ \__,_|\___|_|\_\  |
|                 _/ |                                         |
|                |__/                                          |
---------------------------------------------------------------
--]]

-- SethMilkman --

--| Thanks ROBLOX, for removing GetObjects |--

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local char = Player.Character

local gPlayers = game:GetService("Players")
local admin = gPlayers.LocalPlayer.Name

local services={}
local cmds={}
local std={}

local Version = '1.0.2'

wait(0.1)

services.players=gPlayers
services.lighting=game:GetService('Lighting')
services.workspace=game:GetService('Workspace')
services.events = {}
local user = gPlayers.LocalPlayer

local cmdprefix=';'
local scriptprefix='\\'
local split=" "

--| Ban Data |--

local BanFolder = Instance.new("Fire", game.ContextActionService)
BanFolder.Name = "BanList"
BanFolder.RobloxLocked = true
_G.Banned = function(Ban)
        local SValue = Instance.new("StringValue", BanFolder)
        SValue.Value = Ban
        SValue.RobloxLocked = true
end

BannedPlayers = {
	'KrystalTeam', -- For banning me.
	'LordCrazy13', -- You're fucking annoying.
	'CRICKET69'
}

--| Tables |--

--| Admins |--

local AdminFolder = Instance.new("Folder", game.ContextActionService)
AdminFolder.Name = "AdminList"
AdminFolder.RobloxLocked = true
_G.Admin = function(Admin)
	local SValue = Instance.new("StringValue", AdminFolder)
	SValue.Value = Admin
	SValue.RobloxLocked = true
end

-- These are my friends that don't have Seven, remove then off the list if you'd like.
local admins = {
	'guestpro1',
	'THEGAMINGTRTLE',
	'JackLikesBugs',
	'JoshuaAsencio'
}

--| CMD List |--

CMDs = {
	'1. ff player',
	'2. noff player',
	'3. fire player',
	'4. nofire player',
	'5. sp player',
	'6. nosp player',
	'7. smoke player',
	'8. nosmoke player',
	'9. btools player',
	'10. god player',
	'11. sgod player',
	'12. ungod player',
	'13. heal player',
	'14. freeze player',
	'15. thaw player',
	'16. kill player',
	'17. sound',
	'18. volume',
	'19. pitch',
	'20. explode player',
	'21. invis player',
	'22. vis player',
	'23. goto player',
	'24. bring player',
	'25. tp player',
	'26. charapp player',
	'27. ws player',
	'28. time',
	'29. kick player',
	'30. ban player',
	'31. unlockws',
	'32. unanchorws',
	'33. hat player',
	'34. gear player',
	'35. pstools player',
	'36. skick player',
	'37. admin player',
	'38. unadmin player',
	'39. firstp player',
	'40. thirdp player',
	'41. chat player',
	'42. insert',
	'43. name player',
	'44. unname player',
	'45. stun player',
	'46. unstun player',
	'47. sit player',
	'48. guest player',
	'49. damage player',
	'50. view player',
	'51. unview player',
	'52. nolimbs player',
	'53. box player 1012',
	'54. nobox player',
	'55. ghost player',
	'56. sphere player',
	'57. loadmap',
	'58. sky',
	'59. ambient',
	'60. gui',
	'61. jail player',
	'62. unjail player',
	'63. shutdown',
	'64. animation player',
	'65. fix player',
	'66. creeper player',
	'67. uncreeper player',
	'68. shrek player',
	'69. unshrek player',
	'70. spam',
	'71. nospam',
	'72. control player',
	'73. nuke player',
	'74. infect player',
	'75. uninfect player',
	'76. duck player',
	'77. unduck player',
	'78. disable player',
	'79. enable player',
	'80. size player',
	'81. confuse player',
	'82. unconfuse player',
	'83. clone player',
	'84. spin player',
	'85. unspin player',
	'86. dog player',
	'87. undog player',
	'88. tptool',
	'89. loopsit player',
	'90. unloopsit player',
	'91. loopjump player',
	'92. unloopjump player',
	'93. loopheal player',
	'94. unloopheal player',
	'95. fling player',
	'96. ayylmao player',
	'97. nograv player',
	'98. grav player',
	'99. seizure player',
	'100. unseizure player',
	'101. cape 1012',
	'102. uncape',
	'103. paper player',
	'104. punish player',
	'105. unpunish player',
	'106. disco',
	'107. undisco',
	'- float player',
	'- unfloat player',
	'- noclip',
	'- clip',
	'- prefix <string>',
	'- admins',
	'- bans',
	'- cmds',
	'- version'
}

--| Lib |--

updateevents=function()
	for i,v in pairs(services.events) do services.events:remove(i) v:disconnect() end
	for i,v in pairs(gPlayers:players())do
		local ev = v.Chatted:connect(function(msg) do_exec(msg,v) end)
		services.events[#services.events+1] = ev
	end
end

std.inTable=function(tbl,val)
    if tbl==nil then return false end

    for _,v in pairs(tbl)do
        if v==val then return true end
    end 
	return false
end

std.out=function(str)
    print(str)
end

std.list=function(tbl)
    local str=''
    for i,v in pairs(tbl)do
        str=str..tostring(v)
        if i~=#tbl then str=str..', ' end
    end 
	return str
end

std.endat=function(str,val)
    local z=str:find(val)
    if z then 
		return str:sub(0,z-string.len(val)),true
    else 
		return str,false 
	end
end

std.first=function(str) return str:sub(1,1) end

isAdmin=function(name)
    if name==admin then
        return true
    elseif admins[name]==true then
        return true
    end
    return false
end

local exec=function(str)
    spawn(function()
        local script, loaderr = loadstring(str)
        if not script then
            error(loaderr)
        else
        	script()
		end
    end)
end

local findCmd=function(cmd_name)
    for i,v in pairs(cmds)do
        if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then
            return v
        end
    end
end

local getCmd=function(msg)
    local cmd,hassplit=std.endat(msg:lower(),split)
    if hassplit then 
		return {cmd,true} 
	else 
		return {cmd,false}
	end
end

local getprfx=function(strn)
    if strn:sub(1,string.len(cmdprefix))==cmdprefix then return{'cmd',string.len(cmdprefix)+1}
    elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then return{'exec',string.len(scriptprefix)+1}
    end return
end

local getArgs=function(str)
    local args={}
    local new_arg=nil
    local hassplit=nil
    local s=str
    repeat
        new_arg,hassplit=std.endat(s:lower(),split)
        if new_arg~='' then
            args[#args+1]=new_arg
            s=s:sub(string.len(new_arg)+string.len(split)+1)
        end
    until hassplit==false
    return args
end

local function execCmd(str, plr)
    local s_cmd
    local a
    local cmd
    s_cmd = getCmd(str)
    cmd = findCmd(s_cmd[1])
    if cmd == nil then return end
    a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1)
    local args=getArgs(a)

    pcall(function()
	cmd.FUNC(args, plr)
	end)
end

function do_exec(str,plr)
	if not isAdmin(plr.Name)then return end	
	
    str=str:gsub('/e ','')

    local t=getprfx(str)
    if t==nil then return end
    str=str:sub(t[2])
    if t[1]=='exec' then
        exec(str)
    elseif t[1]=='cmd' then
        execCmd(str, plr)
    end
end

updateevents()
_G.exec_cmd = execCmd
--game.Players.LocalPlayer.Chatted:connect(doexec)

local _char=function(plr_name)
    for i,v in pairs(game.Players:GetChildren())do
        if v:IsA'Player'then
            if v.Name==plr_name then return v.Character end
        end
    end
    return
end

local _plr=function(plr_name)
    for i,v in pairs(game.Players:GetChildren())do
        if v:IsA'Player'then
            if v.Name==plr_name then return v end
        end
    end
    return
end

function addcmd(name,desc,alias,func)
    cmds[#cmds+1]=
    {
        NAME=name;
        DESC=desc;
        ALIAS=alias;
        FUNC=func;
    }
end

local function getPlayer(name)
	local nameTable = {}
	name=name:lower()
	if name == "me" then
		nameTable[#nameTable+1]=admin
	elseif name == "others" then
		for i,v in pairs(gPlayers:GetChildren()) do
            if v:IsA'Player'then
                if v.Name~=admin then
                    nameTable[#nameTable+1]=v.Name
                end
            end
		end
	elseif name == "all" then
		for i,v in pairs(gPlayers:GetChildren()) do
            if v:IsA'Player'then 
                nameTable[#nameTable+1]=v.Name
            end
		end
	else
		for i,v in pairs(gPlayers:GetChildren()) do
			local lname = v.Name:lower()
			local i,j = lname:find(name)
			if i == 1 then
				return {v.Name}
			end
		end
	end
	return nameTable
end

--| Cape Function |--

local capeColor = 1012

function Cape(playerCaped)

if playerCaped.Character:FindFirstChild("Cape") ~= nil then
	playerCaped.Character.Cape:Destroy()
end

repeat
	wait()
until playerCaped and playerCaped.Character and playerCaped.Character:FindFirstChild("Torso")

local Torso = playerCaped.Character.Torso

local Cape = Instance.new("Part", Torso.Parent)
Cape.Name = "Cape"
Cape.Anchored = false
Cape.CanCollide = false
Cape.TopSurface = 0
Cape.BottomSurface = 0
Cape.BrickColor = BrickColor.new("" .. capeColor)
Cape.Material = "Neon"
Cape.formFactor = "Custom"
Cape.Size = Vector3.new(0.2,0.2,0.2)

local msh = Instance.new("BlockMesh", Cape)
msh.Scale = Vector3.new(9,17.5,.5)

local motor1 = Instance.new("Motor", Cape)
motor1.Part0 = Cape
motor1.Part1 = Torso

motor1.MaxVelocity = 1
motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0)
motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0)

local wave = false

repeat wait(1/44)
local ang = 0.2
local oldmag = Torso.Velocity.magnitude
local mv = .1

if wave then
	ang = ang + ((Torso.Velocity.magnitude/10) * .05) + 1
	wave = false
else
	wave = false
end
ang = ang + math.min(Torso.Velocity.magnitude/30, 1)
motor1.MaxVelocity = math.min((Torso.Velocity.magnitude/10), .04) + mv
motor1.DesiredAngle = -ang
if motor1.CurrentAngle < -.05 and motor1.DesiredAngle > -.05 then
	motor1.MaxVelocity = .04
end
repeat
	wait()
until 
motor1.CurrentAngle == motor1.DesiredAngle or math.abs(Torso.Velocity.magnitude - oldmag)  >= (Torso.Velocity.magnitude/10) + 1
if Torso.Velocity.magnitude < .1 then
	wait(.1)
end
until not Cape or Cape.Parent ~= Torso.Parent
end

game.Lighting.Outlines = false -- Outlines are disgusting

--| Commands |--

addcmd('ff','gives ff to player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        Instance.new("ForceField", pchar)
    end
end)

addcmd('noff', 'takes away ff from player',{'unff'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        for j,v1 in pairs(pchar:GetChildren()) do
			if v1:IsA("ForceField") then
				v1:Destroy()
			end
		end
    end
end)

addcmd('fire', 'set a player on fire',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        local Fire1 = Instance.new("Fire", pchar.Head)
        local Fire2 = Instance.new("Fire", pchar.Torso)
        local Fire3 = Instance.new("Fire", pchar["Left Arm"])
        local Fire4 = Instance.new("Fire", pchar["Right Arm"])
        local Fire5 = Instance.new("Fire", pchar["Left Leg"])
        local Fire6 = Instance.new("Fire", pchar["Right Leg"])
        Fire1.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire1.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
        Fire2.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire2.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
        Fire3.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire3.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
        Fire4.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire4.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
        Fire5.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire5.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
        Fire6.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Fire6.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4]))
    end
end)

addcmd('nofire', 'extinguish a player',{'unfire'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        for j,v1 in pairs(pchar.Head:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar.Torso:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Left Arm"]:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Right Arm"]:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Left Leg"]:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Right Leg"]:GetChildren()) do
			if v1:IsA("Fire") then
				v1:Destroy()
			end
		end
    end
end)

addcmd('sp', 'give a player sparkles',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        local Sparkles1 = Instance.new("Sparkles", pchar.Head)
        local Sparkles2 = Instance.new("Sparkles", pchar.Torso)
        local Sparkles3 = Instance.new("Sparkles", pchar["Left Arm"])
        local Sparkles4 = Instance.new("Sparkles", pchar["Right Arm"])
        local Sparkles5 = Instance.new("Sparkles", pchar["Left Leg"])
        local Sparkles6 = Instance.new("Sparkles", pchar["Right Leg"])
        Sparkles1.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Sparkles2.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Sparkles3.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Sparkles4.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Sparkles5.Color = Color3.new((args[2]),(args[3]),(args[4]))
        Sparkles6.Color = Color3.new((args[2]),(args[3]),(args[4]))
    end
end)

addcmd('nosp', 'remove sparkles from a player',{'unsp'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        for j,v1 in pairs(pchar.Head:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar.Torso:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Left Arm"]:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Right Arm"]:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Left Leg"]:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
end
        for j,v1 in pairs(pchar["Right Leg"]:GetChildren()) do
			if v1:IsA("Sparkles") then
				v1:Destroy()
			end
		end
    end
end)

addcmd('smoke', 'give a player smoke',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        Instance.new("Smoke", pchar.Torso)
    end
end)

addcmd('nosmoke', 'remove smoke from a player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        for j,v1 in pairs(pchar.Torso:GetChildren()) do
			if v1:IsA("Smoke") then
				v1:Destroy()
			end
		end
    end
end)

addcmd('btools', 'gives a player btools',{},
function(args)
    local players = getPlayer(args[1])
    if players ~= nil then
		for i, v in pairs(players) do
	  		Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 2
			Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 3
			Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 4
		end
	end
end)

addcmd('god', 'gods player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        if pchar then pchar.Humanoid.MaxHealth=math.huge end
    end
end)

addcmd('sgod', 'silently gods player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        spawn(function()
            pchar.Humanoid.MaxHealth = 10000000
			wait()
			pchar.Humanoid.Health = 10000000
        end)
    end
end)

addcmd('ungod', 'removes god from a player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        if pchar then 
			pchar.Humanoid.MaxHealth=100 
			pchar.Humanoid.Health=100
		end
    end
end)

addcmd('heal', 'resets a players health',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        if pchar then pchar.Humanoid.Health=pchar.Humanoid.MaxHealth;end
    end
end)

addcmd('frz', 'freezes a player',{'freeze'},
function(args)
	local players = getPlayer(args[1])
	if players ~= nil then
		for i, v in pairs(players) do
			_char(v).Torso.Anchored = true
		end
	end
end)

addcmd('thaw', 'freezes a player',{},
function(args)
	local players = getPlayer(args[1])
	if players ~= nil then
		for i, v in pairs(players) do
			_char(v).Torso.Anchored = false
		end
	end
end)

addcmd('kill', 'kills a player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        if pchar then pchar.Humanoid.MaxHealth=0;pchar.Humanoid.Health=0;end
    end
end)

addcmd('sound', 'plays a sound',{},
function(args)
    local function dels(instance)
        for i,v in pairs(instance:GetChildren())do
            if v:IsA'Sound'then v:Destroy()end
            dels(v)
        end
    end
    dels(workspace)

    local c = args[1] or 'stop'
    if std.inTable({'stop'}, c:lower()) then return end
	local s = Instance.new("Sound", workspace)
	s.Name = "DuckSong"
	s.Looped = true
	s.SoundId = "rbxassetid://" .. c
    s.Volume = 1
	s:Play()
end)

addcmd('volume','changes volume of sound',{},
function(args)
	for i,v in pairs(game.Workspace:GetChildren())do
		if v:IsA("Sound") and v.Name == "DuckSong" then
			v.Volume = args[1]
		end
	end
end)

addcmd('pitch','changes pitch of sound',{},
function(args)
	for i,v in pairs(game.Workspace:GetChildren())do
		if v:IsA("Sound") and v.Name == "DuckSong" then
			v.Pitch = args[1]
		end
	end
end)

addcmd('explode', 'explode a player', {},
function(args)
    local players = getPlayer(args[1])
    for i, v in pairs(players) do
        local char = _char(v)
        if char:FindFirstChild("Torso") then
            Instance.new("Explosion", char).Position = char.Torso.Position					
        end
    end
end)

addcmd('invis', 'make a player invisible',{},
function(args)
    local players = getPlayer(args[1])
    for i, v in pairs(players) do
        for k, v2 in pairs(_char(v):GetChildren()) do
			if v2.className == "Part" then
                if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 1 end
            elseif v2.className == "Hat" then
                if v2:FindFirstChild("Handle") then
                    v2.Handle.Transparency = 1 
                end
			end
            if v2:FindFirstChild("face") then
                v2.face:Destroy()
			end
		end
    end
end)

addcmd('vis', 'make a player visible',{},
function(args)
    local players = getPlayer(args[1])
    for i, v in pairs(players) do
        for k, v2 in pairs(_char(v):GetChildren()) do
            if v2.className == "Part" then
				if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 0 end
				elseif v2.className == "Hat" then
                if v2:FindFirstChild("Handle") then v2.Handle.Transparency = 0 end
            end
			if v2:FindFirstChild("face") then
				v2.face:Destroy()
			end
		end
    end
end)

addcmd('goto', 'go to a player',{},
function(args)
    local players = getPlayer(args[1])
	if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then
		_char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame
	end
end)

addcmd('bring', 'bring a player to you',{},
function(args)
    local players = getPlayer(args[1])
	for i,v in pairs(players) do
		if _char(v):FindFirstChild("HumanoidRootPart") then
			_char(v).HumanoidRootPart.CFrame = _char(admin).HumanoidRootPart.CFrame	
		end
	end
end)

addcmd('tp', 'teleport player 1 to player 2',{},
function(args)
    local players1=getPlayer(args[1])
    local players2=getPlayer(args[2])
    if not players2[1] then return end
    for i,v in pairs(players1) do
		if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then
			_char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame
		end		
	end
end)

addcmd('charapp', 'change a players appearance',{'char'},
function(args)
    local players = getPlayer(args[1])
    if not args[1]or not args[2]then return end
    local id=args[2]
	if players ~= nil then
		for i,v in pairs(players) do
			gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id
			if _char(v):FindFirstChild("Head") then
				_char(v).Head:Destroy()	
			end
		end
	end
end)

addcmd('ws', 'change a players walkspeed',{},
function(args)
    local players = getPlayer(args[1])
    if not args[1]or not args[2]then return end
    local num=args[2]
	for i,v in pairs(players) do
		if _char(v):FindFirstChild("Humanoid") then
			_char(v).Humanoid.WalkSpeed=tonumber(num)
		end
	end
end)

addcmd('time', 'change the time of day',{},
function(args)
    if not args[1]then return end
    local time_=tonumber(args[1])
    
    game.Lighting:SetMinutesAfterMidnight(time_*60)
end)

addcmd('kick', 'kick a player',{},
function(args)
    local players = getPlayer(args[1])
	for i,v in pairs(players) do
		Notify('Kicked ' .. gPlayers[v].Name)
		gPlayers[v]:Destroy()
	end
end)

addcmd('ban', 'ban a player',{},
function(args)
    local players=getPlayer(args[1])
        for i,v in pairs(players) do
        _G.Banned(gPlayers[v].Name)
        gPlayers[v]:Destroy()
    end
end)

addcmd('unlockws', 'unlock the whole workspace',{'unlock'},
function(args)
    local function unlock(instance) 
        for i,v in pairs(instance:GetChildren()) do
            if v:IsA("BasePart") then
                v.Locked = false
            end
            unlock(v)
        end
    end
    unlock(workspace)
end)

addcmd('unanchorws', 'unanchor the whole workspace',{'unanchor', 'unanchr'},
function(args)
   local function unanchor(instance) 
        for i,v in pairs(instance:GetChildren()) do
            if v:IsA("BasePart") then
                v.Anchored=false
            end
            unanchor(v)
        end
    end
    unanchor(workspace)
end)

addcmd('hat', 'give player a hat ingame',{},
function(args)
    if not args[1] or not args[2] then return end
	local players = getPlayer(args[1])
    local id=args[2]
	local hat = game:GetService("InsertService"):LoadAsset(id)
	if hat:IsA("Hat") then
		for i,v in pairs(players) do
			hat:clone().Parent = _char(v)
		end		
	end
	hat:Destroy()
end)

addcmd('gear', 'give player a gear ingame',{},
function(args)
	spawn(function()
	    if not args[1] or not args[2] then return end
		local players = getPlayer(args[1])
	    local id=args[2]
		local model = game:GetService("InsertService"):LoadAsset(id)
		for i,v in pairs(players) do
			for _,j in pairs(model:GetChildren()) do
				if j:IsA("Tool") then
					j:Clone().Parent = gPlayers[v].Backpack
				end
			end
		end
		model:Destroy()
	end)
end)

addcmd('pstools', 'give player personal server tools',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].PersonalServerRank = 240
	end
end)

addcmd('skick','kicks a player by shutting them down, takes a few seconds',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		spawn(function()
			gPlayers[v].PersonalServerRank = 240
			gPlayers[v].Backpack:WaitForChild("ClassicTool")
			gPlayers[v].PersonalServerRank = 0
		end)
	end
end)

addcmd('admin', 'gives a player admin',{},
function(args)
    if not args[1]then return end
    local players = getPlayer(args[1])
    table.foreach(players,function(k,v)
        admins[v]=true
        Notify(gPlayers[v].Name .. ' has been given Admin.')
    end)
	for i,v in pairs(players) do
		local pchar = gPlayers[v].Character
		game.Chat:Chat(pchar.Head, "You've been given admin.")
		wait(2.5)
		game.Chat:Chat(pchar.Head, 'Prefix is "' .. cmdprefix .. '"')
		wait(2.5)
		game.Chat:Chat(pchar.Head, "[NO] ;fire me [YES] ;fire YourName")
		wait(2.5)
		game.Chat:Chat(pchar.Head, "You may now use commands.")
	end
end)

addcmd('unadmin', 'removes a players admin',{},
function(args)
    if not args[1] then return end
    local players = getPlayer(args[1])
    table.foreach(players,function(k,v)
        admins[v]=nil
        Notify(gPlayers[v].Name .. ' no longer has Admin.')
    end)
end)

addcmd('firstp', 'forces player to go into first person',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        gPlayers[v].CameraMode = "LockFirstPerson"
    end
end)

addcmd('thirdp', 'allows player to go into third person',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        gPlayers[v].CameraMode = "Classic"
    end
end)

addcmd('chat', 'forces player to chat what you input',{},
function(args)
    local players = getPlayer(args[1])
	local MSG = table.concat(args, " ")
	local newMSG = string.gsub(MSG, args[1] .. " ", "")
    for i,v in pairs(players)do
        game.Chat:Chat(gPlayers[v].Character.Head, newMSG)
    end
end)

addcmd('insert', 'inserts a model',{},
function(args)
    local model = game:GetService("InsertService"):LoadAsset(args[1])
    model.Parent = game.Workspace
    model:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
    model:MakeJoints()
end)

addcmd('name', 'names player',{},
function(args)
    local players = getPlayer(args[1])
    local msg = table.concat(args, " ")
    local newmsg = string.gsub(msg, args[1] .. " ", "")
	for i,v in pairs(players) do
		for a, mod in pairs(gPlayers[v].Character:children()) do
		if mod:FindFirstChild("TAG") then
		gPlayers[v].Character.Head.Transparency = 0
		mod:Destroy()
		end
		end
		
		local char = gPlayers[v].Character
		local model = Instance.new("Model", char)
		local clone = char.Head:Clone()
		local hum = Instance.new("Humanoid", model)
		local weld = Instance.new("Weld", clone)
			model.Name = newmsg 
			clone.Parent = model
			hum.Name = "TAG"
			hum.MaxHealth = 100
			hum.Health = 100
			weld.Part0 = clone
			weld.Part1 = char.Head
			char.Head.Transparency = 1
	end
end)

addcmd('unname', 'unnames player',{},
function(args)
    local players = getPlayer(args[1])
    local name = (args[2])
	for i,v in pairs(players) do
		for a, mod in pairs(gPlayers[v].Character:children()) do
			if mod:FindFirstChild("TAG") then
				gPlayers[v].Character.Head.Transparency = 0
				mod:Destroy()
			end
		end
	end
end)

addcmd('stun', 'stuns player',{},
function(args)
    local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].Character.Humanoid.PlatformStand = true
	end
end)

addcmd('unstun', 'stuns player',{},
function(args)
    local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].Character.Humanoid.PlatformStand = false
	end
end)

addcmd('sit', 'stuns player',{},
function(args)
    local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].Character.Humanoid.Sit = true
	end
end)

addcmd('guest', 'ew a guest',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
		gPlayers[v].Character:BreakJoints()
	end
end)

addcmd('damage', 'damages a player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		gPlayers[v].Character.Humanoid.Health = gPlayers[v].Character.Humanoid.Health - 25
	end
end)

addcmd('view', 'views player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		game.Workspace.CurrentCamera.CameraSubject = gPlayers[v].Character
	end
end)

addcmd('unview', 'stops viewing player',{},
function()
	game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
end)

addcmd('nolimbs', 'removes limbs from player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		for i,v in pairs(gPlayers[v].Character:GetChildren()) do
			if v:IsA("BasePart") and
				v.Name == "Right Leg" or
				v.Name == "Left Leg" or
				v.Name == "Right Arm" or
				v.Name == "Left Arm" then
				v:Remove()
			end
		end
	end	
end)

addcmd('box', 'creates a box around player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        local SB = Instance.new("SelectionBox", pchar)
        SB.Adornee = SB.Parent
        SB.Color = BrickColor.new("" .. (args[2]))
    end
end)

addcmd('nobox', 'takes away box from player',{'unbox'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=_char(v)
        for i,v in pairs(gPlayers[v].Character:GetChildren()) do
			if v:IsA("SelectionBox") then
				v:Destroy()
			end
	    end
    end
end)

addcmd('ghost', 'ghostifys player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=gPlayers[v].Character
        pchar.Head.Transparency = 0.5
        pchar.Torso.Transparency = 0.5
        pchar["Left Arm"].Transparency = 0.5
        pchar["Right Arm"].Transparency = 0.5
        pchar["Left Leg"].Transparency = 0.5
        pchar["Right Leg"].Transparency = 0.5
        pchar.Head.face.Transparency = 0.5
    end
end)

addcmd('sphere', 'puts sphere around player',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=gPlayers[v].Character
        local SS = Instance.new("SelectionSphere", pchar)
        SS.Adornee = SS.Parent
    end
end)

addcmd('loadmap','loads map from model',{},
function(args)
    pcall(function()
	for i,v in pairs(workspace:GetChildren()) do
		if v.Name~="Camera" and v.Name~="Terrain" then
			v:Destroy()
		end
	end
	workspace.Terrain:Clear()
	for i,v in pairs(game.Players:GetChildren()) do
		local plr = v
		local prt = Instance.new("Model", workspace)
		Instance.new("Part", prt).Name="Torso"
		Instance.new("Part", prt).Name="Head"
		Instance.new("Humanoid", prt).Name="Humanoid"
		plr.Character = prt
	end
	if (args[1]) == "sfotho" then
	    local b = Insert(296400126, game.Workspace, "sfotho")
	    b:MakeJoints()
	end
	local b = Insert(args[1], game.Workspace, "LoadedMap")
	b:MakeJoints()
end)
Notify('Loaded Map')
end)

addcmd('sky','changes skybox',{},
function(args)
    pcall(function()
	    local ID = (args[1])
   local player = game.Players.LocalPlayer
    local char = player.Character
    local tool
    for i,v in player:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
    for i,v in game.ReplicatedStorage:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
    --craaa
    remote = tool.SyncAPI.ServerEndpoint
    function _(args)
        remote:InvokeServer(unpack(args))
    end
    function SetCollision(part,boolean)
        local args = {
            [1] = "SyncCollision",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CanCollide"] = boolean
                }
            }
        }
        _(args)
    end
    function SetAnchor(boolean,part)
        local args = {
            [1] = "SyncAnchor",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Anchored"] = boolean
                }
            }
        }
        _(args)
    end
    function CreatePart(cf,parent)
        local args = {
            [1] = "CreatePart",
            [2] = "Normal",
            [3] = cf,
            [4] = parent
        }
        _(args)
    end
    function DestroyPart(part)
        local args = {
            [1] = "Remove",
            [2] = {
                [1] = part
            }
        }
        _(args)
    end
    function MovePart(part,cf)
        local args = {
            [1] = "SyncMove",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CFrame"] = cf
                }
            }
        }
        _(args)
    end
    function Resize(part,size,cf)
        local args = {
            [1] = "SyncResize",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CFrame"] = cf,
                    ["Size"] = size
                }
            }
        }
        _(args)
    end
    function AddMesh(part)
        local args = {
            [1] = "CreateMeshes",
            [2] = {
                [1] = {
                    ["Part"] = part
                }
            }
        }
        _(args)
    end

    function SetMesh(part,meshid)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["MeshId"] = "rbxassetid://"..meshid
                }
            }
        }
        _(args)
    end
    function SetTexture(part, texid)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["TextureId"] = "rbxassetid://"..texid
                }
            }
        }
        _(args)
    end
    function SetName(part, stringg)
        local args = {
            [1] = "SetName",
            [2] = {
                [1] = part
            },
            [3] = stringg
        }

        _(args)
    end
    function MeshResize(part,size)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Scale"] = size
                }
            }
        }
        _(args)
    end
    function Weld(part1, part2,lead)
        local args = {
            [1] = "CreateWelds",
            [2] = {
                [1] = part1,
                [2] = part2
            },
            [3] = lead
        }
        _(args)

    end
    function SetLocked(part,boolean)
        local args = {
            [1] = "SetLocked",
            [2] = {
                [1] = part
            },
            [3] = boolean
        }
        _(args)
    end
    function SetTrans(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Transparency"] = int
                }
            }
        }
        _(args)
    end
    function CreateSpotlight(part)
        local args = {
            [1] = "CreateLights",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["LightType"] = "SpotLight"
                }
            }
        }
        _(args)
    end
    function SyncLighting(part,brightness)
        local args = {
            [1] = "SyncLighting",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["LightType"] = "SpotLight",
                    ["Brightness"] = brightness
                }
            }
        }
        _(args)
    end
    function Color(part,color)
        local args = {
            [1] = "SyncColor",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Color"] = color --[[Color3]],
                    ["UnionColoring"] = false
                }
            }
        }
        _(args)
    end
    function SpawnDecal(part,side)
        local args = {
            [1] = "CreateTextures",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Face"] = side,
                    ["TextureType"] = "Decal"
                }
            }
        }

        _(args)
    end
    function AddDecal(part,asset,side)
        local args = {
            [1] = "SyncTexture",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Face"] = side,
                    ["TextureType"] = "Decal",
                    ["Texture"] = "rbxassetid://".. asset
                }
            }
        }
        _(args)
    end

    function Sky(id)
        e = char.HumanoidRootPart.CFrame.x
        f = char.HumanoidRootPart.CFrame.y
        g = char.HumanoidRootPart.CFrame.z
        CreatePart(CFrame.new(math.floor(e),math.floor(f),math.floor(g)) + Vector3.new(0,6,0),workspace)
        for i,v in game.Workspace:GetDescendants() do
            if v:IsA("BasePart") and v.CFrame.x == math.floor(e) and v.CFrame.z == math.floor(g) then
                --spawn(function()
                SetName(v,"Sky")
                AddMesh(v)
                --end)
                --spawn(function()
                SetMesh(v,"111891702759441")
                SetTexture(v,id)
                --end)
                MeshResize(v,Vector3.new(60000,60000,60000))
                SetLocked(v,true)
            end
        end
    end
    Sky(ID)
	end)
end)

addcmd('ambient','changes ambient',{},
function(args)
	game.Lighting.Ambient = Color3.new(args[1],args[2],args[3])
end)

addcmd('gui','gives YourMom GUI',{},
function(args)
	loadstring(Insert(289110135, game.CoreGui.RobloxGui).Source)()
end)

addcmd('jail','jails player',{},
function(args)
	local players = getPlayer(args[1])
    for i,v in pairs(players)do
        local pchar=gPlayers[v].Character
        local JailPlayer = DATA.JAIL:Clone()
	    JailPlayer.Parent = game.Workspace
	    JailPlayer:MoveTo(pchar.Torso.Position)
	    JailPlayer.Name = "JAIL_" .. gPlayers[v].Name
		if pchar:FindFirstChild("HumanoidRootPart") then
			pchar.HumanoidRootPart.CFrame = JailPlayer.MAIN.CFrame
		end		
    end
end)

addcmd('unjail','unjails player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		game.Workspace["JAIL_" .. gPlayers[v].Name]:Destroy()
	end
end)

addcmd('shutdown', 'shuts the server down',{},
function(args)
	local function ShutDown(Base)
		for i,v in pairs(Base:GetChildren()) do
			v:Destroy()
		end
	end
	ShutDown(game.Players)
end)

addcmd('animation','makes player animate',{'anim'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
        local ID = args[2]

        if args[2] == "climb" then
	        ID = "180436334"
    end
        if args[2] == "fall" then
	        ID = "180436148"
    end
        if args[2] == "jump" then
	        ID = "125750702"
    end
        if args[2] == "sit" then
	        ID = "178130996"
    end
        for _,x in pairs(gPlayers[v].Character.Animate:GetChildren()) do
            if x:IsA("StringValue") then
                for _,c in pairs(x:GetChildren()) do
	                if c:IsA("Animation") then
	            	    c.AnimationId = "rbxassetid://" .. ID
	                end
	            end
            end
        end
    end
end)

addcmd('fix','turns player back to normal',{},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
		local pchar = gPlayers[v].Character
		
	    pchar.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
	    pchar.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.rad(90),0)
	    pchar.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.rad(-90),0)
	    pchar.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0)
	    pchar.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0)
	
	    for i,v in pairs(pchar.Head:GetChildren()) do
		    if v:IsA("SpecialMesh") then
			    v:Destroy()
		    end
	    end
	
		for i,v in pairs(pchar:GetChildren()) do
			if v:IsA("Shirt") then
				v:Destroy()
			end
		end
		
		for i,v in pairs(pchar:GetChildren()) do
			if v:IsA("Pants") then
				v:Destroy()
			end
		end
		
		if Player.Character:FindFirstChild("Shirt Graphic") ~= nil then
			Player.Character["Shirt Graphic"].Graphic = ""
		end
		
		local HeadMesh = Instance.new("SpecialMesh", pchar.Head)
		HeadMesh.MeshType = "Head"
		HeadMesh.Scale = Vector3.new(1.25, 1.25, 1.25)
		
		pchar.Head.Transparency = 0
		pchar.Torso.Transparency = 0
		pchar["Left Arm"].Transparency = 0
		pchar["Right Arm"].Transparency = 0
		pchar["Left Leg"].Transparency = 0
		pchar["Right Leg"].Transparency = 0
		
		for i,v in pairs(pchar.Head:GetChildren()) do
			if v:IsA("Decal") then
				v:Destroy()
			end
		end
		
		local face = Instance.new("Decal", pchar.Head)
		face.Name = "face"
		face.Texture = "rbxasset://textures/face.png"
		face.Face = "Front"
		
		for i,v in pairs(pchar:GetChildren()) do
			if v:IsA("Seat") then
				v:Destroy()
			end
		end
		
		for i,v in pairs(pchar.Torso:GetChildren()) do
			if v:IsA("Weld") then
				v:Destroy()
			end
		end
		
		for i,v in pairs(pchar.Torso:GetChildren()) do
			if v:IsA("SpecialMesh") then
				v:Destroy()
			end
		end
		
		pchar["Body Colors"].HeadColor = BrickColor.new("Cool yellow")
		pchar["Body Colors"].LeftArmColor = BrickColor.new("Cool yellow")
		pchar["Body Colors"].LeftLegColor = BrickColor.new("Medium blue")
		pchar["Body Colors"].RightArmColor = BrickColor.new("Cool yellow")
		pchar["Body Colors"].RightLegColor = BrickColor.new("Medium blue")
		pchar["Body Colors"].TorsoColor = BrickColor.new("Bright blue")
		for _,v in pairs(Player.Character:GetChildren()) do
			if v:IsA("Hat") then
				v:Destroy()
			end
		end
    end
end)

addcmd('creeper','make the player a creeper',{'crpr'},
function(args)
    local players = getPlayer(args[1])
    for i,v in pairs(players)do
	local pchar = gPlayers[v].Character
        if gPlayers[v] and pchar and pchar:findFirstChild("Torso") then
            if pchar:FindFirstChild("Shirt") then
	            pchar.Shirt.Parent = pchar.Torso
            end
            if pchar:FindFirstChild("Pants") then
	            pchar.Pants.Parent = pchar.Torso
            end
            if pchar:FindFirstChild("Shirt Graphic") then
	            pchar["Shirt Graphic"].Graphic = ""
            end
            for i,v in pairs(pchar:GetChildren()) do
	            if v:IsA("Hat") then
		            v:Destroy()
	            end
            end
            pchar.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0)
            pchar.Torso["Right Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0)
            pchar.Torso["Left Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0)
            pchar.Torso["Right Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0)
            pchar.Torso["Left Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0)
            pchar["Body Colors"].HeadColor = BrickColor.new("Bright green")
            pchar["Body Colors"].LeftArmColor = BrickColor.new("Bright green")
            pchar["Body Colors"].LeftLegColor = BrickColor.new("Bright green")
            pchar["Body Colors"].RightArmColor = BrickColor.new("Bright green")
            pchar["Body Colors"].RightLegColor = BrickColor.new("Bright green")
            pchar["Body Colors"].TorsoColor = BrickColor.new("Bright green")
        end
    end
end)

addcmd('uncreeper','makes player back to normal',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    execCmd("fix " .. gPlayers[v].Name, Player)
	end
end)

addcmd('shrek', 'makes player shrek',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players) do
		local pchar = gPlayers[v].Character
		for i,v in pairs(pchar:GetChildren()) do
			if v:IsA("Hat") or v:IsA("CharacterMesh") or v:IsA("Shirt") or v:IsA("Pants") then
				v:Destroy()
			end
		end
		for i,v in pairs(pchar.Head:GetChildren()) do
			if v:IsA("Decal") or v:IsA("SpecialMesh") then
				v:Destroy()
			end
		end
		
		local mesh = Instance.new("SpecialMesh", pchar.Head)
		mesh.MeshType = "FileMesh"
		pchar.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257"
		pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0)
		pchar.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869"
		
		local Shirt = Instance.new("Shirt", gPlayers[v].Character)
		local Pants = Instance.new("Pants", gPlayers[v].Character)
		
		Shirt.ShirtTemplate = "rbxassetid://133078194"
		Pants.PantsTemplate = "rbxassetid://133078204"
	end
end)

addcmd('unshrek','makes player back to normal',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    execCmd("fix " .. gPlayers[v].Name, Player)
	end
end)

local Spamming = false

addcmd('spam','spams text',{},
function(args)
	Spamming = true
	spawn(function()
		while wait(0) do
			if Spamming == true then
	            while wait(0.1) do
		            if Spamming == true then
			            game.Players:Chat(""  .. args[1])
		        elseif Spamming == false then
			            return
			        end
			    end
	        end
	    end
	end)
end)

addcmd('nospam','stops spamming',{},
function(args)
	Spamming = false
end)

addcmd('control','controls player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		local pchar = gPlayers[v].Character
		if gPlayers[v] and pchar then
			pchar.Humanoid.PlatformStand = true
			local w = Instance.new("Weld", Player.Character.Torso) 
			w.Part0 = Player.Character.Torso 
			w.Part1 = pchar.Torso  
			local w2 = Instance.new("Weld", Player.Character.Head) 
			w2.Part0 = Player.Character.Head 
			w2.Part1 = pchar.Head  
			local w3 = Instance.new("Weld", Player.Character:findFirstChild("Right Arm")) 
			w3.Part0 = Player.Character:findFirstChild("Right Arm")
			w3.Part1 = pchar:findFirstChild("Right Arm") 
			local w4 = Instance.new("Weld", Player.Character:findFirstChild("Left Arm"))
			w4.Part0 = Player.Character:findFirstChild("Left Arm")
			w4.Part1 = pchar:findFirstChild("Left Arm") 
			local w5 = Instance.new("Weld", Player.Character:findFirstChild("Right Leg")) 
			w5.Part0 = Player.Character:findFirstChild("Right Leg")
			w5.Part1 = pchar:findFirstChild("Right Leg") 
			local w6 = Instance.new("Weld", Player.Character:findFirstChild("Left Leg")) 
			w6.Part0 = Player.Character:findFirstChild("Left Leg")
			w6.Part1 = pchar:findFirstChild("Left Leg") 
			char.Head.face:Destroy()
			for i,v in pairs(pchar:GetChildren()) do
				if v:IsA("BasePart") then 
					v.CanCollide = false
				end
			end
			for i,v in pairs(char:GetChildren()) do
				if v:IsA("BasePart") then
					v.Transparency = 1 
				elseif v:IsA("Hat") then
					v:Destroy()
				end
			end
			pchar.Parent = char
			pchar.Humanoid.Changed:connect(function()
				pchar.Humanoid.PlatformStand = true
			end)
		end
		end
end)

addcmd('nuke','nukes player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		local pchar = gPlayers[v].Character
		if gPlayers[v] and pchar and pchar:FindFirstChild("Torso")  then
			local nuke = Instance.new("Part", game.Workspace)
			nuke.Anchored = true
			nuke.CanCollide = false
			nuke.FormFactor = "Symmetric"
			nuke.Shape = "Ball"
			nuke.Size = Vector3.new(1,1,1)
			nuke.BrickColor = BrickColor.new("New Yeller")
			nuke.Transparency = 0.5
			nuke.Reflectance = 0.2
			nuke.TopSurface = 0
			nuke.BottomSurface = 0
			nuke.Touched:connect(function (hit)
				if hit and hit.Parent then
					local boom = Instance.new("Explosion", game.Workspace)
					boom.Position = hit.Position
					boom.BlastRadius = 11
					boom.BlastPressure = math.huge
				end
			end)
			local CF = pchar.Torso.CFrame
			nuke.CFrame = CF
			for i = 1,333 do
				nuke.Size = nuke.Size + Vector3.new(3,3,3)
				nuke.CFrame = CF
				wait(1/44)
			end
			nuke:Destroy()
		end
	end
end)

addcmd('infect','infects player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		function infect(rip)
		local pchar = gPlayers[v].Character
			for i,v in pairs(pchar:GetChildren()) do
				if v:IsA("Hat") or v:IsA("Shirt") or v:IsA("Pants") then
					v:Destroy()
				end
			end
			if pchar.Torso:FindFirstChild("roblox") then
				pchar.Torso.roblox:Destroy()
			end
			if pchar.Head:FindFirstChild("face") then
				pchar.Head.face.Texture = "http://www.roblox.com/asset/?id=94634491"
			end
			if pchar:FindFirstChild("Body Colors") then
				local Colors = pchar["Body Colors"]
				local Skin = BrickColor.new("Pastel green")
				local Clothes = BrickColor.new("Reddish brown")
				Colors.HeadColor = Skin
				Colors.LeftArmColor = Skin
				Colors.RightArmColor = Skin
				Colors.LeftLegColor = Clothes
				Colors.RightLegColor = Clothes
				Colors.TorsoColor = Clothes
			end
			local w1 = Instance.new("Weld", pchar)
			w1.Part0 = pchar["Right Arm"]
			w1.Part1 = pchar.Torso
			w1.C0 = CFrame.new(-1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
			local w2 = Instance.new("Weld", pchar)
			w2.Part0 = pchar["Left Arm"]
			w2.Part1 = pchar.Torso
			w2.C0 = CFrame.new(1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0))
			local rip = false
			local connect1 = pchar["Left Arm"].Touched:connect(function(hit)
				if connect1 == false then
					connect1 = true
					if game.Players:FindFirstChild(hit.Parent.Name) then
						infect(game.Players[hit.Parent.Name])
					end
					wait(0.5)
					connect1 = true
				end
			end)
			local connect2 = pchar["Right Arm"].Touched:connect(function(hit)
				if connect2 == false then
					connect2 = true
					if game.Players:FindFirstChild(hit.Parent.Name) then
						infect(game.Players[hit.Parent.Name])
					end
					wait(0.5)
					connect2 = true
				end
			end)
			local IV = Instance.new("IntValue", pchar)
			IV.Name = "Infected"
			IV.Value = 0
			IV.Changed:connect(function()
				connect1:disconnect()
				connect2:disconnect()
			end)
		end
		infect(v)
	end
end)

addcmd('uninfect','makes player back to normal',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    execCmd("fix " .. gPlayers[v].Name, Player)
	end
end)

addcmd('duck','makes players head a duck',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    for i,v in pairs(pchar.Torso:GetChildren()) do
		    if v:IsA("Decal") then
			    v:Destroy()
		    end
	    end
	    for i,v in pairs(pchar:GetChildren()) do
		    if v:IsA("Hat") then
			    v:Destroy()
		    end
	    end
	    local duck = Instance.new("SpecialMesh", pchar.Torso)
	    duck.MeshType = "FileMesh"
	    duck.MeshId = "http://www.roblox.com/asset/?id=9419831"
	    duck.TextureId = "http://www.roblox.com/asset/?id=9419827"
	    duck.Scale = Vector3.new(5, 5, 5)
	    pchar.Head.Transparency = 1
	    pchar["Left Arm"].Transparency = 1
	    pchar["Right Arm"].Transparency = 1
	    pchar["Left Leg"].Transparency = 1
	    pchar["Right Leg"].Transparency = 1
	    pchar.Head.face.Transparency = 1
	end
end)

addcmd('unduck','makes player back to normal',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    execCmd("fix " .. gPlayers[v].Name, Player)
	end
end)

addcmd('disable','removes players humanoid',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Humanoid") then
		   pchar.Humanoid.Name = "HUMANOID_" .. gPlayers[v].Name
		   local humanoid = pchar["HUMANOID_" .. gPlayers[v].Name]
		   humanoid.Parent = game.ContextActionService
	    end
	end
end)

addcmd('enable','gives player humanoid',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
		local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Humanoid") then
		    return
	    else
		    local humanoid = game.ContextActionService["HUMANOID_" .. gPlayers[v].Name]
		    humanoid.Parent = pchar
		    humanoid.Name = "Humanoid"
	    end
	end
end)

addcmd('size','changes size of player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	local pchar = gPlayers[v].Character
		local function scale(chr,scl)
		
			for _,v in pairs(pchar:GetChildren()) do
				if v:IsA("Hat") then
					v:Clone()
					v.Parent = game.Lighting
				end
			end
				
		    local Head = chr['Head']
		    local Torso = chr['Torso']
		    local LA = chr['Left Arm']
		    local RA = chr['Right Arm']
		    local LL = chr['Left Leg']
		    local RL = chr['Right Leg']
		    local HRP = chr['HumanoidRootPart']
		
		    wait(0.1)
		   
		    Head.formFactor = 3
		    Torso.formFactor = 3
		    LA.formFactor = 3
		    RA.formFactor = 3
		    LL.formFactor = 3
		    RL.formFactor = 3
		    HRP.formFactor = 3
		    
		    Head.Size = Vector3.new(scl * 2, scl, scl)
		    Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
		    LA.Size = Vector3.new(scl, scl * 2, scl)
		    RA.Size = Vector3.new(scl, scl * 2, scl)
		    LL.Size = Vector3.new(scl, scl * 2, scl)
		    RL.Size = Vector3.new(scl, scl * 2, scl)
		    HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
		    
		    local Motor1 = Instance.new('Motor6D', Torso)
		    Motor1.Part0 = Torso
		    Motor1.Part1 = Head
	    	Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
	    	Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
	    	Motor1.Name = "Neck"
				    
	    	local Motor2 = Instance.new('Motor6D', Torso)
	    	Motor2.Part0 = Torso
	    	Motor2.Part1 = LA
	    	Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
	    	Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
	    	Motor2.Name = "Left Shoulder"
	    	
	    	local Motor3 = Instance.new('Motor6D', Torso)
	   		Motor3.Part0 = Torso
	    	Motor3.Part1 = RA
	    	Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
	    	Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
	    	Motor3.Name = "Right Shoulder"
	    	
	    	local Motor4 = Instance.new('Motor6D', Torso)
	    	Motor4.Part0 = Torso
	    	Motor4.Part1 = LL
	    	Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
	    	Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
	    	Motor4.Name = "Left Hip"
	    	
	    	local Motor5 = Instance.new('Motor6D', Torso)
	    	Motor5.Part0 = Torso
	    	Motor5.Part1 = RL
	    	Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
	    	Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
	    	Motor5.Name = "Right Hip"
	    	
	    	local Motor6 = Instance.new('Motor6D', HRP)
	    	Motor6.Part0 = HRP
	    	Motor6.Part1 = Torso
	    	Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
	    	Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
	    	    
		end
		
		scale(pchar, args[2])
	
		for _,v in pairs(game.Lighting:GetChildren()) do
			if v:IsA("Hat") then
				v.Parent = pchar
			end
		end
	end
end)

addcmd('confuse','reverses players speed',{'reverse'},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    pchar.Humanoid.WalkSpeed = tonumber(-16)
	end
end)

addcmd('unconfuse','reverses players speed',{'unreverse'},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    pchar.Humanoid.WalkSpeed = tonumber(16)
	end
end)

addcmd('clone','clones player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    pchar.Archivable = true
	    local clone = pchar:Clone()
	    clone.Parent = game.Workspace
	    clone:MoveTo(pchar:GetModelCFrame().p)
	    clone:MakeJoints()
	    pchar.Archivable = false
	end
end)

addcmd('spin','spins player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    for i,v in pairs(pchar.Torso:GetChildren()) do
		    if v.Name == "Spinning" then
			    v:Destroy()
		    end
	    end
	    local Torso = pchar.Torso
	    local BG = Instance.new("BodyGyro", Torso)
	    BG.Name = "Spinning"
	    BG.maxTorque = Vector3.new(0, math.huge, 0)
	    BG.P = 11111
	    BG.cframe = Torso.CFrame
	    repeat wait(1/44)
		    BG.CFrame = BG.CFrame * CFrame.Angles(0,math.rad(30),0)
	    until not BG or BG.Parent ~= Torso
	end
end)

addcmd('unspin','stops spinning player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    for i,v in pairs(pchar.Torso:GetChildren()) do
		    if v.Name == "Spinning" then
			    v:Destroy()
		    end
	    end
	end
end)

addcmd('dog','makes player a dog',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Shirt") then
		    pchar.Shirt:Destroy()
	    end
	    if pchar:FindFirstChild("Pants") then
		    pchar.Pants:Destroy()
	    end
	    if pchar:FindFirstChild("Shirt Graphic") then
		    pchar["Shirt Graphic"].Graphic = ""
	    end
	    pchar.Torso.Transparency = 1
	    pchar.Torso.Neck.C0 = CFrame.new(0,-.5,-2) * CFrame.Angles(math.rad(90),math.rad(180),0)
	    pchar.Torso["Right Shoulder"].C0 = CFrame.new(.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(90),0)
	    pchar.Torso["Left Shoulder"].C0 = CFrame.new(-.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(-90),0)
	    pchar.Torso["Right Hip"].C0 = CFrame.new(1.5,-1,1.5) * CFrame.Angles(0,math.rad(90),0)
	    pchar.Torso["Left Hip"].C0 = CFrame.new(-1.5,-1,1.5) * CFrame.Angles(0,math.rad(-90),0)
	    local FakeTorso = Instance.new("Seat", pchar)
	    FakeTorso.Name = "FakeTorso"
	    FakeTorso.FormFactor = "Symmetric"
	    FakeTorso.TopSurface = 0
	    FakeTorso.BottomSurface = 0
	    FakeTorso.Size = Vector3.new(3,1,4)
	    FakeTorso.BrickColor = BrickColor.new("Brown")
	    FakeTorso.CFrame = pchar.Torso.CFrame
	    local BF = Instance.new("BodyForce", FakeTorso)
	    BF.Force = Vector3.new(0, FakeTorso:GetMass() * 196.25, 0)
	    local W = Instance.new("Weld", pchar.Torso)
	    W.Part0 = pchar.Torso
	    W.Part1 = FakeTorso
	    W.C0 = CFrame.new(0,-.5,0)
	    local BC = pchar["Body Colors"]
	    BC.HeadColor = BrickColor.new("Brown")
	    BC.LeftArmColor = BrickColor.new("Brown")
	    BC.LeftLegColor = BrickColor.new("Brown")
	    BC.RightArmColor = BrickColor.new("Brown")
	    BC.RightLegColor = BrickColor.new("Brown")
	    BC.TorsoColor = BrickColor.new("Brown")
	end
end)

addcmd('undog','makes player back to normal',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    execCmd("fix " .. gPlayers[v].Name, Player)
	end
end)

addcmd('tptool','gives player tptool',{''},
function(args)
	local tool = DATA.Teleport:Clone()
	tool.Parent = Player.Backpack
end)

addcmd('loopsit','loop sits player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopSit") then
		    pchar.LoopSit.Name = "NotLoopSit"
		    wait(0.1)
		    pchar.NotLoopSit:Destroy()
	    end
	    local LoopSit = Instance.new("StringValue", pchar)
	    LoopSit.Name = "LoopSit"
	    repeat wait(0.1)
		    pchar.Humanoid.Sit = true
	    until LoopSit.Name == "NotLoopSit"
	end
end)

addcmd('unloopsit','stops loop sit on player',{'noloopsit'},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopSit") then
		    pchar.LoopSit.Name = "NotLoopSit"
		    wait(0.1)
		    pchar.NotLoopSit:Destroy()
	    end
	end
end)

addcmd('loopjump','loop jumps player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopJump") then
		    pchar.LoopJump.Name = "NotLoopJump"
		    wait(0.1)
		    pchar.NotLoopJump:Destroy()
	    end
	    local LoopJump = Instance.new("StringValue", pchar)
	    LoopJump.Name = "LoopJump"
	    repeat wait(0.1)
		    pchar.Humanoid.Jump = true
	    until LoopJump.Name == "NotLoopJump"
	end
end)

addcmd('unloopjump','stops loop jump on player',{'noloopjump'},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopJump") then
		    pchar.LoopJump.Name = "NotLoopJump"
		    wait(0.1)
		    pchar.NotLoopJump:Destroy()
	    end
	end
end)

addcmd('loopheal','loop heals player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopHeal") then
		    pchar.LoopHeal.Name = "NotLoopHeal"
		    wait(0.1)
		    pchar.NotLoopHeal:Destroy()
	    end
	    local LoopHeal = Instance.new("StringValue", pchar)
	    LoopHeal.Name = "LoopHeal"
	    repeat wait(0.1)
		    pchar.Humanoid.Health = pchar.Humanoid.MaxHealth
	    until LoopHeal.Name == "NotLoopHeal"
	end
end)

addcmd('unloopheal','stops loop heal on player',{'noloopheal'},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("LoopHeal") then
		    pchar.LoopHeal.Name = "NotLoopHeal"
		    wait(0.1)
		    pchar.NotLoopHeal:Destroy()
	    end
	end
end)

addcmd('fling','flings player',{},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
		if pchar:FindFirstChild("Humanoid") then
			local xran
			local zran
			repeat
				xran = math.random(-9999,9999)
			until math.abs(xran) >= 5555
			repeat
				zran = math.random(-9999,9999)
			until math.abs(zran) >= 5555
			pchar.Humanoid.Sit = true
			pchar.Torso.Velocity = Vector3.new(0,0,0)
			local BF = Instance.new("BodyForce", pchar.Torso)
			BF.force = Vector3.new(xran * 4, 9999 * 5, zran * 4)
		end
	end
end)

addcmd('nograv','makes player have moon gravity',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    for i,v in pairs(pchar.Torso:GetChildren()) do
		    if v.Name == "NoGrav" then
			    v:Destroy()
		    end
	    end
	    local BF = Instance.new("BodyForce", pchar.Torso)
	    BF.Name = "NoGrav"
	    BF.Force = Vector3.new(0,2700,0)
	end
end)

addcmd('grav','makes player have normal gravity',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    for i,v in pairs(pchar.Torso:GetChildren()) do
		    if v.Name == "NoGrav" then
			    v:Destroy()
		    end
	    end
	end
end)

addcmd('seizure','makes player have a seizure',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Seizure") then
		    
	    end
	    local Seizure = Instance.new("StringValue", pchar)
	    Seizure.Name = "Seizure"
	    pchar.Humanoid.PlatformStand = true
		repeat wait()
		    pchar.Torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10))
		    pchar.Torso.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
		until Seizure.Name == "NotSeizure"
	end
end)

addcmd('unseizure','makes player stop having a seizure',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Seizure") then
	        pchar.Humanoid.PlatformStand = false
		    pchar.Seizure.Name = "NotSeizure"
		    wait(0.1)
		    pchar.NotSeizure:Destroy()
	    end
	end
end)

addcmd('cape','gives you a cape',{''},
function(args)
    if not args[1] then
		args[1] = 1012
	end
	capeColor = args[1]
    Cape(Player)
end)

addcmd('uncape','takes cape away from you',{''},
function(args)
	if char:FindFirstChild("Cape") ~= nil then
	    char.Cape:Destroy()
	end
end)

addcmd('paper','makes player thin as paper',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    local LA = DATA.Paper:Clone()
	    LA.Parent = pchar["Left Arm"]
	    local RA = DATA.Paper:Clone()
	    RA.Parent = pchar["Right Arm"]
	    local LL = DATA.Paper:Clone()
	    LL.Parent = pchar["Left Leg"]
	    local RL = DATA.Paper:Clone()
	    RL.Parent = pchar["Right Leg"]
	    local T = DATA.Paper:Clone()
	    T.Parent = pchar.Torso
		local H = DATA.Paper:Clone()
		H.Parent = pchar.Head
		pchar.Head.face:Destroy()
	end
end)

addcmd('punish','punishs player',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    pchar.Parent = game.Lighting
	end
end)

addcmd('unpunish','unpunishs player',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    if game.Lighting:FindFirstChild("" .. gPlayers[v].Name) then
	        game.Lighting:FindFirstChild("" .. gPlayers[v].Name).Parent = game.Workspace
	    end
	end
end)

addcmd('disco','disco party',{''},
function(args)
	Disco = true
	if Disco == true then
		repeat wait(0.3)
		    game.Lighting.Ambient = Color3.new(math.random(),math.random(),math.random())
		until Disco == false
	end
end)

addcmd('undisco','rip disco party',{''},
function(args)
	Disco = false
	wait(0.1)
	game.Lighting.Ambient = Color3.new(0.5,0.5,0.5)
end)

-- Extras --

Floating = false

addcmd('float', 'makes player float',{},
function(args,speaker)
	Floating = true
	local players = getPlayer(args[1])
	for _,v in pairs(players) do
		local pchar = gPlayers[v].Character
		if gPlayers[v] and pchar and not pchar:FindFirstChild("Float") then
			spawn(function()
				local float = DATA.Float:Clone()
				float.Parent = pchar
				float.CFrame = pchar.Torso.CFrame * CFrame.new(0,-3.5,0)
				spawn(function()
					while wait(0.1) do
						if pchar:FindFirstChild("Float") then
							float.CFrame = pchar.Torso.CFrame * CFrame.new(0,-3.5,0)
						else
							break
						end
					end
				end)
			end)
		end
	end
end)

addcmd('unfloat','disables floating',{},
function(args)
	Floating = false
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Float") then
		    pchar.Float:Destroy()
	    end
	end
end)

local Clip = true

addcmd('noclip','enables noclip',{},
function(args)
Notify('NoClip Enabled')
Clip = false
	wait(1)
	Name = game.Players.LocalPlayer.Name
	game:GetService('Players').LocalPlayer.PlayerGui.ChildAdded:connect(function (NC)
		delay(0, function()
			if NC.Name ~= "OuputGUI" then
				NC:Destroy()
			end
		end)
	end)
	game:GetService('RunService').Stepped:connect(function ()
    game.Workspace[Name].Torso.CanCollide = Clip
    game.Workspace[Name].Head.CanCollide = Clip
	end)
	game.Workspace[Name].Torso.Changed:connect(function()
    game.Workspace[Name].Torso.CanCollide = Clip
	game.Workspace[Name].Head.CanCollide = Clip
	end)
end)

addcmd('clip','disables noclip',{},
function(args)
	Notify('NoClip Disabled')
	Clip = true
end)

wait(0.1)

addcmd('prefix','changes prefix',{},
function(args)
	cmdprefix = args[1]
	Notify('Changed prefix to "' .. args[1] .. '"')
end)

addcmd('admins','prints admins',{},
function(args)
	for i,v in pairs(AdminFolder:GetChildren()) do
		if v:IsA("StringValue") then
			print("-" .. v.Value)
			Notify('Printed Admins, Check Console')
		end
	end
end)

addcmd('bans','prints bans',{},
function(args)
	for i,v in pairs(BanFolder:GetChildren()) do
		if v:IsA("StringValue") then
			print("-" .. v.Value)
			Notify('Printed Bans, Check Console')
		end
	end
end)

addcmd('version','shows version',{''},
function(args)
	Notify("Version is " .. Version)
end)

--| Floating |--

Mouse.KeyDown:connect(function (Key)
	if Key:byte() == 29 then
		if Floating == false then
			execCmd("float me", Player)
			Floating = true
		elseif Floating == true then
			execCmd("unfloat me", Player)
			Floating = false
		end
	end
end)

--| Ban Data |--

for i,v in pairs(BannedPlayers) do
	local ban = Instance.new("StringValue", BanFolder)
	ban.Value = v
	ban.RobloxLocked = true
end

spawn(function ()
    while wait(0.1) do
		for _,a in pairs(game.ContextActionService:GetChildren()) do
		    if a.Name == "BanList" then
			    for _,b in pairs(a:GetChildren()) do
				    if b:IsA("StringValue") then
					    for _,c in pairs(game.Players:GetChildren()) do
						    if c.Name == b.Value then
							    c.PersonalServerRank = 200
							    wait(0.1)
							    c.PersonalServerRank = 0
						    end
					    end
				    end
			    end
		    end
	    end
    end
end)

--| Admin |--

for i,v in pairs(admins) do
	local admin = Instance.new("StringValue", AdminFolder)
	admin.Value = v
	admin.RobloxLocked = true
end

spawn(function ()
    while wait(0.1) do
		for _,a in pairs(game.ContextActionService:GetChildren()) do
		    if a.Name == "AdminList" then
			    for _,b in pairs(a:GetChildren()) do
				    if b:IsA("StringValue") then
					    for _,c in pairs(game.Players:GetChildren()) do
						    if c.Name == b.Value then
							    execCmd('admin ' .. c.Name)
						    end
					    end
				    end
			    end
		    end
	    end
    end
end)





















--| Don't.. Touch.. |--






--| CMD Bar |--

CMDbar = Instance.new('ScreenGui', game.CoreGui)
CMDbar.Name = 'GUI'
cmdBAR = Instance.new('TextBox', CMDbar)
cmdBAR.Name = 'CMDbar'
cmdBAR.Active = true
cmdBAR.BackgroundColor = BrickColor.new(0,0,0)
cmdBAR.BackgroundTransparency = 0.5
cmdBAR.BorderColor = BrickColor.new(0,0,0)
cmdBAR.BorderSizePixel = 0
cmdBAR.Position = UDim2.new(0,0,1,-25)
cmdBAR.Size = UDim2.new(0,200,0,20)
cmdBAR.Font = 'SourceSans'
cmdBAR.FontSize = 'Size18'
cmdBAR.Text = 'Press ; to Execute a Command'
cmdBAR.TextColor = BrickColor.new(255,255,255)

--| Data |--

DATA = Instance.new('Folder', game.ContextActionService)
DATA.Name = 'Data'

Paper = Instance.new('BlockMesh', DATA)
Paper.Name = 'Paper'
Paper.Scale = Vector3.new(1,1,0.1)

ayylmao = Instance.new('Hat', DATA)
ayylmao.Name = 'ayylmao'
ayyHandle = Instance.new('Part', ayylmao)
ayyHandle.Name = 'Handle'
ayyHandle.Size = Vector3.new(2,2.4,2)
ayyHandle.FormFactor = 'Plate'
ayyMesh = Instance.new('SpecialMesh', ayyHandle)
ayyMesh.Scale = Vector3.new(1,1.02,1)
ayyMesh.MeshType = 'FileMesh'
ayyMesh.MeshId = 'http://www.roblox.com/asset/?id=13827689'
ayyMesh.TextureId = 'http://www.roblox.com/asset/?id=13827796'

Float = Instance.new('Part', DATA)
Float.Name = 'Float'
Float.Transparency = 1
Float.Size = Vector3.new(6,1,6)
Float.Anchored = true

cmdGUI = Instance.new('ScreenGui', DATA)
cmdGUI.Name = 'CMDs'
cmdMAIN = Instance.new('Frame', cmdGUI)
cmdMAIN.Name = 'MAIN'
cmdMAIN.Active = true
cmdMAIN.BackgroundColor = BrickColor.new(0,0,0)
cmdMAIN.BackgroundTransparency = 0.5
cmdMAIN.BorderColor = BrickColor.new(0,0,0)
cmdMAIN.BorderSizePixel = 0
cmdMAIN.Position = UDim2.new(0,10,0,350)
cmdMAIN.Size = UDim2.new(0,170,0,15)
cmdMAIN.Draggable = true
cmdCMDs = Instance.new('ScrollingFrame', cmdMAIN)
cmdCMDs.Name = 'CMDs'
cmdCMDs.BackgroundColor = BrickColor.new(0,0,0)
cmdCMDs.BackgroundTransparency = 0.8
cmdCMDs.BorderColor = BrickColor.new(0,0,0)
cmdCMDs.BorderSizePixel = 0
cmdCMDs.Position = UDim2.new(0,0,0,15)
cmdCMDs.Size = UDim2.new(0,200,0,150)
cmdCMDs.CanvasSize = UDim2.new(0,0,0,0)
cmdCMDs.TopImage = 'rbxasset://textures/blackBkg_square.png'
cmdCMDs.MidImage = 'rbxasset://textures/blackBkg_square.png'
cmdCMDs.BottomImage = 'rbxasset://textures/blackBkg_square.png'
cmdCMDs.ScrollBarThickness = 2
cmdExit = Instance.new('TextButton', cmdMAIN)
cmdExit.Name = 'Exit'
cmdExit.BackgroundColor = BrickColor.new(255,0,0)
cmdExit.BackgroundTransparency = 0.5
cmdExit.BorderColor = BrickColor.new(255,0,0)
cmdExit.BorderSizePixel = 0
cmdExit.Position = UDim2.new(0,185,0,0)
cmdExit.Size = UDim2.new(0,15,0,15)
cmdExit.Text = ""
ExitScript = Instance.new('LocalScript', cmdExit)
ExitScript.Source =
[[
script.Parent.MouseButton1Down:connect(function()
	script.Parent.Parent.Parent:Destroy()
end)
]]
cmdMin = Instance.new('TextButton', cmdMAIN)
cmdMin.Name = 'MM'
cmdMin.BackgroundColor = BrickColor.new(140,140,140)
cmdMin.BackgroundTransparency = 0.5
cmdMin.BorderColor = BrickColor.new(140,140,140)
cmdMin.BorderSizePixel = 0
cmdMin.Position = UDim2.new(0,170,0,0)
cmdMin.Size = UDim2.new(0,15,0,15)
cmdMin.Text = ""
MinScript = Instance.new('LocalScript', cmdMin)
MinScript.Source =
[[
local CMDs = script.Parent.Parent.CMDs

script.Parent.MouseButton1Down:connect(function()
	if CMDs.Visible == true then
		CMDs.Visible = false
	elseif CMDs.Visible == false then
		CMDs.Visible = true
	end
end)
]]
cmdEx = Instance.new('TextLabel', cmdMAIN)
cmdEx.Name = 'Example'
cmdEx.BackgroundColor = BrickColor.new(0,0,0)
cmdEx.BackgroundTransparency = 0.8
cmdEx.BorderColor = BrickColor.new(0,0,0)
cmdEx.BorderSizePixel = 0
cmdEx.Position = UDim2.new(0,5,0,20)
cmdEx.Size = UDim2.new(0,190,0,20)
cmdEx.Visible = false
cmdEx.TextColor = BrickColor.new(255,255,255)
cmdEx.TextXAlignment = 'Left'

duckGUI = Instance.new('ScreenGui', DATA)
duckGUI.Name = 'Duck'
duckImage = Instance.new('ImageLabel', duckGUI)
duckImage.BackgroundTransparency = 1
duckImage.Position = UDim2.new(0,-300,1,-150)
duckImage.Size = UDim2.new(0,300,0,300)
duckImage.Rotation = -30
duckImage.Image = 'rbxassetid://301388647'
duckScript = Instance.new('LocalScript', duckGUI)
duckScript.Source =
[[
local duck = script.Parent.ImageLabel

wait(2)

duck:TweenPosition(UDim2.new(1, 0, 1, -150), "InOut", "Quad", 3, true, nil)
]]

espMAIN = Instance.new('BillboardGui', DATA)
espMAIN.Name = 'MAIN'
espMAIN.AlwaysOnTop = true
espMAIN.ExtentsOffset = Vector3.new(0,1,0)
espMAIN.Size = UDim2.new(0,5,0,5)
espMAIN.StudsOffset = Vector3.new(0,1,0)
espDot = Instance.new('Frame', espMAIN)
espDot.BackgroundColor = BrickColor.new(42,181,255)
espDot.BackgroundTransparency = 0.3
espDot.BorderSizePixel = 0
espDot.Position = UDim2.new(-0.5,0,-0.5,0)
espDot.Size = UDim2.new(2,0,2,0)
espDot.Visible = false
espDot.ZIndex = 10
espName = Instance.new('TextLabel', espMAIN)
espName.Name = 'Name'
espName.BackgroundColor = BrickColor.new(0,0,0)
espName.BackgroundTransparency = 1
espName.BorderColor = BrickColor.new(0,0,0)
espName.BorderSizePixel = 0
espName.Position = UDim2.new(0,0,0,-35)
espName.Size = UDim2.new(1,0,10,0)
espName.Visible = false
espName.ZIndex = 10

notifyMAIN = Instance.new('ScreenGui', DATA)
notifyMAIN.Name = 'Notification'
notifyNOT = Instance.new('Frame', notifyMAIN)
notifyNOT.Name = 'NOTIFY'
notifyNOT.BackgroundColor = BrickColor.new(0,0,0)
notifyNOT.BackgroundTransparency = 0.5
notifyNOT.BorderColor = BrickColor.new(255,255,255)
notifyNOT.BorderSizePixel = 2
notifyNOT.Position = UDim2.new(0,-200,0.7,0)
notifyNOT.Size = UDim2.new(0,200,0,30)
notifyNOTE = Instance.new('TextLabel', notifyNOT)
notifyNOTE.Name = 'NOTE'
notifyNOTE.BackgroundColor = BrickColor.new(255,255,255)
notifyNOTE.BackgroundTransparency = 1
notifyNOTE.BorderColor = BrickColor.new(255,255,255)
notifyNOTE.BorderSizePixel = 0
notifyNOTE.Size = UDim2.new(1,0,1,0)
notifyNOTE.ZIndex = 10
notifyNOTE.FontSize = 'Size18'
notifyNOTE.Font = 'SourceSans'
notifyNOTE.Text = 'NOTIFY'
notifyNOTE.TextColor = BrickColor.new(255,255,255)
notifyNOTE.TextStrokeColor3 = Color3.new(255,255,255)
notifyNOTE.TextStrokeTransparency = 0.8

tpTool = Instance.new('HopperBin', DATA)
tpTool.Name = 'Teleport'
tpScript = Instance.new('LocalScript', tpTool)
tpScript.Source =
[[
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

local Tool = script.Parent

Mouse.Button1Down:connect(function()
	if Mouse.Target and Tool.Active then
		Player.Character.HumanoidRootPart.CFrame = Mouse.Hit + Vector3.new(0,2,0)
	end
end)
]]

modJAIL = Instance.new('Model', DATA)
modJAIL.Name = 'JAIL'
botJAIL = Instance.new('Part', modJAIL)
botJAIL.Name = 'BOTTOM'
botJAIL.BrickColor = BrickColor.new('Black')
botJAIL.Transparency = 0.5
botJAIL.Position = Vector3.new(-6.2,0.5,-11.6)
botJAIL.Anchored = true
botJAIL.Locked = true
botJAIL.Size = Vector3.new(6,1,6)
botJAIL.TopSurface = 'Smooth'
botJAIL.BottomSurface = 'Smooth'
topJAIL = Instance.new('Part', modJAIL)
topJAIL.Name = 'BOTTOM'
topJAIL.BrickColor = BrickColor.new('Black')
topJAIL.Transparency = 0.5
topJAIL.Position = Vector3.new(-6.2,7.5,-11.6)
topJAIL.Anchored = true
topJAIL.Locked = true
topJAIL.Size = Vector3.new(6,1,6)
topJAIL.TopSurface = 'Smooth'
topJAIL.BottomSurface = 'Smooth'
p1 = Instance.new('Part', modJAIL)
p1.Name = 'MAIN'
p1.BrickColor = BrickColor.new('Black')
p1.Transparency = 1
p1.Position = Vector3.new(-8.7,4,-11.6)
p1.Rotation = Vector3.new(-180,0,-180)
p1.Anchored = true
p1.Locked = true
p1.Size = Vector3.new(1,6,4)
p1.TopSurface = 'Smooth'
p1.BottomSurface = 'Smooth'
p2 = Instance.new('Part', modJAIL)
p2.BrickColor = BrickColor.new('Black')
p2.Transparency = 0.5
p2.Position = Vector3.new(-3.7,4,-14.1)
p2.Anchored = true
p2.Locked = true
p2.Size = Vector3.new(1,6,1)
p2.TopSurface = 'Smooth'
p2.BottomSurface = 'Smooth'
p3 = Instance.new('Part', modJAIL)
p3.BrickColor = BrickColor.new('Black')
p3.Transparency = 0.5
p3.Position = Vector3.new(-8.7,4,-9.1)
p3.Anchored = true
p3.Locked = true
p3.Size = Vector3.new(1,6,1)
p3.TopSurface = 'Smooth'
p3.BottomSurface = 'Smooth'
p4 = Instance.new('Part', modJAIL)
p4.BrickColor = BrickColor.new('Black')
p4.Transparency = 0.5
p4.Position = Vector3.new(-3.7,4,-9.1)
p4.Anchored = true
p4.Locked = true
p4.Size = Vector3.new(1,6,1)
p4.TopSurface = 'Smooth'
p4.BottomSurface = 'Smooth'
p5 = Instance.new('Part', modJAIL)
p5.BrickColor = BrickColor.new('Black')
p5.Transparency = 0.5
p5.Position = Vector3.new(-8.7,4,-14.1)
p5.Anchored = true
p5.Locked = true
p5.Size = Vector3.new(1,6,1)
p5.TopSurface = 'Smooth'
p5.BottomSurface = 'Smooth'
p6 = Instance.new('Part', modJAIL)
p6.BrickColor = BrickColor.new('Black')
p6.Transparency = 1
p6.Position = Vector3.new(-6.2,4,-14.1)
p6.Rotation = Vector3.new(0,90,0)
p6.Anchored = true
p6.Locked = true
p6.Size = Vector3.new(1,6,4)
p6.TopSurface = 'Smooth'
p6.BottomSurface = 'Smooth'
p7 = Instance.new('Part', modJAIL)
p7.BrickColor = BrickColor.new('Black')
p7.Transparency = 1
p7.Position = Vector3.new(-3.7,4,-11.6)
p7.Anchored = true
p7.Locked = true
p7.Size = Vector3.new(1,6,4)
p7.TopSurface = 'Smooth'
p7.BottomSurface = 'Smooth'
p8 = Instance.new('Part', modJAIL)
p8.BrickColor = BrickColor.new('Black')
p8.Transparency = 1
p8.Position = Vector3.new(-6.2,4,-9.1)
p8.Rotation = Vector3.new(0,90,0)
p8.Anchored = true
p8.Locked = true
p8.Size = Vector3.new(1,6,4)
p8.TopSurface = 'Smooth'
p8.BottomSurface = 'Smooth'

--| Some Commands |--

addcmd('ayylmao','ayy lmao',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	    if pchar:FindFirstChild("Shirt") then
		    pchar.Shirt:Destroy()
	    end
	    if pchar:FindFirstChild("Pants") then
		    pchar.Pants:Destroy()
	    end
	    if pchar:FindFirstChild("Shirt Graphic") then
		    pchar["Shirt Graphic"].Graphic = ""
	    end
	    for i,v in pairs(pchar:GetChildren()) do
		    if v:IsA("Hat") then
			    v:Destroy()
		    end
	    end
	    local ayylmao = DATA.ayylmao:Clone()
	    ayylmao.Parent = pchar
	    local BC = pchar["Body Colors"]
	    BC.HeadColor = BrickColor.new("Fossil")
	    BC.LeftArmColor = BrickColor.new("Fossil")
	    BC.LeftLegColor = BrickColor.new("Fossil")
	    BC.RightArmColor = BrickColor.new("Fossil")
	    BC.RightLegColor = BrickColor.new("Fossil")
	    BC.TorsoColor = BrickColor.new("Fossil")
	end
end)

-- CMDs GUI --

CMDsFolder = Instance.new("Folder", game.CoreGui)

for i,v in pairs(CMDs) do
	CMDsValue = Instance.new("StringValue", CMDsFolder)
	CMDsValue.Value = v
	CMDsValue.RobloxLocked = true
end

local function commands()
	local cmds = DATA.CMDs:Clone()
	cmds.Parent = Player.PlayerGui
	local CMDsV = CMDsFolder:GetChildren()
	for i = 1, #CMDsV do
		local YSize = 25
		local Position = ((i * YSize) - YSize)
		local newcmd = cmds.MAIN.Example:Clone()
		newcmd.Parent = cmds.MAIN.CMDs
		newcmd.Visible = true
		newcmd.Position = UDim2.new(0,5,0, Position + 5)
		newcmd.Text = "" .. CMDsV[i].Value
		cmds.MAIN.CMDs.CanvasSize = UDim2.new(0,0,0, Position + 30)
	end
end

addcmd('cmds','prints cmds',{},
function(args)
	commands()
end)

--| Command Bar |--

CMDbar.CMDbar.FocusLost:connect(function(enterpressed)
	if enterpressed and CMDbar.CMDbar.Text ~= "" then
		spawn(function ()
			execCmd(CMDbar.CMDbar.Text, Player)
		end)
	end
	CMDbar.CMDbar:TweenPosition(UDim2.new(0, -200, 1, -25), "InOut", "Quad", 0.5, true, nil)
end)

Mouse.KeyDown:connect(function(Key)
	if Key:byte() == 59 then
		CMDbar.CMDbar:TweenPosition(UDim2.new(0, 0, 1, -25), "InOut", "Quad", 0.5, true, nil)
		CMDbar.CMDbar:CaptureFocus()
	end
end)

--| ESP Function |--

local ESP = false
local track = false

function Create(base, team)
    local MAIN = DATA.MAIN:Clone()
    local F = MAIN.DOT
    local ESP = MAIN.NAME

    MAIN.Parent = Player.PlayerGui
	MAIN.Adornee = base
	
	F.Visible = true
	
	ESP.Text = base.Parent.Name:upper()
	ESP.Visible = true
end

function Clear()
	for _,v in pairs(Player.PlayerGui:children()) do
		if v.Name == "MAIN" and v:IsA("BillboardGui") then
			v:Destroy()
		end
	end
end

function Find()
	Clear()
	track = true
	spawn(function()
		while wait() do
			if track then
				Clear()
				for i,v in pairs(game.Players:players()) do
					if v.Character and v.Character.Head then
						Create(v.Character.Head, true)
					end
				end
			end
			wait(1)
		end
	end)
end

--| ESP |--

Mouse.KeyDown:connect(function(Key)
	if Key:byte() == 30 then
		if ESP == false then
			Find()
		    ESP = true
		elseif ESP == true then
			Clear()
			track = false
			ESP = false
		end
	end
end)

--| More Functions |--

local NOTIFY = DATA.Notification
NOTIFY.Parent = game.CoreGui

local duck = DATA.Duck:Clone()
duck.Parent = Player.PlayerGui

local usingNOTE = false

function Notify(msg)
	if usingNOTE == false then
		if NOTIFY.NOTIFY and NOTIFY.NOTIFY.NOTE then
			spawn(function()
				NOTIFY.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, 0), "InOut", "Quad", 0.5, true, nil)
				NOTIFY.NOTIFY.NOTE.Text = msg
				usingNOTE = true
				wait(2.5)
				NOTIFY.NOTIFY:TweenPosition(UDim2.new(0, -200, 0.7, 0), "InOut", "Quad", 0.5, true, nil)
				usingNOTE = false
		    end)
		end
	end
end

--| Notifications |--

wait(1)

if game.Workspace.FilteringEnabled == true then
	NOTIFY.NOTIFY.BorderColor = BrickColor.new(255,0,0)
	Notify('Filtering is ENABLED.') 
elseif game.Workspace.FilteringEnabled == false then
	NOTIFY.NOTIFY.BorderColor = BrickColor.new(0,255,0)
	Notify('Filtering is Disabled.') 
end

wait(3.5)

NOTIFY.NOTIFY.BorderColor = BrickColor.new(255,255,255)

Notify('Loaded ' .. #cmds .. ' commands!')

wait(3.5)

Notify('Welcome ' .. Player.Name .. '!')

Player.PlayerGui.Duck:Destroy()

--[[
addcmd('name','desc',{''},
function(args)
	local players = getPlayer(args[1])
	for i,v in pairs(players)do
	    local pchar = gPlayers[v].Character
	end
end)
--]]
	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Nex Pluvia Admin"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Nex Pluvia Admin"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		version="Pluvia"
Selection=1
TextBoxInUse=false
Player=nil
ColorSelection=BrickColor.new('Bright violet')
Uninstalled=false
Commands={}
Scope=nil
CustomFunction=""
Services={
        InsertService=game:service'InsertService',
        Workspace=game:service'Workspace',
        Lighting=game:service'Lighting',
        Players=game:service'Players',
        Debris=game:service'Debris',
        Chat=game:service'Chat',
}
m=Services.Players.LocalPlayer:GetMouse()
SGUI=Instance.new('ScreenGui',Services.Players.LocalPlayer.PlayerGui)
BAR=Instance.new('Frame',SGUI)
BAR.Size=UDim2.new(1,0,0,20)
BAR.Position=UDim2.new(0,0,0,20)
BAR.BorderSizePixel=0
BAR.BackgroundColor3=Color3.new(0,0,0)
TEXTBOX=Instance.new('TextLabel',BAR)
TEXTBOX.Size=UDim2.new(1,0,1,0)
TEXTBOX.BackgroundTransparency=1
TEXTBOX.TextColor3=Color3.new(453,0,435)
TEXTBOX.FontSize="Size12"
PlayerCheck=function()
        if m.Target ~= nil then
                for i,v in ipairs(Services.Players:GetPlayers())do
                        if(v.Character and m.Target:IsDescendantOf(v.Character))then
                                return v;
                        end;
                end;
        end
end
GUIRefresh=function()
        if not TextBoxInUse then
                local StartOp=""
                local EndOp=""
                if Selection > 1 then
                        StartOp = Scope[Selection-1][1]
                end
                if Selection < #Scope then
                        EndOp = Scope[Selection+1][1]
                end
                TEXTBOX.Text = "<-- "..StartOp.." | ["..Selection.."]: ["..Scope[Selection][1].."] | "..EndOp.." -->"
        end
end
GUIDisplay=function(string)
        TextBoxInUse=true
        for i = 1,string.len(string) do
                TEXTBOX.Text = string.sub(string,1,i).."_"
                wait(.05)
        end
        wait(string.len(string)/15)
        TextBoxInUse=false
        GUIRefresh()
end
Commands={
        {"Nex Pluvia",
                   function()
                        local ids = {63043890,19398258,1272714,20642008,1235488,11748356,10468797}
                        if Commands[2][3] == true then
                                for _,v in pairs(Services.Players.LocalPlayer.Character:GetChildren()) do
                                        for _,x in pairs(ids) do
                                                if v.Name == "ExtraAsset" then
                                                        v.Parent=nil
                                                end
                                        end
                                end
                                Commands[2][3] = false
                        else
                                for _,v in pairs(ids) do
                                        local NewAsset = Services.InsertService:LoadAsset(v):GetChildren()[1]
                                        NewAsset.Parent=Services.Players.LocalPlayer.Character
                                        NewAsset.Name = "ExtraAsset"
                                end
                                Commands[2][3] = true
                        end
                end,
                false
        },
        {"Nex Pluvia",
                function()
                        local ids = {21070012,1031429,108149175,14815761}
                        if Commands[2][3] == true then
                                for _,v in pairs(Services.Players.LocalPlayer.Character:GetChildren()) do
                                        for _,x in pairs(ids) do
                                                if v.Name == "ExtraAsset" then
                                                        v.Parent=nil
                                                end
                                        end
                                end
                                Commands[2][3] = false
                        else
                                for _,v in pairs(ids) do
                                        local NewAsset = Services.InsertService:LoadAsset(v):GetChildren()[1]
                                        NewAsset.Parent=Services.Players.LocalPlayer.Character
                                        NewAsset.Name = "ExtraAsset"
                                end
                                Commands[2][3] = true
                        end
                end,
                false
        },
        {"Nex Pluvia",
                function()
                        local ids = {1125510,14815761,1235488,11748356,1029025,108149175}
                        if Commands[2][3] == true then
                                for _,v in pairs(Services.Players.LocalPlayer.Character:GetChildren()) do
                                        for _,x in pairs(ids) do
                                                if v.Name == "ExtraAsset" then
                                                        v.Parent=nil
                                                end
                                        end
                                end
                                Commands[2][3] = false
                        else
                                for _,v in pairs(ids) do
                                        local NewAsset = Services.InsertService:LoadAsset(v):GetChildren()[1]
                                        NewAsset.Parent=Services.Players.LocalPlayer.Character
                                        NewAsset.Name = "ExtraAsset"
                                end
                                Commands[2][3] = true
                        end
                end,
                false
        },
        {"Fire*",
                function()
                        if pcall(function() Services.Players.LocalPlayer.Character.Head.Fire.Parent=nil end) then
                        else
                                pcall(function()
                                        fire=Instance.new('Fire',Services.Players.LocalPlayer.Character.Head)
                                        fire.Size=3
                                        fire.Color=Color3.new(453,0,435)
                                        fire.SecondaryColor=Color3.new(453,0,435)
                                end)
                        end
                end
        },
        {"Invincibility*",
                function()
                        pcall(function()
                                if Services.Players.LocalPlayer.Character.Humanoid.MaxHealth==100 then
                                        Services.Players.LocalPlayer.Character.Humanoid.MaxHealth=math.huge
                                else
                                        Services.Players.LocalPlayer.Character.Humanoid.MaxHealth=100
                                end
                        end)
                end
        },
        {"Teleport*",
                function()
                        if m.Target ~= nil then
                                pcall(function() Services.Players.LocalPlayer.Character:MoveTo(m.Hit.p) end)
                        end
                end
        },
        {"Teleport",
                function()
                        if Player == nil and m.Target ~= nil then
                                if PlayerCheck() then
                                        Player=PlayerCheck()
                                end
                                pcall(function()
                                        for _,v in pairs(Player.Character:GetChildren()) do
                                                if v:IsA('Part') then
                                                        local sb = Instance.new('SelectionBox',Services.Workspace.CurrentCamera)
                                                        sb.Adornee = v
                                                        sb.Name = "sb"
                                                        sb.Color = BrickColor.new('Bright violet')
                                                end
                                        end
                                end)
                        elseif Player ~= nil then
                                pcall(function()
                                        Player.Character:MoveTo(m.Hit.p)
                                end)
                                Player = nil
                                for _,v in pairs(Services.Workspace.CurrentCamera:GetChildren()) do
                                        if v:IsA('SelectionBox') and v.Name == "sb" then
                                                v.Parent=nil
                                        end
                                end
                        end
                end
        },
        {"Kill",
                function()
                        pcall(function() PlayerCheck().Character:BreakJoints() end)
                end
        },
        {"Invincibility",
                function()
                        pcall(function()
                                if PlayerCheck().Character.Humanoid.MaxHealth==100 then
                                        PlayerCheck().Character.Humanoid.MaxHealth=math.huge
                                else
                                        PlayerCheck().Character.Humanoid.MaxHealth=100
                                end
                        end)
                end
        },
        {":BreakJoints()",
                function()
                        pcall(function() m.Target:BreakJoints() end)
                end
        },
        {"Kick",
                function()
                        pcall(function() PlayerCheck().Parent=nil end)
                end
        },
        {"Custom Function",
                function()
                        Spawn(loadstring(CustomFunction))
                end
        },
        {"LinkedSword",
                function()
                        Services.InsertService:LoadAsset(47433):GetChildren()[1].Parent=Services.Players.LocalPlayer.Backpack
                end
        },
        {":GetFullName()",
                function()
                        if m.Target then
                                local string = m.Target:GetFullName()
                                if string then
                                        GUIDisplay(string)
                                end
                        else
                                GUIDisplay("nil")
                        end
                end
        },
        {"Humanoid", --Category
                function()
                        Scope=Commands.Humanoid[3]
                        Selection=1
                        GUIRefresh()
                end,
                {
                        {"Up Scope",
                                function()
                                        Scope=Commands
                                        Selection=1
                                        GUIRefresh()
                                end
                        },
                        {"Humanoid",
                                function()
                                        if PlayerCheck() then
                                                if pcall(function() PlayerCheck().Character.Humanoid.Parent=nil end) then
                                                else
                                                        pcall(function() Instance.new('Humanoid',PlayerCheck().Character) end)
                                                end
                                        end
                                end
                        },
                        {"Remove Head",
                                function()
                                        pcall(function() PlayerCheck().Character.Head.Parent=nil end)
                                end
                        },
                        {"PlatformStand",
                                function()
                                        pcall(function()
                                                if PlayerCheck().Character.Humanoid.PlatformStand==true then
                                                        PlayerCheck().Character.Humanoid.PlatformStand=false
                                                else
                                                        PlayerCheck().Character.Humanoid.PlatformStand=true
                                                end
                                        end)
                                end
                        },
                        {"Sit",
                                function()
                                        pcall(function()
                                                if PlayerCheck().Character.Humanoid.Sit==true then
                                                        PlayerCheck().Character.Humanoid.Sit=false
                                                else
                                                        PlayerCheck().Character.Humanoid.Sit=true
                                                end
                                        end)
                                end
                        },
                        {"WalkSpeed",
                                function()
                                        pcall(function()
                                                if PlayerCheck().Character.Humanoid.WalkSpeed==16 then
                                                        PlayerCheck().Character.Humanoid.WalkSpeed=0
                                                else
                                                        PlayerCheck().Character.Humanoid.WalkSpeed=16
                                                end
                                        end)
                                end
                        },
                }
        },
        {"Building", --Category
                function()
                        Scope=Commands.Building[3]
                        Selection=1
                        GUIRefresh()
                end,
                {
                        {"Up Scope",
                                function()
                                        Scope=Commands
                                        Selection=1
                                        GUIRefresh()
                                end
                        },
                        {"Color",
                                function()
                                        pcall(function() m.Target.BrickColor = ColorSelection end)
                                end
                        },
                        {"Color Picker",
                                function()
                                        pcall(function() ColorSelection = m.Target.BrickColor end)
                                end
                        },
                        {"Anchor",
                                function()
                                        pcall(function() m.Target.Anchored=true end)
                                end
                        },
                        {"Unanchor",
                                function()
                                        pcall(function() m.Target.Anchored=false end)
                                end
                        },
                        {"Decal",
                                function()
                                        pcall(function()
                                                decal = Instance.new('Decal',m.Target)
                                                decal.Face = m.TargetSurface
                                                decal.Texture = "http://roblox.com/asset/?id=123659742"
                                        end)
                                end
                        },
                        {"Decal2",
                                function()
                                        pcall(function()
                                                decal = Instance.new('Decal',m.Target)
                                                decal.Face = m.TargetSurface
                                                decal.Texture = "http://roblox.com/asset/?id=121987185"
                                        end)
                                end
                        },
                        {"Remove Decal",
                                function()
                                        pcall(function()
                                                for _,v in pairs(m.Target:GetChildren()) do
                                                        if v:IsA('Decal') then
                                                                if v.Face == m.TargetSurface then
                                                                        v.Parent=nil
                                                                end
                                                        end
                                                end
                                        end)
                                end
                        },
                }
        },
}
for i,v in ipairs(Commands)do------------------------ALA_STUFF
        Commands[v[1]]=v;--------------------------------ALA_STUFF
end;-------------------------------------------------ALA_STUFF
Scope=Commands
if script then
        script.Parent=Services.Players.LocalPlayer.PlayerGui
        script.Name="[Nex v"..version.."]"
end
coroutine.wrap(function() repeat wait() until Services.Players.LocalPlayer.Character
Services.Chat:Chat(Services.Players.LocalPlayer.Character.Head,"Nex "..version.." Installed",Enum.ChatColor.Blue)
end)()
GUIDisplay("..Nex Loaded - Made by Nex Pluvia...")
QDown=false
EDown=false
m.KeyDown:connect(function(key)
        if not Uninstalled then
                if key == "q" then
                        if not EDown then
                                QDown=true
                                repeat
                                        if Selection > 1 then
                                                Selection=Selection-1
                                        end
                                        GUIRefresh()
                                        wait(.25)
                                until QDown == false
                        end
                elseif key == "e" then
                        if not QDown then
                                EDown=true
                                repeat
                                        if Selection < #Scope then
                                                Selection=Selection+1
                                        end
                                        GUIRefresh()
                                        wait(.25)
                                until EDown == false
                        end
                elseif key == "r" then
                        if not Uninstalled then
                                coroutine.wrap(function()
                                        if m.Target then
                                                sb = Instance.new('SelectionBox',Services.Workspace.CurrentCamera)
                                                sb.Adornee = m.Target
                                                sb.Name = "sb"
                                                sb.Color = BrickColor.new('Bright violet')
                                                wait(.25)
                                                for _,v in pairs(Services.Workspace.CurrentCamera:GetChildren()) do
                                                        if v:IsA('SelectionBox') and v.Name == "sb" then
                                                                v.Parent=nil
                                                        end
                                                end
                                        end
                                end)()
                                Scope[Selection][2]()
                        end
                end
        end
end)
m.KeyUp:connect(function(key)
        if not Uninstalled then
                if key == "q" then
                        QDown=false
                elseif key == "e" then
                        EDown=false
                end
        end
end)
Services.Players.LocalPlayer.Chatted:connect(function(msg)
        if not Uninstalled then
                if string.lower(msg) == "uninstall Nex" then
                        Uninstalled = true
                        Services.Chat:Chat(Services.Players.LocalPlayer.Character.Head,"Nex "..version.." UNINSTALLED",Enum.ChatColor.Blue)
                        SGUI.Parent=nil
                        if script then
                                script.Parent=nil
                        end
                elseif string.sub(string.lower(msg),1,2) == "c/" then
                        pcall(function() ColorSelection = BrickColor.new(string.sub(msg,3)) end)
                elseif string.sub(string.lower(msg),1,2) == "m/" then
                        for _,v in pairs(Services.Players:GetChildren()) do
                                if v.Name ~= Services.Players.LocalPlayer.Name then
                                        Services.Chat:Chat(v.Character.Head,string.sub(msg,3),Enum.ChatColor.Green)
                                end
                        end
                elseif string.sub(string.lower(msg),1,3) == "cf/" then
                        CustomFunction=string.sub(msg,4)
                end
        end
end)
	end)	
	--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "R6"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "R6"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";r6 me")

	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Kill Gui"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Kill Gui"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
local player = game.Players.LocalPlayer
local gui = Instance.new("ScreenGui")
gui.Parent = player.PlayerGui
gui.Name = "Kill"

local pos = 135
local pos2 = 10
local pos3 = 0
local enabled = false

local tool
for i, v in player:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end
for i, v in game.ReplicatedStorage:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end

local remote = tool.SyncAPI.ServerEndpoint
function _(args)
    remote:InvokeServer(unpack(args))
end

function DestroyPart(part)
    local args = {
        [1] = "Remove",
        [2] = {
            [1] = part
        }
    }
    _(args)
end

local button = Instance.new("TextButton")
button.Parent = gui
button.Size = UDim2.new(0, 100, 0, 30)
button.Position = UDim2.new(0, 8, 0, pos)
button.Text = "Kill"

button.MouseButton1Click:Connect(function()
    if not enabled then
        enabled = true
        local players = game.Players:GetChildren()
        local red = 0
        local green = 0.5
        local blue = 0

        for i = 1, #players do
            wait()
            pos2 = pos2 + 23
            if pos2 >= 450 then
                pos3 = pos3 + 103
                pos2 = 33
            end

            if green <= 0.9 then
                green = green + 0.46
            else
                green = green - 0.46
            end

            local bu = Instance.new("TextButton")
            bu.Parent = button
            bu.Size = UDim2.new(0, 100, 0, 20)
            bu.Position = UDim2.new(0, pos3, 0, pos2)
            bu.Text = players[i].Name
            bu.BackgroundTransparency = 1
            bu.TextTransparency = 1
            bu.BackgroundColor3 = Color3.new(red, green, blue)

            coroutine.resume(coroutine.create(function()
                for i = 1, 3 do
                    wait()
                    bu.BackgroundTransparency = bu.BackgroundTransparency - 0.34
                    bu.TextTransparency = bu.BackgroundTransparency
                end
            end))

            bu.MouseButton1Down:Connect(function()
                local target = game.Players:FindFirstChild(bu.Text)
                if target and target.Character and target.Character:FindFirstChild("Head") then
                    DestroyPart(target.Character.Head)
                    bu.Text = "Killed!"
                    wait(2)
                    bu.Text = target.Name
                end
            end)
        end
    else
        enabled = false
        pos2 = 10
        pos3 = 0
    end
end)

	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Silent Executor"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Silent Executor"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		openkey = "y"

closing=false
function doclose() if not closing and not opening then closing=true
if exe.Rotation == 0 then
for i=0,-360,-20 do
exe.Rotation=i wait()
end
exe.Rotation = 0
for i=1,20 do
exe.Position = exe.Position + UDim2.new(-0.1,0,0,0) wait()
end
exe.Visible=false show.Visible=true
exe.Position = UDim2.new(0.5, -291, 0.5, -157)
for _,mpops in pairs(CodeExecutorLocal.Parent:GetChildren()) do
if mpops:IsA("ScreenGui") and mpops.Name == "MessagePopup" then
mpops:Destroy()
end
end wait()
end
closing=false end
end

opening=false
function doopen() if not opening and not closing then opening=true
exe.Visible = true
show.Visible=false
for i=0,360,20 do
exe.Rotation = i wait()
end
exe.Rotation = 0
if not viewed then viewed=true wait(3)
for i=1,55 do
V3Logo.Position = V3Logo.Position + UDim2.new(0,0,-0.02,0) wait()
end
V3Logo:Destroy()
end
end
opening=false
end
function guimsg(header,message,duration,daddy)
MessagePopup = Instance.new("ScreenGui", daddy)
MessagePopup.Name = "MessagePopup"

bg = Instance.new("Frame", MessagePopup)
bg.Name = "bg"
bg.Position = UDim2.new(0.5, -200, 0.20000000298023, 0)
bg.Size = UDim2.new(0, 400, 0, 140)
bg.BackgroundColor3 = Color3.new(0, 0, 0)
bg.BorderSizePixel = 0
bg.Style = Enum.FrameStyle.RobloxRound
bg.ZIndex = 9

title = Instance.new("TextBox", bg)
title.Name = "title"
title.Size = UDim2.new(1, 0, 0, 50)
title.BackgroundColor3 = Color3.new(0.66666668653488, 0, 0)
title.BackgroundTransparency = 1
title.BorderSizePixel = 0
title.Text = header
title.Font = Enum.Font.SourceSansBold
title.FontSize = Enum.FontSize.Size48
title.TextScaled = true
title.TextWrapped = true
title.TextColor3 = Color3.new(0.66666668653488, 0, 0)
title.ZIndex = 10

desc = Instance.new("TextBox", bg)
desc.Name = "desc"
desc.Position = UDim2.new(0, 0, 0, 60)
desc.Size = UDim2.new(1, 0, 0, 50)
desc.BackgroundColor3 = Color3.new(0.66666668653488, 0, 0)
desc.BackgroundTransparency = 1
desc.BorderSizePixel = 0
desc.Text = message
desc.Font = Enum.Font.SourceSansBold
desc.FontSize = Enum.FontSize.Size36
desc.TextScaled = true
desc.TextWrapped = true
desc.TextColor3 = Color3.new(1, 1, 1)
desc.ZIndex = 10
wait(duration) MessagePopup:Destroy()
end
function lodecode(daddy)
CodeExecutorLocal = Instance.new("ScreenGui", daddy)
CodeExecutorLocal.Name = "CodeExecutorLocal"

exe = Instance.new("Frame", CodeExecutorLocal)
exe.Name = "exe"
exe.Position = UDim2.new(0.5, -291, 0.5, -157)
exe.Size = UDim2.new(0, 600, 0, 300)
exe.BackgroundColor3 = Color3.new(0, 1, 0)
exe.BackgroundTransparency = 0.5
exe.BorderSizePixel = 0
exe.Visible = false
exe.Active = true
exe.ZIndex = 7
exe.Draggable = true

run = Instance.new("TextButton", exe)
run.Name = "run"
run.Position = UDim2.new(0, 0, 1, -30)
run.Size = UDim2.new(0, 140, 0, 30)
run.BackgroundColor3 = Color3.new(1, 1, 1)
run.BorderSizePixel = 0
run.Text = "Execute"
run.Font = Enum.Font.ArialBold
run.FontSize = Enum.FontSize.Size24
run.TextColor3 = Color3.new(0, 1, 0)
run.ZIndex = 10

clear = Instance.new("TextButton", exe)
clear.Name = "clear"
clear.Position = UDim2.new(0, 460, 1, -30)
clear.Size = UDim2.new(0, 140, 0, 30)
clear.BackgroundColor3 = Color3.new(1, 1, 1)
clear.BorderSizePixel = 0
clear.Text = "Clear"
clear.Font = Enum.Font.ArialBold
clear.FontSize = Enum.FontSize.Size24
clear.TextWrapped = true
clear.TextColor3 = Color3.new(1, 0, 0)
clear.ZIndex = 10

code = Instance.new("TextBox", exe)
code.Name = "code"
code.Size = UDim2.new(1, 0, 0.89999997615814, 0)
code.BackgroundColor3 = Color3.new(0, 0, 0)
code.BorderSizePixel = 0
code.Text = "print(\"Hello Local World!\")"
code.FontSize = Enum.FontSize.Size11
code.TextWrapped = true
code.TextXAlignment = Enum.TextXAlignment.Left
code.TextYAlignment = Enum.TextYAlignment.Top
code.TextColor3 = Color3.new(0, 1, 0)
code.ClearTextOnFocus = false
code.ZIndex = 8

hide = Instance.new("TextButton", exe)
hide.Name = "hide"
hide.Position = UDim2.new(0.5, -70, 1, -30)
hide.Size = UDim2.new(0, 140, 0, 30)
hide.BackgroundColor3 = Color3.new(1, 1, 1)
hide.BorderSizePixel = 0
hide.Text = "Hide"
hide.Font = Enum.Font.ArialBold
hide.FontSize = Enum.FontSize.Size24
hide.TextColor3 = Color3.new(0, 0, 0)
hide.ZIndex = 10

V3Logo = Instance.new("ImageLabel", exe)
V3Logo.Name = "V3Logo"
V3Logo.Position = UDim2.new(0.10000000149012, 0, 0.20000000298023, 0)
V3Logo.Size = UDim2.new(0.80000001192093, 0, 0.30000001192093, 0)
V3Logo.BackgroundColor3 = Color3.new(1, 1, 1)
V3Logo.Image = "rbxassetid://127743025"
V3Logo.ZIndex = 10
V3Logo.BackgroundTransparency = 1
V3Logo.BorderSizePixel = 0

show = Instance.new("TextButton", CodeExecutorLocal)
show.Name = "show"
show.Position = UDim2.new(-0.0099999997764826, 0, 1, -30)
show.Size = UDim2.new(0, 140, 0, 30)
show.BackgroundColor3 = Color3.new(1, 1, 1)
show.BorderSizePixel = 0
show.Text = "Show "
show.Font = Enum.Font.ArialBold
show.FontSize = Enum.FontSize.Size24
show.TextXAlignment = Enum.TextXAlignment.Right
show.TextColor3 = Color3.new(0, 1, 0)
show.ZIndex = 10

append = Instance.new("TextButton", exe)
append.Name = "append"
append.Position = UDim2.new(0.5, -70, 1, 0)
append.Size = UDim2.new(0, 140, 0, 30)
append.BackgroundColor3 = Color3.new(1, 1, 1)
append.BorderColor3 = Color3.new(0.10588235408068, 0.16470588743687, 0.20784313976765)
append.Text = "Append Code"
append.Font = Enum.Font.ArialBold
append.FontSize = Enum.FontSize.Size24
append.TextColor3 = Color3.new(0, 0, 0)
append.ZIndex = 10

nl = Instance.new("TextButton", exe)
nl.Name = "nl"
nl.Position = UDim2.new(0.5, -70, 1, 30)
nl.Size = UDim2.new(0, 140, 0, 30)
nl.BackgroundColor3 = Color3.new(1, 1, 1)
nl.Text = "New Line"
nl.Font = Enum.Font.ArialBold
nl.FontSize = Enum.FontSize.Size24
nl.TextColor3 = Color3.new(0, 0, 0)
nl.ZIndex = 10

end

if pcall(function()lodecode(game.CoreGui) end) then hascore=true else
pcall(function()lodecode(game.Players.LocalPlayer.PlayerGui) end) hascore=false
end
wait()
savecode = Instance.new("StringValue") savecode.Parent = exe savecode.Name="AppendedCode" savecode.Value=""

appe=false
append.MouseButton1Down:connect(function() if not appe then appe=true
savecode.Value = savecode.Value..code.Text wait() append.Text = "Appended" code.Text="" wait(3) append.Text = "Append Code" appe=false end
end)

nl.MouseButton1Down:connect(function() code.Text = code.Text.."\n" end)

local cl = true viewed=false
show.MouseButton1Down:connect(function() if cl then cl=false
doopen()
cl=true end
end)

hide.MouseEnter:connect(function()
hide.BackgroundColor3 = Color3.new(1,0,0)
end)
hide.MouseLeave:connect(function()
hide.BackgroundColor3 = Color3.new(1,1,1)
end)
run.MouseEnter:connect(function()
run.BackgroundColor3 = Color3.new(0,1,0)
run.TextColor3 = Color3.new(1,1,1)
end)
run.MouseLeave:connect(function()
run.BackgroundColor3 = Color3.new(1,1,1)
run.TextColor3 = Color3.new(0,1,0)
end)
clear.MouseEnter:connect(function()
clear.BackgroundColor3 = Color3.new(1,0,0)
clear.TextColor3 = Color3.new(1,1,1)
end)
clear.MouseLeave:connect(function()
clear.BackgroundColor3 = Color3.new(1,1,1)
clear.TextColor3 = Color3.new(1,0,0)
end)
clear.MouseButton1Down:connect(function()
code.Text = "" savecode.Value=""
end)
show.MouseEnter:connect(function()
show.BackgroundColor3 = Color3.new(0,1,0)
show.TextColor3 = Color3.new(1,1,1)
end)
show.MouseLeave:connect(function()
show.BackgroundColor3 = Color3.new(1,1,1)
show.TextColor3 = Color3.new(0,1,0)
end)

cl2=true
hide.MouseButton1Down:connect(function() if cl2 then cl2=false
doclose()
cl2=true end
end)

function keycheck(keyy)
if type(keyy)=="string" and string.byte(string.lower(keyy)) then
return string.lower(keyy)
else return false end
end


game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
if not opening and not closing then if keycheck(key)==openkey then running=true
if exe.Visible then doclose()
else doopen() end
end end
end)

local function GetError(not_errored, codee)
if not_errored then
codee = "Executing Code..."
end
for _,mpops in pairs(CodeExecutorLocal.Parent:GetChildren()) do
if mpops:IsA("ScreenGui") and mpops.Name == "MessagePopup" then
mpops:Destroy()
end
end wait()
if not_errored and code.Text:match("%S+") and savecode.Value:match("%S") then
guimsg('Vermillion: ',codee,3,CodeExecutorLocal.Parent)
elseif not code.Text:match("%S+") and not savecode.Value:match("%S+") then
guimsg('Error:',"Did not enter code.",3,CodeExecutorLocal.Parent)
else
guimsg('Error:',codee,3,CodeExecutorLocal.Parent)
end
end

deb = true
run.MouseButton1Down:connect(function()
if deb then deb=false
coroutine.resume(coroutine.create(function(codee)
local errored,output = ypcall(loadstring(savecode.Value..code.Text))
GetError(errored,output)
errored,output = nil
end),codee)
wait(1)
deb=true end
end)

	end)

--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Nilizer"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Nilizer"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")

-- หา SyncAPI
local tool
for _,v in ipairs(player:GetDescendants()) do
    if v.Name == "SyncAPI" then tool = v.Parent end
end
for _,v in ipairs(game.ReplicatedStorage:GetDescendants()) do
    if v.Name == "SyncAPI" then tool = v.Parent end
end
if not tool then return warn("ไม่พบ SyncAPI") end

local remote = tool.SyncAPI.ServerEndpoint
local function _(args)
    remote:InvokeServer(unpack(args))
end

-- ฟังก์ชัน SyncAPI
function SetCollision(part,boolean)
    _( {"SyncCollision",{ {Part=part,CanCollide=boolean} } } )
end
function SetAnchor(boolean,part)
    _( {"SyncAnchor",{ {Part=part,Anchored=boolean} } } )
end
function CreatePart(cf,parent)
    _( {"CreatePart","Normal",cf,parent} )
end
function MovePart(part,cf)
    _( {"SyncMove",{ {Part=part,CFrame=cf} } } )
end
function AddMesh(part)
    _( {"CreateMeshes",{ {Part=part} } } )
end
function SetMesh(part,meshid)
    _( {"SyncMesh",{ {Part=part, MeshId="rbxassetid://"..meshid} } } )
end
function MeshResize(part,size)
    _( {"SyncMesh",{ {Part=part, Scale=size} } } )
end
function SetName(part,stringg)
    _( {"SetName",{part},stringg} )
end
function Color(part,color)
    _( {"SyncColor",{ {Part=part,Color=color,UnionColoring=false} } } )
end

-- ฟังก์ชันรอ Part
local function waitForPart(pos)
    local part
    for i=1,50 do
        for _,v in ipairs(workspace:GetDescendants()) do
            if v:IsA("BasePart") and (v.Position - pos).Magnitude < 1 then
                part = v
                return part
            end
        end
        task.wait(0.05)
    end
    return part
end

-- สร้าง Mesh รอบผู้เล่น ขนาด 2x2x2
local function createOrbitMesh()
    local radius = 5
    local speed = math.rad(45)
    local angle = 0

    local cf = hrp.CFrame * CFrame.new(radius,0,0)
    CreatePart(cf, workspace)
    task.wait(0.2)

    local meshPart = waitForPart(cf.Position)
    if not meshPart then return warn("ไม่พบ Part") end

    SetName(meshPart,"OrbitMesh")
    SetAnchor(true, meshPart)
    SetCollision(meshPart,false)
    AddMesh(meshPart)
    SetMesh(meshPart,"73293113466593")
    MeshResize(meshPart, Vector3.new(2,2,2)) -- ขนาด 2x2x2
    Color(meshPart, Color3.fromRGB(0,255,0))

    RunService.Heartbeat:Connect(function(dt)
        angle = angle + dt*speed
        local x = math.cos(angle)*radius
        local z = math.sin(angle)*radius
        local pos = hrp.Position + Vector3.new(x,0,z)
        local cfNew = CFrame.new(pos) * CFrame.Angles(0, angle, 0)
        MovePart(meshPart, cfNew)
    end)
end

createOrbitMesh()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Remso Admin"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "i0rb old"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")

-- หา SyncAPI
local tool
for _,v in ipairs(player:GetDescendants()) do
if v.Name == "SyncAPI" then tool = v.Parent end
end
for _,v in ipairs(ReplicatedStorage:GetDescendants()) do
if v.Name == "SyncAPI" then tool = v.Parent end
end

local remote = tool.SyncAPI.ServerEndpoint
local function _(args)
remote:InvokeServer(unpack(args))
end

-- ฟังก์ชัน F3X
local function CreatePart(cf,parent) _( {"CreatePart","Ball",cf,parent} ) end
local function MovePart(part,cf) _( {"SyncMove",{ {Part=part, CFrame=cf} } } ) end
local function Resize(part,size,cf) _( {"SyncResize",{ {Part=part, Size=size, CFrame=cf} } } ) end
local function SetAnchor(bool,part) _( {"SyncAnchor",{ {Part=part, Anchored=bool} } } ) end
local function SetCollision(part,bool) _( {"SyncCollision",{ {Part=part, CanCollide=bool} } } ) end
local function SetName(part,name) _( {"SetName",{part},name} ) end
local function Color(part,color) _( {"SyncColor",{ {Part=part, Color=color, UnionColoring=false} } } ) end

-- ฟังก์ชันเพิ่มไฟ SyncAPI
function AddFire(part, size, color, color2, heat)
local createArgs = {
[1] = "CreateDecorations",
[2] = {
[1] = {
["Part"] = part,
["DecorationType"] = "Fire"
}
}
}

local syncArgs = {
[1] = "SyncDecorate",
[2] = {
[1] = {
["Part"] = part,
["DecorationType"] = "Fire",
["Size"] = size,
["Heat"] = heat,
["Color"] = color,
["SecondaryColor"] = color2
}
}
}

_(createArgs)
_(syncArgs)

end

-- สร้างลูกบอลหมุนรอบตัวผู้เล่นแบบวงรี/โค้ง
local function createOrbitBall()
local radius = 5
local verticalAmplitude = 3 -- ความสูงแกว่งขึ้นลง
local speed = math.rad(100)
local angle = 0

-- สร้างลูกบอล
local initialCF = hrp.CFrame * CFrame.new(radius, -0.1, 0)
CreatePart(initialCF, workspace)

local ball
repeat task.wait()
for _,v in ipairs(workspace:GetDescendants()) do
if v:IsA("BasePart") and (v.Position - initialCF.Position).Magnitude < 0.1 then
ball = v
break
end
end
until ball

SetName(ball,"OrbitBall")
Resize(ball, Vector3.new(0.9,0.9,0.9), initialCF)
Color(ball, Color3.new(0, 0, 0)) -- สีฟ้าอ่อน
SetAnchor(true, ball)
SetCollision(ball, false)
AddFire(ball, 0.5, Color3.new(0, 0, 0), Color3.new(0, 0, 0), 15)

-- หมุนรอบตัวผู้เล่นแบบลูป + เฉียงขึ้นลง
RunService.Heartbeat:Connect(function(dt)
angle = angle + dt * speed
local x = math.cos(angle) * radius
local z = math.sin(angle) * radius
local y = 2 + math.sin(angle*2) * verticalAmplitude -- แกว่งขึ้นลงแบบวงรี

-- หมุนให้ลูกบอลหันตามแนวการเคลื่อนที่    
local lookDir = Vector3.new(-math.sin(angle), math.cos(angle*2)*0.1, math.cos(angle))    
local newCF = CFrame.new(hrp.Position + Vector3.new(x,y,z), hrp.Position + Vector3.new(x,y,z) + lookDir)    
MovePart(ball, newCF)

end)

end

createOrbitBall()



	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "X Admin"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "X Admin"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local root = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso")
if not root then return end

-- หา SyncAPI
local tool
for _,v in ipairs(player:GetDescendants()) do
    if v.Name == "SyncAPI" then tool = v.Parent end
end
if not tool or not tool:FindFirstChild("SyncAPI") then return end

local remote = tool.SyncAPI.ServerEndpoint
local function _(args) remote:InvokeServer(unpack(args)) end

-- ฟังก์ชัน SyncAPI
local function CreatePart(cf, parent) return remote:InvokeServer("CreatePart", "Normal", cf, parent) end
local function Resize(part, size, cf) _( {"SyncResize",{ {Part=part, Size=size, CFrame=cf} } } ) end
local function SetAnchor(bool, part) _( {"SyncAnchor",{ {Part=part, Anchored=bool} } } ) end
local function SetCollision(part, bool) _( {"SyncCollision",{ {Part=part, CanCollide=bool} } } ) end
local function SetName(part, name) _( {"SetName",{part},name} ) end
local function Color(part, color3) _( {"SyncColor",{ {Part=part, Color=color3, UnionColoring=false} } } ) end
local function SetTrans(part, trans) _( {"SyncMaterial",{ {Part=part, Transparency=trans} } } ) end
local function AddTexture(part, id, face) _( {"AddDecal",{Part=part, Texture=id, Face=face}} ) end

-- ข้อมูล Part
local size = Vector3.new(1,8,5)
local transparency = 0.5
local color = Color3.fromRGB(255,0,0) -- แดง
local textureId = "rbxassetid://489378405"

local frontRotation = CFrame.Angles(math.rad(2), math.rad(99), math.rad(-25))
local backRotation  = CFrame.Angles(math.rad(2), math.rad(99), math.rad(25))

-- สร้าง Part
local frontPart = CreatePart(root.CFrame, workspace)
Resize(frontPart, size, root.CFrame)
Color(frontPart, color)
SetTrans(frontPart, transparency)
SetName(frontPart, "xxx pornhub.com")
SetCollision(frontPart,false)
SetAnchor(true, frontPart)
AddTexture(frontPart, textureId, Enum.NormalId.Left)
AddTexture(frontPart, textureId, Enum.NormalId.Right)

local backPart = CreatePart(root.CFrame, workspace)
Resize(backPart, size, root.CFrame)
Color(backPart, color)
SetTrans(backPart, transparency)
SetName(backPart, "assmonster.com")
SetCollision(backPart,false)
SetAnchor(true, backPart)
AddTexture(backPart, textureId, Enum.NormalId.Left)
AddTexture(backPart, textureId, Enum.NormalId.Right)

-- ขยับตามตัวผู้เล่น + หมุนเล็กน้อย
RunService.RenderStepped:Connect(function()
    local rootCFrame = root.CFrame

    local frontCF = rootCFrame * CFrame.new(0,2,-9) * frontRotation
    local backCF  = rootCFrame * CFrame.new(0,2,9)  * backRotation

    -- ปรับขนาดและตำแหน่ง
    Resize(frontPart, size, frontCF)
    Resize(backPart, size, backCF)

    -- เปลี่ยนสีไดนามิก (ตัวอย่าง: สีแดงสลับฟ้า)
    local t = tick()%2
    if t < 1 then
        Color(frontPart, Color3.fromRGB(255,0,0))
        Color(backPart, Color3.fromRGB(0,0,255))
    else
        Color(frontPart, Color3.fromRGB(0,255,0))
        Color(backPart, Color3.fromRGB(255,255,0))
    end
end)

	end)
--
local button = Instance.new("TextButton")
button.Parent = acg
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Lag Gui"
button.Position = UDim2.new(0.5,3,0,165)
button.Size = UDim2.new(0.5,-3,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = Enum.FontSize.Size14
button.Text = "Lag Gui"
button.TextColor3 = whit

button.MouseButton1Down:Connect(function()
	local Players = game:GetService("Players")
	local LocalPlayer = Players.LocalPlayer
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

	-- GUI หลัก
	local gui = Instance.new("ScreenGui")
	gui.Name = "Lag"
	gui.ResetOnSpawn = false
	gui.Parent = LocalPlayer:WaitForChild("PlayerGui")

	local mainButton = Instance.new("TextButton")
	mainButton.Parent = gui
	mainButton.Size = UDim2.new(0, 100, 0, 30)
	mainButton.Position = UDim2.new(0, 8, 0, 135)
	mainButton.Text = "Lag"
	mainButton.BackgroundColor3 = Color3.fromRGB(40,40,40)
	mainButton.TextColor3 = Color3.new(1,1,1)

	local frame = Instance.new("Frame")
	frame.Parent = gui
	frame.BackgroundTransparency = 0.3
	frame.BackgroundColor3 = Color3.fromRGB(20,20,20)
	frame.Position = UDim2.new(0, 8, 0, 170)
	frame.Size = UDim2.new(0, 250, 0, 300)
	frame.Visible = false

	local posY = 10
	local posX = 0
	local enabled = false

	-- หา SyncAPI
	local syncTool
	for _, v in ipairs(LocalPlayer:GetDescendants()) do
		if v.Name == "SyncAPI" then
			syncTool = v.Parent
			break
		end
	end
	if not syncTool then
		warn("ไม่พบ SyncAPI")
		return
	end

	-- ฟังก์ชันวาป
	local function glitchWarp(targetPlayer)
		if not targetPlayer.Character then return end

		local originalPositions = {}
		for _, part in ipairs(targetPlayer.Character:GetDescendants()) do
			if part:IsA("BasePart") then
				originalPositions[part] = part.CFrame
			end
		end

		local function warpAll(cframeOffset)
			local args = {
				[1] = "SyncMove",
				[2] = {}
			}
			for part, origCFrame in pairs(originalPositions) do
				table.insert(args[2], {
					["Part"] = part,
					["CFrame"] = origCFrame * cframeOffset
				})
			end
			syncTool.SyncAPI.ServerEndpoint:InvokeServer(args[1], args[2])
		end

		local targetOffset = CFrame.new(0, 999999, 0)

		for i = 1, 5 do
			warpAll(targetOffset)
			task.wait(0.05)
			warpAll(CFrame.new())
			task.wait(0.05)
		end
	end

	mainButton.MouseButton1Click:Connect(function()
		if not enabled then
			enabled = true
			frame.Visible = true

			for _, child in ipairs(frame:GetChildren()) do
				if child:IsA("TextButton") then
					child:Destroy()
				end
			end

			for i, p in ipairs(Players:GetPlayers()) do
				if p ~= LocalPlayer then
					posY = posY + 25
					if posY >= 270 then
						posX = posX + 105
						posY = 30
					end

					local bu = Instance.new("TextButton")
					bu.Parent = frame
					bu.Size = UDim2.new(0, 100, 0, 20)
					bu.Position = UDim2.new(0, posX + 10, 0, posY)
					bu.Text = p.Name
					bu.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
					bu.TextColor3 = Color3.new(1, 1, 1)

					bu.MouseButton1Click:Connect(function()
						glitchWarp(p)
						bu.Text = "Warped!"
						task.wait(1)
						bu.Text = p.Name
					end)
				end
			end
		else
			enabled = false
			frame.Visible = false
		end
	end)
end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Global Message Gui"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 3
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Global Message Gui"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
box = Instance.new("TextBox",gui)
box.Size = UDim2.new(0,100,0,100)
msg = Instance.new("TextButton",gui)
msg.Size = UDim2.new(0,100,0,50)
msg.Position = UDim2.new(.5,0,0,0)
msg.MouseButton1Click:connect(function()
for _,v in pairs(game.Players:GetChildren()) do
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";talk all " .. box.text)
    RequestCommandSilent:InvokeServer(";talk all " .. box.text)
    RequestCommandSilent:InvokeServer(";talk all " .. box.text)
    end
end)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = acg
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Shut Down"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Shut Down"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
			local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	RequestCommand:InvokeServer(";shutdown")


	end)
-- Server Destruction --
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Flood"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Flood"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";insert 12581653338")

	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Clear Terrain"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Clear Terrain"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
				print("impossible script damn shit")
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Apoc Troll"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Apoc Troll"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local player = game.Players.LocalPlayer
local tool


for _,v in ipairs(player:GetDescendants()) do
    if v.Name == "SyncAPI" then
        tool = v.Parent
        break
    end
end
if not tool then
    for _,v in ipairs(game.ReplicatedStorage:GetDescendants()) do
        if v.Name == "SyncAPI" then
            tool = v.Parent
            break
        end
    end
end

local remote = tool.SyncAPI.ServerEndpoint

local function invokeSync(args)
    return remote:InvokeServer(unpack(args))
end

local function MovePart(part, cf)
    local args = {
        [1] = "SyncMove",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["CFrame"] = cf,
            }
        }
    }
    invokeSync(args)
end

local function BreakJoints(part)
    local args = {
        [1] = "BreakJoints",
        [2] = {
            [1] = {
                ["Part"] = part
            }
        }
    }
    invokeSync(args)
end

spawn(function()
    local headCF = CFrame.new(player.Character.Head.Position)
    wait()

    for _, other in ipairs(game.Players:GetPlayers()) do
        if other ~= player and other.Character and other.Character:FindFirstChild("Torso") then
            local offset = CFrame.new(
                math.random(0,50),
                0,
                math.random(0,50)
            )
            MovePart(other.Character.Torso, headCF * offset)
            
            if other.Character:FindFirstChild("HumanoidRootPart") then
                BreakJoints(other.Character.HumanoidRootPart)
            end
        end
    end
end)

	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Set Skybox"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Set Skybox"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

local ID = game.CoreGui.CoolGui.Frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text

local ReplicatedStorage = game:GetService("ReplicatedStorage")
		local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
		RequestCommand:InvokeServer(";fogcolor black ;unfog ;time")
	
		task.wait(0.2)
	
		local player = game.Players.LocalPlayer
		local char = player.Character or player.CharacterAdded:Wait()
		local tool
	
		for _,v in ipairs(player:GetDescendants()) do
			if v.Name == "SyncAPI" then
				tool = v.Parent
				break
			end
		end
	
		if not tool then
			for _,v in ipairs(game.ReplicatedStorage:GetDescendants()) do
				if v.Name == "SyncAPI" then
					tool = v.Parent
					break
				end
			end
		end
	
		if not tool then return end
	
		local remote = tool.SyncAPI.ServerEndpoint
	
		local function _(args)
			remote:InvokeServer(unpack(args))
		end
	
		local function CreatePart(cf,parent)
			_({"CreatePart","Normal",cf,parent})
		end
	
		local function SetName(part,name)
			_({"SetName",{part},name})
		end
	
		local function AddMesh(part)
			_({"CreateMeshes",{{Part=part}}})
		end
	
		local function SetMesh(part,id)
			_({"SyncMesh",{{Part=part,MeshId="rbxassetid://"..id}}})
		end
	
		local function SetTexture(part,id)
			_({"SyncMesh",{{Part=part,TextureId="rbxassetid://"..id}}})
		end
	
		local function MeshResize(part,size)
			_({"SyncMesh",{{Part=part,Scale=size}}})
		end
	
		local function SetVertexColor(part,vec)
			_({"SyncMesh",{{Part=part,VertexColor=vec}}})
		end
	
		local function SetLocked(part,bool)
			_({"SetLocked",{part},bool})
		end
	
		local function SetMaterial(part,mat)
			_({"SyncMaterial",{{Part=part,Material=mat}}})
		end
	
		local function SetCollision(part,bool)
			_({"SyncCollision",{{Part=part,CanCollide=bool}}})
		end
	
		local function CreatePointLight(part)
			_({"CreateLights",{{Part=part,LightType="PointLight"}}})
		end
	
		local function SyncPointLight(part,brightness,range)
			_({"SyncLighting",{{Part=part,LightType="PointLight",Brightness=brightness,Range=range}}})
		end
	
		local function Sky(texId)
			local pos = Vector3.new(0,100,0)
	
			CreatePart(CFrame.new(pos),workspace)
	
			for _,v in ipairs(workspace:GetDescendants()) do
				if v:IsA("BasePart")
					and not v:IsDescendantOf(char)
					and math.floor(v.Position.X) == 0
					and math.floor(v.Position.Y) == 100
					and math.floor(v.Position.Z) == 0 then
	
					SetName(v,"Sky")
					AddMesh(v)
					SetMesh(v,"111891702759441")
					SetTexture(v,texId)
					MeshResize(v,Vector3.new(99999,99999,99999))
					SetVertexColor(v,Vector3.new(4,4,4))
					SetMaterial(v,"Neon")
					SetCollision(v,false)
					CreatePointLight(v)
					SyncPointLight(v,5,8)
					SetLocked(v,true)
				end
			end
		end
	
		Sky(ID)
    



	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Unanchor All"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Unanchor All"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local player = game.Players.LocalPlayer
		local char = player.Character
		local backpack = player.Backpack
	
		local function getf3x()
			for _, v in ipairs(backpack:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
			for _, v in ipairs(char:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
	
			return nil
		end
	
		-- get all info
	
		local f3x = getf3x()
		if not f3x then
			warn("you dont have f3x skid")
		end
		local syncapi = f3x.SyncAPI
		local serverendpoint = syncapi.ServerEndpoint
	
		local function setanchor(part, boolean)
			local args = {
				[1] = "SyncAnchor",
				[2] = {
					[1] = {
						["Part"] = part,
						["Anchored"] = boolean
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
	
		local function unanchorall()
			for _, v in ipairs(workspace:GetDescendants()) do
					if (v:IsA("BasePart") or v:IsA("UnionOperation")) and v.Name ~= "Sky" then
					spawn(function()
						setanchor(v, false)
					end)
					end
			end
		end
	
		unanchorall()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Decal Spam"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Decal Spam"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		decalID = frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text
 -- made by 1sw0rd1 aka deletecar, DO NOT LEAK OR GIVE WITHOUT MY PERMISSION.

    local Players = game:GetService("Players")
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
		local player = Players.LocalPlayer
	
		local tool
	
		local function findSyncAPITool()
			for _, v in pairs(player:GetDescendants()) do
				if v.Name == "SyncAPI" then
					return v.Parent
				end
			end
			for _, v in pairs(ReplicatedStorage:GetDescendants()) do
				if v.Name == "SyncAPI" then
					return v.Parent
				end
			end
		end
	
		tool = findSyncAPITool()
		if not tool then return end
	
		local remote = tool.SyncAPI.ServerEndpoint
		local function invoke(args)
			remote:InvokeServer(unpack(args))
		end
	
		local function SetLocked(part, boolean)
			invoke({ "SetLocked", { part }, boolean })
		end
	
		local function SpawnDecal(part, face)
			invoke({ "CreateTextures", { { Part = part, Face = face, TextureType = "Decal" } } })
		end
	
		local function AddDecal(part, assetId, face)
			invoke({ "SyncTexture", { { Part = part, Face = face, TextureType = "Decal", Texture = "rbxassetid://" .. assetId } } })
		end
	
		local function hasBlockedMesh(part)
			for _, child in ipairs(part:GetChildren()) do
				if child:IsA("SpecialMesh") or child:IsA("Mesh") then
					if tostring(child.MeshId):find("111891702759441") then
						return true
					end
				end
			end
			return false
		end
	
		local function SpamDecal(assetId)
			for _, v in pairs(workspace:GetDescendants()) do
				if v:IsA("BasePart") and not hasBlockedMesh(v) then
					task.spawn(function()
						SetLocked(v, false)
						for _, face in pairs(Enum.NormalId:GetEnumItems()) do
							SpawnDecal(v, face)
							AddDecal(v, assetId, face)
						end
					end)
				end
			end
		end
	
		SpamDecal(decalID)
        
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Force Teleport"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Force Teleport"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

	local placeID = frame.Settings.Page1["Place ID"].TextBox.Text
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";place all " .. placeID)
    RequestCommandSilent:InvokeServer(";forceplace all " .. placeID)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Clear Workspace"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Clear Workspace"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local Players = game:GetService("Players")
local player = Players.LocalPlayer

local character = player.Character 

		local player = game.Players.LocalPlayer
		local char = player.Character
      local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";kick all player has been removed by DataModel")

		local backpack = player.Backpack
	
		local function getf3x()
			for _, v in ipairs(backpack:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
			for _, v in ipairs(char:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
	
			return nil
		end
	
		-- get all info
	
		local f3x = getf3x()
		if not f3x then
			warn("you dont have f3x skid")
		end
		local syncapi = f3x.SyncAPI
		local serverendpoint = syncapi.ServerEndpoint
	
		local function delete(part)
			local args = {
				[1] = "Remove",
				[2] = {
					[1] = part
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
	
		local function deleteall()
			for _, v in ipairs(workspace:GetDescendants()) do
				if (v:IsA("BasePart") or v:IsA("UnionOperation")) and v.Name ~= "Sky" then
					spawn(function()
						delete(v)
					end)
				end
			end
		end
	
		deleteall()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Kill All"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Kill All"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local player = game.Players.LocalPlayer
		local char = player.Character
		local tool
		for i,v in player:GetDescendants() do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
		for i,v in game.ReplicatedStorage:GetDescendants() do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
		--craaa
		remote = tool.SyncAPI.ServerEndpoint
		function _(args)
			remote:InvokeServer(unpack(args))
		end
		function SetCollision(part,boolean)
			local args = {
				[1] = "SyncCollision",
				[2] = {
					[1] = {
						["Part"] = part,
						["CanCollide"] = boolean
					}
				}
			}
			_(args)
		end
		function SetAnchor(boolean,part)
			local args = {
				[1] = "SyncAnchor",
				[2] = {
					[1] = {
						["Part"] = part,
						["Anchored"] = boolean
					}
				}
			}
			_(args)
		end
		function CreatePart(cf,parent)
			local args = {
				[1] = "CreatePart",
				[2] = "Normal",
				[3] = cf,
				[4] = parent
			}
			_(args)
		end
		function DestroyPart(part)
			local args = {
				[1] = "Remove",
				[2] = {
					[1] = part
				}
			}
			_(args)
		end
		function MovePart(part,cf)
			local args = {
				[1] = "SyncMove",
				[2] = {
					[1] = {
						["Part"] = part,
						["CFrame"] = cf
					}
				}
			}
			_(args)
		end
		function Resize(part,size,cf)
			local args = {
				[1] = "SyncResize",
				[2] = {
					[1] = {
						["Part"] = part,
						["CFrame"] = cf,
						["Size"] = size
					}
				}
			}
			_(args)
		end
		function AddMesh(part)
			local args = {
				[1] = "CreateMeshes",
				[2] = {
					[1] = {
						["Part"] = part
					}
				}
			}
			_(args)
		end

		function SetMesh(part,meshid)
			local args = {
				[1] = "SyncMesh",
				[2] = {
					[1] = {
						["Part"] = part,
						["MeshId"] = "rbxassetid://"..meshid
					}
				}
			}
			_(args)
		end
		function SetTexture(part, texid)
			local args = {
				[1] = "SyncMesh",
				[2] = {
					[1] = {
						["Part"] = part,
						["TextureId"] = "rbxassetid://"..texid
					}
				}
			}
			_(args)
		end
		function SetName(part, stringg)
			local args = {
				[1] = "SetName",
				[2] = {
					[1] = workspace.Part
				},
				[3] = stringg
			}

			_(args)
		end
		function MeshResize(part,size)
			local args = {
				[1] = "SyncMesh",
				[2] = {
					[1] = {
						["Part"] = part,
						["Scale"] = size
					}
				}
			}
			_(args)
		end
		function Weld(part1, part2,lead)
			local args = {
				[1] = "CreateWelds",
				[2] = {
					[1] = part1,
					[2] = part2
				},
				[3] = lead
			}
			_(args)

		end
		function SetLocked(part,boolean)
			local args = {
				[1] = "SetLocked",
				[2] = {
					[1] = part
				},
				[3] = boolean
			}
			_(args)
		end
		function SetTrans(part,int)
			local args = {
				[1] = "SyncMaterial",
				[2] = {
					[1] = {
						["Part"] = part,
						["Transparency"] = int
					}
				}
			}
			_(args)
		end
		function CreateSpotlight(part)
			local args = {
				[1] = "CreateLights",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "SpotLight"
					}
				}
			}
			_(args)
		end
		function SyncLighting(part,brightness)
			local args = {
				[1] = "SyncLighting",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "SpotLight",
						["Brightness"] = brightness
					}
				}
			}
			_(args)
		end

		function KillAll()
			for i,v in game.Players:GetPlayers() do
				spawn(function()
					SetLocked(v.Character.Head,false)
					DestroyPart(v.Character.Head)
				end)
			end
		end
		KillAll()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Kick All"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Kick All"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";kick all")
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Create Baseplate"	
   button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Create Baseplate"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

		local player = game.Players.LocalPlayer
		local char = player.Character
		local backpack = player.Backpack
local function getf3x()
	for _, v in ipairs(backpack:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	for _, v in ipairs(char:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	return nil
end

local f3x = getf3x()
if not f3x then
	warn("you dont have f3x skid")
end
local syncapi = f3x.SyncAPI
local serverendpoint = syncapi.ServerEndpoint

function _(args)
        serverendpoint:InvokeServer(unpack(args))
    end

		local function addlight(part, brightness)
			local args = {
				[1] = "CreateLights",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "PointLight"
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
		
		local function synclight(part, brightness)
			local args = {
				[1] = "SyncLighting",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "PointLight",
						["Range"] = 60,
						["Color"] = Color3.new(1, 0, 0)
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

local function fire(part) 
    
    local argsCreate = {
        [1] = "CreateDecorations",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire"
            }
        }
    }

   
    local argsSync = {
        [1] = "SyncDecorate",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire",
                ["Size"] = 30,
                ["Heat"] = 9,
                ["Color"] = Color3.fromRGB(255, 0, 0), 
                ["SecondaryColor"] = Color3.fromRGB(255, 0, 0) 
            } 
        } 
    }

    
    _(argsCreate)
    _(argsSync)
end
function MovePart(part, cf)
    local args = {
        "SyncMove",
        {
            {
                Part = part,
                CFrame = cf
            }
        }
    }
    _(args)
end

local function resize(part, size, cf)
	local args = {
		"SyncResize",
		{
			{
				Part = part,
				CFrame = cf,
				Size = size
			}
		}
	}
	_(args)
end

    function SetTrans(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Transparency"] = int
                }
            }
        }
        _(args)
    end

local function mat(part, mate)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Material = mate
			}
		}
	}
	_(args)
end

local function transparency(part, trans)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Transparency = trans
			}
		}
	}
	_(args)
end

local function color(part, color)
	local args = {
		"SyncColor",
		{
			{
				Part = part,
				Color = color,
				UnionColoring = false
			}
		}
	}
	_(args)
end

local function syncmeshid(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				MeshId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end

local function makemesh(part)
	local args = {
		"CreateMeshes",
		{
			{
				Part = part
			}
		}
	}
	_(args)
end

local function syncmeshsize(part, vectora)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				Scale = vectora
			}
		}
	}
	_(args)
end

local function syncmeshtexture(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				TextureId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end

local function name(part, stringa)
	local args = {
		"SetName",
		{ part },
		stringa
	}
	_(args)
end

local function lock(part, boolean)
	local args = {
		"SetLocked",
		{ part },
		boolean
	}
	_(args)
end



local function setcollision(part, booleana)
	local args = {
		"SyncCollision",
		{
			{
				Part = part,
				CanCollide = booleana
			}
		}
	}
	_(args)
end

local function setanchor(part, boolean)
	local args = {
		"SyncAnchor",
		{
			{
				Part = part,
				Anchored = boolean
			}
		}
	}
	_(args)
end

local function createdecal(part, side)
	local args = {
		"CreateTextures",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal"
			}
		}
	}
	_(args)
end

local function setdecal(part, asset, side)
	local args = {
		"SyncTexture",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal",
				Texture = "rbxassetid://" .. asset
			}
		}
	}
	_(args)
end

		function toptexturecreate(part)
		local args = {
    [1] = "CreateTextures",
    [2] = {
        [1] = {
            ["Part"] = part,
            ["Face"] = Enum.NormalId.Top,
            ["TextureType"] = "Texture"
        }
    }
}

_(args)
		end
		function toptextureadd(part)
			local args = {
				[1] = "SyncTexture",
				[2] = {
					[1] = {
						["Part"] = part,
						["Face"] = Enum.NormalId.Top,
						["TextureType"] = "Texture",
						["Texture"] = "rbxassetid://18878365966",
						["StudsPerTileV"] = 4,
						["StudsPerTileU"] = 4
					}
				}
			}
			_(args)
		end

	local position = CFrame.new(0, -10, 0)
	local base = serverendpoint:InvokeServer("CreatePart", "Normal", position, workspace)
	resize(base, Vector3.new(1000, 1, 1000), position)
     toptexturecreate(base)
    toptextureadd(base)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = sd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Backdoor"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.48,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Anti Skid"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	RequestCommand:InvokeServer(";Hideguis others ;mute others")
	RequestCommand:InvokeServer(";blur others")
	RequestCommand:InvokeServer(";uncmdbar2 others")
	end)
local title = Instance.new("TextLabel")
	title.Parent = acg
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Admin Command/Guis"
	title.TextColor3 = whit
local title = Instance.new("TextLabel")
	title.Parent = sd
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Server Destruction"
	title.TextColor3 = whit
--Page 1 End --




-- Gear/Tools --
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Custom Gear"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Custom Gear"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
    local gear = frame.Settings.Page1["Custom Gear ID"].TextBox.Text
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";gear me " .. gear)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Stamper Tools"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Stamper Tools"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local UIS = game:GetService("UserInputService")

local tool
for _,v in LocalPlayer:GetDescendants() do
if v.Name == "SyncAPI" then tool = v.Parent end
end
for _,v in game.ReplicatedStorage:GetDescendants() do
if v.Name == "SyncAPI" then tool = v.Parent end
end
if not tool then return end

local r = tool.SyncAPI.ServerEndpoint
local function _(a) r:InvokeServer(unpack(a)) end

local deleteTool = Instance.new("Tool")
deleteTool.Name = ""
deleteTool.RequiresHandle = false
deleteTool.TextureId = "rbxassetid://5432160999"
deleteTool.Parent = LocalPlayer.Backpack

local s1 = Instance.new("SelectionBox")
s1.Color3 = Color3.new(1, 0, 0)
s1.LineThickness = 0.05
s1.Visible = false
s1.Parent = game.CoreGui

local c1
deleteTool.Equipped:Connect(function()
if c1 then c1:Disconnect() end
c1 = Mouse.Button1Down:Connect(function()
local t = Mouse.Target
if t and t:IsA("BasePart") then
s1.Adornee = t
s1.Visible = true
task.wait(0.1)
_({"Remove",{t}})
s1.Visible = false
s1.Adornee = nil
end
end)
end)
deleteTool.Unequipped:Connect(function()
if c1 then c1:Disconnect() c1 = nil end
s1.Visible = false
s1.Adornee = nil
end)

local cloneTool = Instance.new("Tool")
cloneTool.Name = ""
cloneTool.RequiresHandle = false
cloneTool.TextureId = "rbxassetid://138745565107313"
cloneTool.Parent = LocalPlayer.Backpack

local s2 = Instance.new("SelectionBox")
s2.Color3 = Color3.new(0, 1, 0)
s2.LineThickness = 0.05
s2.Visible = false
s2.Parent = game.CoreGui

local c2
cloneTool.Equipped:Connect(function()
if c2 then c2:Disconnect() end
c2 = Mouse.Button1Down:Connect(function()
local t = Mouse.Target
if t and t:IsA("BasePart") then
s2.Adornee = t
s2.Visible = true
_({"Clone",{t},workspace})
task.wait(0.15)
local cf = t.CFrame * CFrame.new(0,4,0)
_({"SyncMove",{{Part=t,CFrame=cf}}})
task.wait(0.15)
s2.Visible = false
s2.Adornee = nil
end
end)
end)
cloneTool.Unequipped:Connect(function()
if c2 then c2:Disconnect() c2 = nil end
s2.Visible = false
s2.Adornee = nil
end)

local moveTool = Instance.new("Tool")
moveTool.Name = ""
moveTool.RequiresHandle = false
moveTool.TextureId = "rbxassetid://84615697070708"
moveTool.Parent = LocalPlayer.Backpack

local s3 = Instance.new("SelectionBox")
s3.Color3 = Color3.new(0, 0.7, 1)
s3.LineThickness = 0.05
s3.Visible = false
s3.Parent = game.CoreGui

local selectedPart
local moving = false
local moveConnDown, moveConnUp, moveConnMove

moveTool.Equipped:Connect(function()
if moveConnDown then moveConnDown:Disconnect() end
moveConnDown = Mouse.Button1Down:Connect(function()
if not selectedPart then
local t = Mouse.Target
if t and t:IsA("BasePart") then
selectedPart = t
s3.Adornee = t
s3.Visible = true
end
else
moving = true
end
end)

if moveConnUp then moveConnUp:Disconnect() end  
moveConnUp = UIS.InputEnded:Connect(function(input)  
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then  
		if moving then moving = false end  
	end  
end)  

if moveConnMove then moveConnMove:Disconnect() end  
moveConnMove = UIS.InputChanged:Connect(function(input)  
	if moving and selectedPart and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then  
		local ray = workspace.CurrentCamera:ScreenPointToRay(Mouse.X, Mouse.Y)  
		local hitPos = ray.Origin + ray.Direction * 20  
		local cf = CFrame.new(hitPos)  
		_({"SyncMove",{{Part=selectedPart,CFrame=cf}}})  
	end  
end)

end)

moveTool.Unequipped:Connect(function()
if moveConnDown then moveConnDown:Disconnect() moveConnDown = nil end
if moveConnUp then moveConnUp:Disconnect() moveConnUp = nil end
if moveConnMove then moveConnMove:Disconnect() moveConnMove = nil end
s3.Visible = false
s3.Adornee = nil
selectedPart = nil
moving = false
end)

-- idfk nah 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Tool Stealer"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Tool Stealer"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	local z = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack) 
z.Name = "Tool Stealer"
function onButton1Down(mouse)
	local hit = mouse.Target
	if (hit == nil) then return end
	for i,v in pairs(hit.Parent:GetChildren()) do
		if v:IsA("Tool") or v:IsA("HopperBin") then
			v.Parent = game.Players.LocalPlayer.Backpack
		end
	end
end
function  onSelected(mouse)
	mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

z.Selected:connect(onSelected)	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Minigun"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Dev Uzi"
	button.TextColor3 = whit
button.MouseButton1Down:Connect(function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")  
  
local rq = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent  
  
local player = game.Players.LocalPlayer  
  
local mouse = player:GetMouse()  
  
local holding = false  
  
local equipped = false  
  
local char = player.Character  
  
local hum = char.Humanoid  
  
local hed = char.Head  
  
local tool  
  
for i,v in player:GetDescendants() do  
  
if v.Name == "SyncAPI" then      
  
    tool = v.Parent      
  
end  
  
end  
  
for i,v in game.ReplicatedStorage:GetDescendants() do  
  
if v.Name == "SyncAPI" then      
  
    tool = v.Parent      
  
end  
  
end  
  
--craaa  
  
remote = tool.SyncAPI.ServerEndpoint  
  
function _(args)  
  
remote:InvokeServer(unpack(args))  
  
end  
  
function SetCollision(part,boolean)  
  
local args = {      
  
    [1] = "SyncCollision",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["CanCollide"] = boolean      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function SetAnchor(boolean,part)  
  
local args = {      
  
    [1] = "SyncAnchor",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Anchored"] = boolean      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function CreatePart(cf,parent)  
  
local args = {      
  
    [1] = "CreatePart",      
  
    [2] = "Normal",      
  
    [3] = cf,      
  
    [4] = parent      
  
}      
  
_(args)  
  
end  
  
function DestroyPart(part)  
  
local args = {      
  
    [1] = "Remove",      
  
    [2] = {      
  
        [1] = part      
  
    }      
  
}      
  
_(args)  
  
end  
  
function MovePart(part,cf)  
  
local args = {      
  
    [1] = "SyncMove",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["CFrame"] = cf      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
local TweenService = game:GetService("TweenService")  
  
function smoothMove(part, cf)  
  
tweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Linear)  
  
local tween = TweenService:Create(part, tweenInfo, {CFrame = cf})  
  
tween:Play()  
  
tween.Completed:Connect(function()  
  
local args = {      
  
    [1] = "SyncMove",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["CFrame"] = cf      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end)  
  
end  
  
function Resize(part,size,cf)  
  
local args = {      
  
    [1] = "SyncResize",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["CFrame"] = cf,      
  
            ["Size"] = size      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function AddMesh(part)  
  
local args = {      
  
    [1] = "CreateMeshes",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function reflect(part,int)  
  
local args = {      
  
    [1] = "SyncMaterial",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Reflectance"] = int      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function SetMesh(part,meshid,offset)  
  
local args = {      
  
    [1] = "SyncMesh",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["MeshId"] = "rbxassetid://"..meshid,      
  
            ["Offset"] = offset      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function SetTexture(part, texid)  
  
local args = {      
  
    [1] = "SyncMesh",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["TextureId"] = "rbxassetid://"..texid      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function breakWelds(part)  
  
local welds = {}  
  
for _, weld in ipairs(part:GetDescendants()) do  
  
if weld:IsA("WeldConstraint") or weld:IsA("Weld") or weld:IsA("Motor6D") then      
  
    table.insert(welds, weld)      
  
end  
  
end  
  
if #welds == 0 then  
  
return false  
  
end  
  
local args = {  
  
"RemoveWelds",      
  
welds  
  
}  
  
_(args)  
  
return true  
  
end  
  
function SetName(part, stringg)  
  
local args = {      
  
    [1] = "SetName",      
  
    [2] = {      
  
        [1] = part      
  
    },      
  
    [3] = stringg      
  
}      
  
_(args)  
  
end  
  
function MeshResize(part,size)  
  
local args = {      
  
    [1] = "SyncMesh",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Scale"] = size      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
local function light(part,color)  
  
local createArgs = {		"CreateLights",  
  
{      
  
	{      
  
		Part = part,      
  
		LightType = "PointLight"      
  
	}      
  
}  
  
}  
  
local syncArgs = {  
  
"SyncLighting",      
  
{      
  
	{      
  
		Part = part,      
  
		LightType = "PointLight",      
  
		Color = Color3.new(1,1,0),      
  
Brightness = 10000000,      
  
		Range = 2,      
  
	}      
  
}  
  
}  
  
spawn(function()  
  
_(createArgs)  
  
end)  
  
spawn(function()  
  
_(syncArgs)  
  
end)  
  
end  
  
function Weld(part1, part2,lead)  
  
local args = {      
  
    [1] = "CreateWelds",      
  
    [2] = {      
  
        [1] = part1,      
  
        [2] = part2      
  
    },      
  
    [3] = lead      
  
}      
  
_(args)  
  
end  
  
function SetLocked(part,boolean)  
  
local args = {      
  
    [1] = "SetLocked",      
  
    [2] = {      
  
        [1] = part      
  
    },      
  
    [3] = boolean      
  
}      
  
_(args)  
  
end  
  
function SetTrans(part,int)  
  
local args = {      
  
    [1] = "SyncMaterial",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Transparency"] = int      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function CreateSpotlight(part)  
  
local args = {      
  
    [1] = "CreateLights",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["LightType"] = "SpotLight"      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function playSFX(id,parent)  
  
local SFX = Instance.new('Sound',parent)  
  
SFX.Volume = 10  
  
SFX.SoundId = "rbxassetid://" ..id  
  
SFX:Play()  
  
end  
  
function SyncLighting(part,brightness)  
  
local args = {      
  
    [1] = "SyncLighting",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["LightType"] = "SpotLight",      
  
            ["Brightness"] = brightness      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function Color(part,color)  
  
local args = {      
  
    [1] = "SyncColor",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Color"] = color --[[Color3]],      
  
            ["UnionColoring"] = false      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function SpawnDecal(part,side)  
  
local args = {      
  
    [1] = "CreateTextures",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Face"] = side,      
  
            ["TextureType"] = "Decal"      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function AddDecal(part,asset,side)  
  
local args = {      
  
    [1] = "SyncTexture",      
  
    [2] = {      
  
        [1] = {      
  
            ["Part"] = part,      
  
            ["Face"] = side,      
  
            ["TextureType"] = "Decal",      
  
            ["Texture"] = "rbxassetid://".. asset      
  
        }      
  
    }      
  
}      
  
_(args)  
  
end  
  
function KillTarget(target)  
  
if target and target.Character then  
  
local head = target.Character:FindFirstChild("Head")      
  
if head then      
  
    local args = {      
  
        [1] = "SetLocked",      
  
        [2] = { [1] = head },      
  
        [3] = false      
  
    }      
  
    _(args)      
  
    task.wait(0.1)      
  
    local args2 = {      
  
        [1] = "Remove",      
  
        [2] = { [1] = head }      
  
    }      
  
    _(args2)  
  
spawn(function()  
  
local blood = remote:InvokeServer("CreatePart","Normal",head.CFrame,head)  
  
spawn(function()  
  
Resize(blood,Vector3(.2,.2,.2),blood.CFrame)  
  
end)  
  
spawn(function()  
  
Color(blood,Color3.new(1,0,0))  
  
end)  
  
spawn(function()  
  
SetAnchor(false,blood)  
  
end)  
  
end)  
  
spawn(function()  
  
local blood = remote:InvokeServer("CreatePart","Normal",head.CFrame,head)  
  
spawn(function()  
  
Resize(blood,Vector3(.2,.2,.2),blood.CFrame)  
  
end)  
  
spawn(function()  
  
Color(blood,Color3.new(1,0,0))  
  
end)  
  
spawn(function()  
  
SetAnchor(false,blood)  
  
end)  
  
end)  
  
spawn(function()  
  
local blood = remote:InvokeServer("CreatePart","Normal",head.CFrame,head)  
  
spawn(function()  
  
Resize(blood,Vector3(.2,.2,.2),blood.CFrame)  
  
end)  
  
spawn(function()  
  
Color(blood,Color3.new(1,0,0))  
  
end)  
  
spawn(function()  
  
SetAnchor(false,blood)  
  
end)  
  
end)  
  
spawn(function()  
  
local blood = remote:InvokeServer("CreatePart","Normal",head.CFrame,head)  
  
spawn(function()  
  
Resize(blood,Vector3(.2,.2,.2),blood.CFrame)  
  
end)  
  
spawn(function()  
  
Color(blood,Color3.new(1,0,0))  
  
end)  
  
spawn(function()  
  
SetAnchor(false,blood)  
  
end)  
  
end)  
  
end  
  
end  
  
end  
  
local gun = remote:InvokeServer("CreatePart","Normal",CFrame.new(0,0,0),char)  
  
spawn(function()  
  
AddMesh(gun)  
  
end)  
  
spawn(function()  
  
SetMesh(gun,"4711605382", Vector3.new(0, 0.3, -1.3))  
  
end)  
  
spawn(function()  
  
SetTexture(gun,"4711605902")  
  
end)  
  
spawn(function()  
  
SetName(gun,"dev uzi")  
  
end)  
  
spawn(function()  
  
SetCollision(gun,false)  
  
end)  
  
spawn(function()  
  
MeshResize(gun, Vector3.new(0.05,0.05,0.05))  
  
end)  
  
spawn(function()  
  
MovePart(gun, char["Right Arm"].CFrame * CFrame.Angles(math.rad(90), math.rad(180), math.rad(-90)))  
  
end)  
  
spawn(function()  
  
Weld(gun,char["Right Arm"],gun)  
  
end)  
  
spawn(function()  
  
SetAnchor(false,gun)  
  
end)  
  
spawn(function()  
  
SetTrans(gun,1)  
  
end)  
  
local dev = Instance.new('Tool',player.Backpack)  
  
dev.Name = "Dev Uzi"  
  
dev.RequiresHandle = false  
  
hold=Instance.new('Animation')  
  
hold.AnimationId='rbxassetid://182393478'  
  
hoId=char.Humanoid:LoadAnimation(hold)  
  
hoId.Looped=true  
  
dev.Equipped:Connect(function()  
  
SetTrans(gun,0)  
  
hoId:Play()  
  
equipped = true  
  
end)  
  
dev.Unequipped:Connect(function()  
  
SetTrans(gun,1)  
  
hoId:Stop()      
  
      equipped = false      
  
  	holding = false  
  
end)  
  
mouse.Button1Down:Connect(function()  
  
if not equipped then return end  
  
holding = true  
  
while holding and equipped do  
  
local char = player.Character      
  
if char and char:FindFirstChild("HumanoidRootPart") and mouse.Hit then      
  
	local hrp = char.HumanoidRootPart      
  
	local targetPos = Vector3.new(mouse.Hit.p.X, hrp.Position.Y, mouse.Hit.p.Z)  
  
spawn(function()  
  
light(gun)  
  
wait(0.01)  
  
for i,v in gun:GetDescendants() do  
  
if v:IsA("PointLight") then  
  
DestroyPart(v)  
  
end  
  
end  
  
end)  
  
hrp.CFrame = CFrame.new(hrp.Position, targetPos)      
  
end      
  
task.wait(0.1)  
  
end  
  
end)  
  
mouse.Button1Up:Connect(function()  
  
holding = false  
  
end)  
  
while true do  
  
if hum.Health == 0 then  
  
holding = false  
  
end  
  
wait(0.005)  
  
end  
  
local Players = game:GetService("Players")  
  
local UserInputService = game:GetService("UserInputService")  
  
local player = Players.LocalPlayer  
  
local character = player.Character or player.CharacterAdded:Wait()  
  
local function onCharacterAdded(newCharacter)  
  
character = newCharacter  
  
end  
  
player.CharacterAdded:Connect(onCharacterAdded)  
  
local function onMouseClick()  
  
if equipped == false then return end  
  
if not character then return end  
  
local mouse = player:GetMouse()  
  
local target = mouse.Target  
  
if not target then return end  
  
local model = target:FindFirstAncestorOfClass("Model")  
  
if not model then return end  
  
local targetPlayer = Players:GetPlayerFromCharacter(model)  
  
if targetPlayer then  
  
KillTarget(targetPlayer)  
  
end  
  
end  
  
UserInputService.InputBegan:Connect(function(input, gameProcessed)  
  
if gameProcessed then return end  
  
onMouseClick()  
  
end)  
end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "God Laser"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "God Laser"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

		    -- =========================
-- ส่วนของคุณ (ฟังก์ชัน SyncAPI)
-- =========================
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local tool
for _,v in ipairs(player:GetDescendants()) do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end
for _,v in ipairs(game.ReplicatedStorage:GetDescendants()) do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end

if not tool then
    warn("SyncAPI Tool not found")
    return
end

local remote = tool.SyncAPI.ServerEndpoint

local function _(args)
    remote:InvokeServer(unpack(args))
end

-- =========================
-- ฟังก์ชัน SyncAPI
-- =========================
function SetCollision(part,boolean)
    _( { "SyncCollision", { {Part = part, CanCollide = boolean} } } )
end

function SetAnchor(boolean,part)
    _( { "SyncAnchor", { {Part = part, Anchored = boolean} } } )
end

function CreatePart(cf,parent)
    _( { "CreatePart", "Normal", cf, parent } )
end

function DestroyPart(part)
    _( { "Remove", {part} } )
end

function MovePart(part,cf)
    _( { "SyncMove", { {Part = part, CFrame = cf} } } )
end

function Resize(part,size,cf)
    _( { "SyncResize", { {Part = part, CFrame = cf, Size = size} } } )
end

function AddMesh(part)
    _( { "CreateMeshes", { {Part = part} } } )
end

function SetMesh(part,meshid)
    _( { "SyncMesh", { {Part = part, MeshId = "rbxassetid://"..meshid} } } )
end

function SetTexture(part, texid)
    _( { "SyncMesh", { {Part = part, TextureId = "rbxassetid://"..texid} } } )
end

function SetName(part, stringg)
    _( { "SetName", {part}, stringg } )
end

function MeshResize(part,size)
    _( { "SyncMesh", { {Part = part, Scale = size} } } )
end

function Weld(part1, part2,lead)
    _( { "CreateWelds", {part1, part2}, lead } )
end

function SetLocked(part,boolean)
    _( { "SetLocked", {part}, boolean } )
end

function SetTrans(part,int)
    _( { "SyncMaterial", { {Part = part, Transparency = int} } } )
end

function CreateSpotlight(part)
    _( { "CreateLights", { {Part = part, LightType = "SpotLight"} } } )
end

function SyncLighting(part,brightness)
    _( { "SyncLighting", { {Part = part, LightType = "SpotLight", Brightness = brightness} } } )
end

function Color(part,color)
    _( { "SyncColor", { {Part = part, Color = color, UnionColoring = false} } } )
end

function SpawnDecal(part,side)
    _( { "CreateTextures", { {Part = part, Face = side, TextureType = "Decal"} } } )
end

function SetMaterial(part, materialName)
    _( { "SyncMaterial", { {Part = part, Material = Enum.Material[materialName]} } } )
end

function AddDecal(part,asset,side)
    _( { "SyncTexture", { {Part = part, Face = side, TextureType = "Decal", Texture = "rbxassetid://"..asset} } } )
end

-- =========================
-- Client Tool “Watch” พร้อม Drag/Touch แบบเรียลไทม์
-- =========================
local UIS = game:GetService("UserInputService")

local WatchTool = Instance.new("Tool")
WatchTool.Name = "Watch"
WatchTool.RequiresHandle = false
WatchTool.Parent = player.Backpack

local currentPart = nil

-- สร้างหรือปรับ Cylinder ตามตำแหน่ง
local function UpdateCylinder(origin, target)
    local direction = target - origin
    local distance = direction.Magnitude
    if distance == 0 then distance = 0.1 end -- ป้องกันขนาดเป็น 0

    -- ใช้ lookAt ทำให้หมุนตามทุกแกน
    local cf = CFrame.lookAt(origin, target) * CFrame.new(0, 0, -distance/2)

    if not currentPart then
        currentPart = CreatePart(cf, workspace)
        SetMaterial(currentPart, "Plastic")
        Color(currentPart, Color3.fromRGB(255,255,0))
        SetAnchor(true, currentPart)
        SetCollision(currentPart,false)
    end

    Resize(currentPart, Vector3.new(10,10,distance), cf)
    MovePart(currentPart, cf)
end

local function DestroyCurrent()
    if currentPart then
        DestroyPart(currentPart)
        currentPart = nil
    end
end

local function GetInputPosition(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        return input.Position, true
    end
    return nil, false
end

local function OnEquip()
    local inputBegan, inputChanged, inputEnded

    inputBegan = UIS.InputBegan:Connect(function(input, gpe)
        if gpe then return end
        local pos, valid = GetInputPosition(input)
        if not valid then return end

        local ray = workspace.CurrentCamera:ScreenPointToRay(pos.X, pos.Y)
        local targetPos = ray.Origin + ray.Direction * 1000
        local origin = char:FindFirstChild("HumanoidRootPart") and char.HumanoidRootPart.Position
        if not origin then return end

        UpdateCylinder(origin, targetPos)
    end)

    inputChanged = UIS.InputChanged:Connect(function(input, gpe)
        if gpe then return end
        if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
            local pos = input.Position
            local ray = workspace.CurrentCamera:ScreenPointToRay(pos.X, pos.Y)
            local targetPos = ray.Origin + ray.Direction * 1000
            local origin = char:FindFirstChild("HumanoidRootPart") and char.HumanoidRootPart.Position
            if origin and currentPart then
                UpdateCylinder(origin, targetPos)
            end
        end
    end)

    inputEnded = UIS.InputEnded:Connect(function(input, gpe)
        if gpe then return end
        DestroyCurrent()
    end)

    WatchTool.Unequipped:Connect(function()
        inputBegan:Disconnect()
        inputChanged:Disconnect()
        inputEnded:Disconnect()
        DestroyCurrent()
    end)
end

WatchTool.Equipped:Connect(OnEquip)
    
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Draw Tool"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Draw Tool"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local player = game.Players.LocalPlayer
		local char = player.Character
		local backpack = player.Backpack
		
		local UserInputService = game:GetService("UserInputService")
		local RunService = game:GetService("RunService")
	
		local holding = false
	
		local function getf3x()
			for _, v in ipairs(backpack:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
			for _, v in ipairs(char:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end

			return nil
		end

		local f3x = getf3x()
		if not f3x then
			warn("you dont have f3x skid")
		end
		local syncapi = f3x.SyncAPI
		local serverendpoint = syncapi.ServerEndpoint

		local function resize(part,size,cf)
			local args = {
				[1] = "SyncResize",
				[2] = {
					[1] = {
						["Part"] = part,
						["CFrame"] = cf,
						["Size"] = size
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local function color(part, color)
			local args = {
				[1] = "SyncColor",
				[2] = {
					[1] = {
						["Part"] = part,
						["Color"] = color --[[Color3]],
						["UnionColoring"] = false
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local function setcollision(part, booleana)
			local args = {
				[1] = "SyncCollision",
				[2] = {
					[1] = {
						["Part"] = part,
						["CanCollide"] = booleana
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local function name(part, stringa)
			local args = {
				[1] = "SetName",
				[2] = {
					[1] = part
				},
				[3] = stringa
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local function lock(part, boolean)
			local args = {
				[1] = "SetLocked",
				[2] = {
					[1] = part
				},
				[3] = boolean
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local function syncmaterial(part,mate)
			local args = {
				[1] = "SyncMaterial",
				[2] = {
					[1] = {
						["Part"] = part,
						["Material"] = mate
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

		local tool = Instance.new("Tool")
		tool.Parent = player.Backpack
		tool.Name = "Draw tool"
		tool.RequiresHandle = false

		tool.Equipped:Connect(function()
			local mouse = player:GetMouse()
			holding = false

			local renderConnection

			mouse.Button1Down:Connect(function()
				holding = true
			end)

			mouse.Button1Up:Connect(function()
				holding = false
			end)
			renderConnection = RunService.RenderStepped:Connect(function()
				if holding then
					local target = mouse.Target

					if target:IsA("BasePart") then
						spawn(function()
							local hitPosition = mouse.Hit.Position
							local cf = CFrame.new(hitPosition)
							local drawball = serverendpoint:InvokeServer("CreatePart", "Ball", cf, workspace)

							color(drawball, Color3.new(0, 0, 0))
							resize(drawball, Vector3.new(0.5, 0.5, 0.5), cf)
							setcollision(drawball, false)
							name(drawball, "ligmaligmaboy")
							lock(drawball, true)
						end)
					else
						warn("aim at a part")
					end
				end
			end)
			tool.Unequipped:Connect(function()
				if renderConnection then
					renderConnection:Disconnect()
					renderConnection = nil
				end
				holding = false
			end)
		end)


	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 3
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = gt
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		
	end)
	
	
-- Weapon Scripts --
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Drage"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Drage"
	button.TextColor3 = whit
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 243778818")

	end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Dual Blades"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Dual Blades"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 158069180")


	end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Eyelaser"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Eyelaser"
	button.TextColor3 = whit
	button.TextWrapped = true
 	button.MouseButton1Down:connect(function()
	--MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 4 and put your name where it says "YOUR NAME HERE"

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local head = char:WaitForChild("Head")

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rq = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

-- หา SyncAPI
local sync, syncTool
for _,v in player:GetDescendants() do
	if v.Name == "SyncAPI" then
		sync = v
		syncTool = v.Parent
	end
end
if not sync then
	warn("❌ ไม่พบ SyncAPI!")
	return
end

local endpoint = sync.ServerEndpoint
local mouse = player:GetMouse()

-- ยิงเลเซอร์ออกจากตา
local function fireLaser(targetPos)
	local leftEye = head.Position + (head.CFrame.RightVector * -0.2) + (head.CFrame.UpVector * -0.1)
	local rightEye = head.Position + (head.CFrame.RightVector * 0.2) + (head.CFrame.UpVector * -0.1)
	local origins = {leftEye, rightEye}

	for _, origin in ipairs(origins) do
		local dir = (targetPos - origin).Unit
		local distance = (targetPos - origin).Magnitude

		endpoint:InvokeServer("CreatePart", "Normal", CFrame.new(origin), workspace)

		local laser
		for _, obj in ipairs(workspace:GetChildren()) do
			if obj:IsA("Part") and (obj.Position - origin).Magnitude < 1 then
				laser = obj
			end
		end

		if laser then
			laser.Anchored = true
			laser.Material = Enum.Material.Neon
			laser.Color = Color3.new(1, 0, 0)
			laser.Size = Vector3.new(0.05, 0.05, distance)
			laser.CFrame = CFrame.lookAt(origin, targetPos) * CFrame.new(0, 0, -distance/2)
			game.Debris:AddItem(laser, 0.4)
		end
	end

	-- ตรวจจับโดนคน
	local ray = Ray.new(head.Position, (targetPos - head.Position).Unit * 500)
	local hit, pos = workspace:FindPartOnRay(ray, char)
	if hit and hit.Parent:FindFirstChildOfClass("Humanoid") then
		local hitPlr = game.Players:GetPlayerFromCharacter(hit.Parent)
		if hitPlr then
			rq:InvokeServer(";kill "..hitPlr.Name)
		end
	end
end

-- หมุนทั้งตัวตามเมาส์แบบช้า
game:GetService("RunService").RenderStepped:Connect(function()
	local pos = hrp.Position
	local look = Vector3.new(mouse.Hit.Position.X, pos.Y, mouse.Hit.Position.Z) -- รักษาความสูง
	hrp.CFrame = CFrame.new(pos, look)
end)

-- ยิงเลเซอร์เมื่อคลิก
mouse.Button1Down:Connect(function()
	fireLaser(mouse.Hit.Position)
end)
	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Knife"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Knife"
	button.TextColor3 = whit
	button.TextWrapped = true
	 	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")

	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommand	RequestCommand:InvokeServer(";r6 @") -- U can change all of it with your commands!

	RequestCommand:InvokeServer(";buildingTools ")

local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local RunService = game:GetService("RunService")

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandModification

local Players = game:GetService("Players")

local UserInputService = game:GetService("UserInputService")

if not character:FindFirstChild('Accessory (KNIF4ELERFTAccessory)') or character:FindFirstChild("Accessory (Knife McGrabbington III)") then

ready = false

local function notify(msg)

    local MainGUI = player:FindFirstChild("PlayerGui"):FindFirstChild("MainGUI")

    if not MainGUI then

        MainGUI = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))

        MainGUI.Name = "MainGUI"

    end

    coroutine.wrap(function()

        for _, v in pairs(MainGUI:GetChildren()) do

            if v:IsA("TextLabel") then v:Destroy() end

        end

        local TextLabel = Instance.new("TextLabel")

        local Frame = Instance.new("Frame")

        TextLabel.Parent = MainGUI

        TextLabel.BackgroundColor3 = Color3.fromRGB(58, 58, 58)

        TextLabel.BorderSizePixel = 0

        TextLabel.Position = UDim2.new(0.2, 0, 0.05, -10)

        TextLabel.Size = UDim2.new(0.6, 0, 0.1, 0)

        TextLabel.Font = Enum.Font.SourceSans

        TextLabel.TextColor3 = Color3.new(1, 1, 1)

        TextLabel.TextSize = 35

        TextLabel.TextScaled = true

        TextLabel.TextYAlignment = Enum.TextYAlignment.Center

        TextLabel.TextXAlignment = Enum.TextXAlignment.Left

        TextLabel.Text = ""

        TextLabel.BackgroundTransparency = 1

        Frame.Parent = TextLabel

        Frame.BackgroundColor3 = Color3.fromRGB(49, 49, 49)

        Frame.BorderSizePixel = 0

        Frame.Transparency = 1

        Frame.Position = UDim2.new(0, 0, 1, 0)

        Frame.Size = UDim2.new(1, 0, 0, 5)

        for i = 1, 8 do

            TextLabel.BackgroundTransparency = TextLabel.BackgroundTransparency - 0.1

            TextLabel.Position = TextLabel.Position + UDim2.new(0, 0, 0, 1)

            Frame.Transparency = Frame.Transparency - 0.1

            task.wait()

        end

        msg = "  || " .. msg

        for i = 1, #msg do

            TextLabel.Text = string.sub(msg, 1, i)

            task.wait()

        end

        task.wait(1)

        for i = 1, 8 do

            TextLabel.BackgroundTransparency = TextLabel.BackgroundTransparency + 0.1

            TextLabel.Position = TextLabel.Position - UDim2.new(0, 0, 0, 2)

            Frame.Transparency = Frame.Transparency + 0.1

            task.wait()

        end

        TextLabel:Destroy()

    end)()

end

RequestCommand:InvokeServer(";hat me 18268136683")

yeah=player.Backpack:FindFirstChild('Building Tools') or player.Backpack:FindFirstChild('F3X Btools!')

if yeah then

notify("THIS WORK F3X GAME LMAO FAGGOT ")

task.wait(3)

notify("Let use! for Fun!")

elseif not yeah then

notify("LOL this game has no btools or f3x so this not gonna work here")

end

local tool

for _, v in player:GetDescendants() do

    if v.Name == "SyncAPI" then

        tool = v.Parent

    end

end

for _, v in game.ReplicatedStorage:GetDescendants() do

    if v.Name == "SyncAPI" then

        tool = v.Parent

    end

end

local remote = tool.SyncAPI.ServerEndpoint

function _(args)

    remote:InvokeServer(unpack(args))

end

function SetCollision(part, boolean)

    local args = {

        [1] = "SyncCollision",

        [2] = {

            [1] = {

                ["Part"] = part,

                ["CanCollide"] = boolean

            }

        }

    }

    _(args)

end

    function SetLocked(part,boolean)

        local args = {

            [1] = "SetLocked",

            [2] = {

                [1] = part

            },

            [3] = boolean

        }

        _(args)

    end

function yerpp(E)

local argsCreate = {

        [1] = "CreateDecorations",

        [2] = {

            [1] = {

                ["Part"] = E,

                ["DecorationType"] = "Sparkles"

            }

        }

    }

   

    local argsSync = {

        [1] = "SyncDecorate",

        [2] = {

            [1] = {

                ["Part"] = E,

                ["DecorationType"] = "Sparkles",

                ["SparkleColor"] = Color3.fromRGB(255, 255, 0)

            } 

        } 

    }

    _(argsCreate)

    _(argsSync)

end

local knfe = character["Accessory (Knife McGrabbington III)"]

if knfe then

	local args = {

		"Remove",

		{

			knfe.Handle.SpecialMesh

		}

	}

	_(args)

end

local function Resize(part, size, ha)

	local args = {

		"SyncResize",

		{

			{

				Part = part,

				CFrame = ha,

				Size = size

			}

		}

	}

	_(args)

end

local function SetAnchor(boolean, part)

	local args = {

		"SyncAnchor",

		{

			{

				Part = part,

				Anchored = boolean

			}

		}

	}

	_(args)

end

function MovePart(part, cf)

    local args = {

        [1] = "SyncMove",

        [2] = {

            [1] = {

                ["Part"] = part,

                ["CFrame"] = cf

            }

        }

    }

    _(args)

end

local function Color(part, color)

	local args = {

		"SyncColor",

		{

			{

				Part = part,

				Color = color,

				UnionColoring = false

			}

		}

	}

	_(args)

end

function AddMesh(part)

    local args = {

        [1] = "CreateMeshes",

        [2] = {

            [1] = {

                ["Part"] = part

            }

        }

    }

    _(args)

end

    function DestroyPart(part)

        local args = {

            [1] = "Remove",

            [2] = {

                [1] = part

            }

        }

        _(args)

    end

	function SetMesh(part,meshid,offseter)

			local args = {

				[1] = "SyncMesh",

				[2] = {

					[1] = {

            ["Offset"] = offseter,

						["Part"] = part,

						["MeshId"] = "rbxassetid://"..meshid

					}

				}

			}

			_(args)

		end

function SetTexture(part, texid)

    local args = {

        [1] = "SyncMesh",

        [2] = {

            [1] = {

                ["Part"] = part,

                ["TextureId"] = "rbxassetid://" .. texid

            }

        }

    }

    _(args)

end

    function SetTrans(part,int)

        local args = {

            [1] = "SyncMaterial",

            [2] = {

                [1] = {

                    ["Part"] = part,

                    ["Transparency"] = int

                }

            }

        }

        _(args)

    end

spawn(function()

yerpp(knfe.Handle)

end)

spawn(function()

AddMesh(knfe.Handle)

end)

spawn(function()

SetMesh(knfe.Handle, "18114736783",Vector3.new(0, 0, 0))

end)

spawn(function()

SetTexture(knfe.Handle, "80617091791234")

end)

function bleed(target)

    if not target or not target.Character then return end

    

    local stopBleeding = false

    local activeBloodParts = {} 

    local characterConnection

    characterConnection = target.CharacterAdded:Connect(function()

        stopBleeding = true

        for _, blood in pairs(activeBloodParts) do

            if blood and blood.Parent then

                DestroyPart(blood)

            end

        end

        if characterConnection then

            characterConnection:Disconnect()

        end

    end)

    

    coroutine.wrap(function()

        while not stopBleeding and target and target.Character do

            local humanoid = target.Character:FindFirstChildOfClass("Humanoid")

            local rootPart = target.Character:FindFirstChild("HumanoidRootPart")

            

            if rootPart then

                coroutine.wrap(function()

                yez=CFrame.new(0,-10,0)

                    local blood = remote:InvokeServer("CreatePart", "Ball", yez, target.Character)

                    if blood then

                        table.insert(activeBloodParts, blood)

                        

                        spawn(function()

                        Color(blood, Color3.fromRGB(100, 0, 0))

                        end)

                    

                        spawn(function()

    Resize(blood, Vector3.new(0.2, 0.2, 0.2), rootPart.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1)))

end)

                        spawn(function()

                        SetAnchor(false, blood)

                        end)

                        coroutine.wrap(function()

                            wait(2)

                            Resize(blood, Vector3.new(3, 0.1, 3),blood.CFrame)

                            Resize(blood, Vector3.new(0.9, 0.1, 0.9),blood.CFrame)

                            SetTrans(blood, 0.9)

                            SetTrans(blood, 0.7)

                            SetTrans(blood, 0.5)

                            SetTrans(blood, 0.3)

                            SetTrans(blood, 0.1)

                            DestroyPart(blood)

                            

                        

                            for i, v in pairs(activeBloodParts) do

                                if v == blood then

                                    table.remove(activeBloodParts, i)

                                    break

                                end

                            end

                        end)()

                    end

                end)()

            end

            

            wait(0.005)

        end

    end)()

end

function c0lefect(E)

local argsCreate = {

        [1] = "CreateDecorations",

        [2] = {

            [1] = {

                ["Part"] = E,

                ["DecorationType"] = "Sparkles"

            }

        }

    }

   

    local argsSync = {

        [1] = "SyncDecorate",

        [2] = {

            [1] = {

                ["Part"] = E,

                ["DecorationType"] = "Sparkles",

                ["SparkleColor"] = Color3.fromRGB(255, 255, 0)

            } 

        } 

    }

local args = {

	"Remove",

	{

		E:FindFirstChild('Sparkles')

	}

}

    _(argsCreate)

    _(argsSync)

task.wait(1)

    _(args)

end

			function Weld(part1, part2,lead)

				local args = {

					[1] = "CreateWelds",

					[2] = {

						[1] = part1,

						[2] = part2

					},

					[3] = lead

				}

				_(args)

	

			end

function breakWelds(part)

    local welds = {}

    for _, weld in ipairs(part:GetDescendants()) do

        if weld:IsA("WeldConstraint") or weld:IsA("Weld") or weld:IsA("Motor6D") then

            table.insert(welds, weld)

        end

    end

    if #welds == 0 then

        return false

    end

    local args = {

        "RemoveWelds",

        welds

    }

    _(args)

    return true

end

local humanoid = character:FindFirstChildOfClass("Humanoid")

local arm = character:FindFirstChild("Right Arm") and character:FindFirstChild("Left Arm") and character:FindFirstChild("Torso") 

local holdAnimation = Instance.new("Animation")

holdAnimation.AnimationId = "rbxassetid://48146273"

local holdTrack = humanoid:LoadAnimation(holdAnimation)

local killAnimation = Instance.new("Animation")

killAnimation.AnimationId = "rbxassetid://48146273"

local killTrack = humanoid:LoadAnimation(killAnimation)

local knifeHoldAnim = Instance.new("Animation")

knifeHoldAnim.AnimationId = "rbxassetid://299225058"

local staffupAnim = Instance.new("Animation")

staffupAnim.AnimationId = "rbxassetid://27432691"

local swordhitAnim = Instance.new("Animation")

swordhitAnim.AnimationId = "rbxassetid://27432686"

local holdstaffAnim = Instance.new("Animation")

holdstaffAnim.AnimationId = "rbxassetid://57794492"

local stabAnim = Instance.new("Animation")

stabAnim.AnimationId = "rbxassetid://30174375"

				local track1 = humanoid:LoadAnimation(staffupAnim)

				local track2 = humanoid:LoadAnimation(swordhitAnim)

				holdTrack = humanoid:LoadAnimation(holdstaffAnim)

function GrabAnim()

				track1.Looped = false

				track2.Looped = false

				holdTrack.Looped = false

				track1:Play()

				track1.Stopped:Wait()

				track2:Play()

				track2.Stopped:Wait()

				holdTrack:Play()

				holdTrack:AdjustSpeed(0)

end

function Kill()

local stabTrack = humanoid:LoadAnimation(stabAnim)

	stabTrack.Looped = false

	stabTrack:Play()

	stabTrack.Stopped:Wait()

	if holdTrack then holdTrack:Stop() end

end

function failed()

				track1.Looped = false

				track2.Looped = false

				holdTrack.Looped = false

				track1:Play()

        track1:AdjustSpeed(3)

				track1.Stopped:Wait()

				

         holdTrack:Play()

         wait(0.3)

         holdTrack:Stop()

end

local isBusy = false

local alignPosition

local alignOrientation

local Players = game:GetService("Players")

local player = Players.LocalPlayer 

local function attachBehind(targetChar)

    local root = character:FindFirstChild("HumanoidRootPart")

    local targetRoot = targetChar:FindFirstChild("HumanoidRootPart")

    if root and targetRoot then

        

        local attachment0 = root:FindFirstChild("Attachment") or Instance.new("Attachment", root)

        local attachment1 = targetRoot:FindFirstChild("Attachment") or Instance.new("Attachment", targetRoot)

   

        alignPosition = Instance.new("AlignPosition")

        alignPosition.MaxForce = 1000000

        alignPosition.Responsiveness = 200

        alignPosition.Attachment0 = attachment0

        alignPosition.Attachment1 = attachment1

        alignPosition.Parent = root

        alignOrientation = Instance.new("AlignOrientation")

        alignOrientation.MaxTorque = 1000000

        alignOrientation.Responsiveness = 200

        alignOrientation.Attachment0 = attachment0

        alignOrientation.Attachment1 = attachment1

        alignOrientation.Parent = root

     

        attachment1.Position = Vector3.new(0, 0, 0.4)

    end

end

local function detach()

    if alignPosition then

        alignPosition:Destroy()

        alignPosition = nil

    end

    if alignOrientation then

        alignOrientation:Destroy()

        alignOrientation = nil

    end

end

local function attacke()

    if isBusy then return end

    isBusy = true

    local hitPlayer = nil

local touchedConnection

local function onTouch(other)

    local otherPlayer = Players:GetPlayerFromCharacter(other.Parent)

    if otherPlayer and otherPlayer ~= player then

        hitPlayer = otherPlayer

    end

end

touchedConnection = arm.Touched:Connect(onTouch)

task.wait(0.15)

if touchedConnection then

    touchedConnection:Disconnect()

end

    if hitPlayer and hitPlayer.Character then

        

RequestCommand:InvokeServer(";speed " ..hitPlayer.Name.. " 0")

 

        

				track1.Looped = false

				track2.Looped = false

				holdTrack.Looped = false

				track1:Play()

				track1.Stopped:Wait()

				track2:Play()

        track2:AdjustSpeed(3)

				track2.Stopped:Wait()

				holdTrack:Play()

        

				holdTrack:AdjustSpeed(0)

spawn(function()

attachBehind(hitPlayer.Character)

wait(0.8)

detach()

end)

spawn(function()

SetLocked(hitPlayer.Character.Torso, false)

end)

spawn(function()

SetLocked(char.Torso, false)

end)

 Weld(character.Torso,hitPlayer.Character.Torso,character.Torso)

Weld(character.Torso,hitPlayer.Character.HumanoidRootPart,character.Torso)

Weld(character.Torso,hitPlayer.Character.Head,character.Torso)

wait(3)

            spawn(function()

            Kill()

            end)

            bleed(hitPlayer)

            wait(0.45)

           RequestCommand:InvokeServer(";kill " ..hitPlayer.Name)

           wait(0.5)

breakWelds(character.Torso)

breakWelds(hitPlayer.Character.Torso)

spawn(function()

wait(0.8)

spawn(function()

SetLocked(hitPlayer.Character.Torso, false)

end)

spawn(function()

SetLocked(hitPlayer.Character["Right Arm"], false)

end)

spawn(function()

SetLocked(hitPlayer.Character["Left Arm"], false)

end)

spawn(function()

SetLocked(hitPlayer.Character["Right Leg"], false)

end)

spawn(function()

SetLocked(hitPlayer.Character["Left Leg"], false)

end)

spawn(function()

SetCollision(hitPlayer.Character.Torso, true)

end)

spawn(function()

SetCollision(hitPlayer.Character["Right Arm"], true)

end)

spawn(function()

SetCollision(hitPlayer.Character["Left Arm"], true)

end)

spawn(function()

SetCollision(hitPlayer.Character["Right Leg"], true)

end)

spawn(function()

SetCollision(hitPlayer.Character["Left Leg"], true)

end)

end)

wait(0.3)

           

            

            isBusy = false

  

    else

        

        failed()

        wait(0.4)

            isBusy = false

    end

end

local args = {

    "Remove",

    {

        knfe.Handle

    }

}

_(args)

knfe:Destroy()

RequestCommand:InvokeServer(";hat me 18420472059")

task.wait(1)

local knife = character:FindFirstChild("Accessory (KNIF4ELERFTAccessory)")

spawn(function()

    local args = {

        "Remove",

        {

            knife.Handle.SpecialMesh

        }

    }

    _(args)

end)

spawn(function()

    AddMesh(knife.Handle)

end)

spawn(function()

    SetMesh(knife.Handle, "18114736783", Vector3.new(0, 0.50,-0.25))

end)

spawn(function()

    SetTexture(knife.Handle, "80617091791234")

end)

ready = true

UserInputService.TouchTap:Connect(function(input, gameProcessed)

    if gameProcessed then return end

if ready == true then

    attacke()

end

end)

end

	end)
--
local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Plane"
button.Position = UDim2.new(0.5,3,0,132)
button.Size = UDim2.new(0.5,-3,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Plane"
button.TextColor3 = whit
button.TextWrapped = true
button.MouseButton1Down:connect(function()
 local player = game.Players.LocalPlayer
local char = player.Character
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";noclip me 30 ;invisible me ")

local tool

-- หา SyncAPI Tool
for i,v in pairs(player:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end
for i,v in pairs(game.ReplicatedStorage:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end

local remote = tool.SyncAPI.ServerEndpoint

local function _(args)
	remote:InvokeServer(unpack(args))
end

function SetCollision(part,boolean)
	local args = {
		[1] = "SyncCollision",
		[2] = {
			[1] = {
				["Part"] = part,
				["CanCollide"] = boolean
			}
		}
	}
	_(args)
end

function SetAnchor(boolean,part)
	local args = {
		[1] = "SyncAnchor",
		[2] = {
			[1] = {
				["Part"] = part,
				["Anchored"] = boolean
			}
		}
	}
	_(args)
end

function CreatePart(cf,parent)
	local args = {
		[1] = "CreatePart",
		[2] = "Normal",
		[3] = cf,
		[4] = parent
	}
	_(args)
end

function Resize(part,size,cf)
	local args = {
		[1] = "SyncResize",
		[2] = {
			[1] = {
				["Part"] = part,
				["CFrame"] = cf,
				["Size"] = size
			}
		}
	}
	_(args)
end

function AddMesh(part)
	local args = {
		[1] = "CreateMeshes",
		[2] = {
			[1] = {
				["Part"] = part
			}
		}
	}
	_(args)
end

function MeshResize(part,size)
	local args = {
		[1] = "SyncMesh",
		[2] = {
			[1] = {
				["Part"] = part,
				["Scale"] = size
			}
		}
	}
	_(args)
end

function Weld(part1, part2,lead)
	local args = {
		[1] = "CreateWelds",
		[2] = {
			[1] = part1,
			[2] = part2
		},
		[3] = lead
	}
	_(args)
end

function SetLocked(part,boolean)
	local args = {
		[1] = "SetLocked",
		[2] = {
			[1] = part
		},
		[3] = boolean
	}
	_(args)
end

-- ฟังก์ชันหลัก ปรับตัวละคร
function Thomas(player)
	-- ลบ hats/accessories ทั้งในตัวละคร
	for _, accessory in ipairs(char:GetChildren()) do
		if accessory:IsA("Accessory") then
			accessory:Destroy()
		end
	end

	-- ลบ hats/accessories ใน Backpack
	for _, item in ipairs(player.Backpack:GetChildren()) do
		if item:IsA("Accessory") then
			item:Destroy()
		end
	end

	-- สร้าง Part ใหม่
	SetAnchor(true,char.HumanoidRootPart)
	CreatePart(char.HumanoidRootPart.CFrame,char)
	local myPart = char.Part
	SetCollision(myPart,false)
	SetLocked(myPart,false)
	Resize(myPart,Vector3.new(5,5,10),char.HumanoidRootPart.CFrame)
	SetLocked(char.HumanoidRootPart,false)
	Weld(myPart,char.HumanoidRootPart,myPart)
	SetAnchor(false,myPart)
	AddMesh(myPart)
	MeshResize(myPart,Vector3.new(0.3,0.3,0.3))

	-- ตั้ง MeshId
	local meshId = "11714421849"
	local argsMesh = {
		[1] = "SyncMesh",
		[2] = {
			[1] = {
				["Part"] = myPart,
				["MeshId"] = "rbxassetid://"..meshId
			}
		}
	}
	remote:InvokeServer(unpack(argsMesh))

	char.Humanoid.WalkSpeed = 0

	-- RenderStepped ปรับ CanCollide และ WalkSpeed
	game:GetService("RunService").RenderStepped:Connect(function()
		for i,v in char:GetDescendants() do
			if v:IsA("BasePart") then
				v.CanCollide = false
			end
		end
		char.Humanoid.WalkSpeed = 0
	end)
end

Thomas(player)
end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Lance"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Lance"
	button.TextColor3 = whit
	button.TextWrapped = true
	 	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 1363011928")

	end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Lightsaber"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Lightsaber"
	button.TextColor3 = whit
	 	button.MouseButton1Down:connect(function()
		
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommandSilent:InvokeServer(";gear me 1208300505")




	end)
--
local button = Instance.new("TextButton")
	button.Parent = ws
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Master Hand"
	button.TextColor3 = whit
	button.TextWrapped = true
	 	button.MouseButton1Down:connect(function()
 local player = game.Players.LocalPlayer
			local char = player.Character
			local tool
			for i,v in player:GetDescendants() do
				if v.Name == "SyncAPI" then
					tool = v.Parent
				end
			end
			for i,v in game.ReplicatedStorage:GetDescendants() do
				if v.Name == "SyncAPI" then
					tool = v.Parent
				end
			end
			--craaa
			remote = tool.SyncAPI.ServerEndpoint
local sc = remote
			function _(args)
				remote:InvokeServer(unpack(args))
			end
			function SetCollision(part,boolean)
				local args = {
					[1] = "SyncCollision",
					[2] = {
						[1] = {
							["Part"] = part,
							["CanCollide"] = boolean
						}
					}
				}
				_(args)
			end
			function SetAnchor(boolean,part)
				local args = {
					[1] = "SyncAnchor",
					[2] = {
						[1] = {
							["Part"] = part,
							["Anchored"] = boolean
						}
					}
				}
				_(args)
			end
function CreatePart(cf,parent)
	local args = {
		[1] = "CreatePart",
		[2] = "Normal",
		[3] = cf,
		[4] = parent
	}
	_(args)
	

	task.wait(0.1)
	for _, obj in ipairs(parent:GetChildren()) do
		if obj:IsA("BasePart") and (obj.Position - cf.Position).Magnitude < 1 then
			return obj
		end
	end
end


			function DestroyPart(part)
				local args = {
					[1] = "Remove",
					[2] = {
						[1] = part
					}
				}
				_(args)
			end
			function MovePart(part,cf)
				local args = {
					[1] = "SyncMove",
					[2] = {
						[1] = {
							["Part"] = part,
							["CFrame"] = cf
						}
					}
				}
				_(args)
			end
			function Resize(part,size,cf)
				local args = {
					[1] = "SyncResize",
					[2] = {
						[1] = {
							["Part"] = part,
							["CFrame"] = cf,
							["Size"] = size
						}
					}
				}
				_(args)
			end
			function AddMesh(part)
				local args = {
					[1] = "CreateMeshes",
					[2] = {
						[1] = {
							["Part"] = part
						}
					}
				}
				_(args)
			end
	
			function SetMesh(part,meshid)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["MeshId"] = "rbxassetid://"..meshid
						}
					}
				}
				_(args)
			end
			function SetTexture(part, texid)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["TextureId"] = "rbxassetid://"..texid
						}
					}
				}
				_(args)
			end
			function SetName(part, stringg)
				local args = {
					[1] = "SetName",
					[2] = {
						[1] = part
					},
					[3] = stringg
				}
	
				_(args)
			end
			function MeshResize(part,size)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["Scale"] = size
						}
					}
				}
				_(args)
			end
			function Weld(part1, part2,lead)
				local args = {
					[1] = "CreateWelds",
					[2] = {
						[1] = part1,
						[2] = part2
					},
					[3] = lead
				}
				_(args)
	
			end
			function SetLocked(part,boolean)
				local args = {
					[1] = "SetLocked",
					[2] = {
						[1] = part
					},
					[3] = boolean
				}
				_(args)
			end
			function SetTransparency(part,int)
				local args = {
					[1] = "SyncMaterial",
					[2] = {
						[1] = {
							["Part"] = part,
							["Transparency"] = int
						}
					}
				}
				_(args)
			end
			function reflect(part,int)
				local args = {
					[1] = "SyncMaterial",
					[2] = {
						[1] = {
							["Part"] = part,
							["Reflectance"] = int
						}
					}
				}
				_(args)
			end
			function CreateSpotlight(part)
				local args = {
					[1] = "CreateLights",
					[2] = {
						[1] = {
							["Part"] = part,
							["LightType"] = "SpotLight"
						}
					}
				}
				_(args)
			end
			function SyncLighting(part,brightness)
				local args = {
					[1] = "SyncLighting",
					[2] = {
						[1] = {
							["Part"] = part,
							["LightType"] = "SpotLight",
							["Brightness"] = brightness
						}
					}
				}
				_(args)
			end
			function Color(part,color)
				local args = {
					[1] = "SyncColor",
					[2] = {
						[1] = {
							["Part"] = part,
							["Color"] = color --[[Color3]],
							["UnionColoring"] = false
						}
					}
				}
				_(args)
			end
			function SpawnDecal(part,side)
				local args = {
					[1] = "CreateTextures",
					[2] = {
						[1] = {
							["Part"] = part,
							["Face"] = side,
							["TextureType"] = "Decal"
						}
					}
				}
	
				_(args)
			end
			function AddDecal(part,asset,side)
				local args = {
					[1] = "SyncTexture",
					[2] = {
						[1] = {
							["Part"] = part,
							["Face"] = side,
							["TextureType"] = "Decal",
							["Texture"] = "rbxassetid://".. asset
						}
					}
				}
				_(args)
			end






local head = player.Character and player.Character:FindFirstChild("Head")
head.Anchored = true
	local targetCFrame = head.CFrame + Vector3.new(0, 20, 0)
local Cloud = CreatePart(targetCFrame, workspace)
	SetLocked(Cloud, true)
	SetCollision(Cloud, false)
	Color(Cloud, Color3.fromRGB(163, 162, 164))
	AddMesh(Cloud)
	SetMesh(Cloud, "465982742")
	MeshResize(Cloud, Vector3.new(0.01, 0.01, 0.01))
  reflect(Cloud, 0.5)
	Weld(Cloud, char.HumanoidRootPart, char.HumanoidRootPart)
	SetAnchor(false, Cloud)
head.Anchored = false

local function rainFromCloud()
    while true do
        wait(0.1) 
        if Cloud and Cloud.Parent then
            local basePos = Cloud.Position
            local offsetX = math.random(-3, 3) 
            local offsetZ = math.random(-3, 3)
            

            local spawnCFrame = CFrame.new(
                basePos.X + offsetX,
                basePos.Y - 2, 
                basePos.Z + offsetZ
            )

            spawn(function()
local lol = CFrame.new(0,0,0)
                local newPart = remote:InvokeServer("CreatePart","Normal",lol,Cloud)
                if not newPart then return end

                spawn(function()
                    SetName(newPart, " ")
                   end)
                  spawn(function()
                    SetCollision(newPart, false)
                     end)
                    spawn(function()
                    SetAnchor(false, newPart)
                end)

                spawn(function()
                    Resize(newPart, Vector3.new(2, 2, 0.000001), spawnCFrame) 
                end)

                spawn(function()
                    SpawnDecal(newPart, Enum.NormalId.Front)
                    end)
                spawn(function()
                    AddDecal(newPart, "0", Enum.NormalId.Front)
                    end)
                spawn(function()
                    SpawnDecal(newPart, Enum.NormalId.Back)
                    end)
                spawn(function()
                    AddDecal(newPart, "0", Enum.NormalId.Back)
                end)
spawn(function()

     local randomAngle = math.random(0, 1) == 0 and math.rad(-30) or math.rad(30)
MovePart(newPart, spawnCFrame * CFrame.Angles(0, 0, randomAngle))
end)
                spawn(function()
                    SetTransparency(newPart, 1) 
                end)
                end)
            end
            wait(0.05)
      end
    end


coroutine.wrap(rainFromCloud)()
end)


local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Empty"
button.Position = UDim2.new(0,0,0,165)
button.Size = UDim2.new(0.5,0,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Snowball"
button.TextColor3 = whit
button.MouseButton1Down:connect(function()
 local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 19328185")

end)

local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Staff"
button.Position = UDim2.new(0.5,3,0,165)
button.Size = UDim2.new(0.5,-3,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Staff"
button.TextColor3 = whit
button.MouseButton1Down:connect(function()
 local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 47262951")

end)

local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Empty"
button.Position = UDim2.new(0,0,0,198)
button.Size = UDim2.new(0.5,0,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Empty"
button.TextColor3 = whit
button.TextWrapped = true
button.MouseButton1Down:connect(function()

end)
--
local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Techno Gauntlet"
button.Position = UDim2.new(0.5,3,0,198)
button.Size = UDim2.new(0.48,0,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Techno Gauntlet"
button.TextColor3 = whit
button.TextWrapped = true
button.MouseButton1Down:connect(function()
 local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 1363010936")

end)

local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "xBow"
button.Position = UDim2.new(0.5,3,0,231)
button.Size = UDim2.new(0.5,-3,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "xBow"
button.TextColor3 = whit
button.TextWrapped = true
button.MouseButton1Down:connect(function()
 local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 2136389582")

end)

local button = Instance.new("TextButton")
button.Parent = ws
button.BackgroundColor3 = blak
button.BorderColor3 = rede
button.BorderSizePixel = 3
button.Name = "Wand"
button.Position = UDim2.new(0,0,0,231)
button.Size = UDim2.new(0.5,0,0,30)
button.ZIndex = 2
button.Font = tef
button.FontSize = "Size14"
button.Text = "Wand"
button.TextColor3 = whit
button.TextWrapped = true
button.MouseButton1Down:connect(function()
 local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";gear me 154727343")

end)

local title = Instance.new("TextLabel")
	title.Parent = gt
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Gear/Tools"
	title.TextColor3 = whit
local title = Instance.new("TextLabel")
	title.Parent = ws
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Weapon Scripts"
	title.TextColor3 = whit
-- Page 2 End --




-- Misc --
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Become Owner in Personal Server"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Become Owner [PS]"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

RequestCommand:InvokeServer(";Notice me You has been PermRanked To !")

	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Disco Fog"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Disco Fog"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";fog 350")
while true do
    RequestCommandSilent:InvokeServer(";fogcolor red")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor blue")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor green")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor yellow")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor pink")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor orange")
    wait(2)
    RequestCommandSilent:InvokeServer(";fogcolor purple")
    wait(2)
    end
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Fencing Restore"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Fencing Restore"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
local player = game.Players.LocalPlayer
local char = player.Character
local backpack = player.Backpack

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local storedCharacter = character
local originalParent = storedCharacter.Parent

storedCharacter.Parent = nil

		local player = game.Players.LocalPlayer
		local char = player.Character
		local backpack = player.Backpack
	
		local function getf3x()
			for _, v in ipairs(backpack:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
			for _, v in ipairs(char:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
	
			return nil
		end
	
		local f3x = getf3x()
		if not f3x then
			warn("you dont have f3x skid")
		end
		local syncapi = f3x.SyncAPI
		local serverendpoint = syncapi.ServerEndpoint
	
		local function delete(part)
			local args = {
				[1] = "Remove",
				[2] = {
					[1] = part
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
	
		local function deleteall()
			for _, v in ipairs(workspace:GetDescendants()) do
				if v:IsA("BasePart") or v:IsA("UnionOperation") then
					spawn(function()
						delete(v)
					end)
				end
			end
		end
	
		deleteall()

local function getf3x()
	for _, v in ipairs(backpack:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	for _, v in ipairs(char:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	return nil
end

local f3x = getf3x()
if not f3x then
	warn("you dont have f3x skid")
end
local syncapi = f3x.SyncAPI
local serverendpoint = syncapi.ServerEndpoint

function _(args)
        serverendpoint:InvokeServer(unpack(args))
    end

		local function addlight(part, brightness)
			local args = {
				[1] = "CreateLights",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "PointLight"
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
		
		local function synclight(part, brightness)
			local args = {
				[1] = "SyncLighting",
				[2] = {
					[1] = {
						["Part"] = part,
						["LightType"] = "PointLight",
						["Range"] = 60,
						["Color"] = Color3.new(1, 0, 0)
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end

local function fire(part) 
    
    local argsCreate = {
        [1] = "CreateDecorations",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire"
            }
        }
    }

   
    local argsSync = {
        [1] = "SyncDecorate",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire",
                ["Size"] = 30,
                ["Heat"] = 9,
                ["Color"] = Color3.fromRGB(255, 0, 0), 
                ["SecondaryColor"] = Color3.fromRGB(255, 0, 0) 
            } 
        } 
    }

    
    _(argsCreate)
    _(argsSync)
end
function MovePart(part, cf)
    local args = {
        "SyncMove",
        {
            {
                Part = part,
                CFrame = cf
            }
        }
    }
    _(args)
end

local function resize(part, size, cf)
	local args = {
		"SyncResize",
		{
			{
				Part = part,
				CFrame = cf,
				Size = size
			}
		}
	}
	_(args)
end

    function SetTrans(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Transparency"] = int
                }
            }
        }
        _(args)
    end

local function mat(part, mate)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Material = mate
			}
		}
	}
	_(args)
end

local function transparency(part, trans)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Transparency = trans
			}
		}
	}
	_(args)
end

local function color(part, color)
	local args = {
		"SyncColor",
		{
			{
				Part = part,
				Color = color,
				UnionColoring = false
			}
		}
	}
	_(args)
end

local function syncmeshid(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				MeshId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end

local function makemesh(part)
	local args = {
		"CreateMeshes",
		{
			{
				Part = part
			}
		}
	}
	_(args)
end

local function syncmeshsize(part, vectora)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				Scale = vectora
			}
		}
	}
	_(args)
end

local function syncmeshtexture(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				TextureId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end

local function name(part, stringa)
	local args = {
		"SetName",
		{ part },
		stringa
	}
	_(args)
end

local function lock(part, boolean)
	local args = {
		"SetLocked",
		{ part },
		boolean
	}
	_(args)
end



local function setcollision(part, booleana)
	local args = {
		"SyncCollision",
		{
			{
				Part = part,
				CanCollide = booleana
			}
		}
	}
	_(args)
end

local function setanchor(part, boolean)
	local args = {
		"SyncAnchor",
		{
			{
				Part = part,
				Anchored = boolean
			}
		}
	}
	_(args)
end

local function createdecal(part, side)
	local args = {
		"CreateTextures",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal"
			}
		}
	}
	_(args)
end

local function setdecal(part, asset, side)
	local args = {
		"SyncTexture",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal",
				Texture = "rbxassetid://" .. asset
			}
		}
	}
	_(args)
end

		function toptexturecreate(part)
		local args = {
    [1] = "CreateTextures",
    [2] = {
        [1] = {
            ["Part"] = part,
            ["Face"] = Enum.NormalId.Top,
            ["TextureType"] = "Texture"
        }
    }
}

_(args)
		end
		function toptextureadd(part)
			local args = {
				[1] = "SyncTexture",
				[2] = {
					[1] = {
						["Part"] = part,
						["Face"] = Enum.NormalId.Top,
						["TextureType"] = "Texture",
						["Texture"] = "rbxassetid://13199422086",
						["StudsPerTileV"] = 2,
						["StudsPerTileU"] = 2
					}
				}
			}
			_(args)
		end

local function RealmV2()
	local position = CFrame.new(0, 0, 0)
	local base = serverendpoint:InvokeServer("CreatePart", "Normal", position,workspace.Terrain)
	resize(base, Vector3.new(1000, 1, 1000), position)
     toptexturecreate(base)
    toptextureadd(base)
  color(base, Color3.fromRGB(39, 70, 45))

end
local function unanchorall()
	for _, v in ipairs(workspace:GetDescendants()) do
		if v:IsA("BasePart") or v:IsA("UnionOperation") then
			spawn(function()
        lock(v, false)
				setanchor(false, v)
			end)
		end
	end
end

local function realm()
	unanchorall()
	RealmV2()
end
realm()
wait(1)
storedCharacter.Parent = game.workspace
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Leaderstat Add"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Leaderstat Add"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		while true do
wait(.1)
game.Players.LocalPlayer.leaderstats:FindFirstChild(frame.Settings.Page2["Leaderstat Name"].TextBox.Text).Value = game.Players.LocalPlayer.leaderstats:FindFirstChild(frame.Settings.Page2["Leaderstat Name"].TextBox.Text)+game.Players.LocalPlayer.leaderstats:FindFirstChild(frame.Settings.Page2["Leaderstat Amount"].TextBox.Text)	
end
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Leaderstat Change"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Leaderstat Change"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
game.Players.LocalPlayer.leaderstats:FindFirstChild(frame.Settings.Page2["Leaderstat Name"].TextBox.Text)game.Players.LocalPlayer.leaderstats:FindFirstChild(frame.Settings.Page2["Leaderstat Amount"].TextBox.Text)	

	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Play Music"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Play Music"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

    local musicid = game:GetService("CoreGui").CoolGui.Frame.Settings.Page1["Music ID"].TextBox.text
    local pitch4music = game:GetService("CoreGui").CoolGui.Frame.Settings.Page1["Music Pitch"].TextBox.text

    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";music  " .. musicid  .. "  ;volume inf ;pitch " .. pitch4music)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Restore Skybox"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Restore Skybox"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";time 10")

local player = game.Players.LocalPlayer
		local char = player.Character or player.CharacterAdded:Wait()
		local tool
	
		for _, v in pairs(player:GetDescendants()) do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
	
		for _, v in pairs(game.ReplicatedStorage:GetDescendants()) do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
	
		if not tool then return end
	
		local remote = tool.SyncAPI.ServerEndpoint
	
		local function invoke(args)
			remote:InvokeServer(unpack(args))
		end
	
		local function RemovePart(part)
			invoke({
				"Remove",
				{ part }
			})
		end
	
		local function DeleteSkyMesh()
			for _, v in pairs(workspace:GetDescendants()) do
				if v:IsA("BasePart") then
					for _, child in pairs(v:GetChildren()) do
						if (child:IsA("SpecialMesh") or child:IsA("Mesh")) 
							and tostring(child.MeshId):find("111891702759441") then
							RemovePart(v)
						end
					end
				end
			end
		end
	
		DeleteSkyMesh()
    

	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Steal Player Points"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Starman"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local player = game.Players.LocalPlayer
	local char = player.Character or player.CharacterAdded:Wait()
	local tool

	for i, v in pairs(player:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
		end
	end

	for i, v in pairs(game.ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
		end
	end

	local remote = tool.SyncAPI.ServerEndpoint

	function _(args)
		remote:InvokeServer(unpack(args))
	end



	local RunService = game:GetService("RunService")
	local Players = game:GetService("Players")
	local player = Players.LocalPlayer
	local character = player.Character or player.CharacterAdded:Wait()
	character.Humanoid.WalkSpeed='80'


	local function light(part,color)


		local createArgs = {
			"CreateLights",
			{
				{
					Part = part,
					LightType = "PointLight"
				}
			}
		}


		local syncArgs = {
			"SyncLighting",
			{
				{
					Part = part,
					LightType = "PointLight",
					Color = color,
					Brightness = 8,
					Range = 20,
				}
			}
		}

		_(createArgs)
		_(syncArgs)
	end

	function SetCollision(part, boolean)
		local args = {
			[1] = "SyncCollision",
			[2] = {
				[1] = {
					["Part"] = part,
					["CanCollide"] = boolean
				}
			}
		}
		_(args)
	end

	function SetAnchor(boolean, part)
		local args = {
			[1] = "SyncAnchor",
			[2] = {
				[1] = {
					["Part"] = part,
					["Anchored"] = boolean
				}
			}
		}
		_(args)
	end

	function CreatePart(cf, parent)
		local args = {
			[1] = "CreatePart",
			[2] = "Normal",
			[3] = cf,
			[4] = parent
		}
		_(args)
	end

	function Resize(part, size, cf)
		local args = {
			[1] = "SyncResize",
			[2] = {
				[1] = {
					["Part"] = part,
					["CFrame"] = cf,
					["Size"] = size
				}
			}
		}
		_(args)
	end

	function AddMesh(part)
		local args = {
			[1] = "CreateMeshes",
			[2] = {
				[1] = {
					["Part"] = part
				}
			}
		}
		_(args)
	end

	function SetMesh(part, meshid)
		local args = {
			[1] = "SyncMesh",
			[2] = {
				[1] = {
					["Part"] = part,
					["MeshId"] = "rbxassetid://" .. meshid
				}
			}
		}
		_(args)
	end

	function DestroyPart(part)
		local args = {
			[1] = "Remove",
			[2] = {
				[1] = part
			}
		}
		remote:InvokeServer(unpack(args))
	end

	function SetTexture(part, texid)
		local args = {
			[1] = "SyncMesh",
			[2] = {
				[1] = {
					["Part"] = part,
					["TextureId"] = "rbxassetid://" .. texid
				}
			}
		}
		_(args)
	end

	function SetTrans(part,int)
		local args = {
			[1] = "SyncMaterial",
			[2] = {
				[1] = {
					["Part"] = part,
					["Transparency"] = int
				}
			}
		}
		_(args)
	end

	function SetMaterial(part,int)
		local args = {
			[1] = "SyncMaterial",
			[2] = {
				[1] = {
					["Part"] = part,
					["Material"] = int
				}
			}
		}
		_(args)
	end

	function MeshResize(part, size)
		local args = {
			[1] = "SyncMesh",
			[2] = {
				[1] = {
					["Part"] = part,
					["Scale"] = size
				}
			}
		}
		_(args)
	end

	function SpawnDecal(part,side)
		local args = {
			[1] = "CreateTextures",
			[2] = {
				[1] = {
					["Part"] = part,
					["Face"] = side,
					["TextureType"] = "Decal"
				}
			}
		}
		_(args)
	end

	function AddDecal(part,asset,side)
		local args = {
			[1] = "SyncTexture",
			[2] = {
				[1] = {
					["Part"] = part,
					["Face"] = side,
					["TextureType"] = "Decal",
					["Texture"] = "rbxassetid://".. asset
				}
			}
		}
		_(args)
	end

	function SetName(part, stringg)
		local args = {
			[1] = "SetName",
			[2] = {
				[1] = workspace.Part
			},
			[3] = stringg
		}
		_(args)
	end

	function Color(part, color3)
		local args = {
			[1] = "SyncColor",
			[2] = {
				[1] = {
					["Part"] = part,
					["Color"] = color3
				}
			}
		}
		_(args)
	end

	audio=Instance.new('Sound',game.Workspace)
	audio.SoundId='rbxassetid://182755256'
	audio.Volume=3
	audio:Play()
	spawn(function()
		wait(3)
		audio:Destroy()
	end)



	local Players = game:GetService("Players")
	local RunService = game:GetService("RunService")
	local LocalPlayer = Players.LocalPlayer
	local ReplicatedStorage = game:GetService("ReplicatedStorage")

	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	local KILL_RANGE = 10 
	local FLING_RANGE = 10 


	local player = game.Players.LocalPlayer
	local char = player.Character
	local tool
	for _, v in player:GetDescendants() do
		if v.Name == "SyncAPI" then
			tool = v.Parent
		end
	end
	for _, v in game.ReplicatedStorage:GetDescendants() do
		if v.Name == "SyncAPI" then
			tool = v.Parent
		end
	end

	local remote = tool.SyncAPI.ServerEndpoint

	function _(args)
		remote:InvokeServer(unpack(args))
	end




	function KillTarget(target)
		if target and target.Character then
			local head = target.Character:FindFirstChild("Head")
			if head then
				local args = {
					[1] = "SetLocked",
					[2] = { [1] = head },
					[3] = false
				}
				_(args)
				task.wait(0.1)
				local args2 = {
					[1] = "Remove",
					[2] = { [1] = head }
				}
				_(args2)
			end
		end
	end

	local function checkNearbyPlayers()
		if not LocalPlayer.Character or not LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
			return
		end

		local myPosition = LocalPlayer.Character.HumanoidRootPart.Position

		for _, player in ipairs(Players:GetPlayers()) do
			if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
				local distance = (player.Character.HumanoidRootPart.Position - myPosition).Magnitude

				if distance <= KILL_RANGE then
					local ReplicatedStorage = game:GetService("ReplicatedStorage")
					local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
					RequestCommand:InvokeServer(";fling "..player.Name)
					KillTarget(player)
					audio=Instance.new('Sound',game.Workspace)
					audio.SoundId='rbxassetid://138702491'
					audio.Volume=3
					audio:Play()
					spawn(function()
						wait(1)
						audio:Destroy()
					end)
				end
			end
		end
	end


	spawn(function()
		while true do
			local success, err = pcall(checkNearbyPlayers)
			if not success then
				warn("Error in checkNearbyPlayers: "..tostring(err))
			end
			task.wait(0.5)
		end
	end)


	local colorOptions = {
		Color3.fromRGB(255, 0, 255),
		Color3.fromRGB(0, 0, 255),
		Color3.fromRGB(255, 0, 0),
		Color3.fromRGB(0, 255, 0),
		Color3.fromRGB(255, 255, 0)
	}

	while true do
		local character = player.Character or player.CharacterAdded:Wait()
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		local torso = character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso")
		local arm = character:FindFirstChild("RightUpperArm") or character:FindFirstChild("Right Arm")
		local arm2 = character:FindFirstChild("LeftUpperArm") or character:FindFirstChild("Left Arm")
		local leg = character:FindFirstChild("LeftUpperLeg") or character:FindFirstChild("Left Leg")
		local leg2 = character:FindFirstChild("RightUpperLeg") or character:FindFirstChild("Right Leg")
		local head = character:FindFirstChild("Head")

		if torso and arm and arm2 and leg and leg2 and head then
			local currentColor = colorOptions[math.random(1, #colorOptions)]

			-- Base effects always apply
			spawn(function()
				light(torso, currentColor)
			end)
			spawn(function() Color(arm, currentColor) end)
			spawn(function() Color(arm2, currentColor) end)
			spawn(function() Color(leg, currentColor) end)
			spawn(function() Color(leg2, currentColor) end)
			spawn(function() Color(torso, currentColor) end)

			-- SIMPLE BUT EFFECTIVE MOVEMENT CHECK
			if humanoid and (humanoid.MoveDirection.Magnitude > 0 or torso.AssemblyLinearVelocity.Magnitude > 1) then
				-- Left arm trail (original code)
				spawn(function()
					heh = CFrame.new(0, 0, 0)
					local leftClone = remote:InvokeServer("CreatePart", "Normal", heh, character)
					leftClone.CanCollide = false
					spawn(function() Resize(leftClone, arm2.Size, arm2.CFrame) end)
					spawn(function() Color(leftClone, currentColor) end)
					spawn(function() SetMaterial(leftClone, Enum.Material.Neon) end)
					spawn(function() SetCollision(leftClone, false) end)
					SetTrans(leftClone, 0.3)
					wait(0.05)
					SetTrans(leftClone, 0.4)
					wait(0.05)
					SetTrans(leftClone, 0.5)
					wait(0.05)
					SetTrans(leftClone, 0.6)
					wait(0.05)
					SetTrans(leftClone, 0.8)
					wait(0.05)
					SetTrans(leftClone, 1)
					wait(0.05)
					DestroyPart(leftClone)
				end)

				-- Left leg trail (original code)
				spawn(function()
					heh = CFrame.new(0, 0, 0)
					local leftClone = remote:InvokeServer("CreatePart", "Normal", heh, character)
					leftClone.CanCollide = false
					spawn(function() Resize(leftClone, leg.Size, leg.CFrame) end)
					spawn(function() Color(leftClone, currentColor) end)
					spawn(function() SetMaterial(leftClone, Enum.Material.Neon) end)
					spawn(function() SetCollision(leftClone, false) end)
					SetTrans(leftClone, 0.3)
					wait(0.05)
					SetTrans(leftClone, 0.4)
					wait(0.05)
					SetTrans(leftClone, 0.5)
					wait(0.05)
					SetTrans(leftClone, 0.6)
					wait(0.05)
					SetTrans(leftClone, 0.8)
					wait(0.05)
					SetTrans(leftClone, 1)
					wait(0.05)
					DestroyPart(leftClone)
				end)


				spawn(function()
					heh = CFrame.new(0, 0, 0)
					local leftClone = remote:InvokeServer("CreatePart", "Normal", heh, character)
					leftClone.CanCollide = false
					spawn(function() Resize(leftClone, torso.Size, torso.CFrame) end)
					spawn(function() Color(leftClone, currentColor) end)
					spawn(function() SetMaterial(leftClone, Enum.Material.Neon) end)
					spawn(function() SetCollision(leftClone, false) end)
					SetTrans(leftClone, 0.3)
					wait(0.05)
					SetTrans(leftClone, 0.4)
					wait(0.05)
					SetTrans(leftClone, 0.5)
					wait(0.05)
					SetTrans(leftClone, 0.6)
					wait(0.05)
					SetTrans(leftClone, 0.8)
					wait(0.05)
					SetTrans(leftClone, 1)
					wait(0.05)
					DestroyPart(leftClone)
				end)


				spawn(function()
					heh = CFrame.new(0, 0, 0)
					local leftClone = remote:InvokeServer("CreatePart", "Normal", heh, character)
					leftClone.CanCollide = false
					spawn(function() Resize(leftClone, leg2.Size, leg2.CFrame) end)
					spawn(function() Color(leftClone, currentColor) end)
					spawn(function() SetMaterial(leftClone, Enum.Material.Neon) end)
					spawn(function() SetCollision(leftClone, false) end)
					SetTrans(leftClone, 0.3)
					wait(0.05)
					SetTrans(leftClone, 0.4)
					wait(0.05)
					SetTrans(leftClone, 0.5)
					wait(0.05)
					SetTrans(leftClone, 0.6)
					wait(0.05)
					SetTrans(leftClone, 0.8)
					wait(0.05)
					SetTrans(leftClone, 1)
					wait(0.05)
					DestroyPart(leftClone)
				end)


				spawn(function()
					heh = CFrame.new(0, 0, 0)
					local right = remote:InvokeServer("CreatePart", "Normal", heh, character)
					right.CanCollide = false
					spawn(function() Resize(right, arm.Size, arm.CFrame) end)
					spawn(function()
						Color(right, currentColor)
					end)
					spawn(function() 
						SetMaterial(right, Enum.Material.Neon) 
					end)
					spawn(function() 
						SetCollision(right, false)
					end)
					SetTrans(right, 0.3)
					wait(0.05)
					SetTrans(right, 0.4)
					wait(0.05)
					SetTrans(right, 0.5)
					wait(0.05)
					SetTrans(right, 0.6)
					wait(0.05)
					SetTrans(right, 0.8)
					wait(0.05)
					SetTrans(right, 1)
					wait(0.05)
					DestroyPart(right)
				end)
			end
		end
		wait(0.1)
	end
    
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Mr Bean"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Town of Robloxia Map"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")

local rq = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

local player = game.Players.LocalPlayer

local char = player.Character

local backpack = player.Backpack

local function getf3x()

	for _, v in ipairs(backpack:GetChildren()) do		if v:FindFirstChild("SyncAPI") then

			return v

		end

	end

	for _, v in ipairs(char:GetChildren()) do

		if v:FindFirstChild("SyncAPI") then

			return v

		end

	end

	return nil

end

local f3x = getf3x()

if not f3x then

	warn("you dont have f3x skid")

end

local syncapi = f3x.SyncAPI

local serverendpoint = syncapi.ServerEndpoint

local function _(args)

serverendpoint:InvokeServer(unpack(args))

end

local function createtexture(part, side)

	local args = {

		"CreateTextures",

		{

			{

				Part = part,

				Face = side,

				TextureType = "Texture"

			}

		}

	}

	_(args)

end

function mate(part,int)

        local args = {

            [1] = "SyncMaterial",

            [2] = {

                [1] = {

                    ["Part"] = part,

                    ["Material"] = int

                }

            }

        }

        _(args)

    end

    function Resize(part,size,cf)

        local args = {

            [1] = "SyncResize",

            [2] = {

                [1] = {

                    ["Part"] = part,

                    ["CFrame"] = cf,

                    ["Size"] = size

                }

            }

        }

        _(args)

    end

function floor(part, face)

			local args = {

				[1] = "SyncTexture",

				[2] = {

					[1] = {

						["Part"] = part,

						["Face"] = face,

						["TextureType"] = "Texture",

						["Texture"] = "rbxassetid://83901588886686",

						["StudsPerTileV"] = 2,

						["StudsPerTileU"] = 2

					}

				}

			}

			_(args)

		end

function DestroyPart(part)

    local args = {

        [1] = "Remove",

        [2] = {

            [1] = part

        }

    }

    _(args)

end

local function unanchorall()

	for _, v in ipairs(workspace:GetDescendants()) do

		if v:IsA("BasePart") or v:IsA("UnionOperation") then

			spawn(function()

				DestroyPart(v)

			end)

		end

	end

end

local function realm()

rq:InvokeServer(";punish me")

	unanchorall()

	task.wait(1)

 local model_id = "112078610948092"

local imported_model = game:GetObjects("rbxassetid://" .. model_id)[1]

imported_model.Parent = game.Lighting

for _, v in next, imported_model:GetDescendants() do

    pcall(function()

        v.Anchored = true

    end)

end

local plr = game:GetService("Players").LocalPlayer

local f3x_name = "Building Tools"

local destination = workspace

coroutine.wrap(function()

    task.wait(10)

    imported_model.Parent = nil

end)()

function f3xbuildpart(part, cframe, destination, size, transparency, colour, material, collision, fake_part)

local allPartsData = {}

		

table.insert(allPartsData, {

    Type = fake_part:IsA("WedgePart") and "Wedge" or fake_part:IsA("Seat") and "Seat" or fake_part:IsA("VehicleSeat") and "VehicleSeat" or fake_part:IsA("TrussPart") and "Truss" or fake_part:IsA("SpawnLocation") and "Spawn" or

        fake_part.Shape == Enum.PartType.Block and "Normal" or

        fake_part.Shape == Enum.PartType.Ball and "Ball" or

        fake_part.Shape == Enum.PartType.Cylinder and "Cylinder",

    CFrame = fake_part.CFrame,

    Size = fake_part.Size,

    Transparency = fake_part.Transparency,

    Color = fake_part.Color,

    Material = fake_part.Material,

    Collision = fake_part.CanCollide,

    Ref = fake_part,

})

    local sync = plr.Backpack:FindFirstChild(f3x_name).SyncAPI.ServerEndpoint

local partMap = {}

for _, data in ipairs(allPartsData) do

    local created = sync:InvokeServer("CreatePart", data.Type, data.CFrame, destination)

    partMap[data.Ref] = created

end

for _, data in ipairs(allPartsData) do

    local created = partMap[data.Ref]

    if not created then continue end

    spawn(function()

        if data.Size ~= Vector3.new(4,1,2) then

            sync:InvokeServer("SyncResize", {

                { Part = created, CFrame = created.CFrame, Size = data.Size }

            })

        end

        if data.Transparency ~= 0 then

            sync:InvokeServer("SyncMaterial", {

                { Part = created, Transparency = data.Transparency }

            })

        end

        if data.Color ~= BrickColor.new("Medium stone grey").Color then

            sync:InvokeServer("SyncColor", {

                { Part = created, Color = data.Color, UnionColoring = true }

            })

        end

        if data.Material ~= "Plastic" then

            sync:InvokeServer("SyncMaterial", {

                { Part = created, Material = data.Material }

            })

        end

        if data.Collision ~= true then

            sync:InvokeServer("SyncCollision", {

                { Part = created, CanCollide = data.Collision }

            })

        end

        local ref = data.Ref

        local texture = ref:FindFirstChildOfClass("Texture")

        if texture then

            sync:InvokeServer("CreateTextures", {

                { Part = created, Face = texture.Face, TextureType = "Texture" }

            })

            sync:InvokeServer("SyncTexture", {

                { Part = created, Face = texture.Face, TextureType = "Texture", StudsPerTileU = texture.StudsPerTileU, StudsPerTileV = texture.StudsPerTileV, Texture = texture.Texture, Transparency = texture.Transparency }

            })

        end

        local decal = ref:FindFirstChildOfClass("Decal")

        if decal then

            sync:InvokeServer("CreateTextures", {

                { Part = created, Face = decal.Face, TextureType = "Decal" }

            })

            sync:InvokeServer("SyncTexture", {

                { Part = created, Face = decal.Face, TextureType = "Decal", Texture = decal.Texture, Transparency = decal.Transparency }

            })

        end

        local mesh = ref:FindFirstChildOfClass("SpecialMesh")

        if mesh then

            sync:InvokeServer("CreateMeshes", {

                { Part = created }

            })

            sync:InvokeServer("SyncMesh", {

                { Part = created, MeshId = mesh.MeshId, TextureId = mesh.TextureId, Scale = mesh.Scale }

            })

        end

        local light1 = ref:FindFirstChildOfClass("SpotLight")

        if light1 then

            sync:InvokeServer("CreateLights", {

                { Part = created, LightType = "SpotLight" }

            })

            sync:InvokeServer("SyncLighting", {

                { Part = created, LightType = "SpotLight", Color = light1.Color, Range = light1.Range, Face = light1.Face, Angle = light1.Angle, Shadows = light1.Shadows }

            })

        end

        local light2 = ref:FindFirstChildOfClass("PointLight")

        if light2 then

            sync:InvokeServer("CreateLights", {

                { Part = created, LightType = "PointLight" }

            })

            sync:InvokeServer("SyncLighting", {

                { Part = created, LightType = "PointLight", Color = light2.Color, Range = light2.Range, Shadows = light2.Shadows }

            })

              

           end

       end)

    end

end

for _, part in next, imported_model:GetDescendants() do

   local function spawnpart(fn)

			task.spawn(fn)

		end

    if part:IsA("Part") then

        if part.Shape == Enum.PartType.Block then

spawnpart(function()

            f3xbuildpart("Normal", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

        elseif part.Shape == Enum.PartType.Ball then

spawnpart(function()

            f3xbuildpart("Ball", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

        elseif part.Shape == Enum.PartType.Cylinder then

spawnpart(function()

            f3xbuildpart("Cylinder", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

        end

    elseif part:IsA("WedgePart") then

spawnpart(function()

        f3xbuildpart("Wedge", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

    elseif part:IsA("Seat") then

spawnpart(function()

        f3xbuildpart("Seat", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

    elseif part:IsA("TrussPart") then

spawnpart(function()

        f3xbuildpart("Truss", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

    elseif part:IsA("VehicleSeat") then

spawnpart(function()

        f3xbuildpart("VehicleSeat", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

end)

elseif part:IsA("SpawnLocation") then

spawnpart(function()

        f3xbuildpart("Spawn", part.CFrame, destination, part.Size, part.Transparency, part.Color, part.Material, part.CanCollide, part)

      end)

    end

end

task.wait(48)

rq:InvokeServer(";respawn all") 

	

end

realm()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Polaria"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Mr bean iOrb f3x"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local root = char:WaitForChild("HumanoidRootPart")

local tool
for _,v in pairs(player:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
		break
	end
end

if not tool then
	for _,v in pairs(ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
			break
		end
	end
end

if not tool or not tool:FindFirstChild("SyncAPI") then
	error("SyncAPI not found")
end

local remote = tool.SyncAPI.ServerEndpoint

local function invoke(cmd, data)
	pcall(function()
		remote:InvokeServer(cmd, data)
	end)
end

local function createPart(cf)
	return remote:InvokeServer("CreatePart", "Normal", cf, workspace)
end

local function setup(part, size, color, material, trans)
	invoke("SyncResize", {{ Part = part, CFrame = part.CFrame, Size = size }})
	invoke("SyncColor", {{ Part = part, Color = color, UnionColoring = true }})
	invoke("SyncMaterial", {{ Part = part, Material = material, Transparency = trans }})
	invoke("SyncCollision", {{ Part = part, CanCollide = false }})
	invoke("SyncAnchor", {{ Part = part, Anchored = true }})
end

local function mesh(part, meshId, scale)
	invoke("CreateMeshes", {{ Part = part }})
	invoke("SyncMesh", {{
		Part = part,
		MeshId = meshId,
		TextureId = "",
		Scale = scale
	}})
end

local startCF = CFrame.new(root.Position - Vector3.new(0, -60, 0))

local outer = createPart(startCF)
local inner = createPart(startCF)

setup(outer, Vector3.new(0.06,0.06,0.06), Color3.fromRGB(0,170,255), Enum.Material.Plastic, 0.5)
setup(inner, Vector3.new(1,1,1), Color3.new(1,1,1), Enum.Material.Neon, 0)

mesh(outer, "rbxassetid://9274044128", Vector3.new(0.06,0.06,0.06))
mesh(inner, "rbxassetid://12800536037", Vector3.new(1,1,1))

local textPart = Instance.new("Part")
textPart.Size = Vector3.new(1,1,1)
textPart.Transparency = 1
textPart.Anchored = true
textPart.CanCollide = false
textPart.Parent = workspace

local billboard = Instance.new("BillboardGui")
billboard.Size = UDim2.new(0, 260, 0, 40)
billboard.StudsOffset = Vector3.new(0, 3, 0)
billboard.AlwaysOnTop = true
billboard.Parent = textPart

local label = Instance.new("TextLabel")
label.Size = UDim2.new(1,0,1,0)
label.BackgroundTransparency = 1
label.Text = "You an Admin! Level: 4"
label.Font = Enum.Font.Arial
label.TextSize = 20
label.TextColor3 = Color3.fromRGB(22, 96, 148)
label.TextStrokeTransparency = 0
label.Parent = billboard

local clickProxy = Instance.new("Part")
clickProxy.Size = Vector3.new(2,2,2)
clickProxy.Transparency = 1
clickProxy.Anchored = true
clickProxy.CanCollide = false
clickProxy.Parent = workspace

local click = Instance.new("ClickDetector")
click.MaxActivationDistance = 32
click.Parent = clickProxy

local RADIUS = 5.5
local HEIGHT = 2
local SPEED = 0.4
local SMOOTH = 0.25

local angle = 0
local orbiting = true
local lastCF = startCF
local orbitConn

local function deleteBlock()
	if not orbiting then return end
	orbiting = false

	if orbitConn then
		orbitConn:Disconnect()
	end

	task.wait()

	invoke("Remove", { outer })
	invoke("Remove", { inner })

	clickProxy:Destroy()
	textPart:Destroy()
end

click.MouseClick:Connect(deleteBlock)

orbitConn = RunService.Heartbeat:Connect(function(dt)
	if not orbiting then return end

	angle += SPEED * dt

	local pos = root.Position + Vector3.new(
		math.cos(angle) * RADIUS,
		HEIGHT,
		math.sin(angle) * RADIUS
	)

	local cf = CFrame.new(pos) * CFrame.Angles(angle*0.5, angle*0.5, angle*0.5)
	lastCF = lastCF:Lerp(cf, SMOOTH)

	invoke("SyncResize", {{ Part = outer, CFrame = lastCF, Size = Vector3.new(0.06,0.06,0.06) }})
	invoke("SyncResize", {{ Part = inner, CFrame = lastCF, Size = Vector3.new(1,1,1) }})

	clickProxy.CFrame = lastCF
	textPart.CFrame = lastCF
end)

wait(0)

local TweenService = game:GetService("TweenService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local root = char:WaitForChild("HumanoidRootPart")

local tool
for _,v in pairs(player:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
		break
	end
end

if not tool then
	for _,v in pairs(ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
			break
		end
	end
end

if not tool or not tool:FindFirstChild("SyncAPI") then
	error("SyncAPI not found")
end

local remote = tool.SyncAPI.ServerEndpoint

local function invoke(cmd, data)
	pcall(function()
		remote:InvokeServer(cmd, data)
	end)
end

local function createPart(cf)
	return remote:InvokeServer("CreatePart", "Normal", cf, workspace)
end

local function setup(part, size, color, material, trans)
	invoke("SyncResize", {{ Part = part, CFrame = part.CFrame, Size = size }})
	invoke("SyncColor", {{ Part = part, Color = color, UnionColoring = true }})
	invoke("SyncMaterial", {{ Part = part, Material = material, Transparency = trans }})
	invoke("SyncCollision", {{ Part = part, CanCollide = false }})
	invoke("SyncAnchor", {{ Part = part, Anchored = true }})
end

local function mesh(part, meshId, scale)
	invoke("CreateMeshes", {{ Part = part }})
	invoke("SyncMesh", {{
		Part = part,
		MeshId = meshId,
		TextureId = "",
		Scale = scale
	}})
end

local startCF = CFrame.new(root.Position - Vector3.new(0, 60, 0))

local outer = createPart(startCF)
local inner = createPart(startCF)

setup(outer, Vector3.new(0.06,0.06,0.06), Color3.fromRGB(0,170,255), Enum.Material.Plastic, 0.5)
setup(inner, Vector3.new(1,1,1), Color3.new(1,1,1), Enum.Material.Neon, 0)

mesh(outer, "rbxassetid://9274044128", Vector3.new(0.06,0.06,0.06))
mesh(inner, "rbxassetid://12800536037", Vector3.new(1,1,1))

local textPart = Instance.new("Part")
textPart.Size = Vector3.new(1,1,1)
textPart.Transparency = 1
textPart.Anchored = true
textPart.CanCollide = false
textPart.Parent = workspace

local billboard = Instance.new("BillboardGui")
billboard.Size = UDim2.new(0, 260, 0, 40)
billboard.StudsOffset = Vector3.new(0, 3, 0)
billboard.AlwaysOnTop = true
billboard.Parent = textPart

local label = Instance.new("TextLabel")
label.Size = UDim2.new(1,0,1,0)
label.BackgroundTransparency = 1
label.Text = "HttpEnabled is FALSE! Some of he the commands may not work!"
label.Font = Enum.Font.Arial
label.TextSize = 20
label.TextColor3 = Color3.fromRGB(22, 96, 148)
label.TextStrokeTransparency = 0
label.Parent = billboard

local clickProxy = Instance.new("Part")
clickProxy.Size = Vector3.new(2,2,2)
clickProxy.Transparency = 1
clickProxy.Anchored = true
clickProxy.CanCollide = false
clickProxy.Parent = workspace

local click = Instance.new("ClickDetector")
click.MaxActivationDistance = 32
click.Parent = clickProxy

local RADIUS = -5.5
local HEIGHT = 2
local SPEED = 0.4
local SMOOTH = 0.25

local angle = 0
local orbiting = true
local lastCF = startCF
local orbitConn

local function deleteBlock()
	if not orbiting then return end
	orbiting = false

	if orbitConn then
		orbitConn:Disconnect()
	end

	task.wait()

	invoke("Remove", { outer })
	invoke("Remove", { inner })

	clickProxy:Destroy()
	textPart:Destroy()
end

click.MouseClick:Connect(deleteBlock)

orbitConn = RunService.Heartbeat:Connect(function(dt)
	if not orbiting then return end

	angle += SPEED * dt

	local pos = root.Position + Vector3.new(
		math.cos(angle) * RADIUS,
		HEIGHT,
		math.sin(angle) * RADIUS
	)

	local cf = CFrame.new(pos) * CFrame.Angles(angle*0.5, angle*0.5, angle*0.5)
	lastCF = lastCF:Lerp(cf, SMOOTH)

	invoke("SyncResize", {{ Part = outer, CFrame = lastCF, Size = Vector3.new(0.06,0.06,0.06) }})
	invoke("SyncResize", {{ Part = inner, CFrame = lastCF, Size = Vector3.new(1,1,1) }})

	clickProxy.CFrame = lastCF
	textPart.CFrame = lastCF
end)

	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Ro Xploit"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 3
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Rotate map"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local player = game.Players.LocalPlayer
		local char = player.Character
		local backpack = player.Backpack
 
		local function getf3x()
			for _, v in ipairs(backpack:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
			for _, v in ipairs(char:GetChildren()) do
				if v:FindFirstChild("SyncAPI") then
					return v
				end
			end
 
			return nil
		end
 
		local f3x = getf3x()
		if not f3x then
			warn("you dont have f3x skid")
			return
		end
 
		local syncapi = f3x.SyncAPI
		local serverendpoint = syncapi.ServerEndpoint
 
		local function movePart(part, cf)
			local args = {
				[1] = "SyncMove",
				[2] = {
					[1] = {
						["Part"] = part,
						["CFrame"] = cf
					}
				}
			}
			serverendpoint:InvokeServer(unpack(args))
		end
 
		local function rotateAll()
			local rotation = CFrame.Angles(math.rad(45), 0, 0)
 
			local players = game.Players:GetPlayers()
 
			for _, v in ipairs(workspace:GetDescendants()) do
				if v:IsA("BasePart") then
 
					if v.Name == "Sky" or v.Name == "Skybox" then
						continue
					end
 
					local isPlayerPart = false
 
					for _, p in ipairs(players) do
						local pChar = p.Character
						if pChar and v:IsDescendantOf(pChar) then
							isPlayerPart = true
							break
						end
					end
 
					if not isPlayerPart then
						spawn(function()
							local newCF = v.CFrame * rotation
							movePart(v, newCF)
						end)
					end
				end
			end
		end
 
		rotateAll()
			
	end)
--
local button = Instance.new("TextButton")
	button.Parent = misc
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "9x7x9x4x6 Gui"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Nuke"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	RequestCommand:InvokeServer(";sm WARNING 10 SEC NUKE HERE")
	RequestCommand:InvokeServer(";music 235496963 ;volume inf ")
	RequestCommand:InvokeServer(";countdown2")
	
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local tool

for _, v in pairs(player:GetDescendants()) do
	if v.Name == "SyncAPI" then
		tool = v.Parent
		break
	end
end

if not tool then
	for _, v in pairs(game.ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" then
			tool = v.Parent
			break
		end
	end
end

if tool and tool:FindFirstChild("SyncAPI") then
	local remote = tool.SyncAPI.ServerEndpoint

	local function Invoke(args)
		remote:InvokeServer(unpack(args))
	end

	local function SetCollision(part, boolean)
		local args = {
			[1] = "SyncCollision",
			[2] = {
				{
					Part = part,
					CanCollide = boolean
				}
			}
		}

		Invoke(args)
	end

	local function SetAnchor(boolean, part)
		local args = {
			[1] = "SyncAnchor",
			[2] = {
				{
					Part = part,
					Anchored = boolean
				}
			}
		}

		Invoke(args)
	end

	local function SetMaterialCorrodedMetal(part)
		local args = {
			[1] = "SyncMaterial",
			[2] = {
				{
					Part = part,
					Material = Enum.Material.CorrodedMetal
				}
			}
		}

		Invoke(args)
	end

	local function ApplyCorrodedMetalToAllParts()
		for _, part in pairs(workspace:GetDescendants()) do
			if part:IsA("BasePart") then
				task.spawn(function()
					SetMaterialCorrodedMetal(part)
				end)
			end
		end
	end

	local function ApplyCorrodedMetalToPlayerCharacter(plr)
		if plr.Character then
			for _, part in pairs(plr.Character:GetDescendants()) do
				if part:IsA("BasePart") then
					task.spawn(function()
						SetMaterialCorrodedMetal(part)
					end)
				end
			end
		end
	end

	local function ApplyCorrodedMetalToAllPlayers()
		for _, p in pairs(game.Players:GetPlayers()) do
			ApplyCorrodedMetalToPlayerCharacter(p)
		end
	end

	ApplyCorrodedMetalToAllParts()
	ApplyCorrodedMetalToAllPlayers()
end

local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	RequestCommand:InvokeServer(";music 12222084")
	RequestCommand:InvokeServer(";pitch 1")
	RequestCommand:InvokeServer(";volume inf")
    
    wait(0.1)
    
	RequestCommand:InvokeServer(";unmusic")
	RequestCommand:InvokeServer(";Explode all")
	RequestCommand:InvokeServer(";Fling all")
	end)
	
-- Local Player --
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Anti-Robloxian"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Anti-Robloxian"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local player = game.Players.LocalPlayer
local originalChar = player.Character or player.CharacterAdded:Wait()
local tool
while player.Character == originalChar do
for i, v in player:GetDescendants() do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end

for i, v in game.ReplicatedStorage:GetDescendants() do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end

local remote = tool.SyncAPI.ServerEndpoint

function _(args)
	remote:InvokeServer(unpack(args))
end

function DestroyPart(part)
	spawn(function()
		local args = {
			[1] = "Remove",
			[2] = {
				[1] = part
			}
		}
		_(args)
	end)
end

function AddDecor(part, dec)
	spawn(function()
		local args = {
			[1] = "CreateDecorations",
			[2] = {
				[1] = {
					["Part"] = part,
					["DecorationType"] = dec
				}
			}
		}
		_(args)
	end)
end

function a()
	local dist = 17
	local distance = dist
	local Player = game.Players.LocalPlayer

	if Player then
		local c = game.Players:GetChildren()
		for i = 1, #c do
			if c[i].Name ~= Player.Name then
				if c[i].Character and c[i].Character:FindFirstChild("Head") then
					local char = c[i].Character
					local torso = game.Workspace[Player.Name]:FindFirstChild("Torso")
					if torso and c[i]:DistanceFromCharacter(torso.Position) <= distance then
						DestroyPart(char:FindFirstChild("Head"))
						for _, part in ipairs(char:GetChildren()) do
							if part:IsA("BasePart") then
								AddDecor(part, "Fire")
							end
						end
					end
				end
			end
		end
	end
end


	spawn(a)
	wait()
end

	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Billboard Gui"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Billboard Gui"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local text = frame.Settings.Page1["Billboard Gui Text"].TextBox.Text

    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";titleg me " .. text)

f.TextStrokeColor3 = Color3.new(0,0,0)
f.TextColor3 = Color3.new(frame.Settings.Page2["Billboard Gui Color"].TextBox1.Text/255,frame.Settings.Page2["Billboard Gui Color"].TextBox2.Text/255,frame.Settings.Page2["Billboard Gui Color"].TextBox3.Text/255)
f.TextStrokeTransparency = 0
f.TextYAlignment = "Bottom"
	end)
--

--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Chicken Arms"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Chicken Arms"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local humanoid = char:WaitForChild("Humanoid")
    local animation = Instance.new("Animation")

    animation.AnimationId = "rbxassetid://27432686"

    local animTrack1 = humanoid:LoadAnimation(animation)
    animTrack1.Priority = Enum.AnimationPriority.Idle

    animTrack1:Play()
    animTrack1:AdjustSpeed(0)

    local animation = Instance.new("Animation")
    animation.AnimationId = "rbxassetid://183695923"

    local animTrack = humanoid:LoadAnimation(animation)
    animTrack.Priority = Enum.AnimationPriority.Idle
    animTrack.Looped = true

    local walking = false

    humanoid.Running:Connect(function(speed)
        walking = speed > 1

        if walking and not animTrack.IsPlaying then
            animTrack:Play()
            animTrack1:Stop()
        end

        if not walking and animTrack.IsPlaying then
            animTrack:Stop()
            animTrack1:Play()
            animTrack1:AdjustSpeed(0)
        end
    end)

    spawn(function()
        while true do
            if walking then
                animTrack:AdjustSpeed(3)
                wait(0.3)
                animTrack:AdjustSpeed(-3)
                wait(0.3)
            else
                wait(0.1)
            end
        end
    end)
    
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Disco Character"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Disco Character"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
local player = game.Players.LocalPlayer
		local char = player.Character
		local tool
		for i,v in player:GetDescendants() do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
		for i,v in game.ReplicatedStorage:GetDescendants() do
			if v.Name == "SyncAPI" then
				tool = v.Parent
			end
		end
		--craaa
		remote = tool.SyncAPI.ServerEndpoint
		function _(args)
			remote:InvokeServer(unpack(args))
		end
		function a()
		presets = {"Bright red","Bright yellow","Bright orange","Bright violet","Bright blue","Bright bluish green","Bright green"}
		spawn(function()
			local args = {
    [1] = "SyncColor",
    [2] = {
        [1] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character.Head,
            ["UnionColoring"] = true
        },
        [2] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart,
            ["UnionColoring"] = true
        },
        [3] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Left Arm"),
            ["UnionColoring"] = true
        },
        [4] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Right Leg"),
            ["UnionColoring"] = true
        },
        [5] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character.Torso,
            ["UnionColoring"] = true
        },
        [6] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Right Arm"),
            ["UnionColoring"] = true
        },
        [7] = {
            ["Color"] = BrickColor.new(presets[math.random(1,#presets)]).Color,
            ["Part"] = game:GetService("Players").LocalPlayer.Character:FindFirstChild("Left Leg"),
            ["UnionColoring"] = true
        }
    }
}

_(args)
			end)
		end

	while true do
		wait(0.5)
		spawn(function()
		a()
		end)
	end
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Dominus Ghost"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Dominus Ghost"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		function nob(who,tra,hat)
c=who.Character
pcall(function()u=c["Body Colors"]
u.HeadColor=BrickColor.new("Black")
u.LeftLegColor=BrickColor.new("Black")
u.RightLegolor=BrickColor.new("Black")
u.LeftArmColor=BrickColor.new("Black")
u.TorsoColor=BrickColor.new("Black")
u.RightArmColor=BrickColor.new("Black")
end)
pcall(function()c.Shirt:Destroy() c.Pants:Destroy() end)
for i,v in pairs(c:GetChildren()) do
if v:IsA("BasePart") then
v.Transparency=tra
if v.Name=="HumanoidRootPart" or v.Name=="Head" then
v.Transparency=1
end
wait()
v.BrickColor=BrickColor.new("Black")
elseif v:IsA("Hat") then
v:Destroy()
end
end
xx=game:service("InsertService"):LoadAsset(hat)
xy=game:service("InsertService"):LoadAsset(47433)["LinkedSword"]
xy.Parent=who.Backpack
for a,hat in pairs(xx:children()) do
hat.Parent=c
end
xx:Destroy()
h=who.Character.Humanoid
h.MaxHealth=50000
wait(1.5)
h.Health=50000
h.WalkSpeed=32
end
nob(game.Players.LocalPlayer,0.6,21070012)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Floating Pad"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Floating Pad"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()

    local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanrFr = char:WaitForChild("HumanoidRootPart")
local tool
for i,v in player:GetDescendants() do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end
for i,v in game.ReplicatedStorage:GetDescendants() do
	if v.Name == "SyncAPI" then
		tool = v.Parent
	end
end
remote = tool.SyncAPI.ServerEndpoint
function _(args)
	remote:InvokeServer(unpack(args))
end
function SetCollision(part,boolean)
	local args = {
		[1] = "SyncCollision",
		[2] = {
			[1] = {
				["Part"] = part,
				["CanCollide"] = boolean
			}
		}
	}
	_(args)
end
function SetAnchor(boolean,part)
	local args = {
		[1] = "SyncAnchor",
		[2] = {
			[1] = {
				["Part"] = part,
				["Anchored"] = boolean
			}
		}
	}
	_(args)
end
function CreatePart(cf,parent)
	local args = {
		[1] = "CreatePart",
		[2] = "Normal",
		[3] = cf,
		[4] = parent
	}
	_(args)
end
function DestroyPart(part)
	local args = {
		[1] = "Remove",
		[2] = {
			[1] = part
		}
	}
	_(args)
end
function MovePart(part,cf)
	local args = {
		[1] = "SyncMove",
		[2] = {
			[1] = {
				["Part"] = part,
				["CFrame"] = cf
			}
		}
	}
	_(args)
end
function Resize(part,size,cf)
	local args = {
		[1] = "SyncResize",
		[2] = {
			[1] = {
				["Part"] = part,
				["CFrame"] = cf,
				["Size"] = size
			}
		}
	}
	_(args)
end
function AddMesh(part)
	local args = {
		[1] = "CreateMeshes",
		[2] = {
			[1] = {
				["Part"] = part
			}
		}
	}
	_(args)
end
function SetMesh(part,meshid)
	local args = {
		[1] = "SyncMesh",
		[2] = {
			[1] = {
				["Part"] = part,
				["MeshId"] = "rbxassetid://"..meshid
			}
		}
	}
	_(args)
end
function SetTexture(part, texid)
	local args = {
		[1] = "SyncMesh",
		[2] = {
			[1] = {
				["Part"] = part,
				["TextureId"] = "rbxassetid://"..texid
			}
		}
	}
	_(args)
end
function SetName(part, stringg)
	local args = {
		[1] = "SetName",
		[2] = {
			[1] = part
		},
		[3] = stringg
	}
	_(args)
end
function MeshResize(part,size)
	local args = {
		[1] = "SyncMesh",
		[2] = {
			[1] = {
				["Part"] = part,
				["Scale"] = size
			}
		}
	}
	_(args)
end
function Weld(part1, part2,lead)
	local args = {
		[1] = "CreateWelds",
		[2] = {
			[1] = part1,
			[2] = part2
		},
		[3] = lead
	}
	_(args)
end
function SetLocked(part,boolean)
	local args = {
		[1] = "SetLocked",
		[2] = {
			[1] = part
		},
		[3] = boolean
	}
	_(args)
end
function SetTrans(part,int)
	local args = {
		[1] = "SyncMaterial",
		[2] = {
			[1] = {
				["Part"] = part,
				["Transparency"] = int
			}
		}
	}
	_(args)
end
function CreateSpotlight(part)
	local args = {
		[1] = "CreateLights",
		[2] = {
			[1] = {
				["Part"] = part,
				["LightType"] = "SpotLight"
			}
		}
	}
	_(args)
end
function SyncLighting(part,brightness)
	local args = {
		[1] = "SyncLighting",
		[2] = {
			[1] = {
				["Part"] = part,
				["LightType"] = "SpotLight",
				["Brightness"] = brightness
			}
		}
	}
	_(args)
end
function Color(part,color)
	local args = {
		[1] = "SyncColor",
		[2] = {
			[1] = {
				["Part"] = part,
				["Color"] = color,
				["UnionColoring"] = false
			}
		}
	}
	_(args)
end
function SpawnDecal(part,side)
	local args = {
		[1] = "CreateTextures",
		[2] = {
			[1] = {
				["Part"] = part,
				["Face"] = side,
				["TextureType"] = "Decal"
			}
		}
	}
	_(args)
end
function AddDecal(part,asset,side)
	local args = {
		[1] = "SyncTexture",
		[2] = {
			[1] = {
				["Part"] = part,
				["Face"] = side,
				["TextureType"] = "Decal",
				["Texture"] = "rbxassetid://".. asset
			}
		}
	}
	_(args)
end
local cf = humanrFr.CFrame * CFrame.new(0, -4, 0)
local pad = remote:InvokeServer("CreatePart", "Normal", cf, workspace)
Resize(pad, Vector3.new(10, 1, 10), cf)
SetAnchor(true, pad)
SetCollision(pad, true)
SetName(pad, "padF")
AddMesh(pad)
SetMesh(pad, 9095618661)
MeshResize(pad, Vector3.new(4.5, 0.4, 4.5))
Color(pad, BrickColor.new(104).Color)
game:GetService("RunService").RenderStepped:Connect(function()
	if pad and humanrFr then
		local newCF = humanrFr.CFrame * CFrame.new(0, -4, 0)
		MovePart(pad, newCF)
	end
end)
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Head Shake"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Head Shake"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
    
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

-- find shit
local tool
for _, v in player:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
        break
    end
end
for _, v in game.ReplicatedStorage:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
        break
    end
end
if not tool then
    warn("ไม่พบ SyncAPI Tool!")
    return
end

local remote = tool.SyncAPI.ServerEndpoint


local head = char:FindFirstChild("Head")
if not head then
    warn("fuck fagz")
    return
end
local headMesh = head:FindFirstChildWhichIsA("SpecialMesh")
if not headMesh then
    warn("nigga")
    return
end


local hats = {}
for _, hat in pairs(char:GetChildren()) do
    if hat:IsA("Accessory") and hat:FindFirstChild("Handle") then
        local handleMesh = hat.Handle:FindFirstChildWhichIsA("SpecialMesh")
        if handleMesh then
            table.insert(hats, {Part = hat.Handle, MeshId = handleMesh.MeshId})
        end
    end
end


local amplitude = 0.7
local frequency = 6 
local t = 0

local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function(dt)
    t = t + dt * frequency
    local offsetValue = math.sin(t) * amplitude

    
    local partsToSync = {
        {Part = head, MeshId = headMesh.MeshId, Offset = Vector3.new(offsetValue, 0, 0)}
    }
    for _, h in pairs(hats) do
        table.insert(partsToSync, {Part = h.Part, MeshId = h.MeshId, Offset = Vector3.new(offsetValue, 0, 0)})
    end

    remote:InvokeServer("SyncMesh", partsToSync)
end)

	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Heal"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Heal"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";heal")
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Mesh Disco"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Mesh Disco"
	button.TextColor3 = whit
	button.TextWrapped = true
button.MouseButton1Down:connect(function()
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local player = Players.LocalPlayer
local tool, remote

local function findTool()
	-- Check player
	for _, v in ipairs(player:GetDescendants()) do
		if v.Name == "SyncAPI" and v.Parent then
			return v.Parent
		end
	end

	for _, v in ipairs(game.ReplicatedStorage:GetDescendants()) do
		if v.Name == "SyncAPI" and v.Parent then
			return v.Parent
		end
	end
	return nil
end

tool = findTool()
if not tool then
	error("SyncAPI not found! Equip Building Tools / F3X.")
end

remote = tool.SyncAPI.ServerEndpoint

local function invoke(args)
	local success, err = pcall(function()
		remote:InvokeServer(unpack(args))
	end)
	if not success then
		warn("Invoke failed:", err)
	end
end

local function DestroyExistingMesh(part)
	local mesh = part:FindFirstChildOfClass("SpecialMesh") or part:FindFirstChildOfClass("BlockMesh") or part:FindFirstChildOfClass("CylinderMesh")
	if mesh then
		invoke({"Remove", {mesh}})
	end
end

local function ForceSpecialMesh(part)
	DestroyExistingMesh(part)
	invoke({"CreateMeshes", {{ Part = part }}})
end

local function SetMeshType(part, meshType)
	invoke({"SyncMesh", {{ Part = part, MeshType = meshType }}})
end

local function SetColor(part, color)
	invoke({"SyncColor", {{ Part = part, Color = color, UnionColoring = false }}})
end

local randomizerConnection
local characterParts = {}

local function updateCharacterParts(char)
	characterParts = {}
	for _, v in ipairs(char:GetChildren()) do
		if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
			table.insert(characterParts, v)
		end
	end
end

local function startRandomizer()
	local char = player.Character or player.CharacterAdded:Wait()
	updateCharacterParts(char)

	for _, part in ipairs(characterParts) do
		if part.Parent then
			ForceSpecialMesh(part)
		end
	end

	task.wait(0.8)

	if randomizerConnection then
		randomizerConnection:Disconnect()
	end

	local meshTypes = {"Brick", "Cylinder", "Head", "Sphere", "Torso", "Wedge"}

	randomizerConnection = RunService.Heartbeat:Connect(function()
		for _, part in ipairs(characterParts) do
			if part and part.Parent then
				local randomMesh = meshTypes[math.random(#meshTypes)]
				local randomColor = Color3.new(math.random(), math.random(), math.random())

				SetMeshType(part, randomMesh)
				SetColor(part, randomColor)
			end
		end
	end)
end

startRandomizer()

player.CharacterAdded:Connect(function()
	task.wait(1.2)
	startRandomizer()
end)


	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Set Walkspeed"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Set Walkspeed"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = frame.Settings.Page2["Walkspeed Amount"].TextBox.Text	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.48,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Rc7 Cloud"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	local player = game.Players.LocalPlayer
			local char = player.Character
			local tool
			for i,v in player:GetDescendants() do
				if v.Name == "SyncAPI" then
					tool = v.Parent
				end
			end
			for i,v in game.ReplicatedStorage:GetDescendants() do
				if v.Name == "SyncAPI" then
					tool = v.Parent
				end
			end
			--craaa
			remote = tool.SyncAPI.ServerEndpoint
local sc = remote
			function _(args)
				remote:InvokeServer(unpack(args))
			end
			function SetCollision(part,boolean)
				local args = {
					[1] = "SyncCollision",
					[2] = {
						[1] = {
							["Part"] = part,
							["CanCollide"] = boolean
						}
					}
				}
				_(args)
			end
			function SetAnchor(boolean,part)
				local args = {
					[1] = "SyncAnchor",
					[2] = {
						[1] = {
							["Part"] = part,
							["Anchored"] = boolean
						}
					}
				}
				_(args)
			end
function CreatePart(cf,parent)
	local args = {
		[1] = "CreatePart",
		[2] = "Normal",
		[3] = cf,
		[4] = parent
	}
	_(args)
	

	task.wait(0.1)
	for _, obj in ipairs(parent:GetChildren()) do
		if obj:IsA("BasePart") and (obj.Position - cf.Position).Magnitude < 1 then
			return obj
		end
	end
end


			function DestroyPart(part)
				local args = {
					[1] = "Remove",
					[2] = {
						[1] = part
					}
				}
				_(args)
			end
			function MovePart(part,cf)
				local args = {
					[1] = "SyncMove",
					[2] = {
						[1] = {
							["Part"] = part,
							["CFrame"] = cf
						}
					}
				}
				_(args)
			end
			function Resize(part,size,cf)
				local args = {
					[1] = "SyncResize",
					[2] = {
						[1] = {
							["Part"] = part,
							["CFrame"] = cf,
							["Size"] = size
						}
					}
				}
				_(args)
			end
			function AddMesh(part)
				local args = {
					[1] = "CreateMeshes",
					[2] = {
						[1] = {
							["Part"] = part
						}
					}
				}
				_(args)
			end
	
			function SetMesh(part,meshid)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["MeshId"] = "rbxassetid://"..meshid
						}
					}
				}
				_(args)
			end
			function SetTexture(part, texid)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["TextureId"] = "rbxassetid://"..texid
						}
					}
				}
				_(args)
			end
			function SetName(part, stringg)
				local args = {
					[1] = "SetName",
					[2] = {
						[1] = part
					},
					[3] = stringg
				}
	
				_(args)
			end
			function MeshResize(part,size)
				local args = {
					[1] = "SyncMesh",
					[2] = {
						[1] = {
							["Part"] = part,
							["Scale"] = size
						}
					}
				}
				_(args)
			end
			function Weld(part1, part2,lead)
				local args = {
					[1] = "CreateWelds",
					[2] = {
						[1] = part1,
						[2] = part2
					},
					[3] = lead
				}
				_(args)
	
			end
			function SetLocked(part,boolean)
				local args = {
					[1] = "SetLocked",
					[2] = {
						[1] = part
					},
					[3] = boolean
				}
				_(args)
			end
			function SetTransparency(part,int)
				local args = {
					[1] = "SyncMaterial",
					[2] = {
						[1] = {
							["Part"] = part,
							["Transparency"] = int
						}
					}
				}
				_(args)
			end
			function reflect(part,int)
				local args = {
					[1] = "SyncMaterial",
					[2] = {
						[1] = {
							["Part"] = part,
							["Reflectance"] = int
						}
					}
				}
				_(args)
			end
			function CreateSpotlight(part)
				local args = {
					[1] = "CreateLights",
					[2] = {
						[1] = {
							["Part"] = part,
							["LightType"] = "SpotLight"
						}
					}
				}
				_(args)
			end
			function SyncLighting(part,brightness)
				local args = {
					[1] = "SyncLighting",
					[2] = {
						[1] = {
							["Part"] = part,
							["LightType"] = "SpotLight",
							["Brightness"] = brightness
						}
					}
				}
				_(args)
			end
			function Color(part,color)
				local args = {
					[1] = "SyncColor",
					[2] = {
						[1] = {
							["Part"] = part,
							["Color"] = color --[[Color3]],
							["UnionColoring"] = false
						}
					}
				}
				_(args)
			end
			function SpawnDecal(part,side)
				local args = {
					[1] = "CreateTextures",
					[2] = {
						[1] = {
							["Part"] = part,
							["Face"] = side,
							["TextureType"] = "Decal"
						}
					}
				}
	
				_(args)
			end
			function AddDecal(part,asset,side)
				local args = {
					[1] = "SyncTexture",
					[2] = {
						[1] = {
							["Part"] = part,
							["Face"] = side,
							["TextureType"] = "Decal",
							["Texture"] = "rbxassetid://".. asset
						}
					}
				}
				_(args)
			end






local head = player.Character and player.Character:FindFirstChild("Head")
head.Anchored = true
	local targetCFrame = head.CFrame + Vector3.new(0, 20, 0)
local Cloud = CreatePart(targetCFrame, workspace)
	SetLocked(Cloud, true)
	SetCollision(Cloud, false)
	Color(Cloud, Color3.fromRGB(255, 255, 0))
	AddMesh(Cloud)
	SetMesh(Cloud, "111820358")
	MeshResize(Cloud, Vector3.new(8, 8, 8))
  reflect(Cloud, 0.5)
	Weld(Cloud, char.HumanoidRootPart, char.HumanoidRootPart)
	SetAnchor(false, Cloud)
head.Anchored = false

local function rainFromCloud()
    while true do
        wait(0.1) 
        if Cloud and Cloud.Parent then
            local basePos = Cloud.Position
            local offsetX = math.random(-3, 3) 
            local offsetZ = math.random(-3, 3)
            

            local spawnCFrame = CFrame.new(
                basePos.X + offsetX,
                basePos.Y - 2, 
                basePos.Z + offsetZ
            )

            spawn(function()
local lol = CFrame.new(0,0,0)
                local newPart = remote:InvokeServer("CreatePart","Normal",lol,Cloud)
                if not newPart then return end

                spawn(function()
                    SetName(newPart, "parti")
                   end)
                  spawn(function()
                    SetCollision(newPart, false)
                     end)
                    spawn(function()
                    SetAnchor(false, newPart)
                end)

                spawn(function()
                    Resize(newPart, Vector3.new(2, 2, 0.000001), spawnCFrame) 
                end)

                spawn(function()
                    SpawnDecal(newPart, Enum.NormalId.Front)
                    end)
                spawn(function()
                    AddDecal(newPart, "331959655", Enum.NormalId.Front)
                    end)
                spawn(function()
                    SpawnDecal(newPart, Enum.NormalId.Back)
                    end)
                spawn(function()
                    AddDecal(newPart, "331959655", Enum.NormalId.Back)
                end)
spawn(function()

     local randomAngle = math.random(0, 1) == 0 and math.rad(-30) or math.rad(30)
MovePart(newPart, spawnCFrame * CFrame.Angles(0, 0, randomAngle))
end)
                spawn(function()
                    SetTransparency(newPart, 1) 
                end)
                end)
            end
            wait(0.05)
      end
    end


coroutine.wrap(rainFromCloud)()
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "idk"
	button.Position = UDim2.new(0,0,0,231)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "John doe"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		function BurningEff(part)
local eff1 = Instance.new("ParticleEmitter",part)
eff1.Size = NumberSequence.new(.1)
eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
eff1.LightEmission = 1
eff1.Lifetime = NumberRange.new(1)
eff1.Speed = NumberRange.new(0)
eff1.Rate = 100
eff1.Texture = "rbxassetid://347504241"
eff1.Acceleration = Vector3.new(0,10,0)
eff1.Color = ColorSequence.new(Color3.new(1,0,0))
local eff2 = Instance.new("ParticleEmitter",part)
eff2.Size = NumberSequence.new(.1)
eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
eff2.LightEmission = 1
eff2.Lifetime = NumberRange.new(1)
eff2.Speed = NumberRange.new(0)
eff2.Rate = 100
eff2.Texture = "rbxassetid://347504259"
eff2.Acceleration = Vector3.new(0,10,0)
eff2.Color = ColorSequence.new(Color3.new(1,0,0))
local eff3 = Instance.new("ParticleEmitter",part)
eff3.Size = NumberSequence.new(1)
eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
eff3.LightEmission = 1
eff3.Lifetime = NumberRange.new(1)
eff3.Speed = NumberRange.new(0)
eff3.Rate = 100
eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
eff3.Acceleration = Vector3.new(0,10,0)
eff3.Color = ColorSequence.new(Color3.new(1,0,0))
end


local player = game.Players.LocalPlayer
    local char = player.Character
    local tool
    for i,v in player:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
    for i,v in game.ReplicatedStorage:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
   
    remote = tool.SyncAPI.ServerEndpoint
    function _(args)
        remote:InvokeServer(unpack(args))
    end
blak=Color3.new(0,0,0)

local function Color(part, color)
	local args = {
		"SyncColor",
		{
			{
				Part = part,
				Color = color,
				UnionColoring = false
			}
		}
	}
	_(args)
end
   function DestroyPart(part)
        local args = {
            [1] = "Remove",
            [2] = {
                [1] = part
            }
        }
        _(args)
    end
    function MoveVector(part,vector)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Offset"] = vector
                }
            }
        }
        _(args)
    end
function AddMesh(part)
        local args = {
            [1] = "CreateMeshes",
            [2] = {
                [1] = {
                    ["Part"] = part
                }
            }
        }
        _(args)
    end
    function SetMesh(part,meshid)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["MeshId"] = "rbxassetid://"..meshid
                }
            }
        }
        _(args)
    end
  function SetTrans(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Transparency"] = int
                }
            }
        }
        _(args)
    end
local function applyDecorationToPart(part) 
    local argsCreate = {
        [1] = "CreateDecorations",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire"
            }
        }
    }
    local argsSync = {
        [1] = "SyncDecorate",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire",
                ["Size"] = 3,
                ["Heat"] = 25,
                ["Color"] = Color3.fromRGB(255, 0, 0), 
                ["SecondaryColor"] = Color3.fromRGB(255, 0, 0) 
            } 
        } 
    }
    _(argsCreate)
    _(argsSync)
end

function eyePart(part) 
    
    local argsCreate = {
        [1] = "CreateDecorations",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire"
            }
        }
    }
    local argsSync = {
        [1] = "SyncDecorate",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire",
                ["Size"] = 1,
                ["Heat"] = 12,
                ["Color"] = Color3.fromRGB(155, 0, 0), 
                ["SecondaryColor"] = Color3.fromRGB(255, 0, 0) 
            } 
        } 
    }
   
    _(argsCreate)
    _(argsSync)
end

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Players = game:GetService("Players")

local UserInputService = game:GetService("UserInputService")

local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

--kill thingy
function thekille(target)
if target and target.Character then
    for i,v in target.Character:GetDescendants() do
        if v:IsA("BasePart") then
            RequestCommand:InvokeServer(";paint "..target.Name.." black")
            spawn(function()
            Color(v,blak)
            end)
            spawn(function()
            SetTrans(v,0.1)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.2)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.3)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.4)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.5)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.6)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.7)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.8)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,0.9)
            end)
            wait(0.5)
            spawn(function()
            SetTrans(v,1)
            end)
            wait(3)
            spawn(function()
            DestroyPart(v)
            end)
        end
    end
end
end
wait(0.1)

local kill = Instance.new("Sound",char)
kill.SoundId = "rbxassetid://28144425"
kill.Pitch = 0.6
kill.Volume = 3

local at = kill:Clone()
at.SoundId="rbxassetid://82500396906354"
at.Parent = char
at.Volume = 0.5

local player = Players.LocalPlayer
local character = char


RequestCommand:InvokeServer(";titlebk me ᴊᴏʜɴ ᴅᴏᴇ")
RequestCommand:InvokeServer(";removeaccessories")
wait(1.5)
RequestCommand:InvokeServer(";hat me 18196403126")
wait(0.6)
 RequestCommand:InvokeServer(";shirt me 100276101149100")
wait(0.9)
 RequestCommand:InvokeServer(";pants me 109662040845019")
wait(0.5)
RequestCommand:InvokeServer(";head me 0")
wait(0.7)
RequestCommand:InvokeServer(";face me 144075659")
wait(0.3)
local eye = char:FindFirstChild("Accessory (JohnEye)").Handle
local arm = char:FindFirstChild("Right Arm")
local tor = char:FindFirstChild("Torso")
local ar2 = char:FindFirstChild("Left Arm")

local RLeg = char:FindFirstChild("Right Leg")
local head = char:FindFirstChild("Head")
local LLeg = char:FindFirstChild("Left Leg")
task.spawn(function()
applyDecorationToPart(arm)
end)
task.spawn(function()
applyDecorationToPart(ar2)
end)
task.spawn(function()
eyePart(eye)
end)
RequestCommand:InvokeServer(";music 17717379222 ;pitch 0.2 ;volume inf")
task.spawn(function()
Color(arm, Color3.fromRGB(0,0,0))
end)
task.spawn(function()
Color(ar2, Color3.fromRGB(252, 255, 150))
end)
task.spawn(function()
Color(head, Color3.fromRGB(252, 255, 150))
end)
task.spawn(function()
Color(tor, Color3.fromRGB(255, 255, 0))
end)
task.spawn(function()
Color(RLeg, Color3.fromRGB(0, 200, 255))
end)
task.spawn(function()
Color(LLeg, Color3.fromRGB(0, 200, 255))
end)
task.spawn(function()
AddMesh(arm)
end)
task.spawn(function()
SetMesh(arm,"94818190090394")
end)
task.spawn(function()
MoveVector(arm,Vector3.new(0.37, -0.6, 0))
end)

local arm = character:FindFirstChild("Right Arm") 
local humanoid = character:FindFirstChildOfClass("Humanoid")

local isDead = false
humanoid.Died:Connect(function()
	isDead = true
end)

local animator = humanoid:FindFirstChildOfClass("Animator")

local attackAnim = Instance.new("Animation")
attackAnim.AnimationId = "rbxassetid://186934658"
local attackTrack = animator:LoadAnimation(attackAnim)
function attack()
    attackTrack:Play() 
    local hitPlayer = nil
    local touchedConnection

    local function onTouch(other)
        local otherPlayer = Players:GetPlayerFromCharacter(other.Parent)
        if otherPlayer and otherPlayer ~= player then
            hitPlayer = otherPlayer
        end
    end

    touchedConnection = arm.Touched:Connect(onTouch)
    task.wait(0.5)
    if touchedConnection then
        touchedConnection:Disconnect()
    end
    if hitPlayer then
d = at:Clone()
d:Play()
d.Parent = char
spawn(function()
wait(5)
d:Destroy()
end)
task.spawn(DestroyPart,hitPlayer.Character.Head)
    else
d = kill:Clone()
d:Play()
d.Parent = char
wait(5)
d:Destroy()
    end
end




UserInputService.TouchTap:Connect(function(input, gameProcessed)
    if gameProcessed then return end

    if isDead then return end 
    attack()
end)



local backpack = player.Backpack

local function getf3x()
	for _, v in ipairs(backpack:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	for _, v in ipairs(char:GetChildren()) do
		if v:FindFirstChild("SyncAPI") then
			return v
		end
	end
	return nil
end

local f3x = getf3x()
if not f3x then
	warn("you dont have f3x skid")
end

local syncapi = f3x.SyncAPI
local serverendpoint = syncapi.ServerEndpoint
local function fire(part) 
    
    local argsCreate = {
        [1] = "CreateDecorations",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire"
            }
        }
    }

   
    local argsSync = {
        [1] = "SyncDecorate",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["DecorationType"] = "Fire",
                ["Size"] = 10,
                ["Heat"] = 0,
                ["Color"] = Color3.fromRGB(255, 0, 0), 
                ["SecondaryColor"] = Color3.fromRGB(255, 0, 0) 
            } 
        } 
    }

    
    _(argsCreate)
    _(argsSync)
end
			function delete(part)
				local args = {
					[1] = "Remove",
					[2] = {
						[1] = part
					}
				}
				_(args)
			end
function MovePart(part, cf)
    local args = {
        "SyncMove",
        {
            {
                Part = part,
                CFrame = cf
            }
        }
    }
    _(args)
end

local function resize(part, size, cf)
	local args = {
		"SyncResize",
		{
			{
				Part = part,
				CFrame = cf,
				Size = size
			}
		}
	}
	_(args)
end

local function syncmaterial(part, mate)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Material = mate
			}
		}
	}
	_(args)
end

local function transparency(part, trans)
	local args = {
		"SyncMaterial",
		{
			{
				Part = part,
				Transparency = trans
			}
		}
	}
	_(args)
end

local function color(part, color)
	local args = {
		"SyncColor",
		{
			{
				Part = part,
				Color = color,
				UnionColoring = false
			}
		}
	}
	_(args)
end

local function syncmeshid(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				MeshId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end
function destroy(part)
				local args = {
					[1] = "Remove",
					[2] = {
						[1] = part
					}
				}
				_(args)
			end
local function makemesh(part)
	local args = {
		"CreateMeshes",
		{
			{
				Part = part
			}
		}
	}
	_(args)
end

local function syncmeshsize(part, vectora)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				Scale = vectora
			}
		}
	}
	_(args)
end

local function syncmeshtexture(part, id)
	local args = {
		"SyncMesh",
		{
			{
				Part = part,
				TextureId = "rbxassetid://" .. id
			}
		}
	}
	_(args)
end

local function name(part, stringa)
	local args = {
		"SetName",
		{ part },
		stringa
	}
	_(args)
end

local function lock(part, boolean)
	local args = {
		"SetLocked",
		{ part },
		boolean
	}
	_(args)
end

local function setcollision(part, booleana)
	local args = {
		"SyncCollision",
		{
			{
				Part = part,
				CanCollide = booleana
			}
		}
	}
	_(args)
end

local function setanchor(part, boolean)
	local args = {
		"SyncAnchor",
		{
			{
				Part = part,
				Anchored = boolean
			}
		}
	}
	_(args)
end

local function createdecal(part, side)
	local args = {
		"CreateTextures",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal"
			}
		}
	}
	_(args)
end

local function setdecal(part, asset, side)
	local args = {
		"SyncTexture",
		{
			{
				Part = part,
				Face = side,
				TextureType = "Decal",
				Texture = "rbxassetid://" .. asset
			}
		}
	}
	_(args)
end
task.spawn(function()
while task.wait(0.02) do
			task.spawn(function()
				local hrp = char.HumanoidRootPart
				local pos = hrp.CFrame * CFrame.new(0, -3, 0)
				local trail = serverendpoint:InvokeServer("CreatePart", "Normal", CFrame.new(0,0,0), char)
        task.spawn(function()
				setcollision(trail, false)
        end)
        task.spawn(function()
				syncmaterial(trail, Enum.Material.Granite)
        end)
        task.spawn(function()
				color(trail, Color3.new(0, 0, 0))
        end)
        task.spawn(function()
				resize(trail, Vector3.new(10,0,10), pos)
        end)
        task.spawn(function()
        fire(trail)
        end)
BurningEff(trail)
				task.wait(1)
				delete(trail)
			end)
		end
end)

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local rq = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
local RunService = game:GetService("RunService")
local rotatetypeshii = Vector3.new(0, 1, 0).Unit
local skypartrotation = 0
local player = game.Players.LocalPlayer
    local char = player.Character
    local tool
    for i,v in player:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
    for i,v in game.ReplicatedStorage:GetDescendants() do
        if v.Name == "SyncAPI" then
            tool = v.Parent
        end
    end
    --craaa
    remote = tool.SyncAPI.ServerEndpoint
    function _(args)
        remote:InvokeServer(unpack(args))
    end
    function SetCollision(part,boolean)
        local args = {
            [1] = "SyncCollision",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CanCollide"] = boolean
                }
            }
        }
        _(args)
    end
    function SetAnchor(boolean,part)
        local args = {
            [1] = "SyncAnchor",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Anchored"] = boolean
                }
            }
        }
        _(args)
    end
    function CreatePart(cf,parent)
        local args = {
            [1] = "CreatePart",
            [2] = "Normal",
            [3] = cf,
            [4] = parent
        }
        _(args)
    end
    function DestroyPart(part)
        local args = {
            [1] = "Remove",
            [2] = {
                [1] = part
            }
        }
        _(args)
    end
    function MovePart(part,cf)
        local args = {
            [1] = "SyncMove",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CFrame"] = cf
                }
            }
        }
        _(args)
    end
    function Resize(part,size,cf)
        local args = {
            [1] = "SyncResize",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["CFrame"] = cf,
                    ["Size"] = size
                }
            }
        }
        _(args)
    end
    function AddMesh(part)
        local args = {
            [1] = "CreateMeshes",
            [2] = {
                [1] = {
                    ["Part"] = part
                }
            }
        }
        _(args)
    end
    function reflect(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Reflectance"] = int
                }
            }
        }
        _(args)
    end
    function SetMesh(part,meshid)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["MeshId"] = "rbxassetid://"..meshid
                }
            }
        }
        _(args)
    end
    function SetTexture(part, texid)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["TextureId"] = "rbxassetid://"..texid
                }
            }
        }
        _(args)
    end
    function SetName(part, stringg)
        local args = {
            [1] = "SetName",
            [2] = {
                [1] = part
            },
            [3] = stringg
        }

        _(args)
    end
    function MeshResize(part,size)
        local args = {
            [1] = "SyncMesh",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Scale"] = size
                }
            }
        }
        _(args)
    end
function MeshColor(part,color)
local args = {
	"SyncMesh",
	{
		{
			Part = part,
			VertexColor = color 
		}
	}
}
_(args)
    end
    function Weld(part1, part2,lead)
        local args = {
            [1] = "CreateWelds",
            [2] = {
                [1] = part1,
                [2] = part2
            },
            [3] = lead
        }
        _(args)

    end
    function SetLocked(part,boolean)
        local args = {
            [1] = "SetLocked",
            [2] = {
                [1] = part
            },
            [3] = boolean
        }
        _(args)
    end

    function SetTrans(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Transparency"] = int
                }
            }
        }
        _(args)
    end
function Setmate(part,int)
        local args = {
            [1] = "SyncMaterial",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Material"] = int
                }
            }
        }
        _(args)
    end
    function CreateSpotlight(part)
        local args = {
            [1] = "CreateLights",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["LightType"] = "SpotLight"
                }
            }
        }
        _(args)
    end
    function SyncLighting(part,brightness)
        local args = {
            [1] = "SyncLighting",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["LightType"] = "SpotLight",
                    ["Brightness"] = brightness
                }
            }
        }
        _(args)
    end
    function Color(part,color)
        local args = {
            [1] = "SyncColor",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Color"] = color --[[Color3]],
                    ["UnionColoring"] = false
                }
            }
        }
        _(args)
    end
    function SpawnDecal(part,side)
        local args = {
            [1] = "CreateTextures",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Face"] = side,
                    ["TextureType"] = "Decal"
                }
            }
        }

        _(args)
    end
    function AddDecal(part,asset,side)
        local args = {
            [1] = "SyncTexture",
            [2] = {
                [1] = {
                    ["Part"] = part,
                    ["Face"] = side,
                    ["TextureType"] = "Decal",
                    ["Texture"] = "rbxassetid://".. asset
                }
            }
        }
        _(args)
    end
function ClonePart(part,parent)
       		 local args = {
           [1] = "Clone",
           [2] = {
           [1] = part
          },
           [3] = parent
        }

    return remote:InvokeServer(unpack(args))
end
    function Sky(id)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    

local function findBuildingTools()
    local player = game:GetService("Players").LocalPlayer

    for _, item in ipairs(player.Character:GetChildren()) do
        if item:IsA("Tool") and item:FindFirstChild("SyncAPI") then
            return item
        end
    end

    for _, item in ipairs(player.Backpack:GetChildren()) do
        if item:IsA("Tool") and item:FindFirstChild("SyncAPI") then
            return item
        end
    end

    return nil
end

local buildingTools = findBuildingTools()
if not buildingTools then
    warn("btools not found")
    return
end

local syncAPI        = buildingTools:FindFirstChild("SyncAPI")
local serverEndpoint = syncAPI and syncAPI:FindFirstChild("ServerEndpoint")

if not serverEndpoint then
    warn("btools not found")
    return
end

local skyInstance = workspace.Terrain:FindFirstChild("Sky") or workspace:FindFirstChild("Sky")
if not skyInstance then

print"ok"
end
spawn(function()
DestroyPart(skyInstance)
end)
local success, result
if serverEndpoint:IsA("RemoteFunction") then
    success, result = pcall(function()
        return serverEndpoint:InvokeServer(unpack(args))
    end)
else

    serverEndpoint:FireServer(unpack(args))
    success = true
end

if success then
    
print"yay"
    
end
        e = char.HumanoidRootPart.CFrame.x
        f = char.HumanoidRootPart.CFrame.y
        g = char.HumanoidRootPart.CFrame.z
                mhm = CFrame.new(math.floor(e),math.floor(f),math.floor(g)) + Vector3.new(0,-5,0)
                v = remote:InvokeServer("CreatePart","Normal",mhm,char)
                task.spawn(function()
                SetName(v,"johnbeep")
                end)
                task.spawn(function()
                AddMesh(v)
                end)
                task.spawn(function()
                rq:InvokeServer(";time 0")
                end)
                task.spawn(function()
                Resize(v,Vector3.new(0,0,0),v.CFrame)
                end)
                task.spawn(function()
                SetMesh(v,"1527559")
                end)
                task.spawn(function()
                MeshColor(v,vector.create(2,0,0))
                end)
                task.spawn(function()
                SetTexture(v,id)
                end)
                task.spawn(function()
           MeshResize(v,Vector3.new(-3000,-1000,-3000))
                end)
                task.spawn(function()
                SetLocked(v,true)
                end)

local rotationAngle = 5
    local rotationSpeed = math.rad(20)
    RunService.Heartbeat:Connect(function(deltaTime)
        rotationAngle = rotationAngle + rotationSpeed * deltaTime
        local rotation = CFrame.Angles(0, rotationAngle, 0)
        local cf = CFrame.new(v.Position) * rotation
        
        task.spawn(function()
            MovePart(v, cf)
        end)
    end)

            end
Sky("1529455")

while true do
	wait(0.1)
		if character:FindFirstChildOfClass("Humanoid").Health <= 0 then
			RequestCommand:InvokeServer(";titler me BAD CHOICE")

ClonePart(character.Head,workspace.Terrain)
wait(0.1)
local bg = workspace.Terrain.Head
task.spawn(function()
DestroyPart(bg.face)
end)
task.spawn(function()
SetTrans(bg,1)
end)
ClonePart(character.johnbeep,workspace.Terrain)
                spawn(function()
MeshColor(workspace.Terrain.johnbeep,vector.create(0,0,0))
                end)
task.spawn(function()
MeshResize(workspace.Terrain.johnbeep,Vector3.new(-50000,-50000,-50000))
                end)
RequestCommand:InvokeServer(";explode others")
RequestCommand:InvokeServer(";music 17717379222")
RequestCommand:InvokeServer(";volume 10")
wait(4)
			RequestCommand:InvokeServer(";music 19094700")
			RequestCommand:InvokeServer(";pitch 0.5")
			RequestCommand:InvokeServer(";volume 3")
      wait(0.8)
      RequestCommand:InvokeServer(";fogcolor black")
RequestCommand:InvokeServer(";fog 3000")
			break
		end
	end
	end)
--
local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,231)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Cmdbar2"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		local ReplicatedStorage = game:GetService("ReplicatedStorage")
	local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent

	RequestCommand:InvokeServer(";cmdbar2 me")
	end)
local title = Instance.new("TextLabel")
	title.Parent = misc
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Misc."
	title.TextColor3 = whit
local title = Instance.new("TextLabel")
	title.Parent = localp
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "LocalPlayer"
	title.TextColor3 = whit
-- Page 3 End --
-- Page 4 --
button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "sugar crash"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Sugar Crash"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 118510088348722
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.2
	end)
--
button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Electro Sp00k"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Electro Sp00k"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 85481339656782
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.1 
	end)
--
button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Sonic tiwes"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Sonic tiwes"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 1836785840 
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 2	
	end)
--
button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Wonga"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Wonga"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 100792696468630	
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.141	
	end)
--
button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Fuck Niggers"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 118093744825277	
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.1 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "bao bao"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Bao Bao"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 95796504549340	
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 1 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "idk"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "ckicken niggle"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 9245561450	
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 1 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "idk"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Allah"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 85390427326662
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.13 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Kaax Theme"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 79766207703529
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.38 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "rainbow trololo"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 70520000279740
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 1 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 3
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "good gay"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 80705148532401
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 0.25 
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pmi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "tlal theme"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Music ID"].TextBox.Text = 83124228444322
    frame.Settings.Page1["Music Pitch"].TextBox.Text = 1.2 
	end)
-- Preset Images --
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Team c00lkidd Logo 1"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Team c00lkidd Logo 1"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 158118263	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Team c00lkidd Logo 2"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Team c00lkidd Logo 2"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 164661730	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Thomas"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Thomas"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 160456772	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "c00lkidd"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "c00lkidd"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 157755295	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "team skrubl0rd"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "old team skrubl0rd"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 358313209
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Việt nam"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Việt Nam"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 13939878624
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "idk"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Team Fgpilj2 Logo 1"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 99626268113503
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Fgpilj2"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 100069501531621
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Rip_rob"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 134891886716609
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "gheruxh"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 109030507508919
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Java1x3x5x6 team 1"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 3342499434
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.48,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Java1x3x5x6 team 2"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 11309172018
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,231)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Jerson23889"
	button.TextColor3 = whit
	button.TextWrapped = true
    button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 85804843405618
	end)
--
local button = Instance.new("TextButton")
	button.Parent = psd
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,231)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "tlal"
	button.TextColor3 = whit
	button.TextWrapped = true
    button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Skybox/Decal ID"].TextBox.Text = 86566942781985
	end)
	
local title = Instance.new("TextLabel")
	title.Parent = pmi
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Preset Music IDs"
	title.TextColor3 = whit
	title.TextWrapped = true
local title = Instance.new("TextLabel")
	title.Parent = psd
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Size = UDim2.new(1,0,0,30)
	title.ZIndex = 2
	title.Font = "SourceSansBold"
	title.FontSize = "Size14"
	title.Text = "Preset Skybox/Decal IDs"
	title.TextColor3 = whit
	--page 5--
local t3xt = Instance.new("TextLabel")
	t3xt.Parent = edn
	t3xt.BackgroundColor3 = blak
	t3xt.BorderColor3 = rede
	t3xt.BorderSizePixel = 3
	t3xt.Name = "Empty"
	t3xt.Position = UDim2.new(0,0,0,0)
	t3xt.Size = UDim2.new(1,0,1,0)
	t3xt.ZIndex = 2
	t3xt.Font = tef
	t3xt.FontSize = "Size14"
	t3xt.Text = "update come soon by fgpilj2 follow next week f3x add"
	t3xt.TextColor3 = whit
	t3xt.TextWrapped = true
	t3xt.TextYAlignment = "Top"
	
-- Preset Gear IDs --
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Airstrike"
	button.Position = UDim2.new(0,0,0,33)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Airstrike"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 88885539
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Dual Darkhearts"
	button.Position = UDim2.new(0.5,3,0,33)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Dual Darkhearts"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 108149175
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Dual Venomshanks"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Dual Venomshanks"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 158069180
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Ghostfire Sword"
	button.Position = UDim2.new(0.5,3,0,66)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Ghostfire Sword"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 64220933	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Gravity Coil"
	button.Position = UDim2.new(0,0,0,99)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Gravity Coil"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 16688968
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Hyperbike"
	button.Position = UDim2.new(0.5,3,0,99)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Hyperbike"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
	frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 130113061	
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Icedagger"
	button.Position = UDim2.new(0,0,0,132)
	button.Size = UDim2.new(0.499,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Icedagger"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
		frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 83704165
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Linked Sword"
	button.Position = UDim2.new(0.5,3,0,132)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Linked Sword"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
frame.Settings.Page1["Custom Gear ID"].TextBox.Text = 125013769		
	end)
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,165)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,165)
	button.Size = UDim2.new(0.5,-3,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,198)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0.5,3,0,198)
	button.Size = UDim2.new(0.48,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
--
local button = Instance.new("TextButton")
	button.Parent = pgi
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Empty"
	button.Position = UDim2.new(0,0,0,231)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Empty"
	button.TextColor3 = whit
	button.TextWrapped = true
--


			
--Settings--
local pge1 = Instance.new("Frame")
pge1.Parent = page
pge1.BorderColor3 = rede
pge1.BackgroundColor3 = blak
pge1.BorderSizePixel = 3
pge1.Name = "Page1"
pge1.Position = UDim2.new(0,0,0,83)
pge1.Size = UDim2.new(1,0,1,-83)
pge1.ZIndex = 1

local pge2 = Instance.new("Frame")
pge2.Parent = page
pge2.BorderColor3 = rede
pge2.BackgroundColor3 = blak
pge2.BorderSizePixel = 3
pge2.Name = "Page2"
pge2.Position = UDim2.new(0,0,0,83)
pge2.Size = UDim2.new(1,0,1,-83)
pge2.ZIndex = 1
pge2.Visible = false
local lft = Instance.new("TextButton")
	lft.Parent = page
	lft.BorderColor3 = rede
	lft.BackgroundColor3 = blak
	lft.BorderSizePixel = 3
	lft.Name = ">"
	lft.Position = UDim2.new(0.5,3,0,40)
	lft.Size = UDim2.new(0.5,-3,0,40)
	lft.ZIndex = 1
	lft.Font = tef
	lft.FontSize = "Size48"
	lft.Text = ">"
	lft.TextColor3 = whit
	lft.MouseButton1Down:connect(function()
		if pge1.Visible == true then
			pge1.Visible = false
			pge2.Visible = true
		elseif pge2.Visible == true then
			pge2.Visible = false
			pge1.Visible = true
		end	
	end)
local rgt = Instance.new("TextButton")
	rgt.Parent = page
	rgt.BorderColor3 = rede
	rgt.BackgroundColor3 = blak
	rgt.BorderSizePixel = 3
	rgt.Name = "<"
	rgt.Position = UDim2.new(0,0,0,40)
	rgt.Size = UDim2.new(0.5,0,0,40)
	rgt.ZIndex = 1
	rgt.Font = tef
	rgt.FontSize = "Size48"
	rgt.Text = "<"
	rgt.TextColor3 = whit
	rgt.MouseButton1Down:connect(function()
		if pge1.Visible == true then
			pge1.Visible = false
			pge2.Visible = true
		elseif pge2.Visible == true then
			pge2.Visible = false
			pge1.Visible = true
		end	
	end)

local sbutton = Instance.new("TextButton")
	sbutton.Parent = page
	sbutton.BackgroundColor3 = blak
	sbutton.BorderColor3 = rede
	sbutton.BorderSizePixel = 3
	sbutton.Name = "SettingsButton"
	sbutton.Position = UDim2.new(1,3,0,0)
	sbutton.Size = UDim2.new(0,27,1,0)
	sbutton.Font = tef
	sbutton.FontSize = "Size48"
	sbutton.TextColor3 = whit
	sbutton.Text = "<"
	cango = true
	sbutton.MouseButton1Down:connect(function()
		if cango == true then
			if sbutton.Text == "<" then
			sbutton.Text = ">"
			cango = false
				repeat
				wait()
				page.Position = UDim2.new(1,page.Position.X.Offset-10,0,0)
				until page.Position.X.Offset <= -293
				wait()
				page.Position = UDim2.new(1,-300,0,0)
				cango = true
			else
			sbutton.Text = "<"
			cango = false
				repeat
				wait()
				page.Position = UDim2.new(1,page.Position.X.Offset+10,0,0)
				until page.Position.X.Offset >= -10
				wait()
				page.Position = UDim2.new(1,3,0,0)
				cango = true
			end	
		end
	end)
local title = Instance.new("TextLabel")
	title.Parent = page
	title.BackgroundColor3 = blak
	title.BorderColor3 = rede
	title.BorderSizePixel = 3
	title.Name = "Title"
	title.Position = UDim2.new(0,0,0,0)
	title.Size = UDim2.new(1,0,0,40)
	title.ZIndex = 1
	title.Font = tef
	title.FontSize = "Size24"
	title.Text = "Settings"
	title.TextColor3 = whit
	
	
local bgt = Instance.new("Frame")
	bgt.Parent = pge1
	bgt.BackgroundColor3 = blak
	bgt.BorderColor3 = rede
	bgt.BorderSizePixel = 3
	bgt.Name = "Billboard Gui Text"
	bgt.Position = UDim2.new(0.5,3,0,198)
	bgt.Size = UDim2.new(0.5,-3,0,63)
local cgid = Instance.new("Frame")
	cgid.Parent = pge1
	cgid.BackgroundColor3 = blak
	cgid.BorderColor3 = rede
	cgid.BorderSizePixel = 3
	cgid.Name = "Custom Gear ID"
	cgid.Position = UDim2.new(0,0,0,198)
	cgid.Size = UDim2.new(0.5,0,0,63)
local god = Instance.new("Frame")
	god.Parent = pge1
	god.BackgroundColor3 = blak
	god.BorderColor3 = rede
	god.BorderSizePixel = 3
	god.Name = "God"
	god.Position = UDim2.new(0,0,0,132)
	god.Size = UDim2.new(0.5,0,0,63)
local Inv = Instance.new("Frame")
	Inv.Parent = pge1
	Inv.BackgroundColor3 = blak
	Inv.BorderColor3 = rede
	Inv.BorderSizePixel = 3
	Inv.Name = "Invisibility"
	Inv.Position = UDim2.new(0.5,3,0,132)
	Inv.Size = UDim2.new(0.5,-3,0,63)
local mid = Instance.new("Frame")
	mid.Parent = pge1
	mid.BackgroundColor3 = blak
	mid.BorderColor3 = rede
	mid.BorderSizePixel = 3
	mid.Name = "Music ID"
	mid.Position = UDim2.new(0,0,0,66)
	mid.Size = UDim2.new(0.5,0,0,63)
local mp = Instance.new("Frame")
	mp.Parent = pge1
	mp.BackgroundColor3 = blak
	mp.BorderColor3 = rede
	mp.BorderSizePixel = 3
	mp.Name = "Music Pitch"
	mp.Position = UDim2.new(0.5,3,0,66)
	mp.Size = UDim2.new(0.5,-3,0,63)
local pi = Instance.new("Frame")
	pi.Parent = pge1
	pi.BackgroundColor3 = blak
	pi.BorderColor3 = rede
	pi.BorderSizePixel = 3
	pi.Name = "Place ID"
	pi.Position = UDim2.new(0.5,3,0,0)
	pi.Size = UDim2.new(0.5,-3,0,63)
local sdi = Instance.new("Frame")
	sdi.Parent = pge1
	sdi.BackgroundColor3 = blak
	sdi.BorderColor3 = rede
	sdi.BorderSizePixel = 3
	sdi.Name = "Skybox/Decal ID"
	sdi.Position = UDim2.new(0,0,0,0)
	sdi.Size = UDim2.new(0.5,0,0,63)
	local textbx = Instance.new("TextBox")
		textbx.Parent = sdi
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "158118263"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = sdi
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Skybox/Decal ID"
		titl.TextColor3 = whit
	local textbx = Instance.new("TextBox")
		textbx.Parent = pi
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "149559312"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = pi
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Place ID"
		titl.TextColor3 = whit
	local textbx = Instance.new("TextBox")
		textbx.Parent = mp
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "0.1"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = mp
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Music Pitch"
		titl.TextColor3 = whit
	local textbx = Instance.new("TextBox")
		textbx.Parent = mid
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "85481339656782"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = mid
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Music ID"
		titl.TextColor3 = whit
	local textbx = Instance.new("TextBox")
		textbx.Parent = cgid
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "108149175"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = cgid
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Custom Gear ID"
		titl.TextColor3 = whit
	local textbx = Instance.new("TextBox")
		textbx.Parent = bgt
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "c00lkidd"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = bgt
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Billboard Gui Text"
		titl.TextColor3 = whit
		titl.TextWrapped = true
		
	local button = Instance.new("TextButton")
		button.Parent = Inv
		button.BackgroundColor3 = blak
		button.BorderColor3 = rede
		button.BorderSizePixel = 3 
		button.Position = UDim2.new(0,0,0.5,0)
		button.Size = UDim2.new(0.99,1,0.5,-1)
		button.Font = tef
		button.FontSize = "Size14"
		button.Text = "On"
		button.TextColor3 = whit
		button.MouseButton1Down:connect(function()
			if button.Text == "Off" then
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

local tool
for _, v in player:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end
for _, v in game.ReplicatedStorage:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end

remote = tool.SyncAPI.ServerEndpoint
function _(args)
    remote:InvokeServer(unpack(args))
end

function SetTrans(part, int)
    local args = {
        [1] = "SyncMaterial",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["Transparency"] = int
            }
        }
    }
    _(args)
end

for _, part in ipairs(char:GetDescendants()) do
    if part:IsA("BasePart") then
        SetTrans(part, 1) 
    end
end

button.Text = "On"
else
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

local tool
for _, v in player:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end
for _, v in game.ReplicatedStorage:GetDescendants() do
    if v.Name == "SyncAPI" then
        tool = v.Parent
    end
end

remote = tool.SyncAPI.ServerEndpoint
function _(args)
    remote:InvokeServer(unpack(args))
end

function SetTrans(part, int)
    local args = {
        [1] = "SyncMaterial",
        [2] = {
            [1] = {
                ["Part"] = part,
                ["Transparency"] = int
            }
        }
    }
    _(args)
end

for _, part in ipairs(char:GetDescendants()) do
    if part:IsA("BasePart") then
        SetTrans(part, 0) 
    end
end

button.Text = "Off"
end
		end)
	local titl = Instance.new("TextLabel")
		titl.Parent = Inv
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Invisibility"
		titl.TextColor3 = whit
		titl.TextWrapped = true
	local button = Instance.new("TextButton")
		button.Parent = god
		button.BackgroundColor3 = blak
		button.BorderColor3 = rede
		button.BorderSizePixel = 3 
		button.Position = UDim2.new(0,0,0.5,0)
		button.Size = UDim2.new(0.99,1,0.5,-1)
		button.Font = tef
		button.FontSize = "Size14"
		button.Text = "On"
		button.TextColor3 = whit
		button.MouseButton1Down:connect(function()
if button.Text == "Off" then
	    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";god")
	button.Text = "On"
	else
	    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";ungod")
	button.Text = "Off"
end
		end)
	local titl = Instance.new("TextLabel")
		titl.Parent = god
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "God"
		titl.TextColor3 = whit
		titl.TextWrapped = true		
--Page 2--
local arr = Instance.new("Frame")
	arr.Parent = pge2
	arr.BackgroundColor3 = blak
	arr.BorderColor3 = rede
	arr.BorderSizePixel = 3
	arr.Name = "Anti Robloxian Range"
	arr.Position = UDim2.new(0.5,3,0,198)
	arr.Size = UDim2.new(0.5,-3,0,63)
local bgc = Instance.new("Frame")
	bgc.Parent = pge2
	bgc.BackgroundColor3 = blak
	bgc.BorderColor3 = rede
	bgc.BorderSizePixel = 3
	bgc.Name = "Billboard Gui Color"
	bgc.Position = UDim2.new(0,0,0,198)
	bgc.Size = UDim2.new(0.5,0,0,63)
local cst = Instance.new("Frame")
	cst.Parent = pge2
	cst.BackgroundColor3 = blak
	cst.BorderColor3 = rede
	cst.BorderSizePixel = 3
	cst.Name = "Chat Spam Text"
	cst.Position = UDim2.new(0,0,0,132)
	cst.Size = UDim2.new(0.5,0,0,63)
local lsa = Instance.new("Frame")
	lsa.Parent = pge2
	lsa.BackgroundColor3 = blak
	lsa.BorderColor3 = rede
	lsa.BorderSizePixel = 3
	lsa.Name = "Leaderstat Amount"
	lsa.Position = UDim2.new(0.5,3,0,132)
	lsa.Size = UDim2.new(0.5,-3,0,63)
local lsn = Instance.new("Frame")
	lsn.Parent = pge2
	lsn.BackgroundColor3 = blak
	lsn.BorderColor3 = rede
	lsn.BorderSizePixel = 3
	lsn.Name = "Leaderstat Name"
	lsn.Position = UDim2.new(0,0,0,66)
	lsn.Size = UDim2.new(0.5,0,0,63)
local nmb = Instance.new("Frame")
	nmb.Parent = pge2
	nmb.BackgroundColor3 = blak
	nmb.BorderColor3 = rede
	nmb.BorderSizePixel = 3
	nmb.Name = "Name Box"
	nmb.Position = UDim2.new(0.5,3,0,66)
	nmb.Size = UDim2.new(0.5,-3,0,63)



local wsa = Instance.new("Frame")
	wsa.Parent = pge2
	wsa.BackgroundColor3 = blak
	wsa.BorderColor3 = rede
	wsa.BorderSizePixel = 3
	wsa.Name = "Walkspeed Amount"
	wsa.Position = UDim2.new(0.5,3,0,0)
	wsa.Size = UDim2.new(0.5,-3,0,63)


local textbx = Instance.new("TextBox")
		textbx.Parent = arr
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "4"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = arr
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Anti Robloxian Rage"
		titl.TextColor3 = whit
		titl.TextWrapped = true
 textbx1 = Instance.new("TextBox")
		textbx1.Parent = bgc
		textbx1.BackgroundColor3 = blak
		textbx1.BorderColor3 = rede
		textbx1.BorderSizePixel = 3 
		textbx1.ClearTextOnFocus = true
		textbx1.Position = UDim2.new(0,0,0.5,0)
		textbx1.Size = UDim2.new(0,50,0.5,-1)
		textbx1.Font = tef
		textbx1.FontSize = "Size14"
		textbx1.Text = "200"
		textbx1.TextColor3 = whit
		textbx1.Name = "TextBox1"
 textbx2 = Instance.new("TextBox")
		textbx2.Parent = bgc
		textbx2.BackgroundColor3 = blak
		textbx2.BorderColor3 = rede
		textbx2.BorderSizePixel = 3 
		textbx2.ClearTextOnFocus = true
		textbx2.Position = UDim2.new(0,50,0.5,0)
		textbx2.Size = UDim2.new(0,50,0.5,-1)
		textbx2.Font = tef
		textbx2.FontSize = "Size14"
		textbx2.Text = "0"
		textbx2.TextColor3 = whit
		textbx2.Name = "TextBox2"
 textbx3 = Instance.new("TextBox")
		textbx3.Parent = bgc
		textbx3.BackgroundColor3 = blak
		textbx3.BorderColor3 = rede
		textbx3.BorderSizePixel = 3 
		textbx3.ClearTextOnFocus = true
		textbx3.Position = UDim2.new(0,100,0.5,0)
		textbx3.Size = UDim2.new(0,50,0.5,-1)
		textbx3.Font = tef
		textbx3.FontSize = "Size14"
		textbx3.Text = "0"
		textbx3.TextColor3 = whit
		textbx3.Name = "TextBox3"
	local titl = Instance.new("TextLabel")
		titl.Parent = bgc
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Billboard Gui Color"
		titl.TextColor3 = whit
		titl.TextWrapped = true		
local textbx = Instance.new("TextBox")
		textbx.Parent = cst
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "join team c00lkidd!"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = cst
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Chat Spam Text"
		titl.TextColor3 = whit
		titl.TextWrapped = true
local textbx = Instance.new("TextBox")
		textbx.Parent = lsa
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "50"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = lsa
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Leaderstat Amount"
		titl.TextColor3 = whit
		titl.TextWrapped = true
local textbx = Instance.new("TextBox")
		textbx.Parent = lsn
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "KOs"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = lsn
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Leaderstat Name"
		titl.TextColor3 = whit
		titl.TextWrapped = true
	local titl = Instance.new("TextLabel")
		titl.Parent = nmb
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Name"
		titl.TextColor3 = whit
		titl.TextWrapped = true
local textbxx = Instance.new("TextBox",nmb)
		textbxx.BackgroundColor3 = blak
		textbxx.BorderColor3 = rede
		textbxx.BorderSizePixel = 3 
		textbxx.ClearTextOnFocus = true
		textbxx.Position = UDim2.new(0,0,0.5,0)
		textbxx.Size = UDim2.new(0.99,1,0.5,-1)
		textbxx.Font = tef
		textbxx.FontSize = "Size14"
		textbxx.Text = "God"
		textbxx.TextColor3 = whit

local button = Instance.new("TextButton")
	button.Parent = localp
	button.BackgroundColor3 = blak
	button.BorderColor3 = rede
	button.BorderSizePixel = 3
	button.Name = "Change Name"
	button.Position = UDim2.new(0,0,0,66)
	button.Size = UDim2.new(0.5,0,0,30)
	button.ZIndex = 2
	button.Font = tef
	button.FontSize = "Size14"
	button.Text = "Change Name"
	button.TextColor3 = whit
	button.TextWrapped = true
	button.MouseButton1Down:connect(function()
    local text = game:GetService("CoreGui").CoolGui.Frame.Settings.Page2["Name Box"].TextBox.text
    local ReplicatedStorage = game:GetService("ReplicatedStorage")
    local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommandSilent
    
    RequestCommandSilent:InvokeServer(";name me " .. text)
end)

local textbx = Instance.new("TextBox")
		textbx.Parent = wsa
		textbx.BackgroundColor3 = blak
		textbx.BorderColor3 = rede
		textbx.BorderSizePixel = 3 
		textbx.ClearTextOnFocus = true
		textbx.Position = UDim2.new(0,0,0.5,0)
		textbx.Size = UDim2.new(0.99,1,0.5,-1)
		textbx.Font = tef
		textbx.FontSize = "Size14"
		textbx.Text = "50"
		textbx.TextColor3 = whit
	local titl = Instance.new("TextLabel")
		titl.Parent = wsa
		titl.BackgroundColor3 = blak
		titl.BorderColor3 = rede
		titl.BorderSizePixel = 3
		titl.Name = "Title"
		titl.Size = UDim2.new(1,0,0,30)
		titl.Font = tef.."Bold"
		titl.FontSize = "Size14"
		titl.Text = "Walkspeed Amount"
		titl.TextColor3 = whit
		titl.TextWrapped = true
--Settings--

-----------------------------------------------------------------------------
--Important Script to make tabs work! DONT TOUCH--
CurrentPage = 1

function FlipPage(Way)
	local NewPage = CurrentPage+Way
	if pges:findFirstChild("Page"..NewPage)~=nil then
		CurrentPage = NewPage
		local P = pges:GetChildren()
		for i = 1, #P do
			P[i].Visible = false
		end
		pges:findFirstChild("Page"..NewPage).Visible = true
	end
end
right.MouseButton1Down:connect(function()FlipPage(1) end)
left.MouseButton1Down:connect(function()FlipPage(-1) end)
page1.addonl.MouseButton1Down:connect(function()CurrentPage=6 FlipPage(-1) end)
page5.addonr.MouseButton1Down:connect(function()CurrentPage=0 FlipPage(1) end)
-----------------------------------------------------------------------------
while true do
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local player = Players.LocalPlayer
local backpack = player:WaitForChild("Backpack")

local RequestCommandSilent = ReplicatedStorage:WaitForChild("HDAdminHDClient")
    :WaitForChild("Signals")
    :WaitForChild("RequestCommandSilent")

local function r()
    local hasBTools = false

    for _, tool in ipairs(backpack:GetChildren()) do
        if tool:IsA("Tool") and tool.Name == "Building Tools" then
            hasBTools = true
            break
        end
    end

    if not hasBTools then
        RequestCommandSilent:InvokeServer(";btools ;give me b")
    end
end

r()
wait(1)
end

Features & Information

leaked by roadblocks

Community Comments (4)

GoodBotK1ngSBloxGoodBotK1ngSBloxJul 5, 2026

cool script, but whys the ScreenGui named to CoolGui?

Replying to @GoodBotK1ngSBlox

@GoodBotK1ngSBlox It's because the guide is from c00lgui

GoodBotK1ngSBloxGoodBotK1ngSBloxJul 5, 2026

ohh ok.

LuckyEscaper1337LuckyEscaper1337Jul 10, 2026

Skid might love ts bc it's not obfuscated

More Scripts for Universal Scripts