-- Standalone web edition. Originals are unchanged. -- Request https://luacommands.siratools.win/ for a complete bundle. local factories = {} local diskLoadfile = loadfile local bundledLoadfile, loadPlaceCommands factories[ [=[cmds.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- /e [speed] -- /emote [speed]; /speed ; /e stop -- /sync ; /sync stop -- /jerk, /jerktool: create the IY animation tool; /animpack, /pack -- Speed 1 is normal. A supplied speed becomes the default for later emotes. workspace.FallenPartsDestroyHeight = 0 / 0 if not game:IsLoaded() then game.Loaded:Wait() end local Players = game:GetService("Players") local TextChatService = game:GetService("TextChatService") local RunService = game:GetService("RunService") while not Players.LocalPlayer do Players:GetPropertyChangedSignal("LocalPlayer"):Wait() end local player = Players.LocalPlayer -- MM2's game.Loaded precedes UISelector.Initialize. Leave its loading flow -- entirely unhooked until Play creates MainGUI and removes the loading screen. local replicatedFirst = game:GetService("ReplicatedFirst") local uiSelector = replicatedFirst and replicatedFirst:FindFirstChild("UISelector") if uiSelector and uiSelector:FindFirstChild("Loading") then local playerGui = player:WaitForChild("PlayerGui") while not playerGui:FindFirstChild("MainGUI") or playerGui:FindFirstChild("Loading") do RunService.Heartbeat:Wait() end RunService.Heartbeat:Wait() end local globals = type(getgenv) == "function" and getgenv() or _G local old = globals.EmoteController if type(old) == "table" and type(old.Disconnect) == "function" then old.Disconnect() end local function validSpeed(value) return type(value) == "number" and value == value and value > 0 and value < math.huge end if not validSpeed(globals.EmoteSpeed) then globals.EmoteSpeed = 1 end local state = { Active = true, Connections = {}, Commands = {}, DisabledCommands = {}, Request = 0 } local extraCommands globals.EmoteController = state local cache = {} local publishedNames=globals.CommandsPublishedPlaceNames if type(publishedNames)~="table" then publishedNames={};globals.CommandsPublishedPlaceNames=publishedNames end local placeNameKey=tostring(game.PlaceId) function state.GetGameName() return publishedNames[placeNameKey] or placeNameKey end if not publishedNames[placeNameKey] then task.spawn(function() local ok,info=pcall(function() return game:GetService("MarketplaceService"):GetProductInfoAsync(game.PlaceId) end) if ok and type(info)=="table" and type(info.Name)=="string" and info.Name:find("%S") then publishedNames[placeNameKey]=info.Name local input=state.Active and state.ChatInput if input and input.Active and input.Focused then input.UpdateSuggestions() end end end) end local function report(message) pcall(function() game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Command failed", Text = tostring(message), Duration = 3, }) end) warn("Commands: " .. tostring(message)) end local cancelStates = { [Enum.HumanoidStateType.Jumping] = true, [Enum.HumanoidStateType.Freefall] = true, [Enum.HumanoidStateType.Climbing] = true, [Enum.HumanoidStateType.Swimming] = true, [Enum.HumanoidStateType.Seated] = true, [Enum.HumanoidStateType.PlatformStanding] = true, [Enum.HumanoidStateType.FallingDown] = true, [Enum.HumanoidStateType.GettingUp] = true, [Enum.HumanoidStateType.Dead] = true, } local function localEmoteCancelled(humanoid) return humanoid.MoveDirection.Magnitude > 0.01 or humanoid.Jump or cancelStates[humanoid:GetState()] == true end local function stopTrack() for _, connection in ipairs(state.MovementConnections or {}) do connection:Disconnect() end state.MovementConnections = nil if state.Ended then state.Ended:Disconnect(); state.Ended = nil end if state.Track then state.Track:Stop(0.1) state.Track:Destroy() state.Track = nil end if state.Animation then state.Animation:Destroy(); state.Animation = nil end end function state.Stop() state.Request = state.Request + 1 if state.SyncController then state.SyncController.Stop() end stopTrack() if state.StopJerk then state.StopJerk() end end function state.SetSpeed(value) local speed = tonumber(value) if not validSpeed(speed) then return false, "Speed must be a positive finite number; 1 is normal." end globals.EmoteSpeed = speed if state.Track then state.Track:AdjustSpeed(speed) end return true end local function watchLocalMovement(character, humanoid, track) local function cancel() if state.Track == track then state.Stop() end end state.MovementConnections = { humanoid.Running:Connect(function(speed) if speed > 0.75 then cancel() end end), humanoid.StateChanged:Connect(function(_, newState) if cancelStates[newState] then cancel() end end), RunService.Heartbeat:Connect(function() if character ~= player.Character or humanoid.Health <= 0 or localEmoteCancelled(humanoid) then cancel() end end), } end local function resolveAnimationID(id) if cache[id] then return cache[id] end -- Catalog emotes may contain an Animation whose ID differs from the catalog ID. -- GetObjects is optional: ordinary LocalScripts may not have permission to use it. local ok, objects = pcall(function() return game:GetObjects("rbxassetid://" .. id) end) local resolved if ok and type(objects) == "table" then for _, object in ipairs(objects) do if object:IsA("Animation") then resolved = object.AnimationId end if not resolved then for _, child in ipairs(object:GetDescendants()) do if child:IsA("Animation") then resolved = child.AnimationId; break end end end object:Destroy() end end resolved = resolved or "rbxassetid://" .. id cache[id] = resolved return resolved end state.ResolveAnimationID = resolveAnimationID function state.Play(value, speedValue) local id = tostring(value or ""):match("^%s*(%d+)%s*$") or tostring(value or ""):match("^rbxassetid://(%d+)$") if not id or tonumber(id) == 0 then return false, "Use /e [speed], /speed , or /e stop." end local speed = speedValue ~= nil and tonumber(speedValue) or globals.EmoteSpeed if not validSpeed(speed) then return false, "Speed must be a positive finite number." end local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") if not animator or humanoid.Health <= 0 then return false, "Your character has no living Humanoid/Animator yet." end if localEmoteCancelled(humanoid) then return false, "Stand still before playing an emote." end state.Request = state.Request + 1 local request = state.Request local ok, result = pcall(resolveAnimationID, id) if not ok then return false, tostring(result) end if not state.Active or request ~= state.Request or character ~= player.Character then return false, "Emote request cancelled." end local animation = Instance.new("Animation") animation.AnimationId = result local loaded, track = pcall(function() return animator:LoadAnimation(animation) end) if not loaded then animation:Destroy(); return false, tostring(track) end if not state.Active or request ~= state.Request or character ~= player.Character then track:Destroy(); animation:Destroy(); return false, "Emote request cancelled." end if localEmoteCancelled(humanoid) then track:Destroy(); animation:Destroy(); return false, "Emote cancelled because you moved or jumped." end if state.SyncController then state.SyncController.Stop() end if state.StopJerk then state.StopJerk() end stopTrack() state.Track, state.Animation = track, animation track.Priority = Enum.AnimationPriority.Action local played, err = pcall(function() track:Play(0.1, 1, speed) end) if not played then stopTrack(); return false, tostring(err) end globals.EmoteSpeed = speed state.Ended = track.Ended:Connect(function() if state.Track == track then stopTrack() end end) watchLocalMovement(character, humanoid, track) return true end local function resolveUser(query, allowOffline) query = tostring(query or ""):match("^%s*(.-)%s*$") if extraCommands and extraCommands.IsSelectorQuery(query) then local ok,owner=pcall(extraCommands.SelectPlayer,query) if not ok then return nil,tostring(owner) end return {Player=owner,UserId=owner.UserId,Name=owner.Name} end if (query:sub(1, 1) == '"' and query:sub(-1) == '"') or (query:sub(1, 1) == "'" and query:sub(-1) == "'") then query = query:sub(2, -2) end if query == "" then return nil, "Enter a username, display name, or user ID." end if extraCommands and (({ ["@s"]=true,["@a"]=true,["@all"]=true,["@o"]=true,["@r"]=true,["@p"]=true,["@n"]=true,["@f"]=true,["@c"]=true,["@l"]=true,["@clients"]=true,["@host"]=true,["@nonclients"]=true,["@t"]=true,["@e"]=true })[query:lower()] or extraCommands.IsPlaceSelector(query)) then local ok, owner = pcall(extraCommands.SelectPlayer, query) if not ok then return nil, tostring(owner) end return { Player = owner, UserId = owner.UserId, Name = owner.Name } end local usernameOnly = query:sub(1, 1) == "@" if usernameOnly then query = query:sub(2) end if query == "" then return nil, "Enter a username after @." end local numeric = not usernameOnly and query:match("^%d+$") and tonumber(query) local roster = Players:GetPlayers() if numeric then for _, other in ipairs(roster) do if other.UserId == numeric then if extraCommands then extraCommands.RememberTarget(other) end return { Player = other, UserId = other.UserId, Name = other.Name } end end end local lower = query:lower() local matches, best = {}, math.huge for _, other in ipairs(roster) do if other ~= player and other.UserId ~= player.UserId then local name, display = other.Name:lower(), other.DisplayName:lower() local score if name == lower then score = 0 elseif name:sub(1, #lower) == lower then score = 1 elseif not usernameOnly and display == lower then score = 2 elseif not usernameOnly and display:sub(1, #lower) == lower then score = 3 end if score and score < best then best, matches = score, { other } elseif score and score == best then table.insert(matches, other) end end end if #matches > 0 then local other = matches[1] if extraCommands then extraCommands.RememberTarget(other) end return { Player = other, UserId = other.UserId, Name = other.Name } end if allowOffline then -- A numeric string can be an exact username. Try that before treating -- a number absent from this server as an offline UserId. if query:match("^[%w_]+$") then local ok, userId = pcall(function() return Players:GetUserIdFromNameAsync(query) end) if ok and type(userId) == "number" and userId > 0 then return { UserId = userId, Name = query } end end if numeric and numeric > 0 and numeric < 2 ^ 53 then local ok, name = pcall(function() return Players:GetNameFromUserIdAsync(numeric) end) if ok then return { UserId = numeric, Name = name } end end return nil, "No matching player/account. Offline lookup requires an exact username or valid user ID." end return nil, "No matching player in this server." end local function findSyncPlayer(query) local result, err = resolveUser(query, false) return result and result.Player, err end state.ResolveUser = resolveUser function state.CopyUserId(query) local target, err if tostring(query or ""):match("^%s*$") then target = { UserId = player.UserId } else target, err = resolveUser(query, true) end if not target then return false, err end local copy = type(setclipboard) == "function" and setclipboard or type(toclipboard) == "function" and toclipboard or type(set_clipboard) == "function" and set_clipboard or type(Clipboard) == "table" and type(Clipboard.set) == "function" and Clipboard.set if not copy then return false, "This environment has no clipboard setter." end local ok, copyError = pcall(copy, tostring(target.UserId)) if not ok then return false, "Could not copy user ID: " .. tostring(copyError) end return true end function state.Sync(query) local target, err = findSyncPlayer(query) if not target then return false, err end local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local targetCharacter = target.Character local targetHumanoid = targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid") if not humanoid or not targetHumanoid or humanoid.Health <= 0 or targetHumanoid.Health <= 0 or not humanoid.RootPart or not targetHumanoid.RootPart or not humanoid:FindFirstChildOfClass("Animator") or not targetHumanoid:FindFirstChildOfClass("Animator") then return false, "Both players need a spawned character with an Animator and root part." end if localEmoteCancelled(humanoid) then return false, "Stand still before syncing an emote." end if not state.SyncController then local chunk, loadError = loadfile("syncemote.lua") if not chunk then return false, tostring(loadError) end local ok, controller = pcall(chunk, { CommandMode = true }) if not ok then return false, tostring(controller) end state.SyncController = controller end state.Stop() local ok, syncError = pcall(state.SyncController.Start, target.UserId) if not ok then state.SyncController.Stop(); return false, tostring(syncError) end return true end local movementCommands = { idle = true, walk = true, run = true, jump = true, fall = true, climb = true, swim = true, swimidle = true } local function avatarController() if not state.AvatarAnimations then state.AvatarAnimations = assert(loadfile("avatar_animations.lua"))() end return state.AvatarAnimations end function state.SetMovement(kind, id) state.Stop() return avatarController().SetMovement(kind, id) end function state.SetEmoteMovement(kind, value) local id = tostring(value or ""):match("^%s*(%d+)%s*$") or tostring(value or ""):match("^rbxassetid://(%d+)$") if not id or tonumber(id) <= 0 then return false, "Use /e" .. kind .. " ." end state.Stop() local request = state.Request local ok, animationID = pcall(resolveAnimationID, id) if not ok then return false, tostring(animationID) end if not state.Active or state.Request ~= request then return false, "Animation request cancelled." end return avatarController().SetMovementAnimation(kind, animationID) end -- Adapted from EdgeIY/infiniteyield's jerk tool. Use bounded frame callbacks -- so unequipping, character removal, and controller reload release everything. function state.CreateJerkTool() if state.JerkTool and state.JerkTool.Parent then return true end local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") local backpack = player:FindFirstChildOfClass("Backpack") if not animator or not backpack or humanoid.Health <= 0 then return false, "Your character and backpack must be ready." end local tool = Instance.new("Tool") tool.Name, tool.ToolTip = "Jerk Off", "Equip to play; unequip to stop." tool.RequiresHandle, tool.CanBeDropped = false, false local connections, track, animation, heartbeat = {}, nil, nil, nil local cleaned = false local function stop() if heartbeat then heartbeat:Disconnect(); heartbeat = nil end if track then track:Stop(0); track:Destroy(); track = nil end if animation then animation:Destroy(); animation = nil end end local function cleanup() if cleaned then return end cleaned = true stop() for _, connection in ipairs(connections) do connection:Disconnect() end if state.JerkTool == tool then state.JerkTool, state.StopJerk, state.DestroyJerkTool = nil, nil, nil end tool:Destroy() end connections[#connections + 1] = tool.Equipped:Connect(function() state.Stop() if cleaned or not state.Active or character ~= player.Character or humanoid.Health <= 0 then return end local isR15 = humanoid.RigType == Enum.HumanoidRigType.R15 animation = Instance.new("Animation") animation.AnimationId = isR15 and "rbxassetid://698251653" or "rbxassetid://72042024" local ok, err = pcall(function() track = animator:LoadAnimation(animation) track.Priority = Enum.AnimationPriority.Action local function pulse() track:Play(0, 1, isR15 and 0.7 or 0.65) track.TimePosition = 0.6 end pulse() heartbeat = RunService.Heartbeat:Connect(function() if not state.Active or character ~= player.Character or humanoid.Health <= 0 or tool.Parent ~= character then stop(); return end local played, playError = pcall(function() if not track.IsPlaying or track.TimePosition >= (isR15 and 0.7 or 0.65) then pulse() end end) if not played then stop(); report(playError) end end) end) if not ok then stop(); report(err) end end) connections[#connections + 1] = tool.Unequipped:Connect(stop) connections[#connections + 1] = humanoid.Died:Connect(cleanup) connections[#connections + 1] = player.CharacterRemoving:Connect(cleanup) connections[#connections + 1] = tool.Destroying:Connect(cleanup) state.JerkTool, state.StopJerk, state.DestroyJerkTool = tool, stop, cleanup tool.Parent = backpack return true end function state.SetAnimationPack(value) state.Stop() return avatarController().SetPack(value) end function state.CopyAnimations(query) local target, err = resolveUser(query, true) if not target then return false, err end state.Stop() return avatarController().CopyFromUser(target.UserId, target.Player) end function state.Teleport(transform) if extraCommands then return extraCommands.Teleport(transform) end local character=assert(player.Character,"Your character has not spawned") character:PivotTo(transform) end function state.GoTo(query) if extraCommands then local handled, ok, err = extraCommands.GoToPlaceTarget(tostring(query or "")) if handled then return ok, err end end local target, err = resolveUser(query, true) if not target then return false, err end if not target.Player then return false, "That account is not in this server; /to needs its current character." end if target.Player==player then return true end local character, targetCharacter = player.Character, target.Player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local targetHumanoid = targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid") local root = humanoid and humanoid.RootPart local targetRoot = targetHumanoid and targetHumanoid.RootPart if not root or not targetRoot or humanoid.Health <= 0 or targetHumanoid.Health <= 0 then return false, "Both characters must be spawned and alive." end if state.AntiFling and not state.AntiFling.IsReady(player) then return false, "Your character's collision filter is not ready." end state.Stop() root.AssemblyLinearVelocity, root.AssemblyAngularVelocity = Vector3.zero, Vector3.zero state.Teleport(targetRoot.CFrame * CFrame.new(0, 0, 3)) return true end function state.ResetAnimations() state.Stop() -- Fetch the equipped avatar rather than reading our currently overridden Animate. return avatarController().CopyFromUser(player.UserId) end function state.Rejoin() if state.Rejoining then return true end if type(game.JobId) ~= "string" or game.JobId == "" then return false, "This session has no JobId; same-server rejoin is unavailable." end local TeleportService = game:GetService("TeleportService") if not state.Connections.RejoinFailure then state.Connections.RejoinFailure = TeleportService.TeleportInitFailed:Connect(function(who, _, message, placeId) if who == player and state.Rejoining and placeId == game.PlaceId then state.Rejoining = false report("Rejoin failed: " .. tostring(message) .. ". Use /rj to retry.") end end) end state.Rejoining = true local ok, err = pcall(function() -- Only request the teleport. Volt's autoexec handles the next session. TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, player) end) if not ok then state.Rejoining = false; return false, tostring(err) end return true end function state.SetAntiFling(enabled) if not enabled then if state.AntiFling then state.AntiFling.Disconnect(); state.AntiFling = nil end return true end if state.AntiFling and state.AntiFling.Active then return true end local loaded, chunk, err = pcall(loadfile, "antifling.lua") if not loaded or not chunk then return false, tostring(loaded and err or chunk) end local ok, controller = pcall(chunk) if not ok then return false, tostring(controller) end state.AntiFling = controller return true end local function handle(message) local words = {} for word in message:gmatch("%S+") do table.insert(words, word) end local command = (words[1] or ""):lower() local ok, err if command == "/antifling" or command == "/unantifling" then if #words ~= 1 then report("Use /antifling or /unantifling without arguments."); return end ok, err = state.SetAntiFling(command == "/antifling") elseif command == "/rj" or command == "/rejoin" then if #words ~= 1 then report("Use /rj or /rejoin without arguments."); return end ok, err = state.Rejoin() elseif command == "/to" or command == "/goto" then ok, err = state.GoTo(message:match("^%s*%S+%s+(.+)$") or "") elseif command == "/copyid" or command == "/userid" or command == "/id" then ok, err = state.CopyUserId(message:match("^%s*%S+%s+(.+)$") or "") elseif command == "/jerk" or command == "/jerktool" then if #words ~= 1 then report("Use /jerk or /jerktool without arguments."); return end ok, err = state.CreateJerkTool() elseif command == "/animpack" or command == "/pack" then if #words ~= 2 then report("Use " .. command .. " ."); return end ok, err = state.SetAnimationPack(words[2]) elseif command == "/copyanim" then ok, err = state.CopyAnimations(message:match("^%s*%S+%s+(.+)$") or "") elseif command == "/resetanim" then if #words ~= 1 then report("Use /resetanim."); return end ok, err = state.ResetAnimations() elseif command:sub(1, 2) == "/e" and movementCommands[command:sub(3)] then if #words ~= 2 then report("Use " .. command .. " ."); return end ok, err = state.SetEmoteMovement(command:sub(3), words[2]) elseif movementCommands[command:sub(2)] then if #words ~= 2 then report("Use " .. command .. " ."); return end ok, err = state.SetMovement(command:sub(2), words[2]) elseif command == "/sync" or command == "/s" then local query = message:match("^%s*%S+%s+(.+)$") or "" if query:lower():match("^%s*stop%s*$") then state.Stop(); return end ok, err = state.Sync(query) elseif command == "/speed" then if #words ~= 2 then report("Use /speed ."); return end ok, err = state.SetSpeed(words[2]) elseif command == "/e" or command == "/emote" then if words[2] and words[2]:lower() == "stop" and #words == 2 then state.Stop(); return end if #words < 2 or #words > 3 then report("Use /e [speed] or /e stop."); return end ok, err = state.Play(words[2], words[3]) elseif extraCommands and extraCommands.Has(command) then ok, err = extraCommands.Run(command, message:match("^%s*%S+%s*(.*)$") or "") else report("Unknown command: " .. command); return end if not ok then report(err) end end local repeatAliases = { ["/r"]=true,["/rerun"]=true,["/reexec"]=true,["/repeat"]=true } local aliases = { ["/e"] = true, ["/emote"] = true, ["/speed"] = true, ["/sync"] = true, ["/s"] = true, ["/jerk"] = true, ["/jerktool"] = true, ["/animpack"] = true, ["/pack"] = true, ["/copyanim"] = true, ["/resetanim"] = true, ["/rj"] = true, ["/rejoin"] = true, ["/copyid"] = true, ["/userid"] = true, ["/id"] = true, ["/antifling"] = true, ["/unantifling"] = true, ["/to"] = true, ["/goto"] = true } for name in pairs(repeatAliases) do aliases[name] = true end for kind in pairs(movementCommands) do aliases["/" .. kind] = true; aliases["/e" .. kind] = true end do local loaded, chunk = pcall(loadfile, "cmds_extra.lua") if loaded and chunk then local ok, extension = pcall(chunk, { Controller = state, Existing = aliases, ResolveUser = resolveUser, Report = report }) if ok then extraCommands, state.ExtraCommands = extension, extension for _, entry in ipairs(extension.Catalog) do for _, name in ipairs(entry.Names) do aliases["/" .. name] = true end end else report("Extra commands could not start: " .. tostring(extension)) end else report("Extra commands could not load: " .. tostring(chunk)) end end -- One persistent hook dispatches to the active controller, without stacking on reload. local chatHook = globals.EmoteChatHook if type(chatHook) ~= "table" then chatHook = {}; globals.EmoteChatHook = chatHook end chatHook.Controller = state state.IsCommand = function(message) if not state.Active or type(message) ~= "string" then return false end local command = message:match("^%s*(%S+)") return command ~= nil and (command:sub(1, 1) == "/" or command:sub(1, 1) == ";") end state.HasCommand = function(message) if type(message)~="string" then return false end local command=(message:match("^%s*(%S+)") or ""):lower():gsub("^;","/") return aliases[command]==true end state.HandleChat = function(message) if not state.IsCommand(message) then return false end -- Keep one canonical command registry regardless of the typed prefix. message = message:gsub("^%s*;", "/", 1) local command=(message:match("^%s*(%S+)") or ""):lower() if repeatAliases[command] then if not state.LastCommand then report("There is no previous command to repeat.");return true end local params = message:match("^%s*%S+%s+(.+)$") if params and params:find("%S") then message = state.LastCommand:match("^%s*(%S+)") .. " " .. params state.LastCommand = message else message = state.LastCommand end elseif aliases[command] then state.LastCommand=message end task.spawn(function() if not state.Active then return end local ok, err = pcall(handle, message) if not ok then report(err) end end) return true end if (not chatHook.Installed or chatHook.Version ~= 3) and type(hookmetamethod) == "function" and type(getnamecallmethod) == "function" then local previous local function intercept(instance, ...) local method = getnamecallmethod() if typeof(instance) == "Instance" then -- Property reads avoid nested __namecall calls such as IsA, which -- can replace the method metadata before an unrelated call is forwarded. local className = instance.ClassName local chatSend = method == "SendAsync" and className == "TextChannel" or method == "FireServer" and className == "RemoteEvent" and instance.Name == "SayMessageRequest" or method == "Chat" and instance == Players if chatSend then local controller = chatHook.Controller -- Do not call previous for a recognized command, including invalid arguments. if controller and controller.HandleChat((...)) then return nil end end end if type(setnamecallmethod) == "function" then setnamecallmethod(method) end return previous(instance, ...) end local ok = pcall(function() previous = hookmetamethod(game, "__namecall", type(newcclosure) == "function" and newcclosure(intercept) or intercept) end) chatHook.Installed = ok if ok then chatHook.Version = 3 end end -- Volt hookfunction also intercepts direct/cached SendAsync function calls. chatHook.FunctionHooks = chatHook.FunctionHooks or {} chatHook.FunctionHookVersions = chatHook.FunctionHookVersions or {} local function hookChatFunction(instance, method) if type(hookfunction) ~= "function" then return end local ok, target = pcall(function() return instance[method] end) if not ok or type(target) ~= "function" or chatHook.FunctionHookVersions[target] == 2 then return end -- Replacing an older copy of our hook must forward to its saved original, -- rather than chaining through the old argument-expanding wrapper again. local original = chatHook.FunctionHooks[target] local function intercept(self, ...) local message = (...) local controller = chatHook.Controller if typeof(self) == "Instance" then local chatSend = method == "SendAsync" and self.ClassName == "TextChannel" or method == "FireServer" and self.ClassName == "RemoteEvent" and self.Name == "SayMessageRequest" if chatSend and controller and controller.HandleChat(message) then return nil end end -- Preserve the caller's exact arity, including zero args and trailing nils. return original(self, ...) end local installed = pcall(function() local prior = hookfunction(target, type(newcclosure) == "function" and newcclosure(intercept) or intercept) original = original or prior end) if installed then chatHook.FunctionHooks[target] = original chatHook.FunctionHookVersions[target] = 2 end end local function watchChatSender(instance) if instance:IsA("TextChannel") then hookChatFunction(instance, "SendAsync") elseif instance:IsA("RemoteEvent") and instance.Name == "SayMessageRequest" then hookChatFunction(instance, "FireServer") end end for _, instance in ipairs(TextChatService:GetDescendants()) do watchChatSender(instance) end state.Connections.ChatChannelAdded = TextChatService.DescendantAdded:Connect(watchChatSender) local replicatedStorage = game:GetService("ReplicatedStorage") if replicatedStorage then local legacy = replicatedStorage:FindFirstChild("DefaultChatSystemChatEvents") if legacy then local sender = legacy:FindFirstChild("SayMessageRequest") if sender then watchChatSender(sender) end end state.Connections.LegacyChatAdded = replicatedStorage.DescendantAdded:Connect(function(instance) if instance:IsA("RemoteEvent") and instance.Name == "SayMessageRequest" then watchChatSender(instance) end end) end -- Intercept the chat input's submission callback before CoreGui can create -- a local chat/bubble preview or call a cached send function. chatHook.InputHooks = chatHook.InputHooks or {} chatHook.InputBoxes = chatHook.InputBoxes or setmetatable({}, { __mode = "k" }) local function isChatBox(box) if not box:IsA("TextBox") then return false end local ok, configured = pcall(function() return TextChatService.ChatInputBarConfiguration.TextBox end) if ok and configured == box then return true end local ancestor = box while ancestor do local name = ancestor.Name:lower() if name == "experiencechat" or name == "chat" or name == "chatbar" or name == "chatinputbar" or name == "chatinputbarconfiguration" then return true end ancestor = ancestor.Parent end return false end local function hookChatInput(box) if type(getconnections) ~= "function" or type(hookfunction) ~= "function" or not isChatBox(box) then return end local entry = chatHook.InputBoxes[box] if not entry then entry = {}; chatHook.InputBoxes[box] = entry end local ok, connections = pcall(getconnections, box.FocusLost) if not ok then return end for _, connection in ipairs(connections) do local callback = connection.Function if type(callback) == "function" and not chatHook.InputHooks[callback] then local original local installed = pcall(function() original = hookfunction(callback, function(enterPressed, ...) local controller = chatHook.Controller if enterPressed and controller and controller.Active then local text = box.Text if controller.IsCommand(text) then entry.SuppressUntil = os.clock() + 0.25 box.Text = "" controller.HandleChat(text) return nil elseif text == "" and entry.SuppressUntil and os.clock() < entry.SuppressUntil then return nil end end return original(enterPressed, ...) end) end) if installed then chatHook.InputHooks[callback] = original end end end end local inputService = game:GetService("UserInputService") if inputService then state.Connections.ChatBoxFocused = inputService.TextBoxFocused:Connect(function(box) task.defer(function() if state.Active then hookChatInput(box) end end) end) end local coreGui = game:GetService("CoreGui") if coreGui then for _, box in ipairs(coreGui:GetDescendants()) do if box:IsA("TextBox") then hookChatInput(box) end end state.Connections.ChatBoxAdded = coreGui.DescendantAdded:Connect(function(box) if box:IsA("TextBox") then task.defer(function() if state.Active then hookChatInput(box) end end) end end) end state.ChatHookAvailable = chatHook.Installed == true or next(chatHook.FunctionHooks) ~= nil local function disableConflictingCommand(command) if not command:IsA("TextChatCommand") then return end for _, owned in ipairs(state.Commands) do if command == owned then return end end if aliases[command.PrimaryAlias:lower()] or aliases[command.SecondaryAlias:lower()] then if state.DisabledCommands[command] == nil then state.DisabledCommands[command] = command.Enabled end command.Enabled = false end end for _, command in ipairs(TextChatService:GetDescendants()) do disableConflictingCommand(command) end state.Connections.CommandAdded = TextChatService.DescendantAdded:Connect(disableConflictingCommand) local function addCommand(name, primary, secondary) local command = Instance.new("TextChatCommand") command.Name, command.PrimaryAlias, command.SecondaryAlias = name, primary, secondary or "" -- Older Roblox builds may lack DeliverMessage; their command default also sinks messages. pcall(function() command.DeliverMessage = false end) table.insert(state.Commands, command) table.insert(state.Connections, command.Triggered:Connect(function(source, message) if source and source.UserId ~= player.UserId then return end state.HandleChat(message) end)) command.Parent = TextChatService:FindFirstChild("TextChatCommands") or TextChatService end addCommand("LocalEmoteByID", "/emote", "/e") addCommand("LocalEmoteSpeed", "/speed") addCommand("LocalEmoteSync", "/sync", "/s") addCommand("LocalRepeatCommand", "/r", "/rerun") addCommand("LocalRepeatCommandAliases", "/reexec", "/repeat") addCommand("LocalJerkTool", "/jerk", "/jerktool") addCommand("LocalAnimationPack", "/animpack", "/pack") addCommand("LocalCopyAvatarAnimations", "/copyanim") addCommand("LocalResetAvatarAnimations", "/resetanim") addCommand("LocalRejoinServer", "/rejoin", "/rj") addCommand("LocalCopyUserId", "/copyid", "/userid") addCommand("LocalUserIdAlias", "/id") addCommand("LocalAntiFling", "/antifling", "/unantifling") addCommand("LocalGoToPlayer", "/to", "/goto") for kind in pairs(movementCommands) do addCommand("LocalMovement_" .. kind, "/" .. kind, "/e" .. kind) end if extraCommands then for index, entry in ipairs(extraCommands.Catalog) do for offset = 1, #entry.Names, 2 do addCommand("LocalUtility_" .. index .. "_" .. offset, "/" .. entry.Names[offset], entry.Names[offset + 1] and "/" .. entry.Names[offset + 1]) end end end -- Route submitted text ourselves instead of trusting hooks to see CoreGui's -- engine-owned submission. Roblox's chat display and ordinary chat remain active. local loadedInput, inputChunk, inputError = pcall(loadfile, "emote_chat_input.lua") if loadedInput and inputChunk then local ok, input = pcall(inputChunk, { Controller = state, Aliases = aliases, Report = report, ExtraCommands = extraCommands and extraCommands.Catalog }) if ok then state.ChatInput = input else report("Private input could not start: " .. tostring(input)) end else report("Private input could not load: " .. tostring(loadedInput and inputError or inputChunk)) end state.Connections.CharacterRemoving = player.CharacterRemoving:Connect(state.Stop) function state.Disconnect() if not state.Active then return end state.Active = false state.Stop() if state.DestroyJerkTool then state.DestroyJerkTool() end state.SetAntiFling(false) if state.CommandNetwork then state.CommandNetwork.Disconnect() end if extraCommands then extraCommands.Disconnect() end if state.ChatInput then state.ChatInput.Disconnect() end if state.AvatarAnimations then state.AvatarAnimations.Disconnect() end if chatHook.Controller == state then chatHook.Controller = nil end for _, connection in pairs(state.Connections) do connection:Disconnect() end for _, command in ipairs(state.Commands) do command:Destroy() end for command, enabled in pairs(state.DisabledCommands) do pcall(function() command.Enabled = enabled end) end if globals.EmoteController == state then globals.EmoteController = nil end end -- Register every commands instance as an available relay client without following -- other servers, muting sound, or changing existing client scripts. do local ok,network=pcall(function() return assert(loadfile("cmds_network.lua"))({Controller=state,Report=report}) end) if ok then state.CommandNetwork=network else warn("Host/client commands unavailable: "..tostring(network)) end end -- Optional immediate playback: set getgenv().EmoteAnimationID before loading. if globals.EmoteAnimationID then task.spawn(function() local ok, err = state.Play(globals.EmoteAnimationID) if not ok then report(err) end end) end return state end end factories[ [=[cmds_extra.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Shared registry for the custom UI, native overrides, and pinned IY handlers. local options = ... local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local globals = type(getgenv) == "function" and getgenv() or _G local controller = options.Controller local espBounds=assert(loadfile("cmds_esp_bounds.lua"))() local api = { Active = true, Catalog = {}, Routes = {}, Loops = {}, Connections = {}, Instances = {}, Threads = {}, Native = {}, ESP = {}, Locate = {} } local function notify(text) pcall(function() game:GetService("StarterGui"):SetCore("SendNotification", { Title = "Commands", Text = tostring(text), Duration = 3 }) end) end api.Targeting=assert(loadfile("cmds_targeting.lua"))({ Notify=notify, GetHighlight=function(owner) local visual=api.ESP[owner] if visual and visual.Highlight.Parent then return visual.Highlight end local roles=api.PlaceCommands and api.PlaceCommands.RoleView or globals.RoleViewController local record=roles and roles.Active and roles.Players and roles.Players[owner] return record and record.Highlight and record.Highlight.Parent and record.Highlight or nil end, IsESPEnabled=function() local roles=api.PlaceCommands and api.PlaceCommands.RoleView or globals.RoleViewController return api.ESPMode~=nil or next(api.Locate)~=nil or (roles~=nil and roles.Active==true) end, }) function api.RememberTarget(owner) if owner and owner.Parent==Players then globals.CommandsLastTargetId=owner.UserId end end local function rootOf(owner) local character = owner and owner.Character return character and (character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso")) end function api.Teleport(transform) local invis=api.Invisibility or globals.CommandsInvisibility if invis and invis.Active then return invis.PivotTo(transform) end local character=assert(player.Character,"Your character has not spawned") character:PivotTo(transform) end function api.SetRootCFrame(transform) local invis=api.Invisibility or globals.CommandsInvisibility if invis and invis.Active then return invis.SetRootCFrame(transform) end local root=assert(rootOf(player),"Your character has not spawned") root.CFrame=transform root.AssemblyLinearVelocity,root.AssemblyAngularVelocity=Vector3.zero,Vector3.zero end -- Position a connected body part by compensating for its current animated -- offset from the root. Move the intact rig; do not modify any Motor6D/Neck. function api.AlignBodyPart(part,transform) local character=assert(player.Character,"Your character has not spawned") local root=assert(rootOf(player),"Your character has no root") assert(part and part:IsA("BasePart") and part:IsDescendantOf(character),"Body part is unavailable") local rootToPart=root.CFrame:ToObjectSpace(part.CFrame) local _,yaw=(transform*rootToPart:Inverse()):ToOrientation() local rotation=CFrame.Angles(0,yaw,0) -- Keep the root upright while preserving the chosen body's exact position. -- Animation can still pose the torso/head without tilting the whole rig. local offset=(rotation*CFrame.new(rootToPart.Position)).Position api.SetRootCFrame(CFrame.new(transform.Position-offset)*rotation) end local function finite(value, default) local n = tonumber(value) if value == nil and default ~= nil then return default end assert(n and n == n and math.abs(n) < math.huge, "Expected a finite number") return n end local function selectPlayers(query,context) query = tostring(query or ""):match("^%s*(.-)%s*$") local key, list = api.Selectors.Canonical(query), {} if key=="@all" then key="@a" end if key=="@clients" or key=="@host" or key=="@nonclients" then return assert(controller.CommandNetwork,"Host/client coordination is unavailable").SelectGroup(key) end if key=="@n" then key="@p" end if key=="@c" then return {api.Targeting.Pick()} end if key=="@l" then local lastID=globals.CommandsLastTargetId if context then lastID=context.LastTargetId end local last=lastID and Players:GetPlayerByUserId(lastID) assert(last,"There is no previous targeted player in this server") return {last} end if api.PlaceCommands and api.PlaceCommands.IsSelector(key) then return api.PlaceCommands.Select(key) end if key == "@s" then return { player } end if key == "@a" then return Players:GetPlayers() end local localRoot = rootOf(player) for _, other in ipairs(Players:GetPlayers()) do if other ~= player then local selected = key == "@o" or key == "@r" or key == "@p" or key == "@f" or key == "@t" and not player.Neutral and not other.Neutral and player.Team ~= nil and other.Team == player.Team or key == "@e" and (player.Neutral or other.Neutral or player.Team == nil or other.Team==nil or other.Team ~= player.Team) if selected then table.insert(list, other) end end end if key == "@r" then assert(#list > 0, "No other players are available") return { list[math.random(1, #list)] } elseif key == "@p" or key == "@f" then assert(localRoot, "Your character has not spawned") local nearest, distance = nil, key=="@f" and -math.huge or math.huge for _, other in ipairs(list) do local root = rootOf(other) if root then local current = (root.Position - localRoot.Position).Magnitude if (key=="@f" and current>distance) or (key~="@f" and current0 then api.RememberTarget(matches[#matches]) end return matches end -- Single-target commands choose uniformly from a selector's full result set. function api.SelectPlayer(query) local matches=api.SelectPlayers(query) assert(#matches>0,"No players match that selector") local target=matches[math.random(1,#matches)] api.RememberTarget(target) return target end local function stopLoop(name) local loop = api.Loops[name] if loop then if loop.Connection.Connected then loop.Connection:Disconnect() end api.Loops[name] = nil if loop.Cleanup then pcall(loop.Cleanup) end end end local function frameLoop(name, callback, interval, cleanup) stopLoop(name) local loop = { Elapsed = 0, Cleanup = cleanup } loop.Connection = RunService.RenderStepped:Connect(function(delta) if not api.Active then return end loop.Elapsed = loop.Elapsed + delta if interval and interval > 0 and loop.Elapsed < interval then return end loop.Elapsed = 0 local ok, err = pcall(callback, delta) if not ok then stopLoop(name); options.Report(err) end end) api.Loops[name] = loop end local function arguments(text) local result, position = {}, 1 while position <= #text do local _, last = text:find("^%s+", position) if last then position = last + 1 end if position > #text then break end local quote = text:sub(position, position) if quote == '"' or quote == "'" then local close = text:find(quote, position + 1, true) assert(close, "Unclosed quoted argument") table.insert(result, text:sub(position + 1, close - 1)); position = close + 1 else local finish = text:find("%s", position) or (#text + 1) table.insert(result, text:sub(position, finish - 1)); position = finish end end return result end api.ParseArguments = arguments local function register(entry, handler, backendName) local names = {} for _, name in ipairs(entry.Names) do local alias = "/" .. name:lower() if not options.Existing[alias] and not api.Routes[alias] then table.insert(names, name) api.Routes[alias] = { Handler = handler, BackendName = backendName, Entry = entry } end end if #names > 0 then table.insert(api.Catalog, { Names = names, Required = entry.Required, Optional = entry.Optional, PlaceSpecific = entry.PlaceSpecific }) end end local function native(names, required, optional, handler) local entry = { Names = names, Required = required, Optional = optional, PlaceSpecific = api.RegisteringPlace == true } api.Native[names[1]] = handler register(entry, handler) end local function humanoid() local char = player.Character local human = char and char:FindFirstChildOfClass("Humanoid") assert(human, "Your character has not spawned") return human end local function copy(text) local setter = setclipboard or toclipboard or set_clipboard assert(type(setter) == "function", "Volt clipboard API is unavailable") setter(tostring(text)); notify("Copied to clipboard") end local function boolean(value) assert(value == "true" or value == "false", "Expected true or false") return value == "true" end local function loadTool(name, url) -- User-owned files take priority over the upstream loader. if type(isfile) == "function" and isfile(name .. ".lua") then return assert(loadfile(name .. ".lua"))() end assert(type(request) == "function", "Volt request API is unavailable") local response = request({ Url = url, Method = "GET" }) assert(response.Success and type(response.Body) == "string", "Download failed: " .. tostring(response.StatusCode)) return assert(loadstring(response.Body, "=" .. name))() end native({"exec", "load", "loadfile", "execute", "lf", "script"}, "", nil, function(args) assert(#args == 1, "Use /exec ") local filename = args[1]:gsub("\\", "/") assert(not filename:find(":", 1, true) and filename:sub(1,1) ~= "/" and not ("/" .. filename .. "/"):find("/../", 1, true), "Use a path inside Volt's workspace") if not filename:lower():match("%.lua[u]?$") then filename = filename .. ".lua" end local chunk, err = loadfile(filename) assert(chunk, err or "Script could not be loaded") chunk() end) local function commandNetwork() return assert(controller.CommandNetwork,"Host/client coordination is unavailable; check the local relay and reload cmds.lua") end native({"host"},nil,nil,function() local _,message=commandNetwork().RequestHost() return message end) native({"unhost"},nil,nil,function() local _,message=commandNetwork().ReleaseHost() return message end) native({"client","clients","cl","cr","crun"},"","[params...]",function(_,raw) local ok,message=commandNetwork().SendCommand(raw) assert(ok,message) return message end) native({"cancel"},nil,nil,function() return api.Targeting.Cancel() and "Target selection cancelled" or "There is no pending target selection" end) native({"reset"}, nil, nil, function() humanoid().Health = 0 end) native({"jobid", "copyjobid"}, nil, nil, function() copy(game.JobId) end) native({"link"}, nil, nil, function(args) assert(#args==0,"Use /link without arguments") assert(type(game.JobId)=="string" and game.JobId~="","This session has no server JobId") copy("roblox://placeId=" .. game.PlaceId .. "&gameInstanceId=" .. game.JobId) end) native({"placeid", "copyplaceid"}, nil, nil, function() copy(game.PlaceId) end) native({"notifyjobid"}, nil, nil, function() notify("JobId: " .. game.JobId .. " | PlaceId: " .. game.PlaceId) end) native({"joinjobid", "jjid", "jid"}, "", "[placeid]", function(args) assert(args[1] and #args <= 2, "Use /joinjobid [placeid]") game:GetService("TeleportService"):TeleportToPlaceInstance(finite(args[2], game.PlaceId), args[1], player) end) native({"invis", "invisible"}, nil, nil, function() if api.Invisibility and api.Invisibility.Active then return end api.Invisibility = assert(loadfile("cmds_invis.lua"))() end) native({"uninvis", "uninvisible", "visible", "vis"}, nil, nil, function() if api.Invisibility then api.Invisibility.Disconnect(); api.Invisibility = nil end end) native({"toggleinvis"}, nil, nil, function() api.Native[api.Invisibility and api.Invisibility.Active and "uninvis" or "invis"]({}) end) native({"dex", "explorer"}, nil, nil, function() loadTool("dex", "https://github.com/AZYsGithub/DexPlusPlus/releases/latest/download/out.lua") end) native({"rspy", "remotespy", "cobalt", "cspy"}, nil, nil, function() loadTool("cobalt", "https://gitlab.com/upio/cobalt/-/releases/permalink/latest/downloads/Cobalt.luau") end) native({"savegame", "saveplace"}, nil, "[filename]", function(args) assert(type(saveinstance) == "function" and SaveInstanceOptions, "Volt saveinstance API is unavailable") local settings = SaveInstanceOptions.new() if args[1] then settings.FilePath = args[1] end saveinstance(game, settings) end) native({"walkspeed", "ws"}, nil, "[speed:16]", function(args) humanoid().WalkSpeed = finite(args[1],16) end) native({"toggleantifling"}, nil, nil, function() local ok, err = controller.SetAntiFling(not (controller.AntiFling and controller.AntiFling.Active)) assert(ok, err) end) -- Continuous actions use one cancellable render subscription per feature. native({"clientbring", "cbring"}, "", nil, function(_, raw) local localRoot = assert(rootOf(player), "Your character has not spawned") for _, other in ipairs(api.SelectPlayers(raw)) do local root = rootOf(other) if other ~= player and root then root.CFrame = localRoot.CFrame * CFrame.new(3,1,0) end end end) native({"loopbring", "loopcbring"}, "", "[distance:3] [interval:0]", function(args) local targets = api.SelectPlayers(args[1]) local distance, interval = finite(args[2],3), math.max(0,finite(args[3],0)) for _, other in ipairs(targets) do if other ~= player then frameLoop("bring:" .. other.UserId, function() if other.Parent ~= Players then stopLoop("bring:" .. other.UserId); return end local root, targetRoot = rootOf(player), rootOf(other) if root and targetRoot then targetRoot.CFrame = root.CFrame * CFrame.new(distance,1,0) end end, interval) end end end) native({"unloopbring", "unloopcbring", "noloopbring"}, nil, "[user]", function(args, raw) if not args[1] then for name in pairs(api.Loops) do if name:sub(1,6)=="bring:" then stopLoop(name) end end else for _, other in ipairs(api.SelectPlayers(raw)) do stopLoop("bring:" .. other.UserId) end end end) native({"loopgoto"}, "", "[distance:3] [interval:0]", function(args) local target = api.SelectPlayer(args[1]) local distance, interval = finite(args[2],3), math.max(0,finite(args[3],0)) frameLoop("goto", function() if target.Parent ~= Players then stopLoop("goto"); return end local root, targetRoot = rootOf(player), rootOf(target) if root and targetRoot then api.SetRootCFrame(targetRoot.CFrame * CFrame.new(distance,1,0)) end end, interval) end) native({"unloopgoto", "noloopgoto"}, nil, nil, function() stopLoop("goto") end) native({"loopspeed", "loopws"}, nil, "[speed:16]", function(args) local value=finite(args[1],16) frameLoop("walkspeed",function() local h=player.Character and player.Character:FindFirstChildOfClass("Humanoid");if h then h.WalkSpeed=value end end) end) native({"unloopspeed", "unloopws"}, nil, nil, function() stopLoop("walkspeed") end) native({"loopjumppower", "loopjp", "loopjpower"}, nil, "[power:50]", function(args) local value=finite(args[1],50) frameLoop("jumppower",function() local h=player.Character and player.Character:FindFirstChildOfClass("Humanoid");if h then h.UseJumpPower=true;h.JumpPower=value end end) end) native({"unloopjumppower", "unloopjp", "unloopjpower"}, nil, nil, function() stopLoop("jumppower") end) native({"autojump", "ajump", "bunnyhop", "bhop"}, nil, nil, function() frameLoop("autojump", function() local h=player.Character and player.Character:FindFirstChildOfClass("Humanoid");if h and h.Health>0 and h.FloorMaterial~=Enum.Material.Air then h.Jump=true end end) end) native({"unautojump", "noautojump", "noajump", "unajump", "unbunnyhop", "unbhop"}, nil, nil, function() stopLoop("autojump") end) native({"walkto", "follow"},"",nil,function(_,raw) local target=api.SelectPlayer(raw) frameLoop("follow",function() if target.Parent~=Players then stopLoop("follow");return end local root=rootOf(target);local h=player.Character and player.Character:FindFirstChildOfClass("Humanoid") if root and h then h:MoveTo(root.Position) end end) end) native({"unwalkto","nowalkto","unfollow","nofollow"},nil,nil,function() stopLoop("follow");local root=rootOf(player);if root then humanoid():MoveTo(root.Position) end end) native({"view","spectate"},"",nil,function(_,raw) local target=api.SelectPlayer(raw) frameLoop("spectate",function() if target.Parent~=Players then stopLoop("spectate");return end local h=target.Character and target.Character:FindFirstChildOfClass("Humanoid") if workspace.CurrentCamera and h then workspace.CurrentCamera.CameraSubject=h end end,nil,function() if workspace.CurrentCamera then workspace.CurrentCamera.CameraSubject=player.Character and player.Character:FindFirstChildOfClass("Humanoid") end end) end) native({"unview","unspectate"},nil,nil,function() stopLoop("spectate") end) local function clearTakeAnimation(job) if job.Track then job.Track:Stop(0.1);job.Track:Destroy();job.Track=nil end if job.Animation then job.Animation:Destroy();job.Animation=nil end job.Character,job.TargetCharacter,job.Animator=nil,nil,nil job.Phase=0 end local function restoreTakeCollisions(job) for part,original in pairs(job.Collisions or {}) do pcall(function() part.CanCollide=original end) end job.Collisions={} job.CollisionCharacter,job.CollisionTarget=nil,nil end local function updateTakeCollisions(job) local character,targetCharacter=player.Character,job.Target.Character if job.CollisionCharacter~=character or job.CollisionTarget~=targetCharacter then restoreTakeCollisions(job) job.CollisionCharacter,job.CollisionTarget=character,targetCharacter end job.Collisions=job.Collisions or {} for _, model in pairs({character,targetCharacter}) do for _, part in ipairs(model:GetDescendants()) do if part:IsA("BasePart") then if job.Collisions[part]==nil then job.Collisions[part]=part.CanCollide end part.CanCollide=false end end end end function api.StopTake() stopLoop("take") api.Take=nil end local function startTorsoEmote(args,command,emoteID,faceTorso) assert(#args>=1 and #args<=2,"Use /"..command.." [speed]") local speed=finite(args[2],1) assert(speed>0,"Speed must be greater than zero") local target=api.SelectPlayer(args[1]) assert(target~=player,"Choose another player for /"..command) local animationID=controller.ResolveAnimationID(emoteID) api.StopTake() controller.Stop() local job={Target=target,AnimationID=animationID,Speed=speed,Phase=0,Command=command} api.Take=job frameLoop("take",function(delta) if target.Parent~=Players then api.StopTake();notify(command.." stopped: target left the server");return end updateTakeCollisions(job) local character,targetCharacter=player.Character,target.Character local human=character and character:FindFirstChildOfClass("Humanoid") local targetHuman=targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid") local root=rootOf(player) local torso=targetCharacter and (targetCharacter:FindFirstChild("LowerTorso") or targetCharacter:FindFirstChild("Torso")) local localPart=character and character:FindFirstChild(faceTorso and "Head" or "LowerTorso") if not localPart and not faceTorso and character then localPart=character:FindFirstChild("Torso") end local animator=human and human:FindFirstChildOfClass("Animator") if not root or not localPart or not localPart:IsA("BasePart") or not torso or not torso:IsA("BasePart") or not human or human.Health<=0 or not targetHuman or targetHuman.Health<=0 or not animator then clearTakeAnimation(job) return end if job.Character~=character or job.TargetCharacter~=targetCharacter or job.Animator~=animator then clearTakeAnimation(job) job.Character,job.TargetCharacter,job.Animator=character,targetCharacter,animator job.Animation=Instance.new("Animation") job.Animation.AnimationId=job.AnimationID job.Track=animator:LoadAnimation(job.Animation) job.Track.Priority=Enum.AnimationPriority.Action job.Track.Looped=true job.Track:Play(0.1,1,faceTorso and job.Speed or 1) elseif not job.Track.IsPlaying then job.Track:Play(0.1,1,faceTorso and job.Speed or 1) end -- Lerp 1x -> 3x -> 1x; speed 1 takes one second in each direction. -- Delta time keeps the motion independent of the rendering frame rate. local alpha=job.Phase<=1 and job.Phase or 2-job.Phase local baseDistance=faceTorso and (torso.Size.Z+localPart.Size.Z/2) or torso.Size.Z local distance=faceTorso and baseDistance or baseDistance*(1+2*alpha) local _,targetYaw=torso.CFrame:ToOrientation() local torsoYaw=CFrame.new(torso.Position)*CFrame.Angles(0,targetYaw,0) local transform=torsoYaw*CFrame.new(0,0,-distance) if faceTorso then local facingPoint=Vector3.new(torso.Position.X,transform.Position.Y,torso.Position.Z) transform=CFrame.lookAt(transform.Position,facingPoint) end api.AlignBodyPart(localPart,transform) if not faceTorso then job.Phase=(job.Phase+delta*job.Speed)%2 end end,nil,function() if job.CollisionStep then job.CollisionStep:Disconnect();job.CollisionStep=nil end restoreTakeCollisions(job) clearTakeAnimation(job) if api.Take==job then api.Take=nil end end) -- Reapply before physics so Humanoid collision updates cannot undo noclip. job.CollisionStep=RunService.Stepped:Connect(function() if not api.Active or api.Take~=job then return end local ok,err=pcall(updateTakeCollisions,job) if not ok then api.StopTake();options.Report(err) end end) end native({"take"},"","[speed:1]",function(args) startTorsoEmote(args,"take","93065071106740",false) end) native({"lick"},"","[speed:1]",function(args) startTorsoEmote(args,"lick","114429261687802",true) end) native({"untake","stoptake","unlick","stoplick"},nil,nil,api.StopTake) native({"breakvelocity"},nil,nil,function() local elapsed=0 frameLoop("breakvelocity",function(delta) elapsed=elapsed+delta if player.Character then for _,part in ipairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.Velocity,part.RotVelocity=Vector3.zero,Vector3.zero end end end if elapsed>=0.5 then stopLoop("breakvelocity") end end) end) local lighting=game:GetService("Lighting") native({"loopfullbright","loopfb"},nil,nil,function() local old={Brightness=lighting.Brightness,ClockTime=lighting.ClockTime,FogEnd=lighting.FogEnd,GlobalShadows=lighting.GlobalShadows,Ambient=lighting.Ambient} frameLoop("fullbright",function() lighting.Brightness=2;lighting.ClockTime=14;lighting.FogEnd=1000000;lighting.GlobalShadows=false;lighting.Ambient=Color3.new(1,1,1) end,nil,function() for key,value in pairs(old) do lighting[key]=value end end) end) native({"unloopfullbright","unloopfb","unfb","unfullbright","unfullbrightness"},nil,nil,function() stopLoop("fullbright") end) native({"dncycle","daynightcycle"},nil,"[hours per second:1]",function(args) local speed=finite(args[1],1) frameLoop("daynight",function(delta) lighting.ClockTime=(lighting.ClockTime+speed*delta)%24 end) end) native({"undncycle","stopdncycle"},nil,nil,function() stopLoop("daynight") end) native({"loopxray"},nil,nil,function() local original={} local function inspect(part) if part:IsA("BasePart") and not part:IsDescendantOf(player.Character or player) then if original[part]==nil then original[part]=part.LocalTransparencyModifier end part.LocalTransparencyModifier=0.5 end end for _, part in ipairs(workspace:GetDescendants()) do inspect(part) end local added=workspace.DescendantAdded:Connect(inspect) frameLoop("xray",function() for part in pairs(original) do if part.Parent then part.LocalTransparencyModifier=0.5 else original[part]=nil end end end,nil,function() added:Disconnect();for part,value in pairs(original) do pcall(function() part.LocalTransparencyModifier=value end) end end) end) native({"unloopxray"},nil,nil,function() stopLoop("xray") end) native({"loopkillsounds","lksounds"},nil,nil,function() frameLoop("killsounds",function() for _,item in ipairs(workspace:GetDescendants()) do if item:IsA("Sound") then item:Stop() end end end) end) native({"unloopkillsounds","unlksounds"},nil,nil,function() stopLoop("killsounds") end) native({"loopnobgui","loopunbgui","loopnobillboardgui","loopunbillboardgui","loopnoname","looprohg"},nil,nil,function() local old={} frameLoop("billboards",function() for _, item in ipairs(workspace:GetDescendants()) do if item:IsA("BillboardGui") then if old[item]==nil then old[item]=item.Enabled end;item.Enabled=false end end end,nil,function() for item,value in pairs(old) do pcall(function() item.Enabled=value end) end end) end) native({"unloopnobgui","unloopunbgui","unloopnobillboardgui","unloopunbillboardgui","unloopnoname","unlooprohg"},nil,nil,function() stopLoop("billboards") end) local function stopFly() stopLoop("fly") end local function startFly(args,mode) stopFly() local speed=math.max(0,finite(args[1],1))*50 api.FlySpeed=speed local humans, roots={},{} frameLoop("fly",function(delta) local root=rootOf(player);local h=player.Character and player.Character:FindFirstChildOfClass("Humanoid") local camera=workspace.CurrentCamera if not root or not h or not camera then return end if humans[h]==nil then humans[h]=h.PlatformStand end h.PlatformStand=true if mode=="vehicle" and h.SeatPart then root=h.SeatPart.AssemblyRootPart or h.SeatPart end roots[root]=true local input=game:GetService("UserInputService") local move=Vector3.zero if not input:GetFocusedTextBox() then if input:IsKeyDown(Enum.KeyCode.W) then move=move+camera.CFrame.LookVector end if input:IsKeyDown(Enum.KeyCode.S) then move=move-camera.CFrame.LookVector end if input:IsKeyDown(Enum.KeyCode.D) then move=move+camera.CFrame.RightVector end if input:IsKeyDown(Enum.KeyCode.A) then move=move-camera.CFrame.RightVector end if input:IsKeyDown(Enum.KeyCode.E) or input:IsKeyDown(Enum.KeyCode.Space) then move=move+Vector3.new(0,1,0) end if input:IsKeyDown(Enum.KeyCode.Q) or input:IsKeyDown(Enum.KeyCode.LeftControl) then move=move-Vector3.new(0,1,0) end end if move.Magnitude>1 then move=move.Unit end local velocity=move*api.FlySpeed if mode=="cframe" then root.CFrame=root.CFrame+velocity*delta;root.Velocity=Vector3.zero else root.Velocity=velocity end root.RotVelocity=Vector3.zero end,nil,function() for h,value in pairs(humans) do pcall(function() h.PlatformStand=value end) end for root in pairs(roots) do pcall(function() root.Velocity=Vector3.zero end) end end) end native({"fly"},nil,"[speed:1]",function(args) startFly(args,"normal") end) native({"vfly","vehiclefly"},nil,"[speed:1]",function(args) startFly(args,"vehicle") end) native({"cframefly","cfly"},nil,"[speed:1]",function(args) startFly(args,"cframe") end) native({"unfly","nofly","novfly","unvehiclefly","novehiclefly","unvfly","uncframefly","uncfly"},nil,nil,stopFly) native({"flyspeed","flysp","vflyspeed","vflysp","vehicleflyspeed","vehicleflysp","cframeflyspeed","cflyspeed"},"",nil,function(args) api.FlySpeed=math.max(0,finite(args[1]))*50 end) native({"togglefly","togglevfly"},nil,"[speed:1]",function(args) if api.Loops.fly then stopFly() else startFly(args,"normal") end end) -- Highlight ESP/locate shares one renderer. No cloned body parts or box adornments. local function clearVisual(owner) local visual=api.ESP[owner] if not visual then return end visual.Highlight:Destroy() visual.Tag:Destroy() visual.BottomTag:Destroy() api.ESP[owner]=nil end local function createESPTag(name,gui) local tag=Instance.new("BillboardGui") tag.Name=name tag.AlwaysOnTop=true tag.ResetOnSpawn=false tag.Size=UDim2.new(0,360,0,20) local label=Instance.new("TextLabel") label.Size=UDim2.new(1,0,1,0) label.BackgroundTransparency=1 label.TextColor3=Color3.new(1,1,1) label.TextStrokeColor3=Color3.new(0,0,0) label.TextStrokeTransparency=0 label.Font=Enum.Font.SourceSans label.TextSize=11 label.TextScaled=false label.Parent=tag tag.Parent=gui return tag,label end local function renderESP() local playerGui=player:FindFirstChildOfClass("PlayerGui") for owner,visual in pairs(api.ESP) do local enabled=owner~=player and owner.Parent==Players and (api.ESPMode and (api.ESPMode~="team" or owner.Team==player.Team) or api.Locate[owner]) if not enabled or visual.Character~=owner.Character or not owner.Character or not visual.Highlight.Parent or not visual.Tag.Parent or visual.Tag.Parent~=playerGui or visual.Label.Parent~=visual.Tag or not visual.BottomTag.Parent or visual.BottomTag.Parent~=playerGui or visual.BottomLabel.Parent~=visual.BottomTag then clearVisual(owner) end end local localRoot,camera=rootOf(player),workspace.CurrentCamera for _, owner in ipairs(Players:GetPlayers()) do if owner~=player and owner.Character and (api.ESPMode and (api.ESPMode~="team" or owner.Team==player.Team) or api.Locate[owner]) then local bounds=espBounds(owner.Character) if bounds and playerGui then local visual=api.ESP[owner] if not visual then local highlight=Instance.new("Highlight") highlight.Name="CommandsESP" highlight.FillTransparency=1 highlight.OutlineTransparency=0 highlight.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop highlight.Adornee,highlight.Parent=owner.Character,owner.Character local tag,label=createESPTag("CommandsNameTag",playerGui) local bottomTag,bottomLabel=createESPTag("CommandsDistanceTag",playerGui) visual={Character=owner.Character,Highlight=highlight,Tag=tag,Label=label,BottomTag=bottomTag,BottomLabel=bottomLabel} api.ESP[owner]=visual end local color=not api.Locate[owner] and api.ShowTeamColors and owner.TeamColor and owner.TeamColor.Color or Color3.new(1,1,1) visual.Highlight.OutlineColor,visual.Label.TextColor3,visual.BottomLabel.TextColor3=color,color,color visual.Tag.Adornee=bounds.Anchor visual.Tag.StudsOffsetWorldSpace=bounds.Top visual.BottomTag.Adornee=bounds.Anchor visual.BottomTag.StudsOffsetWorldSpace=bounds.Bottom local human=owner.Character:FindFirstChildOfClass("Humanoid") local origin=localRoot and localRoot.Position or camera and camera.CFrame.Position local distance=origin and (bounds.Center-origin).Magnitude or 0 visual.Label.Text=string.format("%s || %.0f HP",api.ShowDisplay and owner.DisplayName or owner.Name,human and math.max(0,human.Health) or 0) visual.BottomLabel.Text=string.format("%.0fs",distance) else clearVisual(owner) end end end end local function startESP() frameLoop("esp",renderESP) end native({"esp", "chams"}, nil, nil, function() if api.PlaceCommands and api.PlaceCommands.SetESP then api.PlaceCommands.SetESP(true);return end api.ESPMode="all";startESP() end) native({"espteam"}, nil, nil, function() if api.PlaceCommands and api.PlaceCommands.SetESP then return end api.ESPMode="team";startESP() end) native({"noesp", "unesp", "unespteam", "nochams", "unchams"}, nil, nil, function() if api.PlaceCommands and api.PlaceCommands.SetESP then api.PlaceCommands.SetESP(false) end api.ESPMode=nil;renderESP();if not next(api.Locate) then stopLoop("esp") end end) native({"locate"}, "", nil, function(_,raw) for _, owner in ipairs(api.SelectPlayers(raw)) do if owner~=player then api.Locate[owner]=true end end if api.PlaceCommands and api.PlaceCommands.SetLocateOverride then api.PlaceCommands.SetLocateOverride(api.Locate) end startESP() renderESP() end) native({"nolocate", "unlocate"}, nil, "[user]", function(args,raw) if not args[1] then table.clear(api.Locate) else for _, owner in ipairs(api.SelectPlayers(raw)) do api.Locate[owner]=nil end end if api.PlaceCommands and api.PlaceCommands.SetLocateOverride then api.PlaceCommands.SetLocateOverride(api.Locate) end renderESP();if not api.ESPMode and not next(api.Locate) then stopLoop("esp") end end) native({"espshowdisplay"}, nil, "[true/false]", function(args) assert(#args<=1,"Use /espshowdisplay [true/false]") api.ShowDisplay=args[1]==nil and not api.ShowDisplay or (args[1]~=nil and boolean(args[1])) if api.PlaceCommands and api.PlaceCommands.SetESPDisplay then api.PlaceCommands.SetESPDisplay(api.ShowDisplay) end if api.Loops.esp then renderESP() end end) native({"espshowteamcolors"}, nil, "[true/false]", function(args) assert(#args<=1,"Use /espshowteamcolors [true/false]") if api.PlaceCommands and api.PlaceCommands.SetESP then return end api.ShowTeamColors=args[1]==nil and not api.ShowTeamColors or (args[1]~=nil and boolean(args[1]));if api.Loops.esp then renderESP() end end) local function zeroCharacterVelocity(character) if not character then return end for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.AssemblyLinearVelocity,part.AssemblyAngularVelocity=Vector3.zero,Vector3.zero end end end local function cancelFlingRecovery() if api.FlingRecovery then api.FlingRecovery:Disconnect();api.FlingRecovery=nil end end -- Match weapon_v2: save the local pose, write the server pose on Heartbeat, -- then restore before the camera runs, bounding any physics impulse. local function restoreFlingPosition(fling) local saved=fling and fling.Saved if not saved then return end fling.Saved=nil if not saved.Root.Parent or player.Character~=saved.Character then return end local human=saved.Character:FindFirstChildOfClass("Humanoid") local velocity=Vector3.zero if human then local measured=saved.Root.Velocity local horizontal=Vector3.new(measured.X,0,measured.Z) local speed=horizontal.Magnitude local walkSpeed=math.max(0,human.WalkSpeed or 0) if speed>walkSpeed and speed>0 then horizontal=horizontal*(walkSpeed/speed) end local gravity=math.max(0,workspace.Gravity) local jumpSpeed=human.UseJumpPower==false and math.sqrt(2*gravity*math.max(0,human.JumpHeight or 0)) or math.max(0,human.JumpPower or 0) local minimum=math.min(0,math.min(jumpSpeed,saved.Velocity.Y))-gravity*(fling.Delta or 1/60) velocity=horizontal+Vector3.new(0,math.max(minimum,math.min(jumpSpeed,measured.Y)),0) end saved.Root.CFrame=saved.Client saved.Root.Velocity,saved.Root.RotVelocity=Vector3.zero,Vector3.zero saved.Root.Velocity=velocity end local flingPositionHook=globals.CmdsFlingPositionHook if type(flingPositionHook)~="table" then flingPositionHook={};globals.CmdsFlingPositionHook=flingPositionHook end flingPositionHook.Controller=api if not flingPositionHook.Installed and type(hookmetamethod)=="function" and type(newcclosure)=="function" and type(checkcaller)=="function" then local previous local ok=pcall(function() previous=hookmetamethod(game,"__index",newcclosure(function(instance,key) local active=flingPositionHook.Controller local saved=active and active.Active and active.Fling and active.Fling.Saved if saved and key=="CFrame" and instance==saved.Root and not checkcaller() then return saved.Client end return previous(instance,key) end)) end) flingPositionHook.Installed=ok end -- Match clienttarget.lua: disable collisions on the target's direct body -- parts every physics update. Remember their values for command cleanup. local function setFlingCollisionTarget(fling,character) if fling.CollisionCharacter~=character then for part,original in pairs(fling.TargetCollisions or {}) do pcall(function() part.CanCollide=original end) end fling.TargetCollisions={} fling.CollisionCharacter=character end if not character then return end fling.TargetCollisions=fling.TargetCollisions or {} for _, part in ipairs(character:GetChildren()) do if part:IsA("BasePart") then if fling.TargetCollisions[part]==nil then fling.TargetCollisions[part]=part.CanCollide end part.CanCollide=false end end end local function stopFling() local fling=api.Fling if not fling then return end api.Fling=nil setFlingCollisionTarget(fling,nil) restoreFlingPosition(fling) for _, connection in pairs(fling.Connections) do if connection.Connected then connection:Disconnect() end end zeroCharacterVelocity(player.Character) if workspace.FallenPartsDestroyHeight~=workspace.FallenPartsDestroyHeight then workspace.FallenPartsDestroyHeight=fling.DestroyHeight end end local function startFling(args,raw,direction,desync,pickup) local targets=pickup and {} or api.SelectPlayers(raw) local others={} for _, target in ipairs(targets) do if target~=player then table.insert(others,target) end end assert(pickup or #others>0,"No other matching players") cancelFlingRecovery() stopFling() if api.Invisibility then api.Invisibility.Disconnect();api.Invisibility=nil end local character=assert(player.Character,"Your character has not spawned") local fling={Connections={},Targets=others,Index=1,DestroyHeight=workspace.FallenPartsDestroyHeight, Character=character,Origin=character:GetPivot(),Desync=desync,Pickup=pickup} api.LastFlingOrigin={Character=character,Pivot=fling.Origin} api.Fling=fling local function flingRoot(owner) local character=owner.Character return character and (character:FindFirstChild("UpperTorso") or character:FindFirstChild("Torso") or character:FindFirstChild("Head")) end local function physics(delta) if not api.Active or api.Fling~=fling then return end restoreFlingPosition(fling) fling.Delta=type(delta)=="number" and math.max(0,delta) or 1/60 local root=desync and rootOf(player) or flingRoot(player) if not root or player.Character~=character then stopFling();return end if pickup then if not pickup:IsDescendantOf(workspace) then stopFling();return end fling.Saved={Root=root,Character=character,Client=root.CFrame,Velocity=root.Velocity} root.CFrame=pickup.CFrame*CFrame.new(0,1,0) root.Velocity,root.RotVelocity=Vector3.zero,Vector3.zero if pickup:FindFirstChildOfClass("TouchTransmitter") and type(firetouchinterest)=="function" then firetouchinterest(pickup,root,0) if pickup.Parent and root.Parent then firetouchinterest(pickup,root,1) end end return end local target=fling.Targets[fling.Index] fling.Index=fling.Index % #fling.Targets+1 if not target or target.Parent~=Players then setFlingCollisionTarget(fling,nil);return end local targetRoot=flingRoot(target) local human=target.Character and target.Character:FindFirstChildOfClass("Humanoid") if not targetRoot or not human or human.Health<=0 then setFlingCollisionTarget(fling,nil);return end setFlingCollisionTarget(fling,target.Character) local animator=human:FindFirstChildOfClass("Animator") local velocity=Vector3.zero if not human.PlatformStand and animator and #animator:GetPlayingAnimationTracks()>0 then local measured=targetRoot.Velocity velocity=Vector3.new(measured.X,math.max(0,measured.Y),measured.Z) end local seconds=math.random()*1.5-0.25 workspace.FallenPartsDestroyHeight=0/0 if desync then fling.Saved={Root=root,Character=character,Client=root.CFrame,Velocity=root.Velocity} end root.CFrame=CFrame.new(targetRoot.Position+velocity*seconds+Vector3.new(0,direction>0 and -0.75 or 1.25,0)) root.Velocity=Vector3.new(0,direction*0x7FFFFFFFFF,0) root.RotVelocity=Vector3.zero fling.PendingRoot=root end fling.Connections.Heartbeat=RunService.Heartbeat:Connect(function(delta) local ok,err=pcall(physics,delta) if not ok then stopFling();options.Report(err) end end) local function restoreBeforeRender() restoreFlingPosition(fling) local root=fling.PendingRoot;fling.PendingRoot=nil if root and not desync then pcall(function() root.Velocity=Vector3.zero end) end end if desync and type(RunService.BindToRenderStep)=="function" then local binding="CmdsFlingRestoreLocalPosition" RunService:BindToRenderStep(binding,Enum.RenderPriority.First.Value-1,restoreBeforeRender) fling.Connections.Render={Disconnect=function() RunService:UnbindFromRenderStep(binding) end,Connected=true} else fling.Connections.Render=RunService.RenderStepped:Connect(restoreBeforeRender) end end local function recoverFromFling() cancelFlingRecovery() local origin=api.LastFlingOrigin if api.PlaceCommands and api.PlaceCommands.StopRoundJob then api.PlaceCommands.StopRoundJob() end stopFling() local character=player.Character local human=character and character:FindFirstChildOfClass("Humanoid") assert(character and human and human.Health>0,"Your character must be alive") zeroCharacterVelocity(character) if origin and origin.Character==character then api.Teleport(origin.Pivot) end zeroCharacterVelocity(character) local deadline=os.clock()+1 api.FlingRecovery=RunService.Heartbeat:Connect(function() if not api.Active or player.Character~=character or human.Health<=0 or api.Fling then cancelFlingRecovery();return end if os.clock()0 then table.insert(candidates,owner) end end if #candidates==0 then notify("No spawned player is available for the unfling fallback");return end local targetRoot=rootOf(candidates[math.random(1,#candidates)]) zeroCharacterVelocity(character) api.Teleport(targetRoot.CFrame*CFrame.new(0,0,3)) zeroCharacterVelocity(character) end) end native({"fling"},"",nil,function(args,raw) startFling(args,raw,1) end) native({"void"},"",nil,function(args,raw) startFling(args,raw,-1) end) native({"unfling", "unvoid", "nofling"},nil,nil,recoverFromFling) native({"breakloops","break"},nil,nil,function() stopFling() for name in pairs(api.Loops) do stopLoop(name) end end) native({"commands","cmds","help"},nil,"[prefix]",function(args) local input=assert(controller.ChatInput,"The command input is unavailable") input.Focus();input.TextBox.Text="/"..(args[1] or "");input.ResizeInput() end) native({"selectors"},nil,nil,function() notify("@s self | @a all | @o others | @r random | @p/@n nearest | @f farthest | @c click | @l last | @clients clients | @host host | @nonclients others | @t team | @e enemies" .. (api.PlaceCommands and (" | "..controller.GetGameName()..": @murderer @sheriff @hero @innocent @dead @alive @gun") or "")) end) local function initializeBackend() if api.Backend then return api.Backend end assert(not api.Loading, "The command backend is still initializing; try again") api.Loading=true local base=getfenv(0) local env=setmetatable({}, {__index=base}) env._G={};env.getgenv=function() return env end -- Volt follows sUNC for these APIs; map IY's historical aliases locally. env.http_request=request;env.queueteleport=queueonteleport env.queue_on_teleport=queueonteleport;env.toClipboard=setclipboard env.isrbxactive=iswindowactive;env.isgameactive=iswindowactive env.set_hidden_property=sethiddenproperty;env.get_hidden_property=gethiddenproperty env.set_thread_identity=setthreadidentity;env.get_thread_identity=getthreadidentity env.get_hidden_gui=gethui;env.get_gc_objects=getgc env.CmdsHttpGet=function(url) assert(type(request)=="function","Volt request API is unavailable") local response=request({Url=url,Method="GET"}) assert(response.Success and type(response.Body)=="string","HTTP request failed: "..tostring(response.StatusCode)) return response.Body end env.Instance={new=function(...) local instance=Instance.new(...);api.Instances[instance]=true;return instance end} env.CmdsTrackConnection=function(connection) api.Connections[connection]=true;return connection end env.CmdsRootGui=env.Instance.new("ScreenGui") env.CmdsRootGui.Name="CommandsUtilities";env.CmdsRootGui.ResetOnSpawn=false env.CmdsRootGui.Parent=player:WaitForChild("PlayerGui") env.task=setmetatable({}, {__index=task}) for _, method in ipairs({"spawn","defer","delay"}) do env.task[method]=function(...) local thread=task[method](...);api.Threads[thread]=true;return thread end end env.wait=function(seconds) assert(api.Active,"Command controller stopped") return task.wait(seconds) end local ok, result=pcall(function() local chunk=assert(loadfile("iy_command_backend.lua")) setfenv(chunk,env) local backend=chunk() -- Core/UI selectors and nested IY execCmd calls use this command system. env.getPlayer=function(query) local names={} for _, owner in ipairs(api.SelectPlayers(query or "@s")) do table.insert(names,owner.Name) end return names end env.getSinglePlayer=function(query) return api.SelectPlayer(query or "@s").Name end env.notify=function(title,text) notify(tostring(title)..(text and ": "..tostring(text) or "")) end env.execCmd=function(text) return controller.HandleChat("/"..text) end -- Settings and helper widgets stay hidden; requested utility GUIs can open. for _, child in ipairs(env.CmdsRootGui:GetChildren()) do if child:IsA("GuiObject") then child.Visible=false end end return backend end) api.Loading=false if not ok then for connection in pairs(api.Connections) do pcall(function() connection:Disconnect() end) end for instance in pairs(api.Instances) do pcall(function() instance:Destroy() end) end table.clear(api.Connections);table.clear(api.Instances) error("Command backend could not initialize: "..tostring(result),0) end api.Backend,api.BackendEnv=result,env return result end local placeChunk, placeError = loadPlaceCommands() if placeChunk then api.RegisteringPlace = true api.PlaceCommands = placeChunk({ Register = native, SelectPlayers = api.SelectPlayers, IsExpression = api.IsExpression, CompileSelector = api.CompileSelector, Report = options.Report, Teleport = api.Teleport, Locate = api.Locate, Notify = notify, StartVoid = function(target,desync) startFling({}, tostring(target.UserId), -1,desync) return api.Fling end, StopMovement = function() cancelFlingRecovery() stopFling() end, StartGunPickup = function(part) startFling({}, "", 0,true,part) return api.Fling end, StopVoid = function(token) if api.Fling == token then stopFling() end end, IsVoiding = function(token) return api.Fling == token end, StartHidden = function() local existing = api.Invisibility api.Native.invis({}) return existing ~= api.Invisibility and api.Invisibility or nil end, StopHidden = function(token) if api.Invisibility == token then api.Native.uninvis({}) end end, }) api.RegisteringPlace = false elseif placeError then warn("Game-specific commands unavailable: " .. tostring(placeError)) end if api.PlaceCommands and api.PlaceCommands.SetESP then -- A shared command is place-specific only when this game overrides it. for _, entry in ipairs(api.Catalog) do if entry.Names[1]=="esp" or entry.Names[1]=="noesp" then entry.PlaceSpecific=true for _, name in ipairs(entry.Names) do api.Routes["/"..name].Entry.PlaceSpecific=true end end end end function api.IsPlaceSelector(query) return api.PlaceCommands ~= nil and api.PlaceCommands.IsSelector(query) end function api.GoToPlaceTarget(query) if api.PlaceCommands then return api.PlaceCommands.TryGoTo(query) end return false end local imported=assert(loadfile("iy_command_catalog.lua"))() for _, entry in ipairs(imported) do register(entry,nil,entry.Names[1]) end function api.Has(command) return api.Routes[command:lower()]~=nil end function api.Run(command,raw) if not api.Active then return false,"Commands are stopped" end command,raw=command:lower(),raw or "" local route=api.Routes[command] if not route then return false,"Unknown command: "..command end local ok,result=pcall(function() local hint=route.Entry.Required or route.Entry.Optional or "" local targetFirst=hint:match("^]+>") do minimum=minimum+1 end assert(#args>=minimum,"Use "..command.." "..route.Entry.Required..(route.Entry.Optional and " "..route.Entry.Optional or "")) elseif route.Handler and not route.Entry.Optional then assert(#args==0,"Use "..command.." without arguments") end if route.Handler then return route.Handler(args,raw) end local backend=initializeBackend() local entry=backend.Find(route.BackendName) assert(entry and type(entry.FUNC)=="function","Command handler is unavailable") api.BackendEnv.cargs=args return entry.FUNC(args,player) end) if not ok then return false,tostring(result) end if type(result)=="string" then notify(result) end return true end function api.Disconnect() if not api.Active then return end cancelFlingRecovery() api.Targeting.Disconnect() if flingPositionHook.Controller==api then flingPositionHook.Controller=nil end stopFling() if api.Invisibility then api.Invisibility.Disconnect() end for name in pairs(api.Loops) do stopLoop(name) end for owner in pairs(api.ESP) do clearVisual(owner) end if api.Backend then -- Undo persistent IY features before their owned listeners/instances go. for _, name in ipairs({"unfly","uncframefly","unfloat","unswim","clip","vehicleclip","unfreecam","unview","unloopfullbright","unambient","restorelighting","unspin","unfling","unflyfling","unwalkfling","unxray","unloopxray","unwalltp","unhovername","unloopoof","unautoclick","unautokeypress","uninfjump","unflyjump","unedgejump","unspasm","unwalkto","unorbit","unstareat","unhatspin","unantivoid","uninstantproximityprompts","unallowcustomanim","unloopkillsounds","unloopnobgui","unteleportwalk","unlistento","unmuteboombox"}) do local entry=api.Backend.Find(name) if entry then pcall(entry.FUNC,{},player) end end end api.Active=false if api.PlaceCommands then api.PlaceCommands.Disconnect() end for connection in pairs(api.Connections) do pcall(function() if connection.Connected then connection:Disconnect() end end) end for thread in pairs(api.Threads) do pcall(task.cancel,thread) end for instance in pairs(api.Instances) do pcall(function() instance:Destroy() end) end table.clear(api.Connections);table.clear(api.Instances);table.clear(api.Threads) end return api end end factories[ [=[emote_chat_input.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Client-owned input: command text never enters Roblox's automatic chat textbox. local options = ... assert(type(options) == "table" and options.Controller and options.Aliases, "Missing chat router options") local Players = game:GetService("Players") local TextChatService = game:GetService("TextChatService") local UserInputService = game:GetService("UserInputService") local TweenService = game:GetService("TweenService") local TextService = game:GetService("TextService") local Lighting = game:GetService("Lighting") local ContextActionService = game:GetService("ContextActionService") local controller, aliases = options.Controller, options.Aliases local report = options.Report or warn local configuration = TextChatService:FindFirstChildOfClass("ChatInputBarConfiguration") or TextChatService.ChatInputBarConfiguration assert(configuration, "Roblox chat input configuration is unavailable") local api = { Active = true, Connections = {}, LocalCommands = 0, SendCount = 0 } local originalEnabled = configuration.Enabled local function isLocalCommand(text) local first = text:match("^%s*(%S+)") return first ~= nil and (first:sub(1, 1) == "/" or first:sub(1, 1) == ";") end function api.Submit(text) if not api.Active or not controller.Active then return false, "Input router is stopped." end if type(text) ~= "string" or text:match("^%s*$") then return false, "Empty message." end if isLocalCommand(text) then api.LocalCommands = api.LocalCommands + 1 -- Fail closed for commands, even when the handler errors or rejects arguments. local ok, handled = pcall(controller.HandleChat, text) if not ok then return false, tostring(handled) end if not handled then return false, "Local command handler is unavailable." end return true, "local" end local channel = configuration.TargetTextChannel if not channel then local channels = TextChatService:FindFirstChild("TextChannels") channel = channels and channels:FindFirstChild("RBXGeneral") end if not channel then return false, "No Roblox text channel is available." end api.SendCount = api.SendCount + 1 local ok, err = pcall(function() channel:SendAsync(text) end) if not ok then return false, tostring(err) end return true, "sent" end local gui = Instance.new("ScreenGui") gui.Name = "EmotePrivateChatInput" gui.ResetOnSpawn = false gui.DisplayOrder = 100 local box = Instance.new("TextBox") box.Name = "LocalChatInput" box.AnchorPoint = Vector2.new(0.5, 0.5) box.Position = UDim2.new(0.5, 0, 0.25, 0) box.Size = UDim2.new(0, 48, 0, 42) box.BackgroundColor3 = Color3.fromRGB(8, 10, 14) box.BackgroundTransparency = 1 box.BorderSizePixel = 0 box.TextColor3 = Color3.fromRGB(255, 255, 255) box.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) box.TextTransparency, box.TextStrokeTransparency = 1, 1 box.PlaceholderColor3 = Color3.fromRGB(230, 230, 230) box.PlaceholderText = "" box.Text = "" box.Font = Enum.Font.Gotham box.TextSize = 20 box.TextXAlignment = Enum.TextXAlignment.Center box.TextYAlignment = Enum.TextYAlignment.Center box.TextWrapped = true box.ClearTextOnFocus = false box.MultiLine = false box.Visible = false box.Parent = gui local padding = Instance.new("UIPadding") padding.PaddingLeft, padding.PaddingRight = UDim.new(0, 12), UDim.new(0, 12) padding.PaddingTop, padding.PaddingBottom = UDim.new(0, 8), UDim.new(0, 8) padding.Parent = box local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 8) corner.Parent = box api.Gui, api.TextBox, api.Corner = gui, box, corner api.LayoutMode = "screen-centered" -- Each row groups aliases; square brackets mark optional parameters. local commands = { { Names = { "antifling" } }, { Names = { "unantifling" } }, { Names = { "animpack", "pack" }, Required = "" }, { Names = { "jerk", "jerktool" } }, { Names = { "copyanim" }, Required = "" }, { Names = { "copyid", "userid", "id" }, Optional = "[user]" }, { Names = { "emote", "e" }, Required = "", Optional = "[speed]" }, { Names = { "goto", "to" }, Required = "" }, { Names = { "r", "rerun", "reexec", "repeat" }, Optional = "[params...]" }, { Names = { "rejoin", "rj" } }, { Names = { "resetanim" } }, { Names = { "speed" }, Required = "" }, { Names = { "sync", "s" }, Required = "" }, } for _, name in ipairs({ "idle", "walk", "run", "jump", "fall", "climb", "swim", "swimidle" }) do table.insert(commands, { Names = { name }, Required = "" }) table.insert(commands, { Names = { "e" .. name }, Required = "" }) end for _, command in ipairs(options.ExtraCommands or {}) do table.insert(commands, command) end local completion=assert(loadfile("cmds_completion.lua"))({ Commands=commands,Players=function() return Players:GetPlayers() end, LocalPlayer=Players.LocalPlayer,PlaceId=game.PlaceId,GameName=options.Controller.GetGameName, Default=function(command,spec) if spec.Optional and spec.Label:lower()=="speed" then for _, name in ipairs(command.Names) do if name=="e" or name=="emote" then local env=type(getgenv)=="function" and getgenv() or _G return tostring(env.EmoteSpeed or 1) end end end end, }) local function sortKey(value) -- Numeric characters, letters, then punctuation, independently of ASCII order. return (value:lower():gsub(".", function(char) local category = char:match("%d") and "0" or char:match("%a") and "1" or "2" return category .. string.format("%03d", string.byte(char)) end)) end local function escape(text) return (text:gsub("&", "&"):gsub("<", "<"):gsub(">", ">"):gsub('"', """)) end local function colored(text, color) return '' .. escape(text) .. '' end local suggestions = Instance.new("ScrollingFrame") suggestions.Name = "CommandSuggestions" suggestions.AnchorPoint = Vector2.new(0.5, 0) suggestions.BackgroundColor3 = box.BackgroundColor3 suggestions.BackgroundTransparency, suggestions.BorderSizePixel = 0.2, 0 suggestions.ScrollBarThickness = 4 suggestions.CanvasSize = UDim2.new(0, 0, 0, 0) suggestions.Visible = false suggestions.Parent = gui local listCorner = Instance.new("UICorner") listCorner.CornerRadius = UDim.new(0, 8) listCorner.Parent = suggestions api.Suggestions, api.SuggestionRows, api.Matches = suggestions, {}, {} local formatHint=Instance.new("TextLabel") formatHint.Name="CommandFormatHint" formatHint.AnchorPoint=Vector2.new(0.5,0) formatHint.BackgroundTransparency=1 formatHint.Font=box.Font formatHint.TextSize=13 formatHint.RichText=true formatHint.TextWrapped=false formatHint.TextTruncate=Enum.TextTruncate.AtEnd formatHint.TextXAlignment=Enum.TextXAlignment.Center formatHint.TextYAlignment=Enum.TextYAlignment.Center formatHint.TextStrokeColor3=Color3.new(0,0,0) formatHint.TextStrokeTransparency=0.2 formatHint.Visible=false formatHint.Parent=gui api.FormatHint=formatHint local function colors(match,selected) if match.PlaceSpecific then return selected and "#CF9FFF" or "#8055AB",selected and "#8055AB" or "#583875" end return selected and "#9DDCFF" or "#FFFFFF",selected and "#477B9F" or "#999999" end local function styledMatch(match,selected) local bright,dim=colors(match,selected) local first=match.HighlightFirst or 1 local length=match.HighlightLength or 0 local display=match.Display local value if match.OptionalDefault then value=''..colored(display,dim)..'' elseif length>0 then value=colored(display:sub(1,first-1),dim)..colored(display:sub(first,first+length-1),bright)..colored(display:sub(first+length),dim) else value=colored(display,selected and bright or dim) end if match.Kind=="command" then for _, alias in ipairs(match.Command.Names) do if alias~=match.Value then value=value..colored(", "..alias,dim) end end if match.Command.Required then value=value..colored(" "..match.Command.Required,"#AA7777") end if match.Command.Optional then value=value..''..colored(" "..match.Command.Optional,"#777777")..'' end end return value,dim end function api.UpdateSuggestions() for _, row in ipairs(api.SuggestionRows) do row:Destroy() end api.SuggestionRows,api.SuggestionLabels,api.DescriptionLabels,api.Matches={},{},{},{} local cursor=box.CursorPosition if type(cursor)=="number" and cursor>=1 then api.LastCursorPosition=cursor else cursor=api.LastCursorPosition end local state=completion.Build(box.Text,cursor) api.CompletionState=state local viewport=gui.AbsoluteSize local screenWidth=viewport and viewport.X>0 and viewport.X or 1920 local width=math.min(math.max(48,screenWidth-24),math.max(420,math.floor(screenWidth/3))) local base=box.Size.Y.Offset/2+6 formatHint.Position=UDim2.new(0.5,0,0.25,base) formatHint.Size=UDim2.new(0,width,0,24) formatHint.Visible=api.Focused==true and state.Usage~=nil if formatHint.Visible then local parts={colored(state.FormatPrefix,"#999999")} for index,spec in ipairs(state.Parameters) do local active=index==state.ActiveParameter or (spec.Repeat and state.ActiveParameter>=index) local token=colored(" "..spec.Raw,spec.Optional and (active and "#888888" or "#666666") or (active and "#FFAAAA" or "#999999")) parts[#parts+1]=spec.Optional and (''..token..'') or token end formatHint.Text=table.concat(parts) else formatHint.Text="" end suggestions.Position=UDim2.new(0.5,0,0.25,base+(formatHint.Visible and 28 or 0)) if not api.Focused or not state.Mode then suggestions.Visible=false;return end api.Matches=state.Matches api.SelectedMatch=state.Matches[state.SelectedIndex or 1] local height,section,selectedY=0,nil,0 for index,match in ipairs(state.Matches) do if match.Section and match.Section~=section then section=match.Section local header=Instance.new("TextLabel") header.Name="SuggestionSection" header.BackgroundTransparency=1 header.Position=UDim2.new(0,10,0,height) header.Size=UDim2.new(1,-20,0,18) header.Font=box.Font header.TextSize=11 header.TextXAlignment=Enum.TextXAlignment.Left header.TextColor3=section==1 and Color3.fromRGB(128,85,171) or Color3.fromRGB(125,125,125) header.Text=match.SectionTitle header.Parent=suggestions api.SuggestionRows[#api.SuggestionRows+1]=header height=height+18 end local selected=index==(state.SelectedIndex or 1) if selected then selectedY=height end local row=Instance.new("Frame") row.Name="Suggestion" row.BackgroundTransparency=1 row.Position=UDim2.new(0,10,0,height) row.Size=UDim2.new(1,-20,0,26) row.Parent=suggestions local label=Instance.new("TextLabel") label.Name="Value" label.BackgroundTransparency=1 label.Font=box.Font label.TextSize=16 label.RichText=true label.TextWrapped=false label.TextTruncate=Enum.TextTruncate.AtEnd label.TextXAlignment=Enum.TextXAlignment.Left label.TextYAlignment=Enum.TextYAlignment.Center label.TextStrokeColor3=Color3.new(0,0,0) label.TextStrokeTransparency=0.3 local leftWidth=math.min(170,math.floor(width*0.4)) label.Size=match.Description and UDim2.new(0,leftWidth,1,0) or UDim2.new(1,0,1,0) local value,dim=styledMatch(match,selected) label.Text=value label.Parent=row if match.Description then local tip=Instance.new("TextLabel") tip.Name="Description" tip.BackgroundTransparency=1 tip.Position=UDim2.new(0,leftWidth+8,0,0) tip.Size=UDim2.new(1,-leftWidth-12,1,0) tip.Font=box.Font tip.TextSize=12 tip.RichText=true tip.TextWrapped=false tip.TextTruncate=Enum.TextTruncate.AtEnd tip.TextXAlignment=Enum.TextXAlignment.Right tip.TextYAlignment=Enum.TextYAlignment.Center tip.TextStrokeColor3=Color3.new(0,0,0) tip.TextStrokeTransparency=0.3 tip.Text=''..colored(match.Description,dim)..'' tip.Parent=row api.DescriptionLabels[index]=tip end api.SuggestionRows[#api.SuggestionRows+1]=row api.SuggestionLabels[index]=label height=height+26 end local visibleHeight=math.min(208,height) suggestions.Size=UDim2.new(0,width,0,visibleHeight) suggestions.CanvasSize=UDim2.new(0,0,0,height) suggestions.CanvasPosition=Vector2.new(0,math.max(0,selectedY-visibleHeight+26)) suggestions.Visible=#state.Matches>0 end function api.CompleteTop() if not api.Focused then return false end api.UpdateSuggestions() local state=api.CompletionState local match=state and state.Matches[state.SelectedIndex or 1] if not match then return false end local text,cursor=completion.Apply(box.Text,state,match) box.Text=text box.CursorPosition=cursor api.LastCursorPosition=cursor api.ResizeInput() return true end function api.PrepareSubmission(text,state) return completion.Submission(text,state or api.CompletionState) end -- Keyboard, action bindings, and textbox fallback can report the same Tab. -- Complete only once per physical press, especially across /client levels. function api.CompleteTabOnce() if api.TabKeyDown then return false end api.TabKeyDown=true return api.CompleteTop() end function api.ResizeInput() if not api.Active then return end local viewport = gui.AbsoluteSize local screenWidth = viewport and viewport.X > 0 and viewport.X or 1920 local maxWidth = math.max(1, math.floor(screenWidth / 3)) local raw = TextService:GetTextSize(box.Text, box.TextSize, box.Font, Vector2.new(1000000, 1000000)) local width = math.min(maxWidth, math.max(48, math.ceil(raw.X) + 24)) local wrapped = TextService:GetTextSize(box.Text, box.TextSize, box.Font, Vector2.new(math.max(1, width - 24), 1000000)) local height = math.max(42, math.ceil(wrapped.Y) + 16) box.Size = UDim2.new(0, width, 0, height) api.UpdateSuggestions() end api.Connections.TextSize = box:GetPropertyChangedSignal("Text"):Connect(function() -- Some input implementations still insert a tab into focused textboxes. if box.Text:find("\t", 1, true) then box.Text = box.Text:gsub("\t", "") if api.CompleteTabOnce() then return end end api.ResizeInput() end) api.Connections.ViewportSize = gui:GetPropertyChangedSignal("AbsoluteSize"):Connect(api.ResizeInput) api.Connections.Cursor=box:GetPropertyChangedSignal("CursorPosition"):Connect(function() if api.Active and api.Focused then api.UpdateSuggestions() end end) local function refreshPlayerSuggestions() task.defer(function() if api.Active and api.Focused then api.UpdateSuggestions() end end) end api.Connections.SuggestionPlayerAdded=Players.PlayerAdded:Connect(refreshPlayerSuggestions) api.Connections.SuggestionPlayerRemoving=Players.PlayerRemoving:Connect(refreshPlayerSuggestions) api.ResizeInput() -- Created locally, so this focus effect belongs only to this client's input. local blur = Instance.new("BlurEffect") blur.Name = "EmoteInputFocusBlur" blur.Size = 0 blur.Enabled = false blur.Parent = Lighting api.Blur = blur local function fade(focused) -- Keep the pre-focus state through interrupted fade-outs and quick refocuses. if focused and not api.BlurBaseline then api.BlurBaseline = { Size = blur.Size, Enabled = blur.Enabled } end local baseline = api.BlurBaseline or { Size = blur.Size, Enabled = blur.Enabled } api.Focused = focused api.UpdateSuggestions() api.FadeRevision = (api.FadeRevision or 0) + 1 local revision = api.FadeRevision if api.FadeConnection then api.FadeConnection:Disconnect(); api.FadeConnection = nil end if api.FadeTween then api.FadeTween:Cancel() end if api.BlurTween then api.BlurTween:Cancel() end if focused then box.Visible = true; blur.Enabled = true end local blurTween = TweenService:Create(blur, TweenInfo.new(0.16, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = focused and math.max(14, baseline.Size) or baseline.Size, }) api.BlurTween = blurTween local tween = TweenService:Create(box, TweenInfo.new(0.16, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { BackgroundTransparency = focused and 0.35 or 1, TextTransparency = focused and 0 or 1, TextStrokeTransparency = focused and 0.15 or 1, }) api.FadeTween = tween api.FadeConnection = tween.Completed:Connect(function() if api.Active and api.FadeRevision == revision and not api.Focused then box.Visible = false blur.Size = baseline.Size blur.Enabled = baseline.Enabled api.BlurBaseline = nil end end) blurTween:Play() tween:Play() end function api.Focus() if not api.Active then return false end local focused = UserInputService:GetFocusedTextBox() if focused and focused ~= box then return false end box.Visible = true box:CaptureFocus() return true end -- Never bind our TextBox to the engine's automatic chat submission. configuration.Enabled = false api.Connections.NativeInput = configuration:GetPropertyChangedSignal("Enabled"):Connect(function() if api.Active and configuration.Enabled then configuration.Enabled = false end end) api.Connections.Focused = box.Focused:Connect(function() if api.Active then box.Text = "" api.ResizeInput() fade(true) end end) api.Connections.Submit = box.FocusLost:Connect(function(enterPressed) if not api.Active then return end local text=enterPressed and api.PrepareSubmission(box.Text,api.CompletionState) or box.Text fade(false) if not enterPressed then return end box.Text = "" task.spawn(function() if not api.Active then return end local ok, err = api.Submit(text) if not ok and err ~= "Empty message." then report(err) end end) end) -- Focus only after the opening slash is released. The key cannot be inserted -- into the new textbox, while subsequent slashes typed when focused are untouched. api.Connections.Keyboard = UserInputService.InputBegan:Connect(function(input) if api.Active and input.KeyCode == Enum.KeyCode.Slash and not UserInputService:GetFocusedTextBox() then api.OpeningSlash = true elseif api.Active and input.KeyCode == Enum.KeyCode.Semicolon and not UserInputService:GetFocusedTextBox() then api.OpeningSemicolon = true elseif api.Active and input.KeyCode == Enum.KeyCode.Tab and UserInputService:GetFocusedTextBox() == box then -- Textbox focus can mark keyboard input processed before action bindings. api.CompleteTabOnce() end end) api.Connections.KeyboardReleased = UserInputService.InputEnded:Connect(function(input) if not api.Active then return end if input.KeyCode == Enum.KeyCode.Tab then api.TabKeyDown=false;return end if input.KeyCode == Enum.KeyCode.Slash then local opening = api.OpeningSlash api.OpeningSlash = false if opening and not UserInputService:GetFocusedTextBox() then api.Focus() end elseif input.KeyCode == Enum.KeyCode.Semicolon then local opening = api.OpeningSemicolon api.OpeningSemicolon = false if opening and not UserInputService:GetFocusedTextBox() and api.Focus() then box.Text = ";" box.CursorPosition = 2 api.ResizeInput() end end end) local tabAction = "LocalCommandsTabCompletion" ContextActionService:BindActionAtPriority(tabAction, function(_, state) local prefix = box.Text:sub(1, 1) if api.Active and api.Focused and UserInputService:GetFocusedTextBox() == box and (prefix == "/" or prefix == ";") then if state == Enum.UserInputState.Begin then api.CompleteTabOnce() elseif state == Enum.UserInputState.End or state == Enum.UserInputState.Cancel then api.TabKeyDown=false end return Enum.ContextActionResult.Sink end return Enum.ContextActionResult.Pass end, false, 10000, Enum.KeyCode.Tab) function api.Disconnect() if not api.Active then return end api.Active = false ContextActionService:UnbindAction(tabAction) for _, connection in pairs(api.Connections) do connection:Disconnect() end if api.FadeConnection then api.FadeConnection:Disconnect() end if api.FadeTween then api.FadeTween:Cancel() end if api.BlurTween then api.BlurTween:Cancel() end blur:Destroy() gui:Destroy() configuration.Enabled = originalEnabled end local ok, err = pcall(function() gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui") end) if not ok then api.Disconnect(); error(err) end return api end end factories[ [=[avatar_animations.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Avatar movement animation overrides used by cmds.lua. local Players = game:GetService("Players") local AssetService = game:GetService("AssetService") local player = Players.LocalPlayer local state = { Active = true, Overrides = {}, Originals = {}, Added = {}, Connections = {} } local fields = { idle = "IdleAnimation", walk = "WalkAnimation", run = "RunAnimation", jump = "JumpAnimation", fall = "FallAnimation", climb = "ClimbAnimation", swim = "SwimAnimation", swimidle = "SwimAnimation" } local layouts, bundleCache = {}, {} local function trim(value) local text = tostring(value or ""):match("^%s*(.-)%s*$") if (#text >= 2) and ((text:sub(1, 1) == '"' and text:sub(-1) == '"') or (text:sub(1, 1) == "'" and text:sub(-1) == "'")) then text = text:sub(2, -2) end return text end local function kindOf(name) name = name:lower():gsub("[^%a]", "") if name:find("swimidle", 1, true) then return "swimidle" end for _, kind in ipairs({ "idle", "walk", "run", "jump", "fall", "climb", "swim" }) do if name:find(kind, 1, true) then return kind end end end local function assetLayout(id) if layouts[id] then return layouts[id] end local result = {} local ok, objects = pcall(function() return game:GetObjects("rbxassetid://" .. id) end) if ok and type(objects) == "table" then for _, root in ipairs(objects) do local items = root:GetDescendants() table.insert(items, 1, root) for _, animation in ipairs(items) do if animation:IsA("Animation") and animation.AnimationId ~= "" then local kind, parent = nil, animation while parent do kind = kindOf(parent.Name) if kind or parent == root then break end parent = parent.Parent end kind = kind or "any" result[kind] = result[kind] or {} local weight = animation:FindFirstChild("Weight") table.insert(result[kind], { ID = animation.AnimationId, Weight = weight and weight:IsA("NumberValue") and weight.Value or 1 }) end end root:Destroy() end end layouts[id] = result return result end local function resolve(kind, value) local text = trim(value) local bundleID = text:match("/bundles/(%d+)") or text:match("^bundle:(%d+)$") local id = bundleID or text:match("^%d+$") or text:match("rbxassetid://(%d+)") or text:match("/catalog/(%d+)") if not id or tonumber(id) <= 0 then return nil, "Use an animation ID, animation-pack bundle ID, or bundle URL." end if not bundleID then local layout = assetLayout(id) if layout[kind] or layout.any then return layout[kind] or layout.any end end local bundle = bundleCache[id] if bundle == nil then local ok, data = pcall(function() return AssetService:GetBundleDetailsAsync(tonumber(id)) end) bundle = ok and data or false bundleCache[id] = bundle end if bundle and type(bundle.Items) == "table" then for _, item in ipairs(bundle.Items) do local itemKind = kindOf(tostring(item.AssetType or "")) or kindOf(item.Name or "") if item.Type == "Asset" and itemKind == kind then local layout = assetLayout(tostring(item.Id)) return layout[kind] or layout.any or { { ID = "rbxassetid://" .. item.Id, Weight = 1 } } end end return nil, "That animation pack has no " .. kind .. " animation." end if bundleID then return nil, "Could not read that animation-pack bundle." end return { { ID = "rbxassetid://" .. id, Weight = 1 } } end local function animateFor(character) return character and character:FindFirstChild("Animate") end local function readSlot(character, kind) local animate = animateFor(character) local slot = animate and animate:FindFirstChild(kind) local result = {} if slot then for _, animation in ipairs(slot:GetDescendants()) do if animation:IsA("Animation") then local weight = animation:FindFirstChild("Weight") table.insert(result, { ID = animation.AnimationId, Weight = weight and weight:IsA("NumberValue") and weight.Value or 1 }) end end end return #result > 0 and result or nil end local function apply() if not state.Active or state.Applying then return end local animate = animateFor(player.Character) if not animate then return end state.Applying = true for kind, entries in pairs(state.Overrides) do local slot = animate:FindFirstChild(kind) if slot then local animations = {} for _, animation in ipairs(slot:GetDescendants()) do if animation:IsA("Animation") then table.insert(animations, animation) end end for index = #animations + 1, #entries do local animation = Instance.new("Animation") animation.Name = "AvatarOverride" .. index state.Added[animation] = true animation.Parent = slot table.insert(animations, animation) end for index, animation in ipairs(animations) do if not state.Originals[animation] and not state.Added[animation] then local weight = animation:FindFirstChild("Weight") state.Originals[animation] = { ID = animation.AnimationId, Weight = weight and weight:IsA("NumberValue") and weight.Value } end local entry = entries[(index - 1) % #entries + 1] animation.AnimationId = entry.ID local weight = animation:FindFirstChild("Weight") if weight and weight:IsA("NumberValue") then weight.Value = entry.Weight end end end end state.Applying = false -- Animate reconfigures its sets when AnimationId changes. Stop its old tracks -- so movement transitions use the replacement instead of a cached playing track. local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid") local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") if animator then for _, track in ipairs(animator:GetPlayingAnimationTracks()) do if track.Priority == Enum.AnimationPriority.Core or track.Priority == Enum.AnimationPriority.Movement then track:Stop(0.1) end end end end local function watchCharacter(character) if state.CharacterAddedParts then state.CharacterAddedParts:Disconnect() end state.CharacterAddedParts = character.DescendantAdded:Connect(function(part) if not state.Applying and (part:IsA("Animation") or part.Name == "Animate") then task.defer(apply) end end) apply() end state.Connections.Respawn = player.CharacterAdded:Connect(watchCharacter) if player.Character then watchCharacter(player.Character) end function state.SetMovement(kind, value) if not fields[kind] then return false, "Unknown movement animation." end local entries, err = resolve(kind, value) if not entries then return false, err end if not state.Active then return false, "Animation controller stopped." end state.Overrides[kind] = entries apply() return true end -- Emote catalog IDs are resolved by cmds.lua; never interpret them as bundles. function state.SetMovementAnimation(kind, animationID) if not fields[kind] then return false, "Unknown movement animation." end if not state.Active then return false, "Animation controller stopped." end if type(animationID) ~= "string" or animationID == "" then return false, "Invalid emote animation." end state.Overrides[kind] = { { ID = animationID, Weight = 1 } } apply() return true end -- Resolve the whole bundle before changing any current overrides. function state.SetPack(value) local text = trim(value) local id = text:match("^%d+$") or text:match("/bundles/(%d+)") or text:match("^bundle:(%d+)$") if not id or tonumber(id) <= 0 then return false, "Use /animpack ." end local bundle = bundleCache[id] if not bundle then local ok, result = pcall(function() return AssetService:GetBundleDetailsAsync(tonumber(id)) end) if not ok then return false, "Could not read animation pack: " .. tostring(result) end bundle = result bundleCache[id] = bundle end if type(bundle) ~= "table" or type(bundle.Items) ~= "table" then return false, "That bundle has no animation items." end local overrides = {} for _, item in ipairs(bundle.Items) do local kind = kindOf(tostring(item.AssetType or "")) or kindOf(item.Name or "") if item.Type == "Asset" and kind and item.Id then local layout = assetLayout(tostring(item.Id)) overrides[kind] = layout[kind] or layout.any or { { ID = "rbxassetid://" .. item.Id, Weight = 1 } } -- Swim assets can include a separate idle animation in the same model. if layout.swimidle then overrides.swimidle = layout.swimidle end end end if not next(overrides) then return false, "That bundle is not an animation pack." end if not state.Active then return false, "Animation controller stopped." end for animation, original in pairs(state.Originals) do pcall(function() animation.AnimationId = original.ID local weight = animation:FindFirstChild("Weight") if weight and original.Weight then weight.Value = original.Weight end end) end for animation in pairs(state.Added) do animation:Destroy() end state.Added, state.Overrides = {}, overrides apply() return true end function state.CopyFromUser(userId, inServerPlayer) local description if inServerPlayer and inServerPlayer.Character then local humanoid = inServerPlayer.Character:FindFirstChildOfClass("Humanoid") if humanoid then local ok, result = pcall(function() return humanoid:GetAppliedDescription() end) if ok then description = result end end end if not description then local ok, result = pcall(function() return Players:GetHumanoidDescriptionFromUserIdAsync(userId) end) if not ok then return false, "Could not fetch avatar: " .. tostring(result) end description = result end local overrides = {} for kind, field in pairs(fields) do -- Live Animate slots preserve multiple idle variants and game-specific rigs. local entries = inServerPlayer and readSlot(inServerPlayer.Character, kind) local id = description[field] if not entries and type(id) == "number" and id > 0 then local layout = assetLayout(tostring(id)) entries = layout[kind] or layout.any or { { ID = "rbxassetid://" .. id, Weight = 1 } } end if entries then overrides[kind] = entries end end description:Destroy() if not state.Active then return false, "Animation controller stopped." end -- Revert earlier commands for slots the new avatar leaves at their defaults. for animation, original in pairs(state.Originals) do pcall(function() animation.AnimationId = original.ID end) end for animation in pairs(state.Added) do animation:Destroy() end state.Added = {} state.Overrides = overrides apply() return true end function state.Disconnect() if not state.Active then return end state.Active = false for _, connection in pairs(state.Connections) do connection:Disconnect() end if state.CharacterAddedParts then state.CharacterAddedParts:Disconnect() end for animation, original in pairs(state.Originals) do pcall(function() animation.AnimationId = original.ID local weight = animation:FindFirstChild("Weight") if weight and original.Weight then weight.Value = original.Weight end end) end for animation in pairs(state.Added) do animation:Destroy() end end return state end end factories[ [=[iy_command_backend.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) --[[ Adapted headless command backend from EdgeIY/infiniteyield v6.4.2. https://github.com/EdgeIY/infiniteyield MIT License Copyright (c) 2026 EdgeIY Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] currentVersion = "6.4.2" function missing(t, f, fallback) if type(f) == t then return f end return fallback end cloneref = missing("function", cloneref, function(...) return ... end) gethui = missing("function", gethui or get_hidden_gui) syn = missing("table", syn) syn_protect_gui = missing("function", syn and syn.protect_gui) sethidden = missing("function", sethiddenproperty or set_hidden_property or set_hidden_prop) gethidden = missing("function", gethiddenproperty or get_hidden_property or get_hidden_prop) queueteleport = missing("function", queue_on_teleport or (syn and syn.queue_on_teleport) or (fluxus and fluxus.queue_on_teleport)) httprequest = missing("function", request or http_request or (syn and syn.request) or (http and http.request) or (fluxus and fluxus.request)) everyClipboard = missing("function", setclipboard or toclipboard or set_clipboard or (Clipboard and Clipboard.set)) firetouchinterest = missing("function", firetouchinterest) waxwritefile, waxreadfile = writefile, readfile writefile = missing("function", waxwritefile) and function(file, data, safe) if safe == true then return pcall(waxwritefile, file, data) end waxwritefile(file, data) end readfile = missing("function", waxreadfile) and function(file, safe) if safe == true then return pcall(waxreadfile, file) end return waxreadfile(file) end isfile = missing("function", isfile, readfile and function(file) local success, result = pcall(function() return readfile(file) end) return success and result ~= nil and result ~= "" end) makefolder = missing("function", makefolder) isfolder = missing("function", isfolder) waxgetcustomasset = missing("function", getcustomasset or getsynasset) hookfunction = missing("function", hookfunction) hookmetamethod = missing("function", hookmetamethod) getnamecallmethod = missing("function", getnamecallmethod or get_namecall_method) checkcaller = missing("function", checkcaller, function() return false end) newcclosure = missing("function", newcclosure, function(f, ...) return f(...) end) getgc = missing("function", getgc or get_gc_objects) setthreadidentity = missing("function", setthreadidentity or (syn and syn.set_thread_identity) or syn_context_set or setthreadcontext) replicatesignal = missing("function", replicatesignal) getconnections = missing("function", getconnections or get_signal_cons) Services = setmetatable({}, { __index = function(self, name) local success, cache = pcall(function() return cloneref(game:GetService(name)) end) if success then rawset(self, name, cache) return cache else error("Invalid Service: " .. tostring(name)) end end }) Players = Services.Players UserInputService = Services.UserInputService TweenService = Services.TweenService HttpService = Services.HttpService ExperienceService = Services.ExperienceService MarketplaceService = Services.MarketplaceService RunService = Services.RunService TeleportService = Services.TeleportService StarterGui = Services.StarterGui GuiService = Services.GuiService Lighting = Services.Lighting ContextActionService = Services.ContextActionService ReplicatedStorage = Services.ReplicatedStorage GroupService = Services.GroupService PathService = Services.PathfindingService SoundService = Services.SoundService Teams = Services.Teams StarterPlayer = Services.StarterPlayer InsertService = Services.InsertService ChatService = Services.Chat ProximityPromptService = Services.ProximityPromptService ContentProvider = Services.ContentProvider StatsService = Services.Stats MaterialService = Services.MaterialService AvatarEditorService = Services.AvatarEditorService TextService = Services.TextService TextChatService = Services.TextChatService CaptureService = Services.CaptureService VoiceChatService = Services.VoiceChatService SocialService = Services.SocialService LogService = Services.LogService PlayerGui = cloneref(Players.LocalPlayer:FindFirstChildWhichIsA("PlayerGui")) COREGUI = Services.CoreGui or PlayerGui IYMouse = cloneref(Players.LocalPlayer:GetMouse()) PlaceId, JobId = game.PlaceId, game.JobId isLegacyChat = TextChatService.ChatVersion == Enum.ChatVersion.LegacyChatService local iyassets = { ["infiniteyield/assets/bindsandplugins.png"] = "rbxassetid://5147695474", ["infiniteyield/assets/close.png"] = "rbxassetid://5054663650", ["infiniteyield/assets/editaliases.png"] = "rbxassetid://5147488658", ["infiniteyield/assets/editkeybinds.png"] = "rbxassetid://129697930", ["infiniteyield/assets/edittheme.png"] = "rbxassetid://4911962991", ["infiniteyield/assets/editwaypoints.png"] = "rbxassetid://5147488592", ["infiniteyield/assets/imgstudiopluginlogo.png"] = "rbxassetid://4113050383", ["infiniteyield/assets/logo.png"] = "rbxassetid://1352543873", ["infiniteyield/assets/minimize.png"] = "rbxassetid://2406617031", ["infiniteyield/assets/pin.png"] = "rbxassetid://6234691350", ["infiniteyield/assets/reference.png"] = "rbxassetid://3523243755", ["infiniteyield/assets/settings.png"] = "rbxassetid://1204397029", ["infiniteyield/assets/scrollbar.png"] = "rbxassetid://75024581433929" } local function getcustomasset(asset) if waxgetcustomasset then local success, result = pcall(function() return waxgetcustomasset(asset) end) if success and result ~= nil and result ~= "" then return result end end return iyassets[asset] end ScaledHolder = Instance.new("Frame") Scale = Instance.new("UIScale") Holder = Instance.new("Frame") Title = Instance.new("TextLabel") Dark = Instance.new("Frame") Cmdbar = Instance.new("TextBox") CMDsF = Instance.new("ScrollingFrame") cmdListLayout = Instance.new("UIListLayout") SettingsButton = Instance.new("ImageButton") ColorsButton = Instance.new("ImageButton") Settings = Instance.new("Frame") Prefix = Instance.new("TextLabel") PrefixBox = Instance.new("TextBox") Keybinds = Instance.new("TextLabel") StayOpen = Instance.new("TextLabel") Button = Instance.new("Frame") On = Instance.new("TextButton") Positions = Instance.new("TextLabel") EventBind = Instance.new("TextLabel") Plugins = Instance.new("TextLabel") Example = Instance.new("TextButton") Notification = Instance.new("Frame") Title_2 = Instance.new("TextLabel") Text_2 = Instance.new("TextLabel") CloseButton = Instance.new("TextButton") CloseImage = Instance.new("ImageLabel") PinButton = Instance.new("TextButton") PinImage = Instance.new("ImageLabel") Tooltip = Instance.new("Frame") Title_3 = Instance.new("TextLabel") Description = Instance.new("TextLabel") IntroBackground = Instance.new("Frame") Logo = Instance.new("ImageLabel") Credits = Instance.new("TextBox") KeybindsFrame = Instance.new("Frame") Close = Instance.new("TextButton") Add = Instance.new("TextButton") Delete = Instance.new("TextButton") Holder_2 = Instance.new("ScrollingFrame") Example_2 = Instance.new("Frame") Text_3 = Instance.new("TextLabel") Delete_2 = Instance.new("TextButton") KeybindEditor = Instance.new("Frame") background_2 = Instance.new("Frame") Dark_3 = Instance.new("Frame") Directions = Instance.new("TextLabel") BindTo = Instance.new("TextButton") TriggerLabel = Instance.new("TextLabel") BindTriggerSelect = Instance.new("TextButton") Add_2 = Instance.new("TextButton") Toggles = Instance.new("ScrollingFrame") ClickTP = Instance.new("TextLabel") Select = Instance.new("TextButton") ClickDelete = Instance.new("TextLabel") Select_2 = Instance.new("TextButton") Cmdbar_2 = Instance.new("TextBox") Cmdbar_3 = Instance.new("TextBox") CreateToggle = Instance.new("TextLabel") Button_2 = Instance.new("Frame") On_2 = Instance.new("TextButton") shadow_2 = Instance.new("Frame") PopupText_2 = Instance.new("TextLabel") Exit_2 = Instance.new("TextButton") ExitImage_2 = Instance.new("ImageLabel") PositionsFrame = Instance.new("Frame") Close_3 = Instance.new("TextButton") Delete_5 = Instance.new("TextButton") Part = Instance.new("TextButton") Holder_4 = Instance.new("ScrollingFrame") Example_4 = Instance.new("Frame") Text_5 = Instance.new("TextLabel") Delete_6 = Instance.new("TextButton") TP = Instance.new("TextButton") AliasesFrame = Instance.new("Frame") Close_2 = Instance.new("TextButton") Delete_3 = Instance.new("TextButton") Holder_3 = Instance.new("ScrollingFrame") Example_3 = Instance.new("Frame") Text_4 = Instance.new("TextLabel") Delete_4 = Instance.new("TextButton") Aliases = Instance.new("TextLabel") PluginsFrame = Instance.new("Frame") Close_4 = Instance.new("TextButton") Add_3 = Instance.new("TextButton") Holder_5 = Instance.new("ScrollingFrame") Example_5 = Instance.new("Frame") Text_6 = Instance.new("TextLabel") Delete_7 = Instance.new("TextButton") PluginEditor = Instance.new("Frame") background_3 = Instance.new("Frame") Dark_2 = Instance.new("Frame") Img = Instance.new("ImageButton") AddPlugin = Instance.new("TextButton") FileName = Instance.new("TextBox") About = Instance.new("TextLabel") Directions_2 = Instance.new("TextLabel") shadow_3 = Instance.new("Frame") PopupText_3 = Instance.new("TextLabel") Exit_3 = Instance.new("TextButton") ExitImage_3 = Instance.new("ImageLabel") AliasHint = Instance.new("TextLabel") PluginsHint = Instance.new("TextLabel") PositionsHint = Instance.new("TextLabel") ToPartFrame = Instance.new("Frame") background_4 = Instance.new("Frame") ChoosePart = Instance.new("TextButton") CopyPath = Instance.new("TextButton") Directions_3 = Instance.new("TextLabel") Path = Instance.new("TextLabel") shadow_4 = Instance.new("Frame") PopupText_5 = Instance.new("TextLabel") Exit_4 = Instance.new("TextButton") ExitImage_5 = Instance.new("ImageLabel") logs = Instance.new("Frame") shadow = Instance.new("Frame") Hide = Instance.new("TextButton") ImageLabel = Instance.new("ImageLabel") PopupText = Instance.new("TextLabel") Exit = Instance.new("TextButton") ImageLabel_2 = Instance.new("ImageLabel") background = Instance.new("Frame") chat = Instance.new("Frame") Clear = Instance.new("TextButton") SaveChatlogs = Instance.new("TextButton") Toggle = Instance.new("TextButton") scroll_2 = Instance.new("ScrollingFrame") join = Instance.new("Frame") Toggle_2 = Instance.new("TextButton") Clear_2 = Instance.new("TextButton") scroll_3 = Instance.new("ScrollingFrame") listlayout = Instance.new("UIListLayout",scroll_3) selectChat = Instance.new("TextButton") selectJoin = Instance.new("TextButton") function randomString() local length = math.random(10,20) local array = {} for i = 1, length do array[i] = string.char(math.random(32, 126)) end return table.concat(array) end PARENT = CmdsRootGui MAX_DISPLAY_ORDER = 1.7976931348623157e308 shade1 = {} shade2 = {} shade3 = {} text1 = {} text2 = {} scroll = {} ScaledHolder.Name = randomString() ScaledHolder.Size = UDim2.fromScale(1, 1) ScaledHolder.BackgroundTransparency = 1 ScaledHolder.Parent = PARENT Scale.Name = randomString() Holder.Name = randomString() Holder.Parent = ScaledHolder Holder.Active = true Holder.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Holder.BorderSizePixel = 0 Holder.Position = UDim2.new(1, -250, 1, -220) Holder.Size = UDim2.new(0, 250, 0, 220) Holder.ZIndex = 10 Title.Name = "Title" Title.Parent = Holder Title.Active = true Title.BackgroundColor3 = Color3.fromRGB(36,36,37) Title.BorderSizePixel = 0 Title.Size = UDim2.new(0, 250, 0, 20) Title.Font = Enum.Font.SourceSans Title.TextSize = 18 Title.Text = "Infinite Yield FE v" .. currentVersion Title.TextColor3 = Color3.new(1, 1, 1) Title.ZIndex = 10 Dark.Name = "Dark" Dark.Parent = Holder Dark.Active = true Dark.BackgroundColor3 = Color3.fromRGB(36, 36, 37) Dark.BorderSizePixel = 0 Dark.Position = UDim2.new(0, 0, 0, 45) Dark.Size = UDim2.new(0, 250, 0, 175) Dark.ZIndex = 10 Cmdbar.Name = "Cmdbar" Cmdbar.Parent = Holder Cmdbar.BackgroundTransparency = 1 Cmdbar.BorderSizePixel = 0 Cmdbar.Position = UDim2.new(0, 5, 0, 20) Cmdbar.Size = UDim2.new(0, 240, 0, 25) Cmdbar.Font = Enum.Font.SourceSans Cmdbar.TextSize = 18 Cmdbar.TextXAlignment = Enum.TextXAlignment.Left Cmdbar.TextColor3 = Color3.new(1, 1, 1) Cmdbar.Text = "" Cmdbar.ZIndex = 10 Cmdbar.PlaceholderText = "Command Bar" CMDsF.Name = "CMDs" CMDsF.Parent = Holder CMDsF.BackgroundTransparency = 1 CMDsF.BorderSizePixel = 0 CMDsF.Position = UDim2.new(0, 5, 0, 45) CMDsF.Size = UDim2.new(0, 245, 0, 175) CMDsF.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) CMDsF.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" CMDsF.CanvasSize = UDim2.new(0, 0, 0, 0) CMDsF.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" CMDsF.ScrollBarThickness = 8 CMDsF.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" CMDsF.VerticalScrollBarInset = 'Always' CMDsF.ZIndex = 10 cmdListLayout.Parent = CMDsF SettingsButton.Name = "SettingsButton" SettingsButton.Parent = Holder SettingsButton.BackgroundTransparency = 1 SettingsButton.Position = UDim2.new(0, 230, 0, 0) SettingsButton.Size = UDim2.new(0, 20, 0, 20) SettingsButton.Image = getcustomasset("infiniteyield/assets/settings.png") SettingsButton.ZIndex = 10 ReferenceButton = Instance.new("ImageButton") ReferenceButton.Name = "ReferenceButton" ReferenceButton.Parent = Holder ReferenceButton.BackgroundTransparency = 1 ReferenceButton.Position = UDim2.new(0, 212, 0, 2) ReferenceButton.Size = UDim2.new(0, 16, 0, 16) ReferenceButton.Image = getcustomasset("infiniteyield/assets/reference.png") ReferenceButton.ZIndex = 10 Settings.Name = "Settings" Settings.Parent = Holder Settings.Active = true Settings.BackgroundColor3 = Color3.fromRGB(36, 36, 37) Settings.BorderSizePixel = 0 Settings.Position = UDim2.new(0, 0, 0, 220) Settings.Size = UDim2.new(0, 250, 0, 175) Settings.ZIndex = 10 SettingsHolder = Instance.new("ScrollingFrame") SettingsHolder.Name = "Holder" SettingsHolder.Parent = Settings SettingsHolder.BackgroundTransparency = 1 SettingsHolder.BorderSizePixel = 0 SettingsHolder.Size = UDim2.new(1,0,1,0) SettingsHolder.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) SettingsHolder.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" SettingsHolder.CanvasSize = UDim2.new(0, 0, 0, 235) SettingsHolder.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" SettingsHolder.ScrollBarThickness = 8 SettingsHolder.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" SettingsHolder.VerticalScrollBarInset = 'Always' SettingsHolder.ZIndex = 10 Prefix.Name = "Prefix" Prefix.Parent = SettingsHolder Prefix.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Prefix.BorderSizePixel = 0 Prefix.BackgroundTransparency = 1 Prefix.Position = UDim2.new(0, 5, 0, 5) Prefix.Size = UDim2.new(1, -10, 0, 20) Prefix.Font = Enum.Font.SourceSans Prefix.TextSize = 14 Prefix.Text = "Prefix" Prefix.TextColor3 = Color3.new(1, 1, 1) Prefix.TextXAlignment = Enum.TextXAlignment.Left Prefix.ZIndex = 10 PrefixBox.Name = "PrefixBox" PrefixBox.Parent = Prefix PrefixBox.BackgroundColor3 = Color3.fromRGB(78, 78, 79) PrefixBox.BorderSizePixel = 0 PrefixBox.Position = UDim2.new(1, -20, 0, 0) PrefixBox.Size = UDim2.new(0, 20, 0, 20) PrefixBox.Font = Enum.Font.SourceSansBold PrefixBox.TextSize = 14 PrefixBox.Text = '' PrefixBox.TextColor3 = Color3.new(0, 0, 0) PrefixBox.ZIndex = 10 function makeSettingsButton(name,iconID,off) local button = Instance.new("TextButton") button.BackgroundColor3 = Color3.fromRGB(46, 46, 47) button.BorderSizePixel = 0 button.Position = UDim2.new(0,0,0,0) button.Size = UDim2.new(1,0,0,25) button.Text = "" button.ZIndex = 10 local icon = Instance.new("ImageLabel") icon.Name = "Icon" icon.Parent = button icon.Position = UDim2.new(0,5,0,5) icon.Size = UDim2.new(0,16,0,16) icon.BackgroundTransparency = 1 icon.Image = iconID icon.ZIndex = 10 if off then icon.ScaleType = Enum.ScaleType.Crop icon.ImageRectSize = Vector2.new(16,16) icon.ImageRectOffset = Vector2.new(off,0) end local label = Instance.new("TextLabel") label.Name = "ButtonLabel" label.Parent = button label.BackgroundTransparency = 1 label.Text = name label.Position = UDim2.new(0,28,0,0) label.Size = UDim2.new(1,-28,1,0) label.Font = Enum.Font.SourceSans label.TextColor3 = Color3.new(1, 1, 1) label.TextSize = 14 label.ZIndex = 10 label.TextXAlignment = Enum.TextXAlignment.Left table.insert(shade2,button) table.insert(text1,label) return button end ColorsButton = makeSettingsButton("Edit Theme",getcustomasset("infiniteyield/assets/edittheme.png")) ColorsButton.Position = UDim2.new(0, 5, 0, 55) ColorsButton.Size = UDim2.new(1, -10, 0, 25) ColorsButton.Name = "Colors" ColorsButton.Parent = SettingsHolder Keybinds = makeSettingsButton("Edit Keybinds",getcustomasset("infiniteyield/assets/editkeybinds.png")) Keybinds.Position = UDim2.new(0, 5, 0, 85) Keybinds.Size = UDim2.new(1, -10, 0, 25) Keybinds.Name = "Keybinds" Keybinds.Parent = SettingsHolder Aliases = makeSettingsButton("Edit Aliases",getcustomasset("infiniteyield/assets/editaliases.png")) Aliases.Position = UDim2.new(0, 5, 0, 115) Aliases.Size = UDim2.new(1, -10, 0, 25) Aliases.Name = "Aliases" Aliases.Parent = SettingsHolder StayOpen.Name = "StayOpen" StayOpen.Parent = SettingsHolder StayOpen.BackgroundColor3 = Color3.fromRGB(46, 46, 47) StayOpen.BorderSizePixel = 0 StayOpen.BackgroundTransparency = 1 StayOpen.Position = UDim2.new(0, 5, 0, 30) StayOpen.Size = UDim2.new(1, -10, 0, 20) StayOpen.Font = Enum.Font.SourceSans StayOpen.TextSize = 14 StayOpen.Text = "Keep Menu Open" StayOpen.TextColor3 = Color3.new(1, 1, 1) StayOpen.TextXAlignment = Enum.TextXAlignment.Left StayOpen.ZIndex = 10 Button.Name = "Button" Button.Parent = StayOpen Button.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Button.BorderSizePixel = 0 Button.Position = UDim2.new(1, -20, 0, 0) Button.Size = UDim2.new(0, 20, 0, 20) Button.ZIndex = 10 On.Name = "On" On.Parent = Button On.BackgroundColor3 = Color3.fromRGB(150, 150, 151) On.BackgroundTransparency = 1 On.BorderSizePixel = 0 On.Position = UDim2.new(0, 2, 0, 2) On.Size = UDim2.new(0, 16, 0, 16) On.Font = Enum.Font.SourceSans On.FontSize = Enum.FontSize.Size14 On.Text = "" On.TextColor3 = Color3.new(0, 0, 0) On.ZIndex = 10 Positions = makeSettingsButton("Edit/Goto Waypoints",getcustomasset("infiniteyield/assets/editwaypoints.png")) Positions.Position = UDim2.new(0, 5, 0, 145) Positions.Size = UDim2.new(1, -10, 0, 25) Positions.Name = "Waypoints" Positions.Parent = SettingsHolder EventBind = makeSettingsButton("Edit Event Binds",getcustomasset("infiniteyield/assets/bindsandplugins.png"),759) EventBind.Position = UDim2.new(0, 5, 0, 205) EventBind.Size = UDim2.new(1, -10, 0, 25) EventBind.Name = "EventBinds" EventBind.Parent = SettingsHolder Plugins = makeSettingsButton("Manage Plugins",getcustomasset("infiniteyield/assets/bindsandplugins.png"),743) Plugins.Position = UDim2.new(0, 5, 0, 175) Plugins.Size = UDim2.new(1, -10, 0, 25) Plugins.Name = "Plugins" Plugins.Parent = SettingsHolder Example.Name = "Example" Example.Parent = Holder Example.BackgroundTransparency = 1 Example.BorderSizePixel = 0 Example.Size = UDim2.new(0, 190, 0, 20) Example.Visible = false Example.Font = Enum.Font.SourceSans Example.TextSize = 18 Example.Text = "Example" Example.TextColor3 = Color3.new(1, 1, 1) Example.TextXAlignment = Enum.TextXAlignment.Left Example.ZIndex = 10 Notification.Name = randomString() Notification.Parent = ScaledHolder Notification.BackgroundColor3 = Color3.fromRGB(36, 36, 37) Notification.BorderSizePixel = 0 Notification.Position = UDim2.new(1, -500, 1, 20) Notification.Size = UDim2.new(0, 250, 0, 100) Notification.ZIndex = 10 Title_2.Name = "Title" Title_2.Parent = Notification Title_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Title_2.BorderSizePixel = 0 Title_2.Size = UDim2.new(0, 250, 0, 20) Title_2.Font = Enum.Font.SourceSans Title_2.TextSize = 14 Title_2.Text = "Notification Title" Title_2.TextColor3 = Color3.new(1, 1, 1) Title_2.ZIndex = 10 Text_2.Name = "Text" Text_2.Parent = Notification Text_2.BackgroundTransparency = 1 Text_2.BorderSizePixel = 0 Text_2.Position = UDim2.new(0, 5, 0, 25) Text_2.Size = UDim2.new(0, 240, 0, 75) Text_2.Font = Enum.Font.SourceSans Text_2.TextSize = 16 Text_2.Text = "Notification Text" Text_2.TextColor3 = Color3.new(1, 1, 1) Text_2.TextWrapped = true Text_2.ZIndex = 10 CloseButton.Name = "CloseButton" CloseButton.Parent = Notification CloseButton.BackgroundTransparency = 1 CloseButton.Position = UDim2.new(1, -20, 0, 0) CloseButton.Size = UDim2.new(0, 20, 0, 20) CloseButton.Text = "" CloseButton.ZIndex = 10 CloseImage.Parent = CloseButton CloseImage.BackgroundColor3 = Color3.new(1, 1, 1) CloseImage.BackgroundTransparency = 1 CloseImage.Position = UDim2.new(0, 5, 0, 5) CloseImage.Size = UDim2.new(0, 10, 0, 10) CloseImage.Image = getcustomasset("infiniteyield/assets/close.png") CloseImage.ZIndex = 10 PinButton.Name = "PinButton" PinButton.Parent = Notification PinButton.BackgroundTransparency = 1 PinButton.Size = UDim2.new(0, 20, 0, 20) PinButton.ZIndex = 10 PinButton.Text = "" PinImage.Parent = PinButton PinImage.BackgroundColor3 = Color3.new(1, 1, 1) PinImage.BackgroundTransparency = 1 PinImage.Position = UDim2.new(0, 3, 0, 3) PinImage.Size = UDim2.new(0, 14, 0, 14) PinImage.ZIndex = 10 PinImage.Image = getcustomasset("infiniteyield/assets/pin.png") Tooltip.Name = randomString() Tooltip.Parent = ScaledHolder Tooltip.Active = true Tooltip.BackgroundColor3 = Color3.fromRGB(36, 36, 37) Tooltip.BackgroundTransparency = 0.1 Tooltip.BorderSizePixel = 0 Tooltip.Size = UDim2.new(0, 200, 0, 96) Tooltip.Visible = false Tooltip.ZIndex = 10 Title_3.Name = "Title" Title_3.Parent = Tooltip Title_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Title_3.BackgroundTransparency = 0.1 Title_3.BorderSizePixel = 0 Title_3.Size = UDim2.new(0, 200, 0, 20) Title_3.Font = Enum.Font.SourceSans Title_3.TextSize = 14 Title_3.Text = "" Title_3.TextColor3 = Color3.new(1, 1, 1) Title_3.TextTransparency = 0.1 Title_3.ZIndex = 10 Description.Name = "Description" Description.Parent = Tooltip Description.BackgroundTransparency = 1 Description.BorderSizePixel = 0 Description.Size = UDim2.new(0,180,0,72) Description.Position = UDim2.new(0,10,0,18) Description.Font = Enum.Font.SourceSans Description.TextSize = 16 Description.Text = "" Description.TextColor3 = Color3.new(1, 1, 1) Description.TextTransparency = 0.1 Description.TextWrapped = true Description.ZIndex = 10 IntroBackground.Name = "IntroBackground" IntroBackground.Parent = Holder IntroBackground.Active = true IntroBackground.BackgroundColor3 = Color3.fromRGB(36, 36, 37) IntroBackground.BorderSizePixel = 0 IntroBackground.Position = UDim2.new(0, 0, 0, 45) IntroBackground.Size = UDim2.new(0, 250, 0, 175) IntroBackground.ZIndex = 10 Logo.Name = "Logo" Logo.Parent = Holder Logo.BackgroundTransparency = 1 Logo.BorderSizePixel = 0 Logo.Position = UDim2.new(0, 125, 0, 127) Logo.Size = UDim2.new(0, 10, 0, 10) Logo.Image = getcustomasset("infiniteyield/assets/logo.png") Logo.ImageTransparency = 0 Logo.ZIndex = 10 Credits.Name = "Credits" Credits.Parent = Holder Credits.BackgroundTransparency = 1 Credits.BorderSizePixel = 0 Credits.Position = UDim2.new(0, 0, 0.9, 30) Credits.Size = UDim2.new(0, 250, 0, 20) Credits.Font = Enum.Font.SourceSansLight Credits.FontSize = Enum.FontSize.Size14 Credits.Text = "Edge // Zwolf // Moon // Toon // Peyton // ATP" Credits.TextColor3 = Color3.new(1, 1, 1) Credits.ZIndex = 10 KeybindsFrame.Name = "KeybindsFrame" KeybindsFrame.Parent = Settings KeybindsFrame.Active = true KeybindsFrame.BackgroundColor3 = Color3.fromRGB(36, 36, 37) KeybindsFrame.BorderSizePixel = 0 KeybindsFrame.Position = UDim2.new(0, 0, 0, 175) KeybindsFrame.Size = UDim2.new(0, 250, 0, 175) KeybindsFrame.ZIndex = 10 Close.Name = "Close" Close.Parent = KeybindsFrame Close.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Close.BorderSizePixel = 0 Close.Position = UDim2.new(0, 205, 0, 150) Close.Size = UDim2.new(0, 40, 0, 20) Close.Font = Enum.Font.SourceSans Close.TextSize = 14 Close.Text = "Close" Close.TextColor3 = Color3.new(1, 1, 1) Close.ZIndex = 10 Add.Name = "Add" Add.Parent = KeybindsFrame Add.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Add.BorderSizePixel = 0 Add.Position = UDim2.new(0, 5, 0, 150) Add.Size = UDim2.new(0, 40, 0, 20) Add.Font = Enum.Font.SourceSans Add.TextSize = 14 Add.Text = "Add" Add.TextColor3 = Color3.new(1, 1, 1) Add.ZIndex = 10 Delete.Name = "Delete" Delete.Parent = KeybindsFrame Delete.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Delete.BorderSizePixel = 0 Delete.Position = UDim2.new(0, 50, 0, 150) Delete.Size = UDim2.new(0, 40, 0, 20) Delete.Font = Enum.Font.SourceSans Delete.TextSize = 14 Delete.Text = "Clear" Delete.TextColor3 = Color3.new(1, 1, 1) Delete.ZIndex = 10 Holder_2.Name = "Holder" Holder_2.Parent = KeybindsFrame Holder_2.BackgroundTransparency = 1 Holder_2.BorderSizePixel = 0 Holder_2.Position = UDim2.new(0, 0, 0, 0) Holder_2.Size = UDim2.new(0, 250, 0, 145) Holder_2.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) Holder_2.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_2.CanvasSize = UDim2.new(0, 0, 0, 0) Holder_2.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_2.ScrollBarThickness = 0 Holder_2.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_2.VerticalScrollBarInset = 'Always' Holder_2.ZIndex = 10 Example_2.Name = "Example" Example_2.Parent = KeybindsFrame Example_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Example_2.BorderSizePixel = 0 Example_2.Size = UDim2.new(0, 10, 0, 20) Example_2.Visible = false Example_2.ZIndex = 10 Text_3.Name = "Text" Text_3.Parent = Example_2 Text_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Text_3.BorderSizePixel = 0 Text_3.Position = UDim2.new(0, 10, 0, 0) Text_3.Size = UDim2.new(0, 240, 0, 20) Text_3.Font = Enum.Font.SourceSans Text_3.TextSize = 14 Text_3.Text = "nom" Text_3.TextColor3 = Color3.new(1, 1, 1) Text_3.TextXAlignment = Enum.TextXAlignment.Left Text_3.ZIndex = 10 Delete_2.Name = "Delete" Delete_2.Parent = Text_3 Delete_2.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Delete_2.BorderSizePixel = 0 Delete_2.Position = UDim2.new(0, 200, 0, 0) Delete_2.Size = UDim2.new(0, 40, 0, 20) Delete_2.Font = Enum.Font.SourceSans Delete_2.TextSize = 14 Delete_2.Text = "Delete" Delete_2.TextColor3 = Color3.new(0, 0, 0) Delete_2.ZIndex = 10 KeybindEditor.Name = randomString() KeybindEditor.Parent = ScaledHolder KeybindEditor.Active = true KeybindEditor.BackgroundTransparency = 1 KeybindEditor.Position = UDim2.new(0.5, -180, 0, -500) KeybindEditor.Size = UDim2.new(0, 360, 0, 20) KeybindEditor.ZIndex = 10 background_2.Name = "background" background_2.Parent = KeybindEditor background_2.Active = true background_2.BackgroundColor3 = Color3.fromRGB(36, 36, 37) background_2.BorderSizePixel = 0 background_2.Position = UDim2.new(0, 0, 0, 20) background_2.Size = UDim2.new(0, 360, 0, 185) background_2.ZIndex = 10 Dark_3.Name = "Dark" Dark_3.Parent = background_2 Dark_3.Active = true Dark_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Dark_3.BorderSizePixel = 0 Dark_3.Position = UDim2.new(0, 135, 0, 0) Dark_3.Size = UDim2.new(0, 2, 0, 185) Dark_3.ZIndex = 10 Directions.Name = "Directions" Directions.Parent = background_2 Directions.BackgroundTransparency = 1 Directions.BorderSizePixel = 0 Directions.Position = UDim2.new(0, 10, 0, 15) Directions.Size = UDim2.new(0, 115, 0, 90) Directions.ZIndex = 10 Directions.Font = Enum.Font.SourceSans Directions.Text = "Click the button below and press a key/mouse button. Then select what you want to bind it to." Directions.TextColor3 = Color3.fromRGB(255, 255, 255) Directions.TextSize = 14.000 Directions.TextWrapped = true Directions.TextYAlignment = Enum.TextYAlignment.Top BindTo.Name = "BindTo" BindTo.Parent = background_2 BindTo.BackgroundColor3 = Color3.fromRGB(46, 46, 47) BindTo.BorderSizePixel = 0 BindTo.Position = UDim2.new(0, 10, 0, 95) BindTo.Size = UDim2.new(0, 115, 0, 50) BindTo.ZIndex = 10 BindTo.Font = Enum.Font.SourceSans BindTo.Text = "Click to bind" BindTo.TextColor3 = Color3.fromRGB(255, 255, 255) BindTo.TextSize = 16.000 TriggerLabel.Name = "TriggerLabel" TriggerLabel.Parent = background_2 TriggerLabel.BackgroundTransparency = 1 TriggerLabel.Position = UDim2.new(0, 10, 0, 155) TriggerLabel.Size = UDim2.new(0, 45, 0, 20) TriggerLabel.ZIndex = 10 TriggerLabel.Font = Enum.Font.SourceSans TriggerLabel.Text = "Trigger:" TriggerLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TriggerLabel.TextSize = 14.000 TriggerLabel.TextXAlignment = Enum.TextXAlignment.Left BindTriggerSelect.Name = "BindTo" BindTriggerSelect.Parent = background_2 BindTriggerSelect.BackgroundColor3 = Color3.fromRGB(46, 46, 47) BindTriggerSelect.BorderSizePixel = 0 BindTriggerSelect.Position = UDim2.new(0, 60, 0, 155) BindTriggerSelect.Size = UDim2.new(0, 65, 0, 20) BindTriggerSelect.ZIndex = 10 BindTriggerSelect.Font = Enum.Font.SourceSans BindTriggerSelect.Text = "KeyDown" BindTriggerSelect.TextColor3 = Color3.fromRGB(255, 255, 255) BindTriggerSelect.TextSize = 16.000 Add_2.Name = "Add" Add_2.Parent = background_2 Add_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Add_2.BorderSizePixel = 0 Add_2.Position = UDim2.new(0, 310, 0, 35) Add_2.Size = UDim2.new(0, 40, 0, 20) Add_2.ZIndex = 10 Add_2.Font = Enum.Font.SourceSans Add_2.Text = "Add" Add_2.TextColor3 = Color3.fromRGB(255, 255, 255) Add_2.TextSize = 14.000 Toggles.Name = "Toggles" Toggles.Parent = background_2 Toggles.BackgroundTransparency = 1 Toggles.BorderSizePixel = 0 Toggles.Position = UDim2.new(0, 150, 0, 125) Toggles.Size = UDim2.new(0, 200, 0, 50) Toggles.ZIndex = 10 Toggles.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Toggles.CanvasSize = UDim2.new(0, 0, 0, 50) Toggles.ScrollBarThickness = 8 Toggles.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Toggles.VerticalScrollBarInset = Enum.ScrollBarInset.Always ClickTP.Name = "Click TP (Hold Key & Click)" ClickTP.Parent = Toggles ClickTP.BackgroundColor3 = Color3.fromRGB(46, 46, 47) ClickTP.BorderSizePixel = 0 ClickTP.Size = UDim2.new(0, 200, 0, 20) ClickTP.ZIndex = 10 ClickTP.Font = Enum.Font.SourceSans ClickTP.Text = " Click TP (Hold Key & Click)" ClickTP.TextColor3 = Color3.fromRGB(255, 255, 255) ClickTP.TextSize = 14.000 ClickTP.TextXAlignment = Enum.TextXAlignment.Left Select.Name = "Select" Select.Parent = ClickTP Select.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Select.BorderSizePixel = 0 Select.Position = UDim2.new(0, 160, 0, 0) Select.Size = UDim2.new(0, 40, 0, 20) Select.ZIndex = 10 Select.Font = Enum.Font.SourceSans Select.Text = "Add" Select.TextColor3 = Color3.fromRGB(0, 0, 0) Select.TextSize = 14.000 ClickDelete.Name = "Click Delete (Hold Key & Click)" ClickDelete.Parent = Toggles ClickDelete.BackgroundColor3 = Color3.fromRGB(46, 46, 47) ClickDelete.BorderSizePixel = 0 ClickDelete.Position = UDim2.new(0, 0, 0, 25) ClickDelete.Size = UDim2.new(0, 200, 0, 20) ClickDelete.ZIndex = 10 ClickDelete.Font = Enum.Font.SourceSans ClickDelete.Text = " Click Delete (Hold Key & Click)" ClickDelete.TextColor3 = Color3.fromRGB(255, 255, 255) ClickDelete.TextSize = 14.000 ClickDelete.TextXAlignment = Enum.TextXAlignment.Left Select_2.Name = "Select" Select_2.Parent = ClickDelete Select_2.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Select_2.BorderSizePixel = 0 Select_2.Position = UDim2.new(0, 160, 0, 0) Select_2.Size = UDim2.new(0, 40, 0, 20) Select_2.ZIndex = 10 Select_2.Font = Enum.Font.SourceSans Select_2.Text = "Add" Select_2.TextColor3 = Color3.fromRGB(0, 0, 0) Select_2.TextSize = 14.000 Cmdbar_2.Name = "Cmdbar_2" Cmdbar_2.Parent = background_2 Cmdbar_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Cmdbar_2.BorderSizePixel = 0 Cmdbar_2.Position = UDim2.new(0, 150, 0, 35) Cmdbar_2.Size = UDim2.new(0, 150, 0, 20) Cmdbar_2.ZIndex = 10 Cmdbar_2.Font = Enum.Font.SourceSans Cmdbar_2.PlaceholderText = "Command" Cmdbar_2.Text = "" Cmdbar_2.TextColor3 = Color3.fromRGB(255, 255, 255) Cmdbar_2.TextSize = 14.000 Cmdbar_2.TextXAlignment = Enum.TextXAlignment.Left Cmdbar_3.Name = "Cmdbar_3" Cmdbar_3.Parent = background_2 Cmdbar_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Cmdbar_3.BorderSizePixel = 0 Cmdbar_3.Position = UDim2.new(0, 150, 0, 60) Cmdbar_3.Size = UDim2.new(0, 150, 0, 20) Cmdbar_3.ZIndex = 10 Cmdbar_3.Font = Enum.Font.SourceSans Cmdbar_3.PlaceholderText = "Command 2" Cmdbar_3.Text = "" Cmdbar_3.TextColor3 = Color3.fromRGB(255, 255, 255) Cmdbar_3.TextSize = 14.000 Cmdbar_3.TextXAlignment = Enum.TextXAlignment.Left CreateToggle.Name = "CreateToggle" CreateToggle.Parent = background_2 CreateToggle.BackgroundColor3 = Color3.fromRGB(46, 46, 47) CreateToggle.BackgroundTransparency = 1 CreateToggle.BorderSizePixel = 0 CreateToggle.Position = UDim2.new(0, 152, 0, 10) CreateToggle.Size = UDim2.new(0, 198, 0, 20) CreateToggle.ZIndex = 10 CreateToggle.Font = Enum.Font.SourceSans CreateToggle.Text = "Create Toggle" CreateToggle.TextColor3 = Color3.fromRGB(255, 255, 255) CreateToggle.TextSize = 14.000 CreateToggle.TextXAlignment = Enum.TextXAlignment.Left Button_2.Name = "Button" Button_2.Parent = CreateToggle Button_2.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Button_2.BorderSizePixel = 0 Button_2.Position = UDim2.new(1, -20, 0, 0) Button_2.Size = UDim2.new(0, 20, 0, 20) Button_2.ZIndex = 10 On_2.Name = "On" On_2.Parent = Button_2 On_2.BackgroundColor3 = Color3.fromRGB(150, 150, 151) On_2.BackgroundTransparency = 1 On_2.BorderSizePixel = 0 On_2.Position = UDim2.new(0, 2, 0, 2) On_2.Size = UDim2.new(0, 16, 0, 16) On_2.ZIndex = 10 On_2.Font = Enum.Font.SourceSans On_2.Text = "" On_2.TextColor3 = Color3.fromRGB(0, 0, 0) On_2.TextSize = 14.000 shadow_2.Name = "shadow" shadow_2.Parent = KeybindEditor shadow_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) shadow_2.BorderSizePixel = 0 shadow_2.Size = UDim2.new(0, 360, 0, 20) shadow_2.ZIndex = 10 PopupText_2.Name = "PopupText_2" PopupText_2.Parent = shadow_2 PopupText_2.BackgroundTransparency = 1 PopupText_2.Size = UDim2.new(1, 0, 0.949999988, 0) PopupText_2.ZIndex = 10 PopupText_2.Font = Enum.Font.SourceSans PopupText_2.Text = "Set Keybinds" PopupText_2.TextColor3 = Color3.fromRGB(255, 255, 255) PopupText_2.TextSize = 14.000 PopupText_2.TextWrapped = true Exit_2.Name = "Exit_2" Exit_2.Parent = shadow_2 Exit_2.BackgroundTransparency = 1 Exit_2.Position = UDim2.new(1, -20, 0, 0) Exit_2.Size = UDim2.new(0, 20, 0, 20) Exit_2.ZIndex = 10 Exit_2.Text = "" ExitImage_2.Parent = Exit_2 ExitImage_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ExitImage_2.BackgroundTransparency = 1 ExitImage_2.Position = UDim2.new(0, 5, 0, 5) ExitImage_2.Size = UDim2.new(0, 10, 0, 10) ExitImage_2.ZIndex = 10 ExitImage_2.Image = getcustomasset("infiniteyield/assets/close.png") PositionsFrame.Name = "PositionsFrame" PositionsFrame.Parent = Settings PositionsFrame.Active = true PositionsFrame.BackgroundColor3 = Color3.fromRGB(36, 36, 37) PositionsFrame.BorderSizePixel = 0 PositionsFrame.Size = UDim2.new(0, 250, 0, 175) PositionsFrame.Position = UDim2.new(0, 0, 0, 175) PositionsFrame.ZIndex = 10 Close_3.Name = "Close" Close_3.Parent = PositionsFrame Close_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Close_3.BorderSizePixel = 0 Close_3.Position = UDim2.new(0, 205, 0, 150) Close_3.Size = UDim2.new(0, 40, 0, 20) Close_3.Font = Enum.Font.SourceSans Close_3.TextSize = 14 Close_3.Text = "Close" Close_3.TextColor3 = Color3.new(1, 1, 1) Close_3.ZIndex = 10 Delete_5.Name = "Delete" Delete_5.Parent = PositionsFrame Delete_5.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Delete_5.BorderSizePixel = 0 Delete_5.Position = UDim2.new(0, 50, 0, 150) Delete_5.Size = UDim2.new(0, 40, 0, 20) Delete_5.Font = Enum.Font.SourceSans Delete_5.TextSize = 14 Delete_5.Text = "Clear" Delete_5.TextColor3 = Color3.new(1, 1, 1) Delete_5.ZIndex = 10 Part.Name = "PartGoto" Part.Parent = PositionsFrame Part.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Part.BorderSizePixel = 0 Part.Position = UDim2.new(0, 5, 0, 150) Part.Size = UDim2.new(0, 40, 0, 20) Part.Font = Enum.Font.SourceSans Part.TextSize = 14 Part.Text = "Part" Part.TextColor3 = Color3.new(1, 1, 1) Part.ZIndex = 10 Holder_4.Name = "Holder" Holder_4.Parent = PositionsFrame Holder_4.BackgroundTransparency = 1 Holder_4.BorderSizePixel = 0 Holder_4.Position = UDim2.new(0, 0, 0, 0) Holder_4.Selectable = false Holder_4.Size = UDim2.new(0, 250, 0, 145) Holder_4.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) Holder_4.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_4.CanvasSize = UDim2.new(0, 0, 0, 0) Holder_4.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_4.ScrollBarThickness = 0 Holder_4.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_4.VerticalScrollBarInset = 'Always' Holder_4.ZIndex = 10 Example_4.Name = "Example" Example_4.Parent = PositionsFrame Example_4.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Example_4.BorderSizePixel = 0 Example_4.Size = UDim2.new(0, 10, 0, 20) Example_4.Visible = false Example_4.Position = UDim2.new(0, 0, 0, -5) Example_4.ZIndex = 10 Text_5.Name = "Text" Text_5.Parent = Example_4 Text_5.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Text_5.BorderSizePixel = 0 Text_5.Position = UDim2.new(0, 10, 0, 0) Text_5.Size = UDim2.new(0, 240, 0, 20) Text_5.Font = Enum.Font.SourceSans Text_5.TextSize = 14 Text_5.Text = "Position" Text_5.TextColor3 = Color3.new(1, 1, 1) Text_5.TextXAlignment = Enum.TextXAlignment.Left Text_5.ZIndex = 10 Delete_6.Name = "Delete" Delete_6.Parent = Text_5 Delete_6.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Delete_6.BorderSizePixel = 0 Delete_6.Position = UDim2.new(0, 200, 0, 0) Delete_6.Size = UDim2.new(0, 40, 0, 20) Delete_6.Font = Enum.Font.SourceSans Delete_6.TextSize = 14 Delete_6.Text = "Delete" Delete_6.TextColor3 = Color3.new(0, 0, 0) Delete_6.ZIndex = 10 TP.Name = "TP" TP.Parent = Text_5 TP.BackgroundColor3 = Color3.fromRGB(78, 78, 79) TP.BorderSizePixel = 0 TP.Position = UDim2.new(0, 155, 0, 0) TP.Size = UDim2.new(0, 40, 0, 20) TP.Font = Enum.Font.SourceSans TP.TextSize = 14 TP.Text = "Goto" TP.TextColor3 = Color3.new(0, 0, 0) TP.ZIndex = 10 AliasesFrame.Name = "AliasesFrame" AliasesFrame.Parent = Settings AliasesFrame.Active = true AliasesFrame.BackgroundColor3 = Color3.fromRGB(36, 36, 37) AliasesFrame.BorderSizePixel = 0 AliasesFrame.Position = UDim2.new(0, 0, 0, 175) AliasesFrame.Size = UDim2.new(0, 250, 0, 175) AliasesFrame.ZIndex = 10 Close_2.Name = "Close" Close_2.Parent = AliasesFrame Close_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Close_2.BorderSizePixel = 0 Close_2.Position = UDim2.new(0, 205, 0, 150) Close_2.Size = UDim2.new(0, 40, 0, 20) Close_2.Font = Enum.Font.SourceSans Close_2.TextSize = 14 Close_2.Text = "Close" Close_2.TextColor3 = Color3.new(1, 1, 1) Close_2.ZIndex = 10 Delete_3.Name = "Delete" Delete_3.Parent = AliasesFrame Delete_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Delete_3.BorderSizePixel = 0 Delete_3.Position = UDim2.new(0, 5, 0, 150) Delete_3.Size = UDim2.new(0, 40, 0, 20) Delete_3.Font = Enum.Font.SourceSans Delete_3.TextSize = 14 Delete_3.Text = "Clear" Delete_3.TextColor3 = Color3.new(1, 1, 1) Delete_3.ZIndex = 10 Holder_3.Name = "Holder" Holder_3.Parent = AliasesFrame Holder_3.BackgroundTransparency = 1 Holder_3.BorderSizePixel = 0 Holder_3.Position = UDim2.new(0, 0, 0, 0) Holder_3.Size = UDim2.new(0, 250, 0, 145) Holder_3.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) Holder_3.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_3.CanvasSize = UDim2.new(0, 0, 0, 0) Holder_3.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_3.ScrollBarThickness = 0 Holder_3.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_3.VerticalScrollBarInset = 'Always' Holder_3.ZIndex = 10 Example_3.Name = "Example" Example_3.Parent = AliasesFrame Example_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Example_3.BorderSizePixel = 0 Example_3.Size = UDim2.new(0, 10, 0, 20) Example_3.Visible = false Example_3.ZIndex = 10 Text_4.Name = "Text" Text_4.Parent = Example_3 Text_4.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Text_4.BorderSizePixel = 0 Text_4.Position = UDim2.new(0, 10, 0, 0) Text_4.Size = UDim2.new(0, 240, 0, 20) Text_4.Font = Enum.Font.SourceSans Text_4.TextSize = 14 Text_4.Text = "honk" Text_4.TextColor3 = Color3.new(1, 1, 1) Text_4.TextXAlignment = Enum.TextXAlignment.Left Text_4.ZIndex = 10 Delete_4.Name = "Delete" Delete_4.Parent = Text_4 Delete_4.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Delete_4.BorderSizePixel = 0 Delete_4.Position = UDim2.new(0, 200, 0, 0) Delete_4.Size = UDim2.new(0, 40, 0, 20) Delete_4.Font = Enum.Font.SourceSans Delete_4.TextSize = 14 Delete_4.Text = "Delete" Delete_4.TextColor3 = Color3.new(0, 0, 0) Delete_4.ZIndex = 10 PluginsFrame.Name = "PluginsFrame" PluginsFrame.Parent = Settings PluginsFrame.Active = true PluginsFrame.BackgroundColor3 = Color3.fromRGB(36, 36, 37) PluginsFrame.BorderSizePixel = 0 PluginsFrame.Position = UDim2.new(0, 0, 0, 175) PluginsFrame.Size = UDim2.new(0, 250, 0, 175) PluginsFrame.ZIndex = 10 Close_4.Name = "Close" Close_4.Parent = PluginsFrame Close_4.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Close_4.BorderSizePixel = 0 Close_4.Position = UDim2.new(0, 205, 0, 150) Close_4.Size = UDim2.new(0, 40, 0, 20) Close_4.Font = Enum.Font.SourceSans Close_4.TextSize = 14 Close_4.Text = "Close" Close_4.TextColor3 = Color3.new(1, 1, 1) Close_4.ZIndex = 10 Add_3.Name = "Add" Add_3.Parent = PluginsFrame Add_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Add_3.BorderSizePixel = 0 Add_3.Position = UDim2.new(0, 5, 0, 150) Add_3.Size = UDim2.new(0, 40, 0, 20) Add_3.Font = Enum.Font.SourceSans Add_3.TextSize = 14 Add_3.Text = "Add" Add_3.TextColor3 = Color3.new(1, 1, 1) Add_3.ZIndex = 10 Holder_5.Name = "Holder" Holder_5.Parent = PluginsFrame Holder_5.BackgroundTransparency = 1 Holder_5.BorderSizePixel = 0 Holder_5.Position = UDim2.new(0, 0, 0, 0) Holder_5.Selectable = false Holder_5.Size = UDim2.new(0, 250, 0, 145) Holder_5.ScrollBarImageColor3 = Color3.fromRGB(78,78,79) Holder_5.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_5.CanvasSize = UDim2.new(0, 0, 0, 0) Holder_5.MidImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_5.ScrollBarThickness = 0 Holder_5.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" Holder_5.VerticalScrollBarInset = 'Always' Holder_5.ZIndex = 10 Example_5.Name = "Example" Example_5.Parent = PluginsFrame Example_5.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Example_5.BorderSizePixel = 0 Example_5.Size = UDim2.new(0, 10, 0, 20) Example_5.Visible = false Example_5.ZIndex = 10 Text_6.Name = "Text" Text_6.Parent = Example_5 Text_6.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Text_6.BorderSizePixel = 0 Text_6.Position = UDim2.new(0, 10, 0, 0) Text_6.Size = UDim2.new(0, 240, 0, 20) Text_6.Font = Enum.Font.SourceSans Text_6.TextSize = 14 Text_6.Text = "F4 > Toggle Fly" Text_6.TextColor3 = Color3.new(1, 1, 1) Text_6.TextXAlignment = Enum.TextXAlignment.Left Text_6.ZIndex = 10 Delete_7.Name = "Delete" Delete_7.Parent = Text_6 Delete_7.BackgroundColor3 = Color3.fromRGB(78, 78, 79) Delete_7.BorderSizePixel = 0 Delete_7.Position = UDim2.new(0, 200, 0, 0) Delete_7.Size = UDim2.new(0, 40, 0, 20) Delete_7.Font = Enum.Font.SourceSans Delete_7.TextSize = 14 Delete_7.Text = "Delete" Delete_7.TextColor3 = Color3.new(0, 0, 0) Delete_7.ZIndex = 10 PluginEditor.Name = randomString() PluginEditor.Parent = ScaledHolder PluginEditor.BorderSizePixel = 0 PluginEditor.Active = true PluginEditor.BackgroundTransparency = 1 PluginEditor.Position = UDim2.new(0.5, -180, 0, -500) PluginEditor.Size = UDim2.new(0, 360, 0, 20) PluginEditor.ZIndex = 10 background_3.Name = "background" background_3.Parent = PluginEditor background_3.Active = true background_3.BackgroundColor3 = Color3.fromRGB(36, 36, 37) background_3.BorderSizePixel = 0 background_3.Position = UDim2.new(0, 0, 0, 20) background_3.Size = UDim2.new(0, 360, 0, 160) background_3.ZIndex = 10 Dark_2.Name = "Dark" Dark_2.Parent = background_3 Dark_2.Active = true Dark_2.BackgroundColor3 = Color3.fromRGB(46, 46, 47) Dark_2.BorderSizePixel = 0 Dark_2.Position = UDim2.new(0, 222, 0, 0) Dark_2.Size = UDim2.new(0, 2, 0, 160) Dark_2.ZIndex = 10 Img.Name = "Img" Img.Parent = background_3 Img.BackgroundTransparency = 1 Img.Position = UDim2.new(0, 242, 0, 3) Img.Size = UDim2.new(0, 100, 0, 95) Img.Image = getcustomasset("infiniteyield/assets/imgstudiopluginlogo.png") Img.ZIndex = 10 AddPlugin.Name = "AddPlugin" AddPlugin.Parent = background_3 AddPlugin.BackgroundColor3 = Color3.fromRGB(46, 46, 47) AddPlugin.BorderSizePixel = 0 AddPlugin.Position = UDim2.new(0, 235, 0, 100) AddPlugin.Size = UDim2.new(0, 115, 0, 50) AddPlugin.Font = Enum.Font.SourceSans AddPlugin.TextSize = 14 AddPlugin.Text = "Add Plugin" AddPlugin.TextColor3 = Color3.new(1, 1, 1) AddPlugin.ZIndex = 10 FileName.Name = "FileName" FileName.Parent = background_3 FileName.BackgroundColor3 = Color3.fromRGB(46, 46, 47) FileName.BorderSizePixel = 0 FileName.Position = UDim2.new(0.028, 0, 0.625, 0) FileName.Size = UDim2.new(0, 200, 0, 50) FileName.Font = Enum.Font.SourceSans FileName.TextSize = 14 FileName.Text = "Plugin File Name" FileName.TextColor3 = Color3.new(1, 1, 1) FileName.ZIndex = 10 About.Name = "About" About.Parent = background_3 About.BackgroundTransparency = 1 About.BorderSizePixel = 0 About.Position = UDim2.new(0, 17, 0, 10) About.Size = UDim2.new(0, 187, 0, 49) About.Font = Enum.Font.SourceSans About.TextSize = 14 About.Text = "Plugins are .iy files and should be located in the 'workspace' folder of your exploit." About.TextColor3 = Color3.fromRGB(255, 255, 255) About.TextWrapped = true About.TextYAlignment = Enum.TextYAlignment.Top About.ZIndex = 10 Directions_2.Name = "Directions" Directions_2.Parent = background_3 Directions_2.BackgroundTransparency = 1 Directions_2.BorderSizePixel = 0 Directions_2.Position = UDim2.new(0, 17, 0, 60) Directions_2.Size = UDim2.new(0, 187, 0, 49) Directions_2.Font = Enum.Font.SourceSans Directions_2.TextSize = 14 Directions_2.Text = "Type the name of the plugin file you want to add below." Directions_2.TextColor3 = Color3.fromRGB(255, 255, 255) Directions_2.TextWrapped = true Directions_2.TextYAlignment = Enum.TextYAlignment.Top Directions_2.ZIndex = 10 shadow_3.Name = "shadow" shadow_3.Parent = PluginEditor shadow_3.BackgroundColor3 = Color3.fromRGB(46, 46, 47) shadow_3.BorderSizePixel = 0 shadow_3.Size = UDim2.new(0, 360, 0, 20) shadow_3.ZIndex = 10 PopupText_3.Name = "PopupText" PopupText_3.Parent = shadow_3 PopupText_3.BackgroundTransparency = 1 PopupText_3.Size = UDim2.new(1, 0, 0.95, 0) PopupText_3.ZIndex = 10 PopupText_3.Font = Enum.Font.SourceSans PopupText_3.TextSize = 14 PopupText_3.Text = "Add Plugins" PopupText_3.TextColor3 = Color3.new(1, 1, 1) PopupText_3.TextWrapped = true Exit_3.Name = "Exit" Exit_3.Parent = shadow_3 Exit_3.BackgroundTransparency = 1 Exit_3.Position = UDim2.new(1, -20, 0, 0) Exit_3.Size = UDim2.new(0, 20, 0, 20) Exit_3.Text = "" Exit_3.ZIndex = 10 ExitImage_3.Parent = Exit_3 ExitImage_3.BackgroundColor3 = Color3.new(1, 1, 1) ExitImage_3.BackgroundTransparency = 1 ExitImage_3.Position = UDim2.new(0, 5, 0, 5) ExitImage_3.Size = UDim2.new(0, 10, 0, 10) ExitImage_3.Image = getcustomasset("infiniteyield/assets/close.png") ExitImage_3.ZIndex = 10 AliasHint.Name = "AliasHint" AliasHint.Parent = AliasesFrame AliasHint.BackgroundTransparency = 1 AliasHint.BorderSizePixel = 0 AliasHint.Position = UDim2.new(0, 25, 0, 40) AliasHint.Size = UDim2.new(0, 200, 0, 50) AliasHint.Font = Enum.Font.SourceSansItalic AliasHint.TextSize = 16 AliasHint.Text = "Add aliases by using the 'addalias' command" AliasHint.TextColor3 = Color3.new(1, 1, 1) AliasHint.TextStrokeColor3 = Color3.new(1, 1, 1) AliasHint.TextWrapped = true AliasHint.ZIndex = 10 PluginsHint.Name = "PluginsHint" PluginsHint.Parent = PluginsFrame PluginsHint.BackgroundTransparency = 1 PluginsHint.BorderSizePixel = 0 PluginsHint.Position = UDim2.new(0, 25, 0, 40) PluginsHint.Size = UDim2.new(0, 200, 0, 50) PluginsHint.Font = Enum.Font.SourceSansItalic PluginsHint.TextSize = 16 PluginsHint.Text = "Download plugins from the IY Discord (discord.gg/78ZuWSq)" PluginsHint.TextColor3 = Color3.new(1, 1, 1) PluginsHint.TextStrokeColor3 = Color3.new(1, 1, 1) PluginsHint.TextWrapped = true PluginsHint.ZIndex = 10 PositionsHint.Name = "PositionsHint" PositionsHint.Parent = PositionsFrame PositionsHint.BackgroundTransparency = 1 PositionsHint.BorderSizePixel = 0 PositionsHint.Position = UDim2.new(0, 25, 0, 40) PositionsHint.Size = UDim2.new(0, 200, 0, 70) PositionsHint.Font = Enum.Font.SourceSansItalic PositionsHint.TextSize = 16 PositionsHint.Text = "Use the 'swp' or 'setwaypoint' command to add a position using your character (NOTE: Part teleports will not save)" PositionsHint.TextColor3 = Color3.new(1, 1, 1) PositionsHint.TextStrokeColor3 = Color3.new(1, 1, 1) PositionsHint.TextWrapped = true PositionsHint.ZIndex = 10 ToPartFrame.Name = randomString() ToPartFrame.Parent = ScaledHolder ToPartFrame.Active = true ToPartFrame.BackgroundTransparency = 1 ToPartFrame.Position = UDim2.new(0.5, -180, 0, -500) ToPartFrame.Size = UDim2.new(0, 360, 0, 20) ToPartFrame.ZIndex = 10 background_4.Name = "background" background_4.Parent = ToPartFrame background_4.Active = true background_4.BackgroundColor3 = Color3.fromRGB(36, 36, 37) background_4.BorderSizePixel = 0 background_4.Position = UDim2.new(0, 0, 0, 20) background_4.Size = UDim2.new(0, 360, 0, 117) background_4.ZIndex = 10 ChoosePart.Name = "ChoosePart" ChoosePart.Parent = background_4 ChoosePart.BackgroundColor3 = Color3.fromRGB(46, 46, 47) ChoosePart.BorderSizePixel = 0 ChoosePart.Position = UDim2.new(0, 100, 0, 55) ChoosePart.Size = UDim2.new(0, 75, 0, 30) ChoosePart.Font = Enum.Font.SourceSans ChoosePart.TextSize = 14 ChoosePart.Text = "Select Part" ChoosePart.TextColor3 = Color3.new(1, 1, 1) ChoosePart.ZIndex = 10 CopyPath.Name = "CopyPath" CopyPath.Parent = background_4 CopyPath.BackgroundColor3 = Color3.fromRGB(46, 46, 47) CopyPath.BorderSizePixel = 0 CopyPath.Position = UDim2.new(0, 185, 0, 55) CopyPath.Size = UDim2.new(0, 75, 0, 30) CopyPath.Font = Enum.Font.SourceSans CopyPath.TextSize = 14 CopyPath.Text = "Copy Path" CopyPath.TextColor3 = Color3.new(1, 1, 1) CopyPath.ZIndex = 10 Directions_3.Name = "Directions" Directions_3.Parent = background_4 Directions_3.BackgroundTransparency = 1 Directions_3.BorderSizePixel = 0 Directions_3.Position = UDim2.new(0, 51, 0, 17) Directions_3.Size = UDim2.new(0, 257, 0, 32) Directions_3.Font = Enum.Font.SourceSans Directions_3.TextSize = 14 Directions_3.Text = 'Click on a part and then click the "Select Part" button below to set it as a teleport location' Directions_3.TextColor3 = Color3.new(1, 1, 1) Directions_3.TextWrapped = true Directions_3.TextYAlignment = Enum.TextYAlignment.Top Directions_3.ZIndex = 10 Path.Name = "Path" Path.Parent = background_4 Path.BackgroundTransparency = 1 Path.BorderSizePixel = 0 Path.Position = UDim2.new(0, 0, 0, 94) Path.Size = UDim2.new(0, 360, 0, 16) Path.Font = Enum.Font.SourceSansItalic Path.TextSize = 14 Path.Text = "" Path.TextColor3 = Color3.new(1, 1, 1) Path.TextScaled = true Path.TextWrapped = true Path.TextYAlignment = Enum.TextYAlignment.Top Path.ZIndex = 10 shadow_4.Name = "shadow" shadow_4.Parent = ToPartFrame shadow_4.BackgroundColor3 = Color3.fromRGB(46, 46, 47) shadow_4.BorderSizePixel = 0 shadow_4.Size = UDim2.new(0, 360, 0, 20) shadow_4.ZIndex = 10 PopupText_5.Name = "PopupText" PopupText_5.Parent = shadow_4 PopupText_5.BackgroundTransparency = 1 PopupText_5.Size = UDim2.new(1, 0, 0.95, 0) PopupText_5.ZIndex = 10 PopupText_5.Font = Enum.Font.SourceSans PopupText_5.TextSize = 14 PopupText_5.Text = "Teleport to Part" PopupText_5.TextColor3 = Color3.new(1, 1, 1) PopupText_5.TextWrapped = true Exit_4.Name = "Exit" Exit_4.Parent = shadow_4 Exit_4.BackgroundTransparency = 1 Exit_4.Position = UDim2.new(1, -20, 0, 0) Exit_4.Size = UDim2.new(0, 20, 0, 20) Exit_4.Text = "" Exit_4.ZIndex = 10 ExitImage_5.Parent = Exit_4 ExitImage_5.BackgroundColor3 = Color3.new(1, 1, 1) ExitImage_5.BackgroundTransparency = 1 ExitImage_5.Position = UDim2.new(0, 5, 0, 5) ExitImage_5.Size = UDim2.new(0, 10, 0, 10) ExitImage_5.Image = getcustomasset("infiniteyield/assets/close.png") ExitImage_5.ZIndex = 10 logs.Name = randomString() logs.Parent = ScaledHolder logs.Active = true logs.BackgroundTransparency = 1 logs.Position = UDim2.new(0, 0, 1, 10) logs.Size = UDim2.new(0, 338, 0, 20) logs.ZIndex = 10 shadow.Name = "shadow" shadow.Parent = logs shadow.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) shadow.BorderSizePixel = 0 shadow.Position = UDim2.new(0, 0, 0.00999999978, 0) shadow.Size = UDim2.new(0, 338, 0, 20) shadow.ZIndex = 10 Hide.Name = "Hide" Hide.Parent = shadow Hide.BackgroundTransparency = 1 Hide.Position = UDim2.new(1, -40, 0, 0) Hide.Size = UDim2.new(0, 20, 0, 20) Hide.ZIndex = 10 Hide.Text = "" ImageLabel.Parent = Hide ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1) ImageLabel.BackgroundTransparency = 1 ImageLabel.Position = UDim2.new(0, 3, 0, 3) ImageLabel.Size = UDim2.new(0, 14, 0, 14) ImageLabel.Image = getcustomasset("infiniteyield/assets/minimize.png") ImageLabel.ZIndex = 10 PopupText.Name = "PopupText" PopupText.Parent = shadow PopupText.BackgroundTransparency = 1 PopupText.Size = UDim2.new(1, 0, 0.949999988, 0) PopupText.ZIndex = 10 PopupText.Font = Enum.Font.SourceSans PopupText.FontSize = Enum.FontSize.Size14 PopupText.Text = "Logs" PopupText.TextColor3 = Color3.new(1, 1, 1) PopupText.TextWrapped = true Exit.Name = "Exit" Exit.Parent = shadow Exit.BackgroundTransparency = 1 Exit.Position = UDim2.new(1, -20, 0, 0) Exit.Size = UDim2.new(0, 20, 0, 20) Exit.ZIndex = 10 Exit.Text = "" ImageLabel_2.Parent = Exit ImageLabel_2.BackgroundColor3 = Color3.new(1, 1, 1) ImageLabel_2.BackgroundTransparency = 1 ImageLabel_2.Position = UDim2.new(0, 5, 0, 5) ImageLabel_2.Size = UDim2.new(0, 10, 0, 10) ImageLabel_2.Image = getcustomasset("infiniteyield/assets/close.png") ImageLabel_2.ZIndex = 10 background.Name = "background" background.Parent = logs background.Active = true background.BackgroundColor3 = Color3.new(0.141176, 0.141176, 0.145098) background.BorderSizePixel = 0 background.ClipsDescendants = true background.Position = UDim2.new(0, 0, 1, 0) background.Size = UDim2.new(0, 338, 0, 245) background.ZIndex = 10 chat.Name = "chat" chat.Parent = background chat.Active = true chat.BackgroundColor3 = Color3.new(0.141176, 0.141176, 0.145098) chat.BorderSizePixel = 0 chat.ClipsDescendants = true chat.Size = UDim2.new(0, 338, 0, 245) chat.ZIndex = 10 Clear.Name = "Clear" Clear.Parent = chat Clear.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) Clear.BorderSizePixel = 0 Clear.Position = UDim2.new(0, 5, 0, 220) Clear.Size = UDim2.new(0, 50, 0, 20) Clear.ZIndex = 10 Clear.Font = Enum.Font.SourceSans Clear.FontSize = Enum.FontSize.Size14 Clear.Text = "Clear" Clear.TextColor3 = Color3.new(1, 1, 1) SaveChatlogs.Name = "SaveChatlogs" SaveChatlogs.Parent = chat SaveChatlogs.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) SaveChatlogs.BorderSizePixel = 0 SaveChatlogs.Position = UDim2.new(0, 258, 0, 220) SaveChatlogs.Size = UDim2.new(0, 75, 0, 20) SaveChatlogs.ZIndex = 10 SaveChatlogs.Font = Enum.Font.SourceSans SaveChatlogs.FontSize = Enum.FontSize.Size14 SaveChatlogs.Text = "Save To .txt" SaveChatlogs.TextColor3 = Color3.new(1, 1, 1) Toggle.Name = "Toggle" Toggle.Parent = chat Toggle.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) Toggle.BorderSizePixel = 0 Toggle.Position = UDim2.new(0, 60, 0, 220) Toggle.Size = UDim2.new(0, 66, 0, 20) Toggle.ZIndex = 10 Toggle.Font = Enum.Font.SourceSans Toggle.FontSize = Enum.FontSize.Size14 Toggle.Text = "Disabled" Toggle.TextColor3 = Color3.new(1, 1, 1) scroll_2.Name = "scroll" scroll_2.Parent = chat scroll_2.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) scroll_2.BorderSizePixel = 0 scroll_2.Position = UDim2.new(0, 5, 0, 25) scroll_2.Size = UDim2.new(0, 328, 0, 190) scroll_2.ZIndex = 10 scroll_2.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" scroll_2.CanvasSize = UDim2.new(0, 0, 0, 10) scroll_2.ScrollBarThickness = 8 scroll_2.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" join.Name = "join" join.Parent = background join.Active = true join.BackgroundColor3 = Color3.new(0.141176, 0.141176, 0.145098) join.BorderSizePixel = 0 join.ClipsDescendants = true join.Size = UDim2.new(0, 338, 0, 245) join.Visible = false join.ZIndex = 10 Toggle_2.Name = "Toggle" Toggle_2.Parent = join Toggle_2.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) Toggle_2.BorderSizePixel = 0 Toggle_2.Position = UDim2.new(0, 60, 0, 220) Toggle_2.Size = UDim2.new(0, 66, 0, 20) Toggle_2.ZIndex = 10 Toggle_2.Font = Enum.Font.SourceSans Toggle_2.FontSize = Enum.FontSize.Size14 Toggle_2.Text = "Disabled" Toggle_2.TextColor3 = Color3.new(1, 1, 1) Clear_2.Name = "Clear" Clear_2.Parent = join Clear_2.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) Clear_2.BorderSizePixel = 0 Clear_2.Position = UDim2.new(0, 5, 0, 220) Clear_2.Size = UDim2.new(0, 50, 0, 20) Clear_2.ZIndex = 10 Clear_2.Font = Enum.Font.SourceSans Clear_2.FontSize = Enum.FontSize.Size14 Clear_2.Text = "Clear" Clear_2.TextColor3 = Color3.new(1, 1, 1) scroll_3.Name = "scroll" scroll_3.Parent = join scroll_3.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) scroll_3.BorderSizePixel = 0 scroll_3.Position = UDim2.new(0, 5, 0, 25) scroll_3.Size = UDim2.new(0, 328, 0, 190) scroll_3.ZIndex = 10 scroll_3.BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" scroll_3.CanvasSize = UDim2.new(0, 0, 0, 10) scroll_3.ScrollBarThickness = 8 scroll_3.TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png" selectChat.Name = "selectChat" selectChat.Parent = background selectChat.BackgroundColor3 = Color3.new(0.180392, 0.180392, 0.184314) selectChat.BorderSizePixel = 0 selectChat.Position = UDim2.new(0, 5, 0, 5) selectChat.Size = UDim2.new(0, 164, 0, 20) selectChat.ZIndex = 10 selectChat.Font = Enum.Font.SourceSans selectChat.FontSize = Enum.FontSize.Size14 selectChat.Text = "Chat Logs" selectChat.TextColor3 = Color3.new(1, 1, 1) selectJoin.Name = "selectJoin" selectJoin.Parent = background selectJoin.BackgroundColor3 = Color3.new(0.305882, 0.305882, 0.309804) selectJoin.BorderSizePixel = 0 selectJoin.Position = UDim2.new(0, 169, 0, 5) selectJoin.Size = UDim2.new(0, 164, 0, 20) selectJoin.ZIndex = 10 selectJoin.Font = Enum.Font.SourceSans selectJoin.FontSize = Enum.FontSize.Size14 selectJoin.Text = "Join Logs" selectJoin.TextColor3 = Color3.new(1, 1, 1) function create(data) local insts = {} for i,v in pairs(data) do insts[v[1]] = Instance.new(v[2]) end for _,v in pairs(data) do for prop,val in pairs(v[3]) do if type(val) == "table" then insts[v[1]][prop] = insts[val[1]] else insts[v[1]][prop] = val end end end return insts[1] end ViewportTextBox = (function() local funcs = {} funcs.Update = function(self) local cursorPos = self.TextBox.CursorPosition local text = self.TextBox.Text if text == "" then self.TextBox.Position = UDim2.new(0,2,0,0) return end if cursorPos == -1 then return end local cursorText = text:sub(1,cursorPos-1) local pos = nil local leftEnd = -self.TextBox.Position.X.Offset local rightEnd = leftEnd + self.View.AbsoluteSize.X local totalTextSize = TextService:GetTextSize(text,self.TextBox.TextSize,self.TextBox.Font,Vector2.new(999999999,100)).X local cursorTextSize = TextService:GetTextSize(cursorText,self.TextBox.TextSize,self.TextBox.Font,Vector2.new(999999999,100)).X if cursorTextSize > rightEnd then pos = math.max(-2,cursorTextSize - self.View.AbsoluteSize.X + 2) elseif cursorTextSize < leftEnd then pos = math.max(-2,cursorTextSize-2) elseif totalTextSize < rightEnd then pos = math.max(-2,totalTextSize - self.View.AbsoluteSize.X + 2) end if pos then self.TextBox.Position = UDim2.new(0,-pos,0,0) self.TextBox.Size = UDim2.new(1,pos,1,0) end end local mt = {} mt.__index = funcs local function convert(textbox) local obj = setmetatable({OffsetX = 0, TextBox = textbox},mt) local view = Instance.new("Frame") view.BackgroundTransparency = textbox.BackgroundTransparency view.BackgroundColor3 = textbox.BackgroundColor3 view.BorderSizePixel = textbox.BorderSizePixel view.BorderColor3 = textbox.BorderColor3 view.Position = textbox.Position view.Size = textbox.Size view.ClipsDescendants = true view.Name = textbox.Name view.ZIndex = 10 textbox.BackgroundTransparency = 1 textbox.Position = UDim2.new(0,4,0,0) textbox.Size = UDim2.new(1,-8,1,0) textbox.TextXAlignment = Enum.TextXAlignment.Left textbox.Name = "Input" table.insert(text1,textbox) table.insert(shade2,view) obj.View = view CmdsTrackConnection(textbox.Changed:Connect(function(prop) if prop == "Text" or prop == "CursorPosition" or prop == "AbsoluteSize" then obj:Update() end end)) obj:Update() view.Parent = textbox.Parent textbox.Parent = view return obj end return {convert = convert} end)() function writefileExploit() if writefile then return true end end function readfileExploit() if readfile then return true end end function isNumber(str) if tonumber(str) ~= nil or str == "inf" then return true end end function vtype(o, t) if o == nil then return false end if type(o) == "userdata" then return typeof(o) == t end return type(o) == t end function getRoot(char) if char and char:FindFirstChildOfClass("Humanoid") then return char:FindFirstChildOfClass("Humanoid").RootPart else return nil end end function tools(plr) if plr:FindFirstChildOfClass("Backpack"):FindFirstChildOfClass("Tool") or plr.Character:FindFirstChildOfClass("Tool") then return true end end function r15(plr) if plr.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 then return true end end function breakVelocity() local V3 = Vector3.new(0, 0, 0) for _, v in ipairs(Players.LocalPlayer.Character:GetDescendants()) do if v:IsA("BasePart") then v.Velocity, v.RotVelocity = V3, V3 end end end function toClipboard(txt) if everyClipboard then everyClipboard(tostring(txt)) -- some executor errored without tostring btw so dont call me out for this notify("Clipboard", "Copied to clipboard") else notify("Clipboard", "Your exploit doesn't have the ability to use the clipboard") end end function chatMessage(str) str = tostring(str) if not isLegacyChat then TextChatService.TextChannels.RBXGeneral:SendAsync(str) else ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(str, "All") end end function getHierarchy(obj) local fullname local period if string.find(obj.Name,' ') then fullname = '["'..obj.Name..'"]' period = false else fullname = obj.Name period = true end local getS = obj local parent = obj local service = '' if getS.Parent ~= game then repeat getS = getS.Parent service = getS.ClassName until getS.Parent == game end if parent.Parent ~= getS then repeat parent = parent.Parent if string.find(tostring(parent),' ') then if period then fullname = '["'..parent.Name..'"].'..fullname else fullname = '["'..parent.Name..'"]'..fullname end period = false else if period then fullname = parent.Name..'.'..fullname else fullname = parent.Name..''..fullname end period = true end until parent.Parent == getS elseif string.find(tostring(parent),' ') then fullname = '["'..parent.Name..'"]' period = false end if period then return 'game:GetService("'..service..'").'..fullname else return 'game:GetService("'..service..'")'..fullname end end AllWaypoints = {} local cooldown = false function writefileCooldown(name,data) task.spawn(function() if not cooldown then cooldown = true writefile(name, data, true) else repeat wait() until cooldown == false writefileCooldown(name,data) end wait(3) cooldown = false end) end function dragGUI(gui) task.spawn(function() local dragging local dragInput local dragStart = Vector3.new(0,0,0) local startPos local function update(input) local delta = input.Position - dragStart local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) TweenService:Create(gui, TweenInfo.new(.20), {Position = Position}):Play() end CmdsTrackConnection(gui.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = gui.Position CmdsTrackConnection(input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end)) end end)) CmdsTrackConnection(gui.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end)) CmdsTrackConnection(UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)) end) end eventEditor = { SaveData = function() return "" end } currentShade1 = Color3.fromRGB(36, 36, 37) currentShade2 = Color3.fromRGB(46, 46, 47) currentShade3 = Color3.fromRGB(78, 78, 79) currentText1 = Color3.new(1, 1, 1) currentText2 = Color3.new(0, 0, 0) currentScroll = Color3.fromRGB(78,78,79) defaultGuiScale = IsOnMobile and 0.9 or 1 defaultsettings = { prefix = ';'; StayOpen = false; guiScale = defaultGuiScale; espTransparency = 0.3; keepIY = true; logsEnabled = false; jLogsEnabled = false; aliases = {}; binds = {}; WayPoints = {}; PluginsTable = {}; currentShade1 = {currentShade1.R,currentShade1.G,currentShade1.B}; currentShade2 = {currentShade2.R,currentShade2.G,currentShade2.B}; currentShade3 = {currentShade3.R,currentShade3.G,currentShade3.B}; currentText1 = {currentText1.R,currentText1.G,currentText1.B}; currentText2 = {currentText2.R,currentText2.G,currentText2.B}; currentScroll = {currentScroll.R,currentScroll.G,currentScroll.B}; eventBinds = eventEditor.SaveData() } defaults = HttpService:JSONEncode(defaultsettings) nosaves = false useFactorySettings = function() prefix = ';' StayOpen = false guiScale = defaultGuiScale KeepInfYield = true espTransparency = 0.3 logsEnabled = false jLogsEnabled = false logsWebhook = nil aliases = {} binds = {} WayPoints = {} PluginsTable = {} end useFactorySettings() KeepInfYield = false function createPopup(title, text) local Popup = Instance.new("Frame") local background = Instance.new("Frame") local Directions = Instance.new("TextLabel") local shadow = Instance.new("Frame") local PopupText = Instance.new("TextLabel") local Exit = Instance.new("TextButton") local ExitImage = Instance.new("ImageLabel") Popup.Name = randomString() Popup.Parent = ScaledHolder Popup.Active = true Popup.BackgroundTransparency = 1 Popup.Position = UDim2.new(0.5, -180, 0, -500) Popup.Size = UDim2.new(0, 360, 0, 20) Popup.ZIndex = 10 background.Name = "background" background.Parent = Popup background.Active = true background.BackgroundColor3 = Color3.fromRGB(36, 36, 37) background.BorderSizePixel = 0 background.Position = UDim2.new(0, 0, 0, 20) background.Size = UDim2.new(0, 360, 0, 205) background.ZIndex = 10 Directions.Name = "Directions" Directions.Parent = background Directions.BackgroundTransparency = 1 Directions.BorderSizePixel = 0 Directions.Position = UDim2.new(0, 10, 0, 10) Directions.Size = UDim2.new(0, 340, 0, 185) Directions.Font = Enum.Font.SourceSans Directions.TextSize = 14 Directions.Text = text Directions.TextColor3 = Color3.new(1, 1, 1) Directions.TextWrapped = true Directions.TextXAlignment = Enum.TextXAlignment.Left Directions.TextYAlignment = Enum.TextYAlignment.Top Directions.ZIndex = 10 shadow.Name = "shadow" shadow.Parent = Popup shadow.BackgroundColor3 = Color3.fromRGB(46, 46, 47) shadow.BorderSizePixel = 0 shadow.Size = UDim2.new(0, 360, 0, 20) shadow.ZIndex = 10 PopupText.Name = "PopupText" PopupText.Parent = shadow PopupText.BackgroundTransparency = 1 PopupText.Size = UDim2.new(1, 0, 0.95, 0) PopupText.ZIndex = 10 PopupText.Font = Enum.Font.SourceSans PopupText.TextSize = 14 PopupText.Text = title PopupText.TextColor3 = Color3.new(1, 1, 1) PopupText.TextWrapped = true Exit.Name = "Exit" Exit.Parent = shadow Exit.BackgroundTransparency = 1 Exit.Position = UDim2.new(1, -20, 0, 0) Exit.Size = UDim2.new(0, 20, 0, 20) Exit.Text = "" Exit.ZIndex = 10 ExitImage.Parent = Exit ExitImage.BackgroundColor3 = Color3.new(1, 1, 1) ExitImage.BackgroundTransparency = 1 ExitImage.Position = UDim2.new(0, 5, 0, 5) ExitImage.Size = UDim2.new(0, 10, 0, 10) ExitImage.Image = getcustomasset("infiniteyield/assets/close.png") ExitImage.ZIndex = 10 Popup:TweenPosition(UDim2.new(0.5, -180, 0, 150), "InOut", "Quart", 0.5, true, nil) CmdsTrackConnection(Exit.MouseButton1Click:Connect(function() Popup:TweenPosition(UDim2.new(0.5, -180, 0, -500), "InOut", "Quart", 0.5, true, nil) task.wait(0.6) Popup:Destroy() end)) end local loadedEventData = nil local jsonAttempts = 0 function saves() if writefileExploit() and readfileExploit() and jsonAttempts < 10 then local readSuccess, out = readfile("IY_FE.iy", true) if readSuccess then if out ~= nil and tostring(out):gsub("%s", "") ~= "" then local success, response = pcall(function() local json = HttpService:JSONDecode(out) if vtype(json.prefix, "string") then prefix = json.prefix else prefix = ';' end if vtype(json.StayOpen, "boolean") then StayOpen = json.StayOpen else StayOpen = false end if vtype(json.guiScale, "number") then guiScale = json.guiScale else guiScale = defaultGuiScale end if vtype(json.keepIY, "boolean") then KeepInfYield = json.keepIY else KeepInfYield = true end if vtype(json.espTransparency, "number") then espTransparency = json.espTransparency else espTransparency = 0.3 end if vtype(json.logsEnabled, "boolean") then logsEnabled = json.logsEnabled else logsEnabled = false end if vtype(json.jLogsEnabled, "boolean") then jLogsEnabled = json.jLogsEnabled else jLogsEnabled = false end if vtype(json.logsWebhook, "string") then logsWebhook = json.logsWebhook else logsWebhook = nil end if vtype(json.aliases, "table") then aliases = json.aliases else aliases = {} end if vtype(json.binds, "table") then binds = json.binds else binds = {} end if vtype(json.spawnCmds, "table") then spawnCmds = json.spawnCmds end if vtype(json.WayPoints, "table") then AllWaypoints = json.WayPoints else WayPoints = {} AllWaypoints = {} end if vtype(json.PluginsTable, "table") then PluginsTable = json.PluginsTable else PluginsTable = {} end if vtype(json.currentShade1, "table") then currentShade1 = Color3.new(json.currentShade1[1],json.currentShade1[2],json.currentShade1[3]) end if vtype(json.currentShade2, "table") then currentShade2 = Color3.new(json.currentShade2[1],json.currentShade2[2],json.currentShade2[3]) end if vtype(json.currentShade3, "table") then currentShade3 = Color3.new(json.currentShade3[1],json.currentShade3[2],json.currentShade3[3]) end if vtype(json.currentText1, "table") then currentText1 = Color3.new(json.currentText1[1],json.currentText1[2],json.currentText1[3]) end if vtype(json.currentText2, "table") then currentText2 = Color3.new(json.currentText2[1],json.currentText2[2],json.currentText2[3]) end if vtype(json.currentScroll, "table") then currentScroll = Color3.new(json.currentScroll[1],json.currentScroll[2],json.currentScroll[3]) end if vtype(json.eventBinds, "string") then loadedEventData = json.eventBinds end end) if not success then jsonAttempts = jsonAttempts + 1 warn("Save Json Error:", response) warn("Overwriting Save File") writefile("IY_FE.iy", defaults, true) wait() saves() end else writefile("IY_FE.iy", defaults, true) wait() local dReadSuccess, dOut = readfile("IY_FE.iy", true) if dReadSuccess and dOut ~= nil and tostring(dOut):gsub("%s", "") ~= "" then saves() else nosaves = true useFactorySettings() createPopup("File Error", "There was a problem writing a save file to your PC.\n\nPlease contact the developer/support team for your exploit and tell them writefile/readfile is not working.\n\nYour settings, keybinds, waypoints, and aliases will not save if you continue.\n\nThings to try:\n> Make sure a 'workspace' folder is located in the same folder as your exploit\n> If your exploit is inside of a zip/rar file, extract it.\n> Rejoin the game and try again or restart your PC and try again.") end end else writefile("IY_FE.iy", defaults, true) wait() local dReadSuccess, dOut = readfile("IY_FE.iy", true) if dReadSuccess and dOut ~= nil and tostring(dOut):gsub("%s", "") ~= "" then saves() else nosaves = true useFactorySettings() createPopup("File Error", "There was a problem writing a save file to your PC.\n\nPlease contact the developer/support team for your exploit and tell them writefile/readfile is not working.\n\nYour settings, keybinds, waypoints, and aliases will not save if you continue.\n\nThings to try:\n> Make sure a 'workspace' folder is located in the same folder as your exploit\n> If your exploit is inside of a zip/rar file, extract it.\n> Rejoin the game and try again or restart your PC and try again.") end end else if jsonAttempts >= 10 then nosaves = true useFactorySettings() createPopup("File Error", "Sorry, we have attempted to parse your save file, but it is unreadable!\n\nInfinite Yield is now using factory settings until your exploit's file system works.\n\nYour save file has not been deleted.") else nosaves = true useFactorySettings() end end end function updatesaves() if nosaves == false and writefileExploit() then local update = { prefix = prefix; StayOpen = StayOpen; guiScale = guiScale; keepIY = KeepInfYield; espTransparency = espTransparency; logsEnabled = logsEnabled; jLogsEnabled = jLogsEnabled; logsWebhook = logsWebhook; aliases = aliases; binds = binds or {}; WayPoints = AllWaypoints; PluginsTable = PluginsTable; currentShade1 = {currentShade1.R,currentShade1.G,currentShade1.B}; currentShade2 = {currentShade2.R,currentShade2.G,currentShade2.B}; currentShade3 = {currentShade3.R,currentShade3.G,currentShade3.B}; currentText1 = {currentText1.R,currentText1.G,currentText1.B}; currentText2 = {currentText2.R,currentText2.G,currentText2.B}; currentScroll = {currentScroll.R,currentScroll.G,currentScroll.B}; eventBinds = eventEditor.SaveData() } writefileCooldown("IY_FE.iy", HttpService:JSONEncode(update)) end end pWayPoints = {} WayPoints = {} function Time() local HOUR = math.floor((tick() % 86400) / 3600) local MINUTE = math.floor((tick() % 3600) / 60) local SECOND = math.floor(tick() % 60) local AP = HOUR > 11 and 'PM' or 'AM' HOUR = (HOUR % 12 == 0 and 12 or HOUR % 12) HOUR = HOUR < 10 and '0' .. HOUR or HOUR MINUTE = MINUTE < 10 and '0' .. MINUTE or MINUTE SECOND = SECOND < 10 and '0' .. SECOND or SECOND return HOUR .. ':' .. MINUTE .. ':' .. SECOND .. ' ' .. AP end PrefixBox.Text = prefix local SettingsOpen = false local isHidden = false function maximizeHolder() if StayOpen == false then Holder:TweenPosition(UDim2.new(1, Holder.Position.X.Offset, 1, -220), "InOut", "Quart", 0.2, true, nil) end end minimizeNum = -20 function minimizeHolder() if StayOpen == false then Holder:TweenPosition(UDim2.new(1, Holder.Position.X.Offset, 1, minimizeNum), "InOut", "Quart", 0.5, true, nil) end end function cmdbarHolder() if StayOpen == false then Holder:TweenPosition(UDim2.new(1, Holder.Position.X.Offset, 1, -45), "InOut", "Quart", 0.5, true, nil) end end pinNotification = nil local notifyCount = 0 function notify(text,text2,length) task.spawn(function() local LnotifyCount = notifyCount+1 local notificationPinned = false notifyCount = notifyCount+1 if pinNotification then pinNotification:Disconnect() end pinNotification = CmdsTrackConnection(PinButton.MouseButton1Click:Connect(function() task.spawn(function() pinNotification:Disconnect() notificationPinned = true Title_2.BackgroundTransparency = 1 wait(0.5) Title_2.BackgroundTransparency = 0 end) end)) Notification:TweenPosition(UDim2.new(1, Notification.Position.X.Offset, 1, 0), "InOut", "Quart", 0.5, true, nil) wait(0.6) local closepressed = false if text2 then Title_2.Text = text Text_2.Text = text2 else Title_2.Text = 'Notification' Text_2.Text = text end Notification:TweenPosition(UDim2.new(1, Notification.Position.X.Offset, 1, -100), "InOut", "Quart", 0.5, true, nil) CmdsTrackConnection(CloseButton.MouseButton1Click:Connect(function() Notification:TweenPosition(UDim2.new(1, Notification.Position.X.Offset, 1, 0), "InOut", "Quart", 0.5, true, nil) closepressed = true pinNotification:Disconnect() end)) if length and isNumber(length) then wait(length) else wait(10) end if LnotifyCount == notifyCount then if closepressed == false and notificationPinned == false then pinNotification:Disconnect() Notification:TweenPosition(UDim2.new(1, Notification.Position.X.Offset, 1, 0), "InOut", "Quart", 0.5, true, nil) end notifyCount = 0 end end) end local lastMessage = nil local lastLabel = nil local dupeCount = 1 function CreateLabel(Name, Text) if lastMessage == Name..Text then dupeCount = dupeCount+1 lastLabel.Text = Time()..' - ['..Name..']: '..Text..' (x'..dupeCount..')' else if dupeCount > 1 then dupeCount = 1 end if #scroll_2:GetChildren() >= 2546 then scroll_2:ClearAllChildren() end local alls = 0 for i,v in pairs(scroll_2:GetChildren()) do if v then alls = v.Size.Y.Offset + alls end if not v then alls = 0 end end local tl = Instance.new('TextLabel') lastMessage = Name..Text lastLabel = tl tl.Name = Name tl.Parent = scroll_2 tl.ZIndex = 10 tl.RichText = true tl.Text = Time().." - ["..Name.."]: "..Text tl.Text = tl.ContentText tl.Size = UDim2.new(0,322,0,84) tl.BackgroundTransparency = 1 tl.BorderSizePixel = 0 tl.Font = "SourceSans" tl.Position = UDim2.new(-1,0,0,alls) tl.TextTransparency = 1 tl.TextScaled = false tl.TextSize = 14 tl.TextWrapped = true tl.TextXAlignment = "Left" tl.TextYAlignment = "Top" tl.TextColor3 = currentText1 tl.Size = UDim2.new(0,322,0,tl.TextBounds.Y) table.insert(text1,tl) scroll_2.CanvasSize = UDim2.new(0,0,0,alls+tl.TextBounds.Y) scroll_2.CanvasPosition = Vector2.new(0,scroll_2.CanvasPosition.Y+tl.TextBounds.Y) tl:TweenPosition(UDim2.new(0,3,0,alls), 'In', 'Quint', 0.5) TweenService:Create(tl, TweenInfo.new(1.25, Enum.EasingStyle.Linear), { TextTransparency = 0 }):Play() end end function CreateJoinLabel(player, userId) if #scroll_3:GetChildren() >= 2546 then scroll_3:ClearAllChildren() end local infoFrame = Instance.new("Frame") local info1 = Instance.new("TextLabel") local info2 = Instance.new("TextLabel") local ImageLabel_3 = Instance.new("ImageLabel") infoFrame.Name = randomString() infoFrame.Parent = scroll_3 infoFrame.BackgroundColor3 = Color3.new(1, 1, 1) infoFrame.BackgroundTransparency = 1 infoFrame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) infoFrame.Size = UDim2.new(1, 0, 0, 50) info1.Name = randomString() info1.Parent = infoFrame info1.BackgroundTransparency = 1 info1.BorderSizePixel = 0 info1.Position = UDim2.new(0, 45, 0, 0) info1.Size = UDim2.new(0, 135, 1, 0) info1.ZIndex = 10 info1.Font = Enum.Font.SourceSans info1.FontSize = Enum.FontSize.Size14 info1.Text = "Username: " .. player.Name .. "\nJoined Server: " .. Time() info1.TextColor3 = Color3.new(1, 1, 1) info1.TextWrapped = true info1.TextXAlignment = Enum.TextXAlignment.Left info2.Name = randomString() info2.Parent = infoFrame info2.BackgroundTransparency = 1 info2.BorderSizePixel = 0 info2.Position = UDim2.new(0, 185, 0, 0) info2.Size = UDim2.new(0, 140, 1, -5) info2.ZIndex = 10 info2.Font = Enum.Font.SourceSans info2.FontSize = Enum.FontSize.Size14 info2.Text = "User ID: " .. userId .. "\nAccount Age: " .. player.AccountAge .. "\nJoined Roblox: Loading..." info2.TextColor3 = Color3.new(1, 1, 1) info2.TextWrapped = true info2.TextXAlignment = Enum.TextXAlignment.Left info2.TextYAlignment = Enum.TextYAlignment.Center ImageLabel_3.Parent = infoFrame ImageLabel_3.BackgroundTransparency = 1 ImageLabel_3.BorderSizePixel = 0 ImageLabel_3.Size = UDim2.new(0, 45, 1, 0) ImageLabel_3.Image = Players:GetUserThumbnailAsync(userId, Enum.ThumbnailType.AvatarThumbnail, Enum.ThumbnailSize.Size420x420) scroll_3.CanvasSize = UDim2.new(0, 0, 0, listlayout.AbsoluteContentSize.Y) scroll_3.CanvasPosition = Vector2.new(0, scroll_2.CanvasPosition.Y + infoFrame.AbsoluteSize.Y) local date = os.date("!%Y-%m-%d", os.time() - (player.AccountAge * 86400)) local splitDates = string.split(date, "-") info2.Text = string.gsub(info2.Text, "Loading...", splitDates[2] .. "/" .. splitDates[3] .. "/" .. splitDates[1]) end local lastMinimizeReq = 0 function updateColors(color,ctype) if ctype == shade1 then for i,v in pairs(shade1) do v.BackgroundColor3 = color end currentShade1 = color elseif ctype == shade2 then for i,v in pairs(shade2) do v.BackgroundColor3 = color end currentShade2 = color elseif ctype == shade3 then for i,v in pairs(shade3) do v.BackgroundColor3 = color end currentShade3 = color elseif ctype == text1 then for i,v in pairs(text1) do v.TextColor3 = color if v:IsA("TextBox") then v.PlaceholderColor3 = color end end currentText1 = color elseif ctype == text2 then for i,v in pairs(text2) do v.TextColor3 = color end currentText2 = color elseif ctype == scroll then for i,v in pairs(scroll) do v.ScrollBarImageColor3 = color end currentScroll = color end end local colorpickerOpen = false avatarcache = {} function sendChatWebhook(player, message) if httprequest and vtype(logsWebhook, "string") then local id = player.UserId local avatar = avatarcache[id] if not avatar then local d = HttpService:JSONDecode(httprequest({ Url = "https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=" .. id .. "&size=420x420&format=Png&isCircular=false", Method = "GET" }).Body)["data"] avatar = d and d[1].state == "Completed" and d[1].imageUrl or "https://raw.githubusercontent.com/infyiff/backup/refs/heads/main/assets/plain.png" avatarcache[id] = avatar end local log = HttpService:JSONEncode({ content = message, avatar_url = avatar, username = formatUsername(player), allowed_mentions = {parse = {}} }) httprequest({ Url = logsWebhook, Method = "POST", Headers = {["Content-Type"] = "application/json"}, Body = log }) end end ChatLog = function(player) CmdsTrackConnection(player.Chatted:Connect(function(message) if logsEnabled == true then CreateLabel(player.Name, message) sendChatWebhook(player, message) end end)) end JoinLog = function(plr) if jLogsEnabled == true then CreateJoinLabel(plr,plr.UserId) end end CleanFileName = function(name) return tostring(name):gsub("[*\\?:<>|]+", ""):sub(1, 175) end local selectionBox = Instance.new("SelectionBox") selectionBox.Name = randomString() selectionBox.Color3 = Color3.new(255,255,255) selectionBox.Adornee = nil selectionBox.Parent = PARENT local selected = Instance.new("SelectionBox") selected.Name = randomString() selected.Color3 = Color3.new(0,166,0) selected.Adornee = nil selected.Parent = PARENT local ActivateHighlight = nil local ClickSelect = nil function selectPart() ToPartFrame:TweenPosition(UDim2.new(0.5, -180, 0, 335), "InOut", "Quart", 0.5, true, nil) local function HighlightPart() if selected.Adornee ~= IYMouse.Target then selectionBox.Adornee = IYMouse.Target else selectionBox.Adornee = nil end end ActivateHighlight = CmdsTrackConnection(IYMouse.Move:Connect(HighlightPart)) local function SelectPart() if IYMouse.Target ~= nil then selected.Adornee = IYMouse.Target Path.Text = getHierarchy(IYMouse.Target) end end ClickSelect = CmdsTrackConnection(IYMouse.Button1Down:Connect(SelectPart)) end cmds={} customAlias = {} function CamViewport() if workspace.CurrentCamera then return workspace.CurrentCamera.ViewportSize.X end end function UpdateToViewport() if Holder.Position.X.Offset < -CamViewport() then Holder:TweenPosition(UDim2.new(1, -CamViewport(), Holder.Position.Y.Scale, Holder.Position.Y.Offset), "InOut", "Quart", 0.04, true, nil) Notification:TweenPosition(UDim2.new(1, -CamViewport() + 250, Notification.Position.Y.Scale, Notification.Position.Y.Offset), "InOut", "Quart", 0.04, true, nil) end end function updateCamera(child, parent) if parent ~= workspace then CamMoved:Disconnect() CameraChanged:Disconnect() repeat wait() until workspace.CurrentCamera CameraChanged = CmdsTrackConnection(workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"):Connect(UpdateToViewport)) CamMoved = CmdsTrackConnection(workspace.CurrentCamera.AncestryChanged:Connect(updateCamera)) end end function dragMain(dragpoint,gui) task.spawn(function() local dragging local dragInput local dragStart = Vector3.new(0,0,0) local startPos local function update(input) local pos = -250 local delta = input.Position - dragStart if startPos.X.Offset + delta.X <= -500 then local Position = UDim2.new(1, -250, Notification.Position.Y.Scale, Notification.Position.Y.Offset) TweenService:Create(Notification, TweenInfo.new(.20), {Position = Position}):Play() pos = 250 else local Position = UDim2.new(1, -500, Notification.Position.Y.Scale, Notification.Position.Y.Offset) TweenService:Create(Notification, TweenInfo.new(.20), {Position = Position}):Play() pos = -250 end if startPos.X.Offset + delta.X <= -250 and -CamViewport() <= startPos.X.Offset + delta.X then local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, gui.Position.Y.Scale, gui.Position.Y.Offset) TweenService:Create(gui, TweenInfo.new(.20), {Position = Position}):Play() local Position2 = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X + pos, Notification.Position.Y.Scale, Notification.Position.Y.Offset) TweenService:Create(Notification, TweenInfo.new(.20), {Position = Position2}):Play() elseif startPos.X.Offset + delta.X > -500 then local Position = UDim2.new(1, -250, gui.Position.Y.Scale, gui.Position.Y.Offset) TweenService:Create(gui, TweenInfo.new(.20), {Position = Position}):Play() elseif -CamViewport() > startPos.X.Offset + delta.X then gui:TweenPosition(UDim2.new(1, -CamViewport(), gui.Position.Y.Scale, gui.Position.Y.Offset), "InOut", "Quart", 0.04, true, nil) local Position = UDim2.new(1, -CamViewport(), gui.Position.Y.Scale, gui.Position.Y.Offset) TweenService:Create(gui, TweenInfo.new(.20), {Position = Position}):Play() local Position2 = UDim2.new(1, -CamViewport() + 250, Notification.Position.Y.Scale, Notification.Position.Y.Offset) TweenService:Create(Notification, TweenInfo.new(.20), {Position = Position2}):Play() end end CmdsTrackConnection(dragpoint.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = gui.Position CmdsTrackConnection(input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end)) end end)) CmdsTrackConnection(dragpoint.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end)) CmdsTrackConnection(UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then update(input) end end)) end) end Match = function(name,str) str = str:gsub("%W", "%%%1") return name:lower():find(str:lower()) and true end local canvasPos = Vector2.new(0,0) local topCommand = nil local function updateCommandCanvasSize(frame) local scale = (Scale and Scale.Scale) or 1 if scale <= 0 then scale = 1 end local contentY = cmdListLayout.AbsoluteContentSize.Y local unscaledY = math.ceil(contentY / scale) frame.CanvasSize = UDim2.new(0, 0, 0, math.max(0, unscaledY)) end IndexContents = function(str,bool,cmdbar,Ianim) CMDsF.CanvasPosition = Vector2.new(0,0) local SizeY = 0 local indexnum = 0 local frame = CMDsF topCommand = nil local chunks = {} if str:sub(#str,#str) == "\\" then str = "" end for w in string.gmatch(str,"[^\\]+") do table.insert(chunks,w) end if #chunks > 0 then str = chunks[#chunks] end if str:sub(1,1) == "!" then str = str:sub(2) end for i,v in next, frame:GetChildren() do if v:IsA("TextButton") then if bool then if Match(v.Text,str) then indexnum = indexnum + 1 v.Visible = true if topCommand == nil then topCommand = v.Text end else v.Visible = false end else v.Visible = true if topCommand == nil then topCommand = v.Text end end end end updateCommandCanvasSize(frame) if not Ianim then if indexnum == 0 or string.find(str, " ") then if not cmdbar then minimizeHolder() elseif cmdbar then cmdbarHolder() end else maximizeHolder() end else minimizeHolder() end end function autoComplete(str,curText) local endingChar = {"[", "/", "(", " "} local stop = 0 for i=1,#str do local c = str:sub(i,i) if table.find(endingChar, c) then stop = i break end end curText = curText or Cmdbar.Text local subPos = 0 local pos = 1 local findRes = string.find(curText,"\\",pos) while findRes do subPos = findRes pos = findRes+1 findRes = string.find(curText,"\\",pos) end if curText:sub(subPos+1,subPos+1) == "!" then subPos = subPos + 1 end Cmdbar.Text = curText:sub(1,subPos) .. str:sub(1, stop - 1)..' ' RunService.RenderStepped:Wait() Cmdbar.Text = Cmdbar.Text:gsub( '\t', '' ) Cmdbar.CursorPosition = #Cmdbar.Text+1--1020 end CMDs = {} CMDs[#CMDs + 1] = {NAME = 'discord / support / help', DESC = 'Invite to the Infinite Yield Discord server.'} CMDs[#CMDs + 1] = {NAME = 'guiscale [number]', DESC = 'Changes the size of the GUI. [number] accepts decimals and whole numbers. Min is 0.4 and Max is 2'} CMDs[#CMDs + 1] = {NAME = 'console', DESC = 'Opens the Roblox console'} CMDs[#CMDs + 1] = {NAME = 'oldconsole', DESC = 'Loads an old-themed Roblox console'} CMDs[#CMDs + 1] = {NAME = 'explorer / dex', DESC = 'Opens Dex++ by Chillz'} CMDs[#CMDs + 1] = {NAME = 'moondex / mdex', DESC = 'Opens Dex by Moon'} CMDs[#CMDs + 1] = {NAME = 'remotespy / rspy', DESC = 'Opens Cobalt to intercept incoming and outgoing network traffic'} CMDs[#CMDs + 1] = {NAME = 'simplespy / sspy', DESC = 'Opens Simple Spy V3 to intercept remote calls from the client to the server'} CMDs[#CMDs + 1] = {NAME = 'audiologger / alogger', DESC = 'Opens Edges audio logger'} CMDs[#CMDs + 1] = {NAME = 'animationlogger / animlogger', DESC = 'Opens luarsky animation logger'} CMDs[#CMDs + 1] = {NAME = 'serverinfo / info', DESC = 'Gives you info about the server'} CMDs[#CMDs + 1] = {NAME = 'jobid', DESC = 'Copies the games JobId to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'notifyjobid', DESC = 'Notifies you the games JobId'} CMDs[#CMDs + 1] = {NAME = 'joinjobid [jobid]', DESC = 'Joins a server using its JobId'} CMDs[#CMDs + 1] = {NAME = 'rejoin / rj [reposition]', DESC = 'Makes you rejoin the game'} CMDs[#CMDs + 1] = {NAME = 'inviteprompt [player]', DESC = 'Prompts the user of your choice that they had invited you. Requires a rejoin to function.'} CMDs[#CMDs + 1] = {NAME = 'autorejoin / autorj', DESC = 'Automatically rejoins the server if you get kicked/disconnected'} CMDs[#CMDs + 1] = {NAME = 'serverhop / shop', DESC = 'Teleports you to a different server'} CMDs[#CMDs + 1] = {NAME = 'gameteleport / gametp [place ID]', DESC = 'Joins a game by ID'} CMDs[#CMDs + 1] = {NAME = 'antiidle / antiafk', DESC = 'Prevents the game from kicking you for being idle/AFK'} CMDs[#CMDs + 1] = {NAME = 'datalimit [num]', DESC = 'Sets outgoing KBPS limit'} CMDs[#CMDs + 1] = {NAME = 'replicationlag / backtrack [num]', DESC = 'Sets IncomingReplicationLag'} CMDs[#CMDs + 1] = {NAME = 'creatorid / creator', DESC = 'Notifies you the creators UserId'} CMDs[#CMDs + 1] = {NAME = 'copycreatorid / copycreator', DESC = 'Copies the creators UserId to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'setcreatorid / setcreator', DESC = 'Sets your UserId to the creators UserId'} CMDs[#CMDs + 1] = {NAME = 'noprompts', DESC = 'Prevents the game from showing you purchase/premium prompts'} CMDs[#CMDs + 1] = {NAME = 'showprompts', DESC = 'Allows the game to show purchase/premium prompts again'} CMDs[#CMDs + 1] = {NAME = 'enable [inventory/playerlist/chat/reset/emotes/all]', DESC = 'Toggles visibility of CoreGui items'} CMDs[#CMDs + 1] = {NAME = 'disable [inventory/playerlist/chat/reset/emotes/all]', DESC = 'Toggles visibility of CoreGui items'} CMDs[#CMDs + 1] = {NAME = 'showguis', DESC = 'Shows any invisible GUIs'} CMDs[#CMDs + 1] = {NAME = 'unshowguis', DESC = 'Undoes showguis'} CMDs[#CMDs + 1] = {NAME = 'hideguis', DESC = 'Hides any GUIs in PlayerGui'} CMDs[#CMDs + 1] = {NAME = 'unhideguis', DESC = 'Undoes hideguis'} CMDs[#CMDs + 1] = {NAME = 'guidelete', DESC = 'Enables backspace to delete GUI'} CMDs[#CMDs + 1] = {NAME = 'unguidelete / noguidelete', DESC = 'Disables guidelete'} CMDs[#CMDs + 1] = {NAME = 'hideiy', DESC = 'Hides the main IY GUI'} CMDs[#CMDs + 1] = {NAME = 'showiy / unhideiy', DESC = 'Shows IY again'} CMDs[#CMDs + 1] = {NAME = 'keepiy', DESC = 'Auto execute IY when you teleport through servers'} CMDs[#CMDs + 1] = {NAME = 'unkeepiy', DESC = 'Disables keepiy'} CMDs[#CMDs + 1] = {NAME = 'togglekeepiy', DESC = 'Toggles keepiy'} CMDs[#CMDs + 1] = {NAME = 'removeads / adblock', DESC = 'Automatically removes ad billboards'} CMDs[#CMDs + 1] = {NAME = 'savegame / saveplace', DESC = 'Saves the game you are in to a file'} CMDs[#CMDs + 1] = {NAME = 'clearerror', DESC = 'Clears the annoying box and blur when a game kicks you'} CMDs[#CMDs + 1] = {NAME = 'antigameplaypaused', DESC = 'Clears the annoying box shown when a game is loading assets due to network lag'} CMDs[#CMDs + 1] = {NAME = 'unantigameplaypaused', DESC = 'Disables antigameplaypaused'} CMDs[#CMDs + 1] = {NAME = 'clientantikick / antikick (CLIENT)', DESC = 'Prevents LocalScripts from kicking you'} CMDs[#CMDs + 1] = {NAME = 'clientantiteleport / antiteleport (CLIENT)', DESC = 'Prevents LocalScripts from teleporting you'} CMDs[#CMDs + 1] = {NAME = 'allowrejoin / allowrj (CLIENT)', DESC = 'Toggles if antiteleport allows you to rejoin or not'} CMDs[#CMDs + 1] = {NAME = 'cancelteleport / canceltp', DESC = 'Cancels teleports in progress'} CMDs[#CMDs + 1] = {NAME = 'volume / vol [0-10]', DESC = 'Adjusts your game volume on a scale of 0 to 10'} CMDs[#CMDs + 1] = {NAME = 'antilag / boostfps / lowgraphics', DESC = 'Lowers game quality in an attempt to boost FPS'} CMDs[#CMDs + 1] = {NAME = 'unantilag / unboostfps / highgraphics', DESC = '(Partially) disables antilag'} CMDs[#CMDs + 1] = {NAME = 'setfpscap / fpscap [num]', DESC = 'Sets FPS cap'} CMDs[#CMDs + 1] = {NAME = 'removefpscap', DESC = 'Sets FPS cap to 1000'} CMDs[#CMDs + 1] = {NAME = 'record / rec', DESC = 'Starts Roblox recorder'} CMDs[#CMDs + 1] = {NAME = 'screenshot / scrnshot', DESC = 'Takes a screenshot'} CMDs[#CMDs + 1] = {NAME = 'togglefullscreen / togglefs', DESC = 'Toggles fullscreen'} CMDs[#CMDs + 1] = {NAME = 'notify [text]', DESC = 'Sends you a notification with the provided text'} CMDs[#CMDs + 1] = {NAME = 'lastcommand / lastcmd', DESC = 'Executes the previous command used'} CMDs[#CMDs + 1] = {NAME = 'notifyping / ping', DESC = 'Notify yourself your ping'} CMDs[#CMDs + 1] = {NAME = 'norender', DESC = 'Disables 3D Rendering to decrease the amount of CPU the client uses'} CMDs[#CMDs + 1] = {NAME = 'render', DESC = 'Enables 3D Rendering'} CMDs[#CMDs + 1] = {NAME = '2022materials / use2022materials', DESC = 'Enables 2022 material textures'} CMDs[#CMDs + 1] = {NAME = 'un2022materials / unuse2022materials', DESC = 'Disables 2022 material textures'} CMDs[#CMDs + 1] = {NAME = 'alignmentkeys', DESC = 'Enables the left and right alignment keys (comma and period)'} CMDs[#CMDs + 1] = {NAME = 'unalignmentkeys / noalignmentkeys', DESC = 'Disables the alignment keys'} CMDs[#CMDs + 1] = {NAME = 'ctrllock', DESC = 'Binds Shiftlock to LeftControl'} CMDs[#CMDs + 1] = {NAME = 'unctrllock', DESC = 'Re-binds Shiftlock to LeftShift'} CMDs[#CMDs + 1] = {NAME = 'exit / shutdown / leave', DESC = 'Exits the game'} CMDs[#CMDs + 1] = {NAME = 'removecmd / deletecmd', DESC = 'Removes a command until the script is reloaded'} CMDs[#CMDs + 1] = {NAME = 'breakloops / break (cmd loops)', DESC = 'Stops any cmd loops (;100^1^cmd)'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'noclip', DESC = 'Go through objects'} CMDs[#CMDs + 1] = {NAME = 'unnoclip / clip', DESC = 'Disables noclip'} CMDs[#CMDs + 1] = {NAME = 'togglenoclip', DESC = 'Toggles noclip'} CMDs[#CMDs + 1] = {NAME = 'fly [speed]', DESC = 'Makes you fly'} CMDs[#CMDs + 1] = {NAME = 'unfly', DESC = 'Disables fly'} CMDs[#CMDs + 1] = {NAME = 'togglefly', DESC = 'Toggles fly'} CMDs[#CMDs + 1] = {NAME = 'flyspeed [num]', DESC = 'Set fly speed (default is 20)'} CMDs[#CMDs + 1] = {NAME = 'vehiclefly / vfly [speed]', DESC = 'Makes you fly in a vehicle'} CMDs[#CMDs + 1] = {NAME = 'unvehiclefly / unvfly', DESC = 'Disables vehicle fly'} CMDs[#CMDs + 1] = {NAME = 'vehicleflyspeed / vflyspeed [num]', DESC = 'Set vehicle fly speed'} CMDs[#CMDs + 1] = {NAME = 'cframefly / cfly [speed]', DESC = 'Makes you fly, bypassing some anti cheats (works on mobile)'} CMDs[#CMDs + 1] = {NAME = 'uncframefly / uncfly', DESC = 'Disables cfly'} CMDs[#CMDs + 1] = {NAME = 'cframeflyspeed / cflyspeed [num]', DESC = 'Sets cfly speed'} CMDs[#CMDs + 1] = {NAME = 'qefly [true / false]', DESC = 'Enables or disables the Q and E hotkeys for fly'} CMDs[#CMDs + 1] = {NAME = 'vehiclenoclip / vnoclip', DESC = 'Turns off vehicle collision'} CMDs[#CMDs + 1] = {NAME = 'vehicleclip / vclip / unvnoclip', DESC = 'Enables vehicle collision'} CMDs[#CMDs + 1] = {NAME = 'float / platform', DESC = 'Spawns a platform beneath you causing you to float'} CMDs[#CMDs + 1] = {NAME = 'unfloat / noplatform', DESC = 'Removes the platform'} CMDs[#CMDs + 1] = {NAME = 'togglefloat', DESC = 'Toggles float'} CMDs[#CMDs + 1] = {NAME = 'swim', DESC = 'Allows you to swim in the air'} CMDs[#CMDs + 1] = {NAME = 'unswim / noswim', DESC = 'Stops you from swimming everywhere'} CMDs[#CMDs + 1] = {NAME = 'toggleswim', DESC = 'Toggles swimming'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'setwaypoint / swp [name]', DESC = 'Sets a waypoint at your position'} CMDs[#CMDs + 1] = {NAME = 'waypointpos / wpp [name] [X Y Z]', DESC = 'Sets a waypoint with specified coordinates'} CMDs[#CMDs + 1] = {NAME = 'waypoints', DESC = 'Shows a list of currently active waypoints'} CMDs[#CMDs + 1] = {NAME = 'showwaypoints / showwp', DESC = 'Shows all currently set waypoints'} CMDs[#CMDs + 1] = {NAME = 'hidewaypoints / hidewp', DESC = 'Hides shown waypoints'} CMDs[#CMDs + 1] = {NAME = 'waypoint / wp [name]', DESC = 'Teleports player to a waypoint'} CMDs[#CMDs + 1] = {NAME = 'tweenwaypoint / twp [name]', DESC = 'Tweens player to a waypoint'} CMDs[#CMDs + 1] = {NAME = 'walktowaypoint / wtwp [name]', DESC = 'Walks player to a waypoint'} CMDs[#CMDs + 1] = {NAME = 'deletewaypoint / dwp [name]', DESC = 'Deletes a waypoint'} CMDs[#CMDs + 1] = {NAME = 'clearwaypoints / cwp', DESC = 'Clears all waypoints'} CMDs[#CMDs + 1] = {NAME = 'cleargamewaypoints / cgamewp', DESC = 'Clears all waypoints for the game you are in'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'goto [player] [request stream]', DESC = 'Go to a player'} CMDs[#CMDs + 1] = {NAME = 'tweengoto / tgoto [player]', DESC = 'Tween to a player (bypasses some anti cheats)'} CMDs[#CMDs + 1] = {NAME = 'tweenspeed / tspeed [num]', DESC = 'Sets how fast all tween commands go (default is 1)'} CMDs[#CMDs + 1] = {NAME = 'vehiclegoto / vgoto [player]', DESC = 'Go to a player while in a vehicle'} CMDs[#CMDs + 1] = {NAME = 'loopgoto [player] [distance] [delay]', DESC = 'Loop teleport to a player'} CMDs[#CMDs + 1] = {NAME = 'unloopgoto', DESC = 'Stops teleporting you to a player'} CMDs[#CMDs + 1] = {NAME = 'pulsetp / ptp [player] [seconds]', DESC = 'Teleports you to a player for a specified amount of time'} CMDs[#CMDs + 1] = {NAME = 'clientbring / cbring [player] (CLIENT)', DESC = 'Bring a player'} CMDs[#CMDs + 1] = {NAME = 'loopbring [player] [distance] [delay] (CLIENT)', DESC = 'Loop brings a player to you (useful for killing)'} CMDs[#CMDs + 1] = {NAME = 'unloopbring [player]', DESC = 'Undoes loopbring'} CMDs[#CMDs + 1] = {NAME = 'freeze / fr [player] (CLIENT)', DESC = 'Freezes a player'} CMDs[#CMDs + 1] = {NAME = 'freezeanims', DESC = 'Freezes your animations / pauses your animations - Does not work on default animations'} CMDs[#CMDs + 1] = {NAME = 'unfreezeanims', DESC = 'Unfreezes your animations / plays your animations'} CMDs[#CMDs + 1] = {NAME = 'thaw / unfr [player] (CLIENT)', DESC = 'Unfreezes a player'} CMDs[#CMDs + 1] = {NAME = 'anchor', DESC = 'Anchors your characters RootPart'} CMDs[#CMDs + 1] = {NAME = 'unanchor', DESC = 'Unanchors your characters RootPart'} CMDs[#CMDs + 1] = {NAME = 'tpposition / tppos [X Y Z]', DESC = 'Teleports you to certain coordinates'} CMDs[#CMDs + 1] = {NAME = 'tweentpposition / ttppos [X Y Z]', DESC = 'Tween to coordinates (bypasses some anti cheats)'} CMDs[#CMDs + 1] = {NAME = 'offset [X Y Z]', DESC = 'Offsets you by certain coordinates'} CMDs[#CMDs + 1] = {NAME = 'tweenoffset / toffset [X Y Z]', DESC = 'Tween offset (bypasses some anti cheats)'} CMDs[#CMDs + 1] = {NAME = 'thru [num] [mode]', DESC = 'Teleports you [num] studs ahead of where your character is facing'} CMDs[#CMDs + 1] = {NAME = 'notifyposition / notifypos [player]', DESC = 'Notifies you the coordinates of a character'} CMDs[#CMDs + 1] = {NAME = 'copyposition / copypos [player]', DESC = 'Copies the coordinates of a character to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'walktoposition / walktopos [X Y Z]', DESC = 'Makes you walk to a coordinate'} CMDs[#CMDs + 1] = {NAME = 'spawnpoint / spawn [delay]', DESC = 'Sets a position where you will spawn'} CMDs[#CMDs + 1] = {NAME = 'nospawnpoint / nospawn', DESC = 'Removes your custom spawn point'} CMDs[#CMDs + 1] = {NAME = 'flashback / diedtp', DESC = 'Teleports you to where you last died'} CMDs[#CMDs + 1] = {NAME = 'walltp', DESC = 'Teleports you above/over any wall you run into'} CMDs[#CMDs + 1] = {NAME = 'nowalltp / unwalltp', DESC = 'Disables walltp'} CMDs[#CMDs + 1] = {NAME = 'teleporttool / tptool', DESC = 'Gives you a teleport tool'} CMDs[#CMDs + 1] = {NAME = 'tweentptool / tweenteleporttool', DESC = 'Gives you a tween teleport tool'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'logs', DESC = 'Opens the logs GUI'} CMDs[#CMDs + 1] = {NAME = 'chatlogs / clogs', DESC = 'Log what people say or whisper'} CMDs[#CMDs + 1] = {NAME = 'joinlogs / jlogs', DESC = 'Log when people join'} CMDs[#CMDs + 1] = {NAME = 'savelogs', DESC = 'Saves all logs/text in console'} CMDs[#CMDs + 1] = {NAME = 'chatlogswebhook / logswebhook [url]', DESC = 'Set a Discord webhook for chatlogs to go to (provide no URL to disable this)'} CMDs[#CMDs + 1] = {NAME = 'chat / say [text]', DESC = 'Makes you chat a string (possible mute bypass)'} CMDs[#CMDs + 1] = {NAME = 'parrot', DESC = 'Copy and chat what anyone says'} CMDs[#CMDs + 1] = {NAME = 'unparrot', DESC = 'Undoes parrot'} CMDs[#CMDs + 1] = {NAME = 'vsay [text]', DESC = 'Say anything uncensored (CLIENT)'} CMDs[#CMDs + 1] = {NAME = 'spam [text]', DESC = 'Makes you spam the chat'} CMDs[#CMDs + 1] = {NAME = 'unspam / nospam', DESC = 'Turns off spam'} CMDs[#CMDs + 1] = {NAME = 'whisper / pm [player] [text]', DESC = 'Makes you whisper a string to someone (possible mute bypass)'} CMDs[#CMDs + 1] = {NAME = 'pmspam [player] [text]', DESC = 'Makes you spam a players whispers'} CMDs[#CMDs + 1] = {NAME = 'unpmspam / nopmspam [player]', DESC = 'Turns off pm spam'} CMDs[#CMDs + 1] = {NAME = 'spamspeed [num]', DESC = 'How quickly you spam (default is 1)'} CMDs[#CMDs + 1] = {NAME = 'bubblechat (CLIENT)', DESC = 'Enables bubble chat for your client'} CMDs[#CMDs + 1] = {NAME = 'unbubblechat / nobubblechat', DESC = 'Disables the bubblechat command'} CMDs[#CMDs + 1] = {NAME = 'chatwindow', DESC = 'Enables the chat window for your client'} CMDs[#CMDs + 1] = {NAME = 'unchatwindow / nochatwindow', DESC = 'Disables the chat window for your client'} CMDs[#CMDs + 1] = {NAME = 'darkchat', DESC = 'Makes the chat window dark for your client'} CMDs[#CMDs + 1] = {NAME = 'listento [player]', DESC = 'Listens to the area around a player. Can also eavesdrop with voice chat'} CMDs[#CMDs + 1] = {NAME = 'unlistento', DESC = 'Disables listento'} CMDs[#CMDs + 1] = {NAME = 'muteallvoices / muteallvcs', DESC = 'Mutes voice chat for all players'} CMDs[#CMDs + 1] = {NAME = 'unmuteallvoices / unmuteallvcs', DESC = 'Unmutes voice chat for all players'} CMDs[#CMDs + 1] = {NAME = 'mutevc [player]', DESC = 'Mutes the voice chat of a player'} CMDs[#CMDs + 1] = {NAME = 'unmutevc [player]', DESC = 'Unmutes the voice chat of a player'} CMDs[#CMDs + 1] = {NAME = 'phonebook / call', DESC = 'Prompts the Roblox phonebook UI to let you call your friends. Needs voice chat enabled'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'esp', DESC = 'View all players and their status'} CMDs[#CMDs + 1] = {NAME = 'espteam', DESC = 'ESP but teammates are green and bad guys are red'} CMDs[#CMDs + 1] = {NAME = 'noesp / unesp / unespteam', DESC = 'Removes ESP'} CMDs[#CMDs + 1] = {NAME = 'esptransparency [number]', DESC = 'Changes the transparency of ESP related commands'} CMDs[#CMDs + 1] = {NAME = 'partesp [part name]', DESC = 'Highlights a part'} CMDs[#CMDs + 1] = {NAME = 'unpartesp / nopartesp [part name]', DESC = 'removes partesp'} CMDs[#CMDs + 1] = {NAME = 'chams', DESC = 'ESP but without text in the way'} CMDs[#CMDs + 1] = {NAME = 'nochams / unchams', DESC = 'Removes chams'} CMDs[#CMDs + 1] = {NAME = 'locate [player]', DESC = 'View a single player and their status'} CMDs[#CMDs + 1] = {NAME = 'unlocate / nolocate [player]', DESC = 'Removes locate'} CMDs[#CMDs + 1] = {NAME = 'xray', DESC = 'Makes all parts in workspace transparent'} CMDs[#CMDs + 1] = {NAME = 'unxray / noxray', DESC = 'Restores transparency to all parts in workspace'} CMDs[#CMDs + 1] = {NAME = 'loopxray', DESC = 'Makes all parts in workspace transparent but looped'} CMDs[#CMDs + 1] = {NAME = 'unloopxray', DESC = 'Unloops xray'} CMDs[#CMDs + 1] = {NAME = 'togglexray', DESC = 'Toggles xray'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'view / spectate [player]', DESC = 'View a player'} CMDs[#CMDs + 1] = {NAME = 'viewpart / viewp [part name]', DESC = 'View a part'} CMDs[#CMDs + 1] = {NAME = 'unview / unspectate', DESC = 'Stops viewing player/part'} CMDs[#CMDs + 1] = {NAME = 'freecam / fcam / fc', DESC = 'Allows you to freely move camera around the game'} CMDs[#CMDs + 1] = {NAME = 'freecampos / fcpos [X Y Z]', DESC = 'Moves / opens freecam in a certain position'} CMDs[#CMDs + 1] = {NAME = 'freecamwaypoint / fcwp [name]', DESC = 'Moves / opens freecam to a waypoint'} CMDs[#CMDs + 1] = {NAME = 'freecamgoto / fcgoto / fctp [player]', DESC = 'Moves / opens freecam to a player'} CMDs[#CMDs + 1] = {NAME = 'unfreecam / unfc', DESC = 'Disables freecam'} CMDs[#CMDs + 1] = {NAME = 'freecamspeed / fcspeed [num]', DESC = 'Adjusts freecam speed (default is 1)'} CMDs[#CMDs + 1] = {NAME = 'notifyfreecamposition / notifyfcpos', DESC = 'Noitifies you your freecam coordinates'} CMDs[#CMDs + 1] = {NAME = 'copyfreecamposition / copyfcpos', DESC = 'Copies your freecam coordinates to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'gotocamera / gotocam', DESC = 'Teleports you to the location of your camera'} CMDs[#CMDs + 1] = {NAME = 'tweengotocam / tgotocam', DESC = 'Tweens you to the location of your camera'} CMDs[#CMDs + 1] = {NAME = 'firstp', DESC = 'Forces camera to go into first person'} CMDs[#CMDs + 1] = {NAME = 'thirdp', DESC = 'Allows camera to go into third person'} CMDs[#CMDs + 1] = {NAME = 'noclipcam / nccam', DESC = 'Allows camera to go through objects like walls'} CMDs[#CMDs + 1] = {NAME = 'maxzoom [num]', DESC = 'Sets maximum camera zoom'} CMDs[#CMDs + 1] = {NAME = 'minzoom [num]', DESC = 'Sets minimum camera zoom'} CMDs[#CMDs + 1] = {NAME = 'camdistance [num]', DESC = 'Changes camera distance from your player'} CMDs[#CMDs + 1] = {NAME = 'fov [num]', DESC = 'Adjusts field of view (default is 70)'} CMDs[#CMDs + 1] = {NAME = 'fixcam / restorecam', DESC = 'Fixes camera'} CMDs[#CMDs + 1] = {NAME = 'enableshiftlock / enablesl', DESC = 'Enables the shift lock option'} CMDs[#CMDs + 1] = {NAME = 'lookat [player]', DESC = 'Moves your camera view to a player'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'btools (CLIENT)', DESC = 'Gives you building tools (DOES NOT REPLICATE)'} CMDs[#CMDs + 1] = {NAME = 'f3x (CLIENT)', DESC = 'Gives you F3X building tools (DOES NOT REPLICATE)'} CMDs[#CMDs + 1] = {NAME = 'partname / partpath', DESC = 'Allows you to click a part to see its path & name'} CMDs[#CMDs + 1] = {NAME = 'delete [instance name] (CLIENT)', DESC = 'Removes any part with a certain name from the workspace (DOES NOT REPLICATE)'} CMDs[#CMDs + 1] = {NAME = 'deleteclass / dc [class name] (CLIENT)', DESC = 'Removes any part with a certain classname from the workspace (DOES NOT REPLICATE)'} CMDs[#CMDs + 1] = {NAME = 'lockworkspace / lockws', DESC = 'Locks the whole workspace'} CMDs[#CMDs + 1] = {NAME = 'unlockworkspace / unlockws', DESC = 'Unlocks the whole workspace'} CMDs[#CMDs + 1] = {NAME = 'invisibleparts / invisparts (CLIENT)', DESC = 'Shows invisible parts'} CMDs[#CMDs + 1] = {NAME = 'uninvisibleparts / uninvisparts (CLIENT)', DESC = 'Makes parts affected by invisparts return to normal'} CMDs[#CMDs + 1] = {NAME = 'deleteinvisparts / dip (CLIENT)', DESC = 'Deletes invisible parts'} CMDs[#CMDs + 1] = {NAME = 'gotopart [part name]', DESC = 'Moves your character to a part or multiple parts'} CMDs[#CMDs + 1] = {NAME = 'tweengotopart / tgotopart [part name]', DESC = 'Tweens your character to a part or multiple parts'} CMDs[#CMDs + 1] = {NAME = 'gotopartclass / gpc [class name]', DESC = 'Moves your character to a part or multiple parts based on classname'} CMDs[#CMDs + 1] = {NAME = 'tweengotopartclass / tgpc [class name]', DESC = 'Tweens your character to a part or multiple parts based on classname'} CMDs[#CMDs + 1] = {NAME = 'gotomodel [part name]', DESC = 'Moves your character to a model or multiple models'} CMDs[#CMDs + 1] = {NAME = 'tweengotomodel / tgotomodel [part name]', DESC = 'Tweens your character to a model or multiple models'} CMDs[#CMDs + 1] = {NAME = 'gotopartdelay / gotomodeldelay [num]', DESC = 'Adjusts how quickly you teleport to each part (default is 0.1)'} CMDs[#CMDs + 1] = {NAME = 'bringpart [part name] (CLIENT)', DESC = 'Moves a part or multiple parts to your character'} CMDs[#CMDs + 1] = {NAME = 'bringpartclass / bpc [class name] (CLIENT)', DESC = 'Moves a part or multiple parts to your character based on classname'} CMDs[#CMDs + 1] = {NAME = 'noclickdetectorlimits / nocdlimits', DESC = 'Sets all click detectors MaxActivationDistance to math.huge'} CMDs[#CMDs + 1] = {NAME = 'fireclickdetectors / firecd [name]', DESC = 'Uses all click detectors in a game or uses the optional name'} CMDs[#CMDs + 1] = {NAME = 'firetouchinterests / touchinterests [name]', DESC = 'Uses all touchinterests in a game or uses the optional name'} CMDs[#CMDs + 1] = {NAME = 'noproximitypromptlimits / nopplimits', DESC = 'Sets all proximity prompts MaxActivationDistance to math.huge'} CMDs[#CMDs + 1] = {NAME = 'fireproximityprompts / firepp [name]', DESC = 'Uses all proximity prompts in a game or uses the optional name'} CMDs[#CMDs + 1] = {NAME = 'instantproximityprompts / instantpp', DESC = 'Disable the cooldown for proximity prompts'} CMDs[#CMDs + 1] = {NAME = 'uninstantproximityprompts / uninstantpp', DESC = 'Undo the cooldown removal'} CMDs[#CMDs + 1] = {NAME = 'disableproximityprompts / disablepp', DESC = 'Disables all proximity prompts'} CMDs[#CMDs + 1] = {NAME = 'enableproximityprompts / enablepp', DESC = 'Undoes disableproximityprompts'} CMDs[#CMDs + 1] = {NAME = 'tpunanchored / tpua [player]', DESC = 'Teleports unanchored parts to a player'} CMDs[#CMDs + 1] = {NAME = 'freezeunanchored / freezeua', DESC = 'Freezes unanchored parts'} CMDs[#CMDs + 1] = {NAME = 'thawunanchored / thawua / unfreezeua', DESC = 'Unfreezes unanchored parts'} CMDs[#CMDs + 1] = {NAME = 'removeterrain / rterrain / noterrain', DESC = 'Removes all terrain'} CMDs[#CMDs + 1] = {NAME = 'clearnilinstances / nonilinstances / cni', DESC = 'Removes nil instances'} CMDs[#CMDs + 1] = {NAME = 'destroyheight / dh [num]', DESC = 'Sets FallenPartsDestroyHeight'} CMDs[#CMDs + 1] = {NAME = 'fakeout', DESC = 'Tp to the void and then back (useful to kill people attached to you)'} CMDs[#CMDs + 1] = {NAME = 'antivoid', DESC = 'Prevents you from falling into the void by launching you upwards'} CMDs[#CMDs + 1] = {NAME = 'unantivoid / noantivoid', DESC = 'Disables antivoid'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'fullbright / fb (CLIENT)', DESC = 'Makes the map brighter / more visible'} CMDs[#CMDs + 1] = {NAME = 'unfullbright / unfb (CLIENT)', DESC = 'Undoes fullbright'} CMDs[#CMDs + 1] = {NAME = 'loopfullbright / loopfb (CLIENT)', DESC = 'Makes the map brighter / more visible but looped'} CMDs[#CMDs + 1] = {NAME = 'unloopfullbright / unloopfb', DESC = 'Unloops and undoes fullbright'} CMDs[#CMDs + 1] = {NAME = 'ambient [num] [num] [num] (CLIENT)', DESC = 'Changes ambient'} CMDs[#CMDs + 1] = {NAME = 'unambient (CLIENT)', DESC = 'Undoes ambient'} CMDs[#CMDs + 1] = {NAME = 'day (CLIENT)', DESC = 'Changes the time to day for the client'} CMDs[#CMDs + 1] = {NAME = 'night (CLIENT)', DESC = 'Changes the time to night for the client'} CMDs[#CMDs + 1] = {NAME = 'time [num] (CLIENT)', DESC = 'Sets the time of day to (num) for the client'} CMDs[#CMDs + 1] = {NAME = 'nofog (CLIENT)', DESC = 'Removes fog'} CMDs[#CMDs + 1] = {NAME = 'brightness [num] (CLIENT)', DESC = 'Changes the brightness lighting property'} CMDs[#CMDs + 1] = {NAME = 'dncycle [step] [delay] (CLIENT)', DESC = 'Starts day and night cycle'} CMDs[#CMDs + 1] = {NAME = 'undncycle (CLIENT)', DESC = 'Stops day and night cycle'} CMDs[#CMDs + 1] = {NAME = 'globalshadows / gshadows (CLIENT)', DESC = 'Enables global shadows'} CMDs[#CMDs + 1] = {NAME = 'unglobalshadows / ungshadows (CLIENT)', DESC = 'Disables global shadows'} CMDs[#CMDs + 1] = {NAME = 'restorelighting / rlighting', DESC = 'Restores Lighting properties'} CMDs[#CMDs + 1] = {NAME = 'light [radius] [brightness] (CLIENT)', DESC = 'Gives your player dynamic light'} CMDs[#CMDs + 1] = {NAME = 'nolight / unlight [all] (CLIENT)', DESC = 'Removes dynamic lights from your character. If true, removes all PointLights'} CMDs[#CMDs + 1] = {NAME = 'deletelighting / dlighting', DESC = 'Deletes Lighting properties'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'inspect / examine [player]', DESC = 'Opens InspectMenu for a certain player'} CMDs[#CMDs + 1] = {NAME = 'age [player]', DESC = 'Tells you the age of a player'} CMDs[#CMDs + 1] = {NAME = 'chatage [player]', DESC = 'Chats the age of a player'} CMDs[#CMDs + 1] = {NAME = 'joindate / jd [player]', DESC = 'Tells you the date the player joined Roblox'} CMDs[#CMDs + 1] = {NAME = 'chatjoindate / cjd [player]', DESC = 'Chats the date the player joined Roblox'} CMDs[#CMDs + 1] = {NAME = 'copyname / copyuser [player]', DESC = 'Copies a players full username to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'userid / id [player]', DESC = 'Notifies a players user ID'} CMDs[#CMDs + 1] = {NAME = 'copyplaceid / placeid', DESC = 'Copies the current place id to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'copygameid / gameid', DESC = 'Copies the current game id to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'copyuserid / copyid [player]', DESC = 'Copies a players user ID to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'appearanceid / aid [player]', DESC = 'Notifies a players appearance ID'} CMDs[#CMDs + 1] = {NAME = 'copyappearanceid / caid [player]', DESC = 'Copies a players appearance ID to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'agecheck [player]', DESC = 'Check if a player did age verification'} CMDs[#CMDs + 1] = {NAME = 'bang [player] [speed]', DESC = 'owo'} CMDs[#CMDs + 1] = {NAME = 'unbang', DESC = 'uwu'} CMDs[#CMDs + 1] = {NAME = 'jerk', DESC = 'Makes you jork it'} CMDs[#CMDs + 1] = {NAME = 'scare / spook [player]', DESC = 'Teleports in front of a player for half a second'} CMDs[#CMDs + 1] = {NAME = 'carpet [player]', DESC = 'Be someones carpet'} CMDs[#CMDs + 1] = {NAME = 'uncarpet', DESC = 'Undoes carpet'} CMDs[#CMDs + 1] = {NAME = 'friend [player]', DESC = 'Sends a friend request to certain players'} CMDs[#CMDs + 1] = {NAME = 'unfriend [player]', DESC = 'Unfriends certain players'} CMDs[#CMDs + 1] = {NAME = 'headsit [player]', DESC = 'Sit on a players head'} CMDs[#CMDs + 1] = {NAME = 'walkto / follow [player]', DESC = 'Follow a player'} CMDs[#CMDs + 1] = {NAME = 'pathfindwalkto / pathfindfollow [player]', DESC = 'Follow a player using pathfinding'} CMDs[#CMDs + 1] = {NAME = 'pathfindwalktowaypoint / pathfindwalktowp [waypoint]', DESC = 'Walk to a waypoint using pathfinding'} CMDs[#CMDs + 1] = {NAME = 'unwalkto / unfollow', DESC = 'Stops following a player'} CMDs[#CMDs + 1] = {NAME = 'orbit [player] [speed] [distance]', DESC = 'Makes your character orbit around a player with an optional speed and an optional distance'} CMDs[#CMDs + 1] = {NAME = 'unorbit', DESC = 'Disables orbit'} CMDs[#CMDs + 1] = {NAME = 'stareat / stare [player]', DESC = 'Stare / look at a player'} CMDs[#CMDs + 1] = {NAME = 'unstareat / unstare [player]', DESC = 'Disables stareat'} CMDs[#CMDs + 1] = {NAME = 'rolewatch [group id] [role name]', DESC = 'Notify if someone from a watched group joins the server'} CMDs[#CMDs + 1] = {NAME = 'rolewatchstop / unrolewatch', DESC = 'Disable Rolewatch'} CMDs[#CMDs + 1] = {NAME = 'rolewatchleave', DESC = 'Toggle if you should leave the game if someone from a watched group joins the server'} CMDs[#CMDs + 1] = {NAME = 'staffwatch', DESC = 'Notify if a staff member of the game joins the server'} CMDs[#CMDs + 1] = {NAME = 'unstaffwatch', DESC = 'Disable Staffwatch'} CMDs[#CMDs + 1] = {NAME = 'findfriendgroups', DESC = 'Notifies you if any players are friends with each other'} CMDs[#CMDs + 1] = {NAME = 'handlekill / hkill [player] [radius] (TOOL)', DESC = 'Kills a player using tool damage (YOU NEED A TOOL)'} CMDs[#CMDs + 1] = {NAME = 'fling', DESC = 'Flings anyone you touch'} CMDs[#CMDs + 1] = {NAME = 'unfling', DESC = 'Disables the fling command'} CMDs[#CMDs + 1] = {NAME = 'flyfling [speed]', DESC = 'Basically the invisfling command but not invisible'} CMDs[#CMDs + 1] = {NAME = 'unflyfling', DESC = 'Disables the flyfling command'} CMDs[#CMDs + 1] = {NAME = 'walkfling', DESC = 'Basically fling but no spinning'} CMDs[#CMDs + 1] = {NAME = 'unwalkfling / nowalkfling', DESC = 'Disables walkfling'} CMDs[#CMDs + 1] = {NAME = 'invisfling', DESC = 'Enables invisible fling (the invis part is patched, try using the god command before using this)'} CMDs[#CMDs + 1] = {NAME = 'antifling', DESC = 'Disables player collisions to prevent you from being flung'} CMDs[#CMDs + 1] = {NAME = 'unantifling', DESC = 'Disables antifling'} CMDs[#CMDs + 1] = {NAME = 'loopoof', DESC = 'Loops everyones character sounds (everyone can hear)'} CMDs[#CMDs + 1] = {NAME = 'unloopoof', DESC = 'Stops the oof chaos'} CMDs[#CMDs + 1] = {NAME = 'muteboombox / mutebb [player]', DESC = 'Mutes someones boombox'} CMDs[#CMDs + 1] = {NAME = 'unmuteboombox / unmutebb [player]', DESC = 'Unmutes someones boombox'} CMDs[#CMDs + 1] = {NAME = 'killsounds', DESC = 'Destroys all sounds'} CMDs[#CMDs + 1] = {NAME = 'loopkillsounds', DESC = 'Destroys all sounds and future sounds'} CMDs[#CMDs + 1] = {NAME = 'unloopkillsounds', DESC = 'Disables loopkillsounds'} CMDs[#CMDs + 1] = {NAME = 'stopsounds', DESC = 'Stops all sounds'} CMDs[#CMDs + 1] = {NAME = 'pausesounds', DESC = 'Pauses all sounds'} CMDs[#CMDs + 1] = {NAME = 'playsounds', DESC = 'Plays all sounds'} CMDs[#CMDs + 1] = {NAME = 'hitboxes', DESC = 'Shows all rendered bounding boxes'} CMDs[#CMDs + 1] = {NAME = 'unhitboxes', DESC = 'Stops showing all rendered bounding boxes'} CMDs[#CMDs + 1] = {NAME = 'hitbox [player] [size] [transparency]', DESC = 'Expands the hitbox for players HumanoidRootPart (default is 1)'} CMDs[#CMDs + 1] = {NAME = 'headsize [player] [size]', DESC = 'Expands the head size for players Head (default is 1)'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'reset', DESC = 'Resets your character normally'} CMDs[#CMDs + 1] = {NAME = 'respawn', DESC = 'Respawns you'} CMDs[#CMDs + 1] = {NAME = 'refresh / re', DESC = 'Respawns and brings you back to the same position'} CMDs[#CMDs + 1] = {NAME = 'god', DESC = 'Makes your character difficult to kill in most games'} CMDs[#CMDs + 1] = {NAME = 'invisible / invis', DESC = 'Makes you invisible to other players'} CMDs[#CMDs + 1] = {NAME = 'visible / vis', DESC = 'Makes you visible to other players'} CMDs[#CMDs + 1] = {NAME = 'toolinvisible / toolinvis / tinvis', DESC = 'Makes you invisible to other players and able to use tools'} CMDs[#CMDs + 1] = {NAME = 'speed / ws / walkspeed [num]', DESC = 'Change your walkspeed (default is 16)'} CMDs[#CMDs + 1] = {NAME = 'spoofspeed / spoofws [num]', DESC = 'Spoofs your WalkSpeed on the Client'} CMDs[#CMDs + 1] = {NAME = 'loopspeed / loopws [num]', DESC = 'Loops your walkspeed'} CMDs[#CMDs + 1] = {NAME = 'unloopspeed / unloopws', DESC = 'Turns off loopspeed'} CMDs[#CMDs + 1] = {NAME = 'hipheight / hheight [num]', DESC = 'Adjusts hip height'} CMDs[#CMDs + 1] = {NAME = 'jumppower / jpower / jp [num]', DESC = 'Change a players jump height (default is 50)'} CMDs[#CMDs + 1] = {NAME = 'spoofjumppower / spoofjp [num]', DESC = 'Spoofs your JumpPower on the Client'} CMDs[#CMDs + 1] = {NAME = 'loopjumppower / loopjp [num]', DESC = 'Loops your jump height'} CMDs[#CMDs + 1] = {NAME = 'unloopjumppower / unloopjp', DESC = 'Turns off loopjumppower'} CMDs[#CMDs + 1] = {NAME = 'maxslopeangle / msa [num]', DESC = 'Adjusts MaxSlopeAngle'} CMDs[#CMDs + 1] = {NAME = 'gravity / grav [num] (CLIENT)', DESC = 'Change your gravity'} CMDs[#CMDs + 1] = {NAME = 'sit', DESC = 'Makes your character sit'} CMDs[#CMDs + 1] = {NAME = 'lay / laydown', DESC = 'Makes your character lay down'} CMDs[#CMDs + 1] = {NAME = 'sitwalk', DESC = 'Makes your character sit while still being able to walk'} CMDs[#CMDs + 1] = {NAME = 'unsitwalk', DESC = 'Disables sitwalk'} CMDs[#CMDs + 1] = {NAME = 'nosit', DESC = 'Prevents your character from sitting'} CMDs[#CMDs + 1] = {NAME = 'unnosit', DESC = 'Disables nosit'} CMDs[#CMDs + 1] = {NAME = 'jump', DESC = 'Makes your character jump'} CMDs[#CMDs + 1] = {NAME = 'infinitejump / infjump', DESC = 'Allows you to climb into the air by repeatedly pressing jump'} CMDs[#CMDs + 1] = {NAME = 'uninfinitejump / uninfjump', DESC = 'Disables infinitejump'} CMDs[#CMDs + 1] = {NAME = 'flyjump', DESC = 'Infinite jump that continuously flies upward just by holding the jump button'} CMDs[#CMDs + 1] = {NAME = 'unflyjump', DESC = 'Disables flyjump'} CMDs[#CMDs + 1] = {NAME = 'autojump / ajump', DESC = 'Automatically jumps when you run into an object'} CMDs[#CMDs + 1] = {NAME = 'unautojump / unajump', DESC = 'Disables autojump'} CMDs[#CMDs + 1] = {NAME = 'edgejump / ejump', DESC = 'Automatically jumps when you get to the edge of an object'} CMDs[#CMDs + 1] = {NAME = 'unedgejump / unejump', DESC = 'Disables edgejump'} CMDs[#CMDs + 1] = {NAME = 'bunnyhop / bhop', DESC = 'Causes you to keep jumping even without holding jump'} CMDs[#CMDs + 1] = {NAME = 'unbunnyhop / unbhop', DESC = 'Disables bunnyhop'} CMDs[#CMDs + 1] = {NAME = 'platformstand / stun', DESC = 'Enables PlatformStand'} CMDs[#CMDs + 1] = {NAME = 'unplatformstand / unstun', DESC = 'Disables PlatformStand'} CMDs[#CMDs + 1] = {NAME = 'norotate / noautorotate', DESC = 'Disables AutoRotate'} CMDs[#CMDs + 1] = {NAME = 'unnorotate / autorotate', DESC = 'Enables AutoRotate'} CMDs[#CMDs + 1] = {NAME = 'enablestate [StateType]', DESC = 'Enables a humanoid state type'} CMDs[#CMDs + 1] = {NAME = 'disablestate [StateType]', DESC = 'Disables a humanoid state type'} CMDs[#CMDs + 1] = {NAME = 'team [team name] (CLIENT)', DESC = 'Changes your team. Sometimes fools LocalScripts.'} CMDs[#CMDs + 1] = {NAME = 'nobillboardgui / nobgui / noname', DESC = 'Removes billboard and surface GUIs from your players (i.e. name GUIs at cafes)'} CMDs[#CMDs + 1] = {NAME = 'loopnobgui / loopnoname', DESC = 'Loop removes billboard and surface GUIs from your players (i.e. name GUIs at cafes)'} CMDs[#CMDs + 1] = {NAME = 'unloopnobgui / unloopnoname', DESC = 'Disables loopnobgui'} CMDs[#CMDs + 1] = {NAME = 'noarms', DESC = 'Removes your arms'} CMDs[#CMDs + 1] = {NAME = 'nolegs', DESC = 'Removes your legs'} CMDs[#CMDs + 1] = {NAME = 'nolimbs', DESC = 'Removes your limbs'} CMDs[#CMDs + 1] = {NAME = 'naked (CLIENT)', DESC = 'Removes your clothing'} CMDs[#CMDs + 1] = {NAME = 'noface / removeface', DESC = 'Removes your face'} CMDs[#CMDs + 1] = {NAME = 'blockhead', DESC = 'Turns your head into a block'} CMDs[#CMDs + 1] = {NAME = 'blockhats', DESC = 'Turns your hats into blocks'} CMDs[#CMDs + 1] = {NAME = 'blocktool', DESC = 'Turns the currently selected tool into a block'} CMDs[#CMDs + 1] = {NAME = 'creeper', DESC = 'Makes you look like a creeper'} CMDs[#CMDs + 1] = {NAME = 'drophats', DESC = 'Drops your hats'} CMDs[#CMDs + 1] = {NAME = 'nohats / deletehats / rhats', DESC = 'Deletes your hats'} CMDs[#CMDs + 1] = {NAME = 'hatspin / spinhats [speed]', DESC = 'Spins your characters accessories'} CMDs[#CMDs + 1] = {NAME = 'unhatspin / unspinhats', DESC = 'Undoes spinhats'} CMDs[#CMDs + 1] = {NAME = 'clearhats / cleanhats', DESC = 'Clears hats in the workspace'} CMDs[#CMDs + 1] = {NAME = 'chardelete / cd [instance name]', DESC = 'Removes any part with a certain name from your character'} CMDs[#CMDs + 1] = {NAME = 'chardeleteclass / cdc [class name]', DESC = 'Removes any part with a certain classname from your character'} CMDs[#CMDs + 1] = {NAME = 'deletevelocity / dv / removeforces', DESC = 'Removes any velocity / force instances in your character'} CMDs[#CMDs + 1] = {NAME = 'weaken [num]', DESC = 'Makes your character less dense via CustomPhysicalProperties'} CMDs[#CMDs + 1] = {NAME = 'unweaken', DESC = 'Sets your characters CustomPhysicalProperties to default'} CMDs[#CMDs + 1] = {NAME = 'strengthen [num]', DESC = 'Makes your character more dense via CustomPhysicalProperties'} CMDs[#CMDs + 1] = {NAME = 'unstrengthen', DESC = 'Sets your characters CustomPhysicalProperties to default'} CMDs[#CMDs + 1] = {NAME = 'breakvelocity', DESC = 'Sets your characters velocity to 0'} CMDs[#CMDs + 1] = {NAME = 'spin [speed]', DESC = 'Spins your character'} CMDs[#CMDs + 1] = {NAME = 'unspin', DESC = 'Disables spin'} CMDs[#CMDs + 1] = {NAME = 'split', DESC = 'Splits your character in half'} CMDs[#CMDs + 1] = {NAME = 'nilchar', DESC = 'Sets your characters parent to nil'} CMDs[#CMDs + 1] = {NAME = 'unnilchar / nonilchar', DESC = 'Sets your characters parent to workspace'} CMDs[#CMDs + 1] = {NAME = 'noroot / removeroot / rroot', DESC = 'Removes your characters HumanoidRootPart'} CMDs[#CMDs + 1] = {NAME = 'replaceroot', DESC = 'Replaces your characters HumanoidRootPart'} CMDs[#CMDs + 1] = {NAME = 'clearcharappearance / clearchar / clrchar', DESC = 'Removes all accessory, shirt, pants, charactermesh, and bodycolors'} CMDs[#CMDs + 1] = {NAME = 'tpwalk / teleportwalk [num]', DESC = 'Teleports you to your move direction'} CMDs[#CMDs + 1] = {NAME = 'untpwalk / unteleportwalk', DESC = 'Undoes tpwalk / teleportwalk'} CMDs[#CMDs + 1] = {NAME = 'infpathtools', DESC = 'Makes your tools go in a infinity path'} CMDs[#CMDs + 1] = {NAME = 'uninfpathtools', DESC = 'Stops infpathtools command'} CMDs[#CMDs + 1] = {NAME = 'trip [num] [volatile]', DESC = 'Makes your character fall over (higher num = more velocity/force)'} CMDs[#CMDs + 1] = {NAME = 'wallwalk / walkonwalls', DESC = 'Walk on walls'} CMDs[#CMDs + 1] = {NAME = 'promptr6', DESC = 'Prompts the game to switch your rig type to R6'} CMDs[#CMDs + 1] = {NAME = 'promptr15', DESC = 'Prompts the game to switch your rig type to R15'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'animation / anim [ID] [speed] [overlay]', DESC = 'Makes your character perform an animation (must be an animation on the marketplace or by Roblox/StickMasterLuke to replicate)'} CMDs[#CMDs + 1] = {NAME = 'emote / em [ID] [speed]', DESC = 'Makes your character perform an emote (must be on the marketplace or by Roblox/StickMasterLuke to replicate)'} CMDs[#CMDs + 1] = {NAME = 'dance', DESC = 'Makes you d a n c e'} CMDs[#CMDs + 1] = {NAME = 'undance', DESC = 'Stops dance animations'} CMDs[#CMDs + 1] = {NAME = 'defemote [emote]', DESC = 'Plays default emote'} CMDs[#CMDs + 1] = {NAME = 'spasm', DESC = 'Makes you c r a z y'} CMDs[#CMDs + 1] = {NAME = 'unspasm', DESC = 'Stops spasm'} CMDs[#CMDs + 1] = {NAME = 'headthrow', DESC = 'Simply makes you throw your head'} CMDs[#CMDs + 1] = {NAME = 'hug', DESC = 'Makes you hug'} CMDs[#CMDs + 1] = {NAME = 'unhug', DESC = 'Stops hugging'} CMDs[#CMDs + 1] = {NAME = 'noanim', DESC = 'Disables your animations'} CMDs[#CMDs + 1] = {NAME = 'reanim', DESC = 'Restores your animations'} CMDs[#CMDs + 1] = {NAME = 'animspeed [num]', DESC = 'Changes the speed of your current animation'} CMDs[#CMDs + 1] = {NAME = 'copyanimation / copyanim / copyemote [player]', DESC = 'Copies someone elses animation'} CMDs[#CMDs + 1] = {NAME = 'copyanimationid / copyanimid / copyemoteid [player]', DESC = 'Copies your AnimationId or someone elses to your clipboard'} CMDs[#CMDs + 1] = {NAME = 'loopanimation / loopanim', DESC = 'Loops your current animation'} CMDs[#CMDs + 1] = {NAME = 'stopanimations / stopanims', DESC = 'Stops running animations'} CMDs[#CMDs + 1] = {NAME = 'refreshanimations / refreshanims', DESC = 'Refreshes animations'} CMDs[#CMDs + 1] = {NAME = 'allowcustomanim / allowcustomanimations', DESC = 'Lets you use custom animation packs instead'} CMDs[#CMDs + 1] = {NAME = 'unallowcustomanim / unallowcustomanimations', DESC = 'Doesnt let you use custom animation packs instead'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'autoclick [click delay] [release delay]', DESC = 'Automatically clicks your mouse with a set delay'} CMDs[#CMDs + 1] = {NAME = 'unautoclick / noautoclick', DESC = 'Turns off autoclick'} CMDs[#CMDs + 1] = {NAME = 'autokeypress [key] [down delay] [up delay]', DESC = 'Automatically presses a key with a set delay'} CMDs[#CMDs + 1] = {NAME = 'unautokeypress', DESC = 'Stops autokeypress'} CMDs[#CMDs + 1] = {NAME = 'hovername', DESC = 'Shows a players username when your mouse is hovered over them'} CMDs[#CMDs + 1] = {NAME = 'unhovername / nohovername', DESC = 'Turns off hovername'} CMDs[#CMDs + 1] = {NAME = 'mousesensitivity / ms [0-10]', DESC = 'Sets your mouse sensitivity (affects first person and right click drag) (default is 1)'} CMDs[#CMDs + 1] = {NAME = 'clickdelete', DESC = 'Go to Settings > Keybinds > Add for click delete'} CMDs[#CMDs + 1] = {NAME = 'clickteleport', DESC = 'Go to Settings > Keybinds > Add for click teleport'} CMDs[#CMDs + 1] = {NAME = 'clickfor', DESC = 'Click a player to run (click type) (player)'} CMDs[#CMDs + 1] = {NAME = 'unclickfor', DESC = 'Disables clickfor'} CMDs[#CMDs + 1] = {NAME = 'clicktype [type]', DESC = 'Sets click type'} CMDs[#CMDs + 1] = {NAME = 'mouseteleport / mousetp', DESC = 'Teleports your character to your mouse. This is recommended as a keybind'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'tools', DESC = 'Copies tools from ReplicatedStorage and Lighting'} CMDs[#CMDs + 1] = {NAME = 'notools / removetools / deletetools', DESC = 'Removes tools from character and backpack'} CMDs[#CMDs + 1] = {NAME = 'deleteselectedtool / dst', DESC = 'Removes any currently selected tools'} CMDs[#CMDs + 1] = {NAME = 'grabtools', DESC = 'Automatically get tools that are dropped'} CMDs[#CMDs + 1] = {NAME = 'ungrabtools / nograbtools', DESC = 'Disables grabtools'} CMDs[#CMDs + 1] = {NAME = 'copytools [player] (CLIENT)', DESC = 'Copies a players tools'} CMDs[#CMDs + 1] = {NAME = 'viewbackpack / viewbp [player]', DESC = 'View the tools in a players backpack'} CMDs[#CMDs + 1] = {NAME = 'dupetools / clonetools [num]', DESC = 'Duplicates your inventory tools a set amount of times'} CMDs[#CMDs + 1] = {NAME = 'droptools', DESC = 'Drops your tools'} CMDs[#CMDs + 1] = {NAME = 'droppabletools', DESC = 'Makes your tools droppable'} CMDs[#CMDs + 1] = {NAME = 'equiptools', DESC = 'Equips every tool in your inventory at once'} CMDs[#CMDs + 1] = {NAME = 'unequiptools', DESC = 'Unequips every tool you are currently holding at once'} CMDs[#CMDs + 1] = {NAME = 'removespecifictool [name]', DESC = 'Automatically remove a specific tool from your inventory'} CMDs[#CMDs + 1] = {NAME = 'unremovespecifictool [name]', DESC = 'Stops removing a specific tool from your inventory'} CMDs[#CMDs + 1] = {NAME = 'clearremovespecifictool', DESC = 'Stop removing all specific tools from your inventory'} CMDs[#CMDs + 1] = {NAME = 'reach [num]', DESC = 'Increases the hitbox of your held tool'} CMDs[#CMDs + 1] = {NAME = 'boxreach [num]', DESC = 'Increases the hitbox of your held tool in a box shape'} CMDs[#CMDs + 1] = {NAME = 'unreach / noreach', DESC = 'Turns off reach'} CMDs[#CMDs + 1] = {NAME = 'grippos [X Y Z]', DESC = 'Changes your current tools grip position'} CMDs[#CMDs + 1] = {NAME = 'usetools [amount] [delay]', DESC = 'Activates all tools in your backpack at the same time'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'addalias [cmd] [alias]', DESC = 'Adds an alias to a command'} CMDs[#CMDs + 1] = {NAME = 'removealias [alias]', DESC = 'Removes a custom alias'} CMDs[#CMDs + 1] = {NAME = 'clraliases', DESC = 'Removes all custom aliases'} CMDs[#CMDs + 1] = {NAME = '', DESC = ''} CMDs[#CMDs + 1] = {NAME = 'addplugin / plugin [name]', DESC = 'Add a plugin via command'} CMDs[#CMDs + 1] = {NAME = 'removeplugin / deleteplugin [name]', DESC = 'Remove a plugin via command'} CMDs[#CMDs + 1] = {NAME = 'reloadplugin [name]', DESC = 'Reloads a plugin'} CMDs[#CMDs + 1] = {NAME = 'addallplugins / loadallplugins', DESC = 'Adds all available plugins from the workspace folder'} function checkTT() local t local guisAtPosition = COREGUI:GetGuiObjectsAtPosition(IYMouse.X, IYMouse.Y) for _, gui in pairs(guisAtPosition) do if gui.Parent == CMDsF then t = gui end end if t ~= nil and t:GetAttribute("Title") ~= nil then local x = IYMouse.X local y = IYMouse.Y local xP local yP if IYMouse.X > 200 then xP = x - 201 else xP = x + 21 end if IYMouse.Y > (IYMouse.ViewSizeY-96) then yP = y - 97 else yP = y end Tooltip.Position = UDim2.new(0, xP, 0, yP) Description.Text = t:GetAttribute("Desc") if t:GetAttribute("Title") ~= nil then Title_3.Text = t:GetAttribute("Title") else Title_3.Text = '' end Tooltip.Visible = true else Tooltip.Visible = false end end function FindInTable(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 function GetInTable(Table, Name) for i = 1, #Table do if Table[i] == Name then return i end end return false end function respawn(plr) if invisRunning then TurnVisible() end local char = plr.Character local hum = char:FindFirstChildWhichIsA("Humanoid") local archive = workspace.FallenPartsDestroyHeight local camType = workspace.CurrentCamera.CameraType workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable workspace.FallenPartsDestroyHeight = 0/0 getRoot(char).Position = Vector3.yAxis * archive task.wait(plr:GetNetworkPing()) workspace.FallenPartsDestroyHeight = archive repeat task.wait() until not char.Parent or not hum.Parent or (hum and hum.Health <= 0) if hum then hum:SetStateEnabled(Enum.HumanoidStateType.Dead, true) end end local refreshCmd = false function refresh(plr) refreshCmd = true local root = getRoot(plr.Character) local pos = root.CFrame local pos1 = workspace.CurrentCamera.CFrame respawn(plr) task.spawn(function() local char = plr.CharacterAdded:Wait() local humanoid = char:FindFirstChildOfClass("Humanoid") while not humanoid do wait() humanoid = char:FindFirstChildOfClass("Humanoid") end humanoid.RootPart.CFrame, workspace.CurrentCamera.CFrame = pos, task.wait() and pos1 refreshCmd = false end) end local lastDeath function onDied() task.spawn(function() if pcall(function() Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') end) and Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') then CmdsTrackConnection(Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').Died:Connect(function() if getRoot(Players.LocalPlayer.Character) then lastDeath = getRoot(Players.LocalPlayer.Character).CFrame end end)) else wait(2) onDied() end end) end isClipped = true spDelay = 0.1 local booly = { truthy = { ["true"] = true, ["t"] = true, ["1"] = true, ["yes"] = true, ["y"] = true, ["on"] = true, ["enable"] = true, ["enabled"] = true }, falsy = { ["false"] = true, ["f"] = true, ["0"] = true, ["no"] = true, ["n"] = true, ["off"] = true, ["disable"] = true, ["disabled"] = true }, } function parseBoolean(raw, default) raw = tostring(raw):lower() if booly.truthy[raw] then return true end if booly.falsy[raw] then return false end return default or false end function getstring(begin, args) return table.concat(args or cargs, " ", begin) end findCmd=function(cmd_name) for i,v in pairs(cmds)do if v.NAME:lower()==cmd_name:lower() or FindInTable(v.ALIAS,cmd_name:lower()) then return v end end return customAlias[cmd_name:lower()] end function splitString(str,delim) local broken = {} if delim == nil then delim = "," end for w in string.gmatch(str,"[^"..delim.."]+") do table.insert(broken,w) end return broken end cmdHistory = {} local lastCmds = {} local historyCount = 0 local split=" " local lastBreakTime = 0 function execCmd(cmdStr,speaker,store) cmdStr = cmdStr:gsub("%s+$", "") task.spawn(function() local rawCmdStr = cmdStr cmdStr = string.gsub(cmdStr, "\\\\", "%%BackSlash%%") local commandsToRun = splitString(cmdStr, "\\") for i, v in pairs(commandsToRun) do v = string.gsub(v, "%%BackSlash%%", "\\") local x, y, num = v:find("^(%d+)%^") local cmdDelay = 0 local infTimes = false if num then v = v:sub(y + 1) local x, y, del = v:find("^([%d%.]+)%^") if del then v = v:sub(y + 1) cmdDelay = tonumber(del) or 0 end else local x, y = v:find("^inf%^") if x then infTimes = true v = v:sub(y + 1) local x, y, del = v:find("^([%d%.]+)%^") if del then v = v:sub(y + 1) del = tonumber(del) or 1 cmdDelay = (del > 0 and del or 1) else cmdDelay = 1 end end end num = tonumber(num or 1) if v:sub(1, 1) == "!" then local chunks = splitString(v:sub(2), split) if chunks[1] and lastCmds[chunks[1]] then v = lastCmds[chunks[1]] end end local args = splitString(v, split) local cmdName = args[1] local cmd = findCmd(cmdName) if cmd then table.remove(args, 1) cargs = args if not speaker then speaker = Players.LocalPlayer end if store then if speaker == Players.LocalPlayer then if cmdHistory[1] ~= rawCmdStr and rawCmdStr:sub(1, 11) ~= "lastcommand" and rawCmdStr:sub(1, 7) ~= "lastcmd" then table.insert(cmdHistory, 1, rawCmdStr) end end if #cmdHistory > 30 then table.remove(cmdHistory) end lastCmds[cmdName] = v end local cmdStartTime = tick() if infTimes then while lastBreakTime < cmdStartTime do local success, err = pcall(cmd.FUNC, args, speaker) if not success and _G.IY_DEBUG then warn("Command Error:", cmdName, err) end wait(cmdDelay) end else for rep = 1, num do if lastBreakTime > cmdStartTime then break end local success, err = pcall(cmd.FUNC, args, speaker) if not success and _G.IY_DEBUG then warn("Command Error:", cmdName, err) notify("Command Error: " .. cmdName, "Check console") end if success and type(err) == "string" and not table.find(args, "nonotify") then notify("Command: " .. cmdName, err) end if cmdDelay ~= 0 then wait(cmdDelay) end end end end end end) end function addcmd(name,alias,func,plgn) cmds[#cmds+1]= { NAME=name; ALIAS=alias or {}; FUNC=func; PLUGIN=plgn; } end function removecmd(cmd) if cmd ~= " " then for i = #cmds,1,-1 do if cmds[i].NAME == cmd or FindInTable(cmds[i].ALIAS,cmd) then table.remove(cmds, i) for a,c in pairs(CMDsF:GetChildren()) do if string.find(c.Text, "^"..cmd.."$") or string.find(c.Text, "^"..cmd.." ") or string.find(c.Text, " "..cmd.."$") or string.find(c.Text, " "..cmd.." ") then c.TextTransparency = 0.7 CmdsTrackConnection(c.MouseButton1Click:Connect(function() notify(c.Text, "Command has been disabled by you or a plugin") end)) end end end end end end function overridecmd(name, func) local cmd = findCmd(name) if cmd and cmd.FUNC then cmd.FUNC = func end end function addbind(cmd,key,iskeyup,toggle) if toggle then binds[#binds+1]= { COMMAND=cmd; KEY=key; ISKEYUP=iskeyup; TOGGLE = toggle; } else binds[#binds+1]= { COMMAND=cmd; KEY=key; ISKEYUP=iskeyup; } end end function addcmdtext(text,name,desc) local newcmd = Example:Clone() local tooltipText = tostring(text) local tooltipDesc = tostring(desc) newcmd.Parent = CMDsF newcmd.Visible = false newcmd.Text = text newcmd.Name = 'PLUGIN_'..name table.insert(text1,newcmd) if desc and desc ~= '' then newcmd:SetAttribute("Title", tooltipText) newcmd:SetAttribute("Desc", tooltipDesc) CmdsTrackConnection(newcmd.MouseButton1Down:Connect(function() if newcmd.Visible and newcmd.TextTransparency == 0 then Cmdbar:CaptureFocus() autoComplete(newcmd.Text) maximizeHolder() end end)) end end local WorldToScreen = function(Object) local ObjectVector = workspace.CurrentCamera:WorldToScreenPoint(Object.Position) return Vector2.new(ObjectVector.X, ObjectVector.Y) end local MousePositionToVector2 = function() return Vector2.new(IYMouse.X, IYMouse.Y) end local GetClosestPlayerFromCursor = function() local found = nil local ClosestDistance = math.huge for i, v in pairs(Players:GetPlayers()) do if v ~= Players.LocalPlayer and v.Character and v.Character:FindFirstChildOfClass("Humanoid") then for k, x in pairs(v.Character:GetChildren()) do if string.find(x.Name, "Torso") then local Distance = (WorldToScreen(x) - MousePositionToVector2()).Magnitude if Distance < ClosestDistance then ClosestDistance = Distance found = v end end end end end return found end SpecialPlayerCases = { ["all"] = function(speaker) return Players:GetPlayers() end, ["others"] = function(speaker) local plrs = {} for i,v in pairs(Players:GetPlayers()) do if v ~= speaker then table.insert(plrs,v) end end return plrs end, ["me"] = function(speaker) return {speaker} end, ["#(%d+)"] = function(speaker,args,currentList) local returns = {} local randAmount = tonumber(args[1]) local players = {unpack(currentList)} for i = 1,randAmount do if #players == 0 then break end local randIndex = math.random(1,#players) table.insert(returns,players[randIndex]) table.remove(players,randIndex) end return returns end, ["random"] = function(speaker,args,currentList) local players = Players:GetPlayers() table.remove(players, table.find(players, speaker)) if #players == 0 then return {speaker} end return {players[math.random(1,#players)]} end, ["%%(.+)"] = function(speaker,args) local returns = {} local team = args[1] for _,plr in pairs(Players:GetPlayers()) do if plr.Team and string.sub(string.lower(plr.Team.Name),1,#team) == string.lower(team) then table.insert(returns,plr) end end return returns end, ["allies"] = function(speaker) local returns = {} local team = speaker.Team for _,plr in pairs(Players:GetPlayers()) do if plr.Team == team then table.insert(returns,plr) end end return returns end, ["enemies"] = function(speaker) local returns = {} local team = speaker.Team for _,plr in pairs(Players:GetPlayers()) do if plr.Team ~= team then table.insert(returns,plr) end end return returns end, ["team"] = function(speaker) local returns = {} local team = speaker.Team for _,plr in pairs(Players:GetPlayers()) do if plr.Team == team then table.insert(returns,plr) end end return returns end, ["nonteam"] = function(speaker) local returns = {} local team = speaker.Team for _,plr in pairs(Players:GetPlayers()) do if plr.Team ~= team then table.insert(returns,plr) end end return returns end, ["friends"] = function(speaker,args) local returns = {} for _,plr in pairs(Players:GetPlayers()) do if plr:IsFriendsWith(speaker.UserId) and plr ~= speaker then table.insert(returns,plr) end end return returns end, ["nonfriends"] = function(speaker,args) local returns = {} for _,plr in pairs(Players:GetPlayers()) do if not plr:IsFriendsWith(speaker.UserId) and plr ~= speaker then table.insert(returns,plr) end end return returns end, ["bacons"] = function(speaker,args) local returns = {} for _,plr in pairs(Players:GetPlayers()) do if plr.Character and (plr.Character:FindFirstChild('Pal Hair') or plr.Character:FindFirstChild('Kate Hair')) then table.insert(returns,plr) end end return returns end, ["age(%d+)"] = function(speaker,args) local returns = {} local age = tonumber(args[1]) if not age then return end for _,plr in pairs(Players:GetPlayers()) do if plr.AccountAge <= age then table.insert(returns,plr) end end return returns end, ["nearest"] = function(speaker,args,currentList) local speakerChar = speaker.Character if not speakerChar or not getRoot(speakerChar) then return end local lowest = math.huge local NearestPlayer = nil for _,plr in pairs(currentList) do if plr ~= speaker and plr.Character then local distance = plr:DistanceFromCharacter(getRoot(speakerChar).Position) if distance < lowest then lowest = distance NearestPlayer = {plr} end end end return NearestPlayer end, ["farthest"] = function(speaker,args,currentList) local speakerChar = speaker.Character if not speakerChar or not getRoot(speakerChar) then return end local highest = 0 local Farthest = nil for _,plr in pairs(currentList) do if plr ~= speaker and plr.Character then local distance = plr:DistanceFromCharacter(getRoot(speakerChar).Position) if distance > highest then highest = distance Farthest = {plr} end end end return Farthest end, ["group(%d+)"] = function(speaker,args) local returns = {} local groupID = tonumber(args[1]) for _,plr in pairs(Players:GetPlayers()) do if plr:IsInGroup(groupID) then table.insert(returns,plr) end end return returns end, ["alive"] = function(speaker,args) local returns = {} for _,plr in pairs(Players:GetPlayers()) do if plr.Character and plr.Character:FindFirstChildOfClass("Humanoid") and plr.Character:FindFirstChildOfClass("Humanoid").Health > 0 then table.insert(returns,plr) end end return returns end, ["dead"] = function(speaker,args) local returns = {} for _,plr in pairs(Players:GetPlayers()) do if (not plr.Character or not plr.Character:FindFirstChildOfClass("Humanoid")) or plr.Character:FindFirstChildOfClass("Humanoid").Health <= 0 then table.insert(returns,plr) end end return returns end, ["rad(%d+)"] = function(speaker,args) local returns = {} local radius = tonumber(args[1]) local speakerChar = speaker.Character if not speakerChar or not getRoot(speakerChar) then return end for _,plr in pairs(Players:GetPlayers()) do if plr.Character and getRoot(plr.Character) then local magnitude = (getRoot(plr.Character).Position-getRoot(speakerChar).Position).magnitude if magnitude <= radius then table.insert(returns,plr) end end end return returns end, ["cursor"] = function(speaker) local plrs = {} local v = GetClosestPlayerFromCursor() if v ~= nil then table.insert(plrs, v) end return plrs end, ["npcs"] = function(speaker,args) local returns = {} for _, v in pairs(workspace:GetDescendants()) do if v:IsA("Model") and getRoot(v) and v:FindFirstChildWhichIsA("Humanoid") and Players:GetPlayerFromCharacter(v) == nil then local clone = Instance.new("Player") clone.Name = v.Name .. " - " .. v:FindFirstChildWhichIsA("Humanoid").DisplayName clone.Character = v table.insert(returns, clone) end end return returns end, } function toTokens(str) local tokens = {} for op,name in string.gmatch(str,"([+-])([^+-]+)") do table.insert(tokens,{Operator = op,Name = name}) end return tokens end function onlyIncludeInTable(tab,matches) local matchTable = {} local resultTable = {} for i,v in pairs(matches) do matchTable[v.Name] = true end for i,v in pairs(tab) do if matchTable[v.Name] then table.insert(resultTable,v) end end return resultTable end function removeTableMatches(tab,matches) local matchTable = {} local resultTable = {} for i,v in pairs(matches) do matchTable[v.Name] = true end for i,v in pairs(tab) do if not matchTable[v.Name] then table.insert(resultTable,v) end end return resultTable end function getPlayersByName(Name) local Name,Len,Found = string.lower(Name),#Name,{} for _,v in pairs(Players:GetPlayers()) do if Name:sub(0,1) == '@' then if string.sub(string.lower(v.Name),1,Len-1) == Name:sub(2) then table.insert(Found,v) end else if string.sub(string.lower(v.Name),1,Len) == Name or string.sub(string.lower(v.DisplayName),1,Len) == Name then table.insert(Found,v) end end end return Found end function getSinglePlayer(list,speaker) local matches=getPlayer(list,speaker) assert(matches and #matches>0,"No players match that selector") return matches[math.random(1,#matches)] end function getPlayer(list,speaker) if list == nil then return {speaker.Name} end local nameList = splitString(list,",") local foundList = {} for _,name in pairs(nameList) do if string.sub(name,1,1) ~= "+" and string.sub(name,1,1) ~= "-" then name = "+"..name end local tokens = toTokens(name) local initialPlayers = Players:GetPlayers() for i,v in pairs(tokens) do if v.Operator == "+" then local tokenContent = v.Name local foundCase = false for regex,case in pairs(SpecialPlayerCases) do local matches = {string.match(tokenContent,"^"..regex.."$")} if #matches > 0 then foundCase = true initialPlayers = onlyIncludeInTable(initialPlayers,case(speaker,matches,initialPlayers)) end end if not foundCase then initialPlayers = onlyIncludeInTable(initialPlayers,getPlayersByName(tokenContent)) end else local tokenContent = v.Name local foundCase = false for regex,case in pairs(SpecialPlayerCases) do local matches = {string.match(tokenContent,"^"..regex.."$")} if #matches > 0 then foundCase = true initialPlayers = removeTableMatches(initialPlayers,case(speaker,matches,initialPlayers)) end end if not foundCase then initialPlayers = removeTableMatches(initialPlayers,getPlayersByName(tokenContent)) end end end for i,v in pairs(initialPlayers) do table.insert(foundList,v) end end local foundNames = {} for i,v in pairs(foundList) do table.insert(foundNames,v.Name) end return foundNames end function formatUsername(player) if player.DisplayName ~= player.Name then return string.format("%s (%s)", player.Name, player.DisplayName) end return player.Name end getprfx=function(strn) if strn:sub(1,string.len(prefix))==prefix then return{'cmd',string.len(prefix)+1} end return end function do_exec(str, plr) str = str:gsub('/e ', '') local t = getprfx(str) if not t then return end str = str:sub(t[2]) if t[1]=='cmd' then execCmd(str, plr, true) IndexContents('',true,false,true) CMDsF.CanvasPosition = canvasPos end end lastTextBoxString,lastTextBoxCon,lastEnteredString = nil,nil,nil Cmdbar.PlaceholderText = "Command Bar ("..prefix..")" local tabComplete = nil tabAllowed = true ESPenabled = false CHMSenabled = false function round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end function ESP(plr, logic) task.spawn(function() for i,v in pairs(COREGUI:GetChildren()) do if v.Name == plr.Name..'_ESP' then v:Destroy() end end wait() if plr.Character and plr.Name ~= Players.LocalPlayer.Name and not COREGUI:FindFirstChild(plr.Name..'_ESP') then local ESPholder = Instance.new("Folder") ESPholder.Name = plr.Name..'_ESP' ESPholder.Parent = COREGUI repeat wait(1) until plr.Character and getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") for b,n in pairs (plr.Character:GetChildren()) do if (n:IsA("BasePart")) then local a = Instance.new("BoxHandleAdornment") a.Name = plr.Name a.Parent = ESPholder a.Adornee = n a.AlwaysOnTop = true a.ZIndex = 10 a.Size = n.Size a.Transparency = espTransparency if logic == true then a.Color = BrickColor.new(plr.TeamColor == Players.LocalPlayer.TeamColor and "Bright green" or "Bright red") else a.Color = plr.TeamColor end end end if plr.Character and plr.Character:FindFirstChild('Head') then local BillboardGui = Instance.new("BillboardGui") local TextLabel = Instance.new("TextLabel") BillboardGui.Adornee = plr.Character.Head BillboardGui.Name = plr.Name BillboardGui.Parent = ESPholder BillboardGui.Size = UDim2.new(0, 100, 0, 150) BillboardGui.StudsOffset = Vector3.new(0, 1, 0) BillboardGui.AlwaysOnTop = true TextLabel.Parent = BillboardGui TextLabel.BackgroundTransparency = 1 TextLabel.Position = UDim2.new(0, 0, 0, -50) TextLabel.Size = UDim2.new(0, 100, 0, 100) TextLabel.Font = Enum.Font.SourceSansSemibold TextLabel.TextSize = 20 TextLabel.TextColor3 = Color3.new(1, 1, 1) TextLabel.TextStrokeTransparency = 0 TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom TextLabel.Text = 'Name: '..plr.Name TextLabel.ZIndex = 10 local espLoopFunc local teamChange local addedFunc addedFunc = CmdsTrackConnection(plr.CharacterAdded:Connect(function() if ESPenabled then espLoopFunc:Disconnect() teamChange:Disconnect() ESPholder:Destroy() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") ESP(plr, logic) addedFunc:Disconnect() else teamChange:Disconnect() addedFunc:Disconnect() end end)) teamChange = CmdsTrackConnection(plr:GetPropertyChangedSignal("TeamColor"):Connect(function() if ESPenabled then espLoopFunc:Disconnect() addedFunc:Disconnect() ESPholder:Destroy() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") ESP(plr, logic) teamChange:Disconnect() else teamChange:Disconnect() end end)) local function espLoop() if COREGUI:FindFirstChild(plr.Name..'_ESP') then if plr.Character and getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") and Players.LocalPlayer.Character and getRoot(Players.LocalPlayer.Character) and Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then local pos = math.floor((getRoot(Players.LocalPlayer.Character).Position - getRoot(plr.Character).Position).magnitude) TextLabel.Text = 'Name: '..plr.Name..' | Health: '..round(plr.Character:FindFirstChildOfClass('Humanoid').Health, 1)..' | Studs: '..pos end else teamChange:Disconnect() addedFunc:Disconnect() espLoopFunc:Disconnect() end end espLoopFunc = CmdsTrackConnection(RunService.RenderStepped:Connect(espLoop)) end end end) end function CHMS(plr) task.spawn(function() for i,v in pairs(COREGUI:GetChildren()) do if v.Name == plr.Name..'_CHMS' then v:Destroy() end end wait() if plr.Character and plr.Name ~= Players.LocalPlayer.Name and not COREGUI:FindFirstChild(plr.Name..'_CHMS') then local ESPholder = Instance.new("Folder") ESPholder.Name = plr.Name..'_CHMS' ESPholder.Parent = COREGUI repeat wait(1) until plr.Character and getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") for b,n in pairs (plr.Character:GetChildren()) do if (n:IsA("BasePart")) then local a = Instance.new("BoxHandleAdornment") a.Name = plr.Name a.Parent = ESPholder a.Adornee = n a.AlwaysOnTop = true a.ZIndex = 10 a.Size = n.Size a.Transparency = espTransparency a.Color = plr.TeamColor end end local addedFunc local teamChange local CHMSremoved addedFunc = CmdsTrackConnection(plr.CharacterAdded:Connect(function() if CHMSenabled then ESPholder:Destroy() teamChange:Disconnect() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") CHMS(plr) addedFunc:Disconnect() else teamChange:Disconnect() addedFunc:Disconnect() end end)) teamChange = CmdsTrackConnection(plr:GetPropertyChangedSignal("TeamColor"):Connect(function() if CHMSenabled then ESPholder:Destroy() addedFunc:Disconnect() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") CHMS(plr) teamChange:Disconnect() else teamChange:Disconnect() end end)) CHMSremoved = CmdsTrackConnection(ESPholder.AncestryChanged:Connect(function() teamChange:Disconnect() addedFunc:Disconnect() CHMSremoved:Disconnect() end)) end end) end function Locate(plr) task.spawn(function() for i,v in pairs(COREGUI:GetChildren()) do if v.Name == plr.Name..'_LC' then v:Destroy() end end wait() if plr.Character and plr.Name ~= Players.LocalPlayer.Name and not COREGUI:FindFirstChild(plr.Name..'_LC') then local ESPholder = Instance.new("Folder") ESPholder.Name = plr.Name..'_LC' ESPholder.Parent = COREGUI repeat wait(1) until plr.Character and getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") for b,n in pairs (plr.Character:GetChildren()) do if (n:IsA("BasePart")) then local a = Instance.new("BoxHandleAdornment") a.Name = plr.Name a.Parent = ESPholder a.Adornee = n a.AlwaysOnTop = true a.ZIndex = 10 a.Size = n.Size a.Transparency = espTransparency a.Color = plr.TeamColor end end if plr.Character and plr.Character:FindFirstChild('Head') then local BillboardGui = Instance.new("BillboardGui") local TextLabel = Instance.new("TextLabel") BillboardGui.Adornee = plr.Character.Head BillboardGui.Name = plr.Name BillboardGui.Parent = ESPholder BillboardGui.Size = UDim2.new(0, 100, 0, 150) BillboardGui.StudsOffset = Vector3.new(0, 1, 0) BillboardGui.AlwaysOnTop = true TextLabel.Parent = BillboardGui TextLabel.BackgroundTransparency = 1 TextLabel.Position = UDim2.new(0, 0, 0, -50) TextLabel.Size = UDim2.new(0, 100, 0, 100) TextLabel.Font = Enum.Font.SourceSansSemibold TextLabel.TextSize = 20 TextLabel.TextColor3 = Color3.new(1, 1, 1) TextLabel.TextStrokeTransparency = 0 TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom TextLabel.Text = 'Name: '..plr.Name TextLabel.ZIndex = 10 local lcLoopFunc local addedFunc local teamChange addedFunc = CmdsTrackConnection(plr.CharacterAdded:Connect(function() if ESPholder ~= nil and ESPholder.Parent ~= nil then lcLoopFunc:Disconnect() teamChange:Disconnect() ESPholder:Destroy() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") Locate(plr) addedFunc:Disconnect() else teamChange:Disconnect() addedFunc:Disconnect() end end)) teamChange = CmdsTrackConnection(plr:GetPropertyChangedSignal("TeamColor"):Connect(function() if ESPholder ~= nil and ESPholder.Parent ~= nil then lcLoopFunc:Disconnect() addedFunc:Disconnect() ESPholder:Destroy() repeat wait(1) until getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") Locate(plr) teamChange:Disconnect() else teamChange:Disconnect() end end)) local function lcLoop() if COREGUI:FindFirstChild(plr.Name..'_LC') then if plr.Character and getRoot(plr.Character) and plr.Character:FindFirstChildOfClass("Humanoid") and Players.LocalPlayer.Character and getRoot(Players.LocalPlayer.Character) and Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then local pos = math.floor((getRoot(Players.LocalPlayer.Character).Position - getRoot(plr.Character).Position).magnitude) TextLabel.Text = 'Name: '..plr.Name..' | Health: '..round(plr.Character:FindFirstChildOfClass('Humanoid').Health, 1)..' | Studs: '..pos end else teamChange:Disconnect() addedFunc:Disconnect() lcLoopFunc:Disconnect() end end lcLoopFunc = CmdsTrackConnection(RunService.RenderStepped:Connect(lcLoop)) end end end) end local bindsGUI = KeybindEditor local awaitingInput = false local keySelected = false function refreshbinds() if Holder_2 then Holder_2:ClearAllChildren() Holder_2.CanvasSize = UDim2.new(0, 0, 0, 10) for i = 1, #binds do local YSize = 25 local Position = ((i * YSize) - YSize) local newbind = Example_2:Clone() newbind.Parent = Holder_2 newbind.Visible = true newbind.Position = UDim2.new(0,0,0, Position + 5) table.insert(shade2,newbind) table.insert(shade2,newbind.Text) table.insert(text1,newbind.Text) table.insert(shade3,newbind.Text.Delete) table.insert(text2,newbind.Text.Delete) local input = tostring(binds[i].KEY) local key if input == 'RightClick' or input == 'LeftClick' then key = input else key = input:sub(14) end if binds[i].TOGGLE then newbind.Text.Text = key.." > "..binds[i].COMMAND.." / "..binds[i].TOGGLE else newbind.Text.Text = key.." > "..binds[i].COMMAND.." "..(binds[i].ISKEYUP and "(keyup)" or "(keydown)") end Holder_2.CanvasSize = UDim2.new(0,0,0, Position + 30) CmdsTrackConnection(newbind.Text.Delete.MouseButton1Click:Connect(function() unkeybind(binds[i].COMMAND,binds[i].KEY) end)) end end end toggleOn = {} function unkeybind(cmd,key) for i = #binds,1,-1 do if binds[i].COMMAND == cmd and binds[i].KEY == key then toggleOn[binds[i]] = nil table.remove(binds, i) end end refreshbinds() updatesaves() if key == 'RightClick' or key == 'LeftClick' then notify('Keybinds Updated','Unbinded '..key..' from '..cmd) else notify('Keybinds Updated','Unbinded '..key:sub(14)..' from '..cmd) end end function refreshwaypoints() if #WayPoints > 0 or #pWayPoints > 0 then PositionsHint:Destroy() end if Holder_4 then Holder_4:ClearAllChildren() Holder_4.CanvasSize = UDim2.new(0, 0, 0, 10) local YSize = 25 local num = 1 for i = 1, #WayPoints do local Position = ((num * YSize) - YSize) local newpoint = Example_4:Clone() newpoint.Parent = Holder_4 newpoint.Visible = true newpoint.Position = UDim2.new(0,0,0, Position + 5) newpoint.Text.Text = WayPoints[i].NAME table.insert(shade2,newpoint) table.insert(shade2,newpoint.Text) table.insert(text1,newpoint.Text) table.insert(shade3,newpoint.Text.Delete) table.insert(text2,newpoint.Text.Delete) table.insert(shade3,newpoint.Text.TP) table.insert(text2,newpoint.Text.TP) Holder_4.CanvasSize = UDim2.new(0,0,0, Position + 30) CmdsTrackConnection(newpoint.Text.Delete.MouseButton1Click:Connect(function() execCmd('dpos '..WayPoints[i].NAME) end)) CmdsTrackConnection(newpoint.Text.TP.MouseButton1Click:Connect(function() execCmd("loadpos "..WayPoints[i].NAME) end)) num = num+1 end for i = 1, #pWayPoints do local Position = ((num * YSize) - YSize) local newpoint = Example_4:Clone() newpoint.Parent = Holder_4 newpoint.Visible = true newpoint.Position = UDim2.new(0,0,0, Position + 5) newpoint.Text.Text = pWayPoints[i].NAME table.insert(shade2,newpoint) table.insert(shade2,newpoint.Text) table.insert(text1,newpoint.Text) table.insert(shade3,newpoint.Text.Delete) table.insert(text2,newpoint.Text.Delete) table.insert(shade3,newpoint.Text.TP) table.insert(text2,newpoint.Text.TP) Holder_4.CanvasSize = UDim2.new(0,0,0, Position + 30) CmdsTrackConnection(newpoint.Text.Delete.MouseButton1Click:Connect(function() execCmd('dpos '..pWayPoints[i].NAME) end)) CmdsTrackConnection(newpoint.Text.TP.MouseButton1Click:Connect(function() execCmd("loadpos "..pWayPoints[i].NAME) end)) num = num+1 end end end function refreshaliases() if #aliases > 0 then AliasHint:Destroy() end if Holder_3 then Holder_3:ClearAllChildren() Holder_3.CanvasSize = UDim2.new(0, 0, 0, 10) for i = 1, #aliases do local YSize = 25 local Position = ((i * YSize) - YSize) local newalias = Example_3:Clone() newalias.Parent = Holder_3 newalias.Visible = true newalias.Position = UDim2.new(0,0,0, Position + 5) newalias.Text.Text = aliases[i].CMD.." > "..aliases[i].ALIAS table.insert(shade2,newalias) table.insert(shade2,newalias.Text) table.insert(text1,newalias.Text) table.insert(shade3,newalias.Text.Delete) table.insert(text2,newalias.Text.Delete) Holder_3.CanvasSize = UDim2.new(0,0,0, Position + 30) CmdsTrackConnection(newalias.Text.Delete.MouseButton1Click:Connect(function() execCmd('removealias '..aliases[i].ALIAS) end)) end end end local bindChosenKeyUp = false newToggle = false Cmdbar_3.Parent.Visible = false function onInputBegan(input,gameProcessed) if awaitingInput then if input.UserInputType == Enum.UserInputType.Keyboard then keyPressed = tostring(input.KeyCode) BindTo.Text = keyPressed:sub(14) elseif input.UserInputType == Enum.UserInputType.MouseButton1 then keyPressed = 'LeftClick' BindTo.Text = 'LeftClick' elseif input.UserInputType == Enum.UserInputType.MouseButton2 then keyPressed = 'RightClick' BindTo.Text = 'RightClick' end awaitingInput = false keySelected = true end if not gameProcessed and #binds > 0 then for i,v in pairs(binds) do if not v.ISKEYUP then if (input.UserInputType == Enum.UserInputType.Keyboard and v.KEY:lower()==tostring(input.KeyCode):lower()) or (input.UserInputType == Enum.UserInputType.MouseButton1 and v.KEY:lower()=='leftclick') or (input.UserInputType == Enum.UserInputType.MouseButton2 and v.KEY:lower()=='rightclick') then if v.TOGGLE then local isOn = toggleOn[v] == true toggleOn[v] = not isOn if isOn then execCmd(v.TOGGLE,Players.LocalPlayer) else execCmd(v.COMMAND,Players.LocalPlayer) end else execCmd(v.COMMAND,Players.LocalPlayer) end end end end end end function onInputEnded(input,gameProcessed) if not gameProcessed and #binds > 0 then for i,v in pairs(binds) do if v.ISKEYUP then if (input.UserInputType == Enum.UserInputType.Keyboard and v.KEY:lower()==tostring(input.KeyCode):lower()) or (input.UserInputType == Enum.UserInputType.MouseButton1 and v.KEY:lower()=='leftclick') or (input.UserInputType == Enum.UserInputType.MouseButton2 and v.KEY:lower()=='rightclick') then execCmd(v.COMMAND,Players.LocalPlayer) end end end end end local function clicktpFunc() pcall(function() local character = Players.LocalPlayer.Character local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.SeatPart then humanoid.Sit = false wait(0.1) end local hipHeight = humanoid and humanoid.HipHeight > 0 and (humanoid.HipHeight + 1) local rootPart = getRoot(character) local rootPartPosition = rootPart.Position local hitPosition = IYMouse.Hit.Position local newCFrame = CFrame.new( hitPosition, Vector3.new(rootPartPosition.X, hitPosition.Y, rootPartPosition.Z) ) * CFrame.Angles(0, math.pi, 0) rootPart.CFrame = newCFrame + Vector3.new(0, hipHeight or 4, 0) breakVelocity() end) end clickFor = false clickType = "bang" PluginsGUI = PluginEditor.background function addPlugin(name) if name:lower() == 'plugin file name' or name:lower() == 'iy_fe.iy' or name == 'iy_fe' then notify('Plugin Error','Please enter a valid plugin') else local file local fileName if name:sub(-3) == '.iy' then pcall(function() file = readfile(name) end) fileName = name else pcall(function() file = readfile(name..'.iy') end) fileName = name..'.iy' end if file then if not FindInTable(PluginsTable, fileName) then table.insert(PluginsTable, fileName) LoadPlugin(fileName) refreshplugins() pcall(eventEditor.Refresh) else notify('Plugin Error','This plugin is already added') end else notify('Plugin Error','Cannot locate file "'..fileName..'". Is the file in the correct folder?') end end end function deletePlugin(name) local pName = name..'.iy' if name:sub(-3) == '.iy' then pName = name end for i = #cmds,1,-1 do if cmds[i].PLUGIN == pName then table.remove(cmds, i) end end for i,v in pairs(CMDsF:GetChildren()) do if v.Name == 'PLUGIN_'..pName then v:Destroy() end end for i,v in pairs(PluginsTable) do if v == pName then table.remove(PluginsTable, i) notify('Removed Plugin',pName..' was removed') end end IndexContents('',true) refreshplugins() end function refreshplugins(dontSave) if #PluginsTable > 0 then PluginsHint:Destroy() end if Holder_5 then Holder_5:ClearAllChildren() Holder_5.CanvasSize = UDim2.new(0, 0, 0, 10) for i,v in pairs(PluginsTable) do local pName = v local YSize = 25 local Position = ((i * YSize) - YSize) local newplugin = Example_5:Clone() newplugin.Parent = Holder_5 newplugin.Visible = true newplugin.Position = UDim2.new(0,0,0, Position + 5) newplugin.Text.Text = pName table.insert(shade2,newplugin) table.insert(shade2,newplugin.Text) table.insert(text1,newplugin.Text) table.insert(shade3,newplugin.Text.Delete) table.insert(text2,newplugin.Text.Delete) Holder_5.CanvasSize = UDim2.new(0,0,0, Position + 30) CmdsTrackConnection(newplugin.Text.Delete.MouseButton1Click:Connect(function() deletePlugin(pName) end)) end if not dontSave then updatesaves() end end end local PluginCache function LoadPlugin(val,startup) local plugin function CatchedPluginLoad() plugin = loadfile(val)() end function handlePluginError(plerror) notify('Plugin Error','An error occurred with the plugin, "'..val..'" and it could not be loaded') if FindInTable(PluginsTable,val) then for i,v in pairs(PluginsTable) do if v == val then table.remove(PluginsTable,i) end end end updatesaves() print("Original Error: "..tostring(plerror)) print("Plugin Error, stack traceback: "..tostring(debug.traceback())) plugin = nil return false end xpcall(CatchedPluginLoad, handlePluginError) if plugin ~= nil then if not startup then notify('Loaded Plugin',"Name: "..plugin["PluginName"].."\n".."Description: "..plugin["PluginDescription"]) end addcmdtext('',val) addcmdtext(string.upper('--'..plugin["PluginName"]),val,plugin["PluginDescription"]) if plugin["Commands"] then for i,v in pairs(plugin["Commands"]) do local cmdExt = '' local cmdName = i local function handleNames() cmdName = i if findCmd(cmdName..cmdExt) then if isNumber(cmdExt) then cmdExt = cmdExt+1 else cmdExt = 1 end handleNames() else cmdName = cmdName..cmdExt end end handleNames() addcmd(cmdName, v["Aliases"], v["Function"], val) if v["ListName"] then local newName = v.ListName local cmdNames = {i,unpack(v.Aliases)} for i,v in pairs(cmdNames) do newName = newName:gsub(v,v..cmdExt) end addcmdtext(newName,val,v["Description"]) else addcmdtext(cmdName,val,v["Description"]) end end end IndexContents('',true) elseif plugin == nil then plugin = nil end end function FindPlugins() if PluginsTable ~= nil and type(PluginsTable) == "table" then for i,v in pairs(PluginsTable) do LoadPlugin(v,true) end refreshplugins(true) end end local TeleportCheck = false local canOpenServerinfo = true addcmd('serverinfo',{'info','sinfo'},function(args, speaker) if not canOpenServerinfo then return end canOpenServerinfo = false task.spawn(function() local FRAME = Instance.new("Frame") local shadow = Instance.new("Frame") local PopupText = Instance.new("TextLabel") local Exit = Instance.new("TextButton") local ExitImage = Instance.new("ImageLabel") local background = Instance.new("Frame") local TextLabel = Instance.new("TextLabel") local TextLabel2 = Instance.new("TextLabel") local TextLabel3 = Instance.new("TextLabel") local Time = Instance.new("TextLabel") local appearance = Instance.new("TextLabel") local maxplayers = Instance.new("TextLabel") local name = Instance.new("TextLabel") local placeid = Instance.new("TextLabel") local playerid = Instance.new("TextLabel") local players = Instance.new("TextLabel") local CopyApp = Instance.new("TextButton") local CopyPlrID = Instance.new("TextButton") local CopyPlcID = Instance.new("TextButton") local CopyPlcName = Instance.new("TextButton") FRAME.Name = randomString() FRAME.Parent = ScaledHolder FRAME.Active = true FRAME.BackgroundTransparency = 1 FRAME.Position = UDim2.new(0.5, -130, 0, -500) FRAME.Size = UDim2.new(0, 250, 0, 20) FRAME.ZIndex = 10 dragGUI(FRAME) shadow.Name = "shadow" shadow.Parent = FRAME shadow.BackgroundColor3 = currentShade2 shadow.BorderSizePixel = 0 shadow.Size = UDim2.new(0, 250, 0, 20) shadow.ZIndex = 10 table.insert(shade2,shadow) PopupText.Name = "PopupText" PopupText.Parent = shadow PopupText.BackgroundTransparency = 1 PopupText.Size = UDim2.new(1, 0, 0.95, 0) PopupText.ZIndex = 10 PopupText.Font = Enum.Font.SourceSans PopupText.TextSize = 14 PopupText.Text = "Server" PopupText.TextColor3 = currentText1 PopupText.TextWrapped = true table.insert(text1,PopupText) Exit.Name = "Exit" Exit.Parent = shadow Exit.BackgroundTransparency = 1 Exit.Position = UDim2.new(1, -20, 0, 0) Exit.Size = UDim2.new(0, 20, 0, 20) Exit.Text = "" Exit.ZIndex = 10 ExitImage.Parent = Exit ExitImage.BackgroundColor3 = Color3.new(1, 1, 1) ExitImage.BackgroundTransparency = 1 ExitImage.Position = UDim2.new(0, 5, 0, 5) ExitImage.Size = UDim2.new(0, 10, 0, 10) ExitImage.Image = getcustomasset("infiniteyield/assets/close.png") ExitImage.ZIndex = 10 background.Name = "background" background.Parent = FRAME background.Active = true background.BackgroundColor3 = currentShade1 background.BorderSizePixel = 0 background.Position = UDim2.new(0, 0, 1, 0) background.Size = UDim2.new(0, 250, 0, 250) background.ZIndex = 10 table.insert(shade1,background) TextLabel.Name = "Text Label" TextLabel.Parent = background TextLabel.BackgroundTransparency = 1 TextLabel.BorderSizePixel = 0 TextLabel.Position = UDim2.new(0, 5, 0, 80) TextLabel.Size = UDim2.new(0, 100, 0, 20) TextLabel.ZIndex = 10 TextLabel.Font = Enum.Font.SourceSansLight TextLabel.TextSize = 20 TextLabel.Text = "Run Time:" TextLabel.TextColor3 = currentText1 TextLabel.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,TextLabel) TextLabel2.Name = "Text Label2" TextLabel2.Parent = background TextLabel2.BackgroundTransparency = 1 TextLabel2.BorderSizePixel = 0 TextLabel2.Position = UDim2.new(0, 5, 0, 130) TextLabel2.Size = UDim2.new(0, 100, 0, 20) TextLabel2.ZIndex = 10 TextLabel2.Font = Enum.Font.SourceSansLight TextLabel2.TextSize = 20 TextLabel2.Text = "Statistics:" TextLabel2.TextColor3 = currentText1 TextLabel2.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,TextLabel2) TextLabel3.Name = "Text Label3" TextLabel3.Parent = background TextLabel3.BackgroundTransparency = 1 TextLabel3.BorderSizePixel = 0 TextLabel3.Position = UDim2.new(0, 5, 0, 10) TextLabel3.Size = UDim2.new(0, 100, 0, 20) TextLabel3.ZIndex = 10 TextLabel3.Font = Enum.Font.SourceSansLight TextLabel3.TextSize = 20 TextLabel3.Text = "Local Player:" TextLabel3.TextColor3 = currentText1 TextLabel3.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,TextLabel3) Time.Name = "Time" Time.Parent = background Time.BackgroundTransparency = 1 Time.BorderSizePixel = 0 Time.Position = UDim2.new(0, 5, 0, 105) Time.Size = UDim2.new(0, 100, 0, 20) Time.ZIndex = 10 Time.Font = Enum.Font.SourceSans Time.FontSize = Enum.FontSize.Size14 Time.Text = "LOADING" Time.TextColor3 = currentText1 Time.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,Time) appearance.Name = "appearance" appearance.Parent = background appearance.BackgroundTransparency = 1 appearance.BorderSizePixel = 0 appearance.Position = UDim2.new(0, 5, 0, 55) appearance.Size = UDim2.new(0, 100, 0, 20) appearance.ZIndex = 10 appearance.Font = Enum.Font.SourceSans appearance.FontSize = Enum.FontSize.Size14 appearance.Text = "Appearance: LOADING" appearance.TextColor3 = currentText1 appearance.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,appearance) maxplayers.Name = "maxplayers" maxplayers.Parent = background maxplayers.BackgroundTransparency = 1 maxplayers.BorderSizePixel = 0 maxplayers.Position = UDim2.new(0, 5, 0, 175) maxplayers.Size = UDim2.new(0, 100, 0, 20) maxplayers.ZIndex = 10 maxplayers.Font = Enum.Font.SourceSans maxplayers.FontSize = Enum.FontSize.Size14 maxplayers.Text = "LOADING" maxplayers.TextColor3 = currentText1 maxplayers.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,maxplayers) name.Name = "name" name.Parent = background name.BackgroundTransparency = 1 name.BorderSizePixel = 0 name.Position = UDim2.new(0, 5, 0, 215) name.Size = UDim2.new(0, 240, 0, 30) name.ZIndex = 10 name.Font = Enum.Font.SourceSans name.FontSize = Enum.FontSize.Size14 name.Text = "Place Name: LOADING" name.TextColor3 = currentText1 name.TextWrapped = true name.TextXAlignment = Enum.TextXAlignment.Left name.TextYAlignment = Enum.TextYAlignment.Top table.insert(text1,name) placeid.Name = "placeid" placeid.Parent = background placeid.BackgroundTransparency = 1 placeid.BorderSizePixel = 0 placeid.Position = UDim2.new(0, 5, 0, 195) placeid.Size = UDim2.new(0, 100, 0, 20) placeid.ZIndex = 10 placeid.Font = Enum.Font.SourceSans placeid.FontSize = Enum.FontSize.Size14 placeid.Text = "Place ID: LOADING" placeid.TextColor3 = currentText1 placeid.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,placeid) playerid.Name = "playerid" playerid.Parent = background playerid.BackgroundTransparency = 1 playerid.BorderSizePixel = 0 playerid.Position = UDim2.new(0, 5, 0, 35) playerid.Size = UDim2.new(0, 100, 0, 20) playerid.ZIndex = 10 playerid.Font = Enum.Font.SourceSans playerid.FontSize = Enum.FontSize.Size14 playerid.Text = "Player ID: LOADING" playerid.TextColor3 = currentText1 playerid.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,playerid) players.Name = "players" players.Parent = background players.BackgroundTransparency = 1 players.BorderSizePixel = 0 players.Position = UDim2.new(0, 5, 0, 155) players.Size = UDim2.new(0, 100, 0, 20) players.ZIndex = 10 players.Font = Enum.Font.SourceSans players.FontSize = Enum.FontSize.Size14 players.Text = "LOADING" players.TextColor3 = currentText1 players.TextXAlignment = Enum.TextXAlignment.Left table.insert(text1,players) CopyApp.Name = "CopyApp" CopyApp.Parent = background CopyApp.BackgroundColor3 = currentShade2 CopyApp.BorderSizePixel = 0 CopyApp.Position = UDim2.new(0, 210, 0, 55) CopyApp.Size = UDim2.new(0, 35, 0, 20) CopyApp.Font = Enum.Font.SourceSans CopyApp.TextSize = 14 CopyApp.Text = "Copy" CopyApp.TextColor3 = currentText1 CopyApp.ZIndex = 10 table.insert(shade2,CopyApp) table.insert(text1,CopyApp) CopyPlrID.Name = "CopyPlrID" CopyPlrID.Parent = background CopyPlrID.BackgroundColor3 = currentShade2 CopyPlrID.BorderSizePixel = 0 CopyPlrID.Position = UDim2.new(0, 210, 0, 35) CopyPlrID.Size = UDim2.new(0, 35, 0, 20) CopyPlrID.Font = Enum.Font.SourceSans CopyPlrID.TextSize = 14 CopyPlrID.Text = "Copy" CopyPlrID.TextColor3 = currentText1 CopyPlrID.ZIndex = 10 table.insert(shade2,CopyPlrID) table.insert(text1,CopyPlrID) CopyPlcID.Name = "CopyPlcID" CopyPlcID.Parent = background CopyPlcID.BackgroundColor3 = currentShade2 CopyPlcID.BorderSizePixel = 0 CopyPlcID.Position = UDim2.new(0, 210, 0, 195) CopyPlcID.Size = UDim2.new(0, 35, 0, 20) CopyPlcID.Font = Enum.Font.SourceSans CopyPlcID.TextSize = 14 CopyPlcID.Text = "Copy" CopyPlcID.TextColor3 = currentText1 CopyPlcID.ZIndex = 10 table.insert(shade2,CopyPlcID) table.insert(text1,CopyPlcID) CopyPlcName.Name = "CopyPlcName" CopyPlcName.Parent = background CopyPlcName.BackgroundColor3 = currentShade2 CopyPlcName.BorderSizePixel = 0 CopyPlcName.Position = UDim2.new(0, 210, 0, 215) CopyPlcName.Size = UDim2.new(0, 35, 0, 20) CopyPlcName.Font = Enum.Font.SourceSans CopyPlcName.TextSize = 14 CopyPlcName.Text = "Copy" CopyPlcName.TextColor3 = currentText1 CopyPlcName.ZIndex = 10 table.insert(shade2,CopyPlcName) table.insert(text1,CopyPlcName) local SINFOGUI = background FRAME:TweenPosition(UDim2.new(0.5, -130, 0, 100), "InOut", "Quart", 0.5, true, nil) wait(0.5) CmdsTrackConnection(Exit.MouseButton1Click:Connect(function() FRAME:TweenPosition(UDim2.new(0.5, -130, 0, -500), "InOut", "Quart", 0.5, true, nil) wait(0.6) FRAME:Destroy() canOpenServerinfo = true end)) local Asset = MarketplaceService:GetProductInfo(PlaceId) SINFOGUI.name.Text = "Place Name: " .. Asset.Name SINFOGUI.playerid.Text = "Player ID: " ..speaker.UserId SINFOGUI.maxplayers.Text = Players.MaxPlayers.. " Players Max" SINFOGUI.placeid.Text = "Place ID: " ..PlaceId CmdsTrackConnection(CopyApp.MouseButton1Click:Connect(function() toClipboard(speaker.CharacterAppearanceId) end)) CmdsTrackConnection(CopyPlrID.MouseButton1Click:Connect(function() toClipboard(speaker.UserId) end)) CmdsTrackConnection(CopyPlcID.MouseButton1Click:Connect(function() toClipboard(PlaceId) end)) CmdsTrackConnection(CopyPlcName.MouseButton1Click:Connect(function() toClipboard(Asset.Name) end)) repeat players = Players:GetPlayers() SINFOGUI.players.Text = #players.. " Player(s)" SINFOGUI.appearance.Text = "Appearance: " ..speaker.CharacterAppearanceId local seconds = math.floor(workspace.DistributedGameTime) local minutes = math.floor(workspace.DistributedGameTime / 60) local hours = math.floor(workspace.DistributedGameTime / 60 / 60) local seconds = seconds - (minutes * 60) local minutes = minutes - (hours * 60) if hours < 1 then if minutes < 1 then SINFOGUI.Time.Text = seconds .. " Second(s)" else SINFOGUI.Time.Text = minutes .. " Minute(s), " .. seconds .. " Second(s)" end else SINFOGUI.Time.Text = hours .. " Hour(s), " .. minutes .. " Minute(s), " .. seconds .. " Second(s)" end wait(1) until SINFOGUI.Parent == nil end) end) addcmd("jobid", {"copyjobid"}, function(args, speaker) toClipboard("roblox://placeId=" .. PlaceId .. "&gameInstanceId=" .. JobId) end) addcmd('notifyjobid',{},function(args, speaker) notify('JobId / PlaceId',JobId..' / '..PlaceId) end) addcmd("joinjobid", {"jjid", "jid"}, function(args, speaker) if not args[1] then return notify("Join JobId", "You must provide a JobId.") end local success, err = pcall(function() TeleportService:TeleportToPlaceInstance(PlaceId, args[1], Players.LocalPlayer) end) if success then notify("Join JobId", "Attempting to join server...") else notify("Join JobId Error", tostring(err)) end end) addcmd('breakloops',{'break'},function(args, speaker) lastBreakTime = tick() end) addcmd('gametp',{'gameteleport'},function(args, speaker) if not args[1] then return end TeleportService:Teleport(args[1]) end) teleportRespawnHandler = [[ local ok, data = pcall(function() return game:GetService("TeleportService"):GetLocalPlayerTeleportData() end) if ok and typeof(data) == "CFrame" then local Players = game:GetService("Players") local ME = Players.LocalPlayer while not ME do Players:GetPropertyChangedSignal("LocalPlayer"):Wait() ME = Players.LocalPlayer end local Character = ME.Character or ME.CharacterAdded:Wait() Character:WaitForChild("HumanoidRootPart") local t = tick() while (tick() - t) <= 0.3 do Character:PivotTo(data) task.wait() end end ]] addcmd("rejoin", {"rj"}, function(args, speaker) local data = nil if parseBoolean(args[1], false) == true then if queueteleport then if speaker.Character then data = speaker.Character:GetPivot() queueteleport(teleportRespawnHandler) end else notify("Incompatible Exploit", "Your exploit does not support this argument (missing queue_on_teleport)") end end if #Players:GetPlayers() <= 1 then Players.LocalPlayer:Kick("\nRejoining...") task.wait(0.3) TeleportService:Teleport(PlaceId, Players.LocalPlayer, data) else TeleportService:TeleportToPlaceInstance(PlaceId, JobId, Players.LocalPlayer, nil, data) end end) addcmd("inviteprompt", {}, function(args, speaker) local player = getSinglePlayer(args[1], speaker) local target = player and Players:FindFirstChild(player) if not target then return end local success, err = pcall(function() ExperienceService:LaunchExperience({ placeId = PlaceId, gameInstanceId = JobId, referredByPlayerId = target.UserId }) end) if success then return "Prompted user. Rejoin for it to work." else return "There was an error in game:GetService('ExperienceService'):LaunchExperience(). Contact the developer of your exploit." end end) addcmd("autorejoin", {"autorj"}, function(args, speaker) CmdsTrackConnection(GuiService.ErrorMessageChanged:Connect(function() execCmd("rejoin") end)) notify("Auto Rejoin", "Auto rejoin enabled") end) addcmd("serverhop", {"shop"}, function(args, speaker) -- thanks to Amity for fixing local servers = {} local req = CmdsHttpGet("https://games.roblox.com/v1/games/" .. PlaceId .. "/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true") local body = HttpService:JSONDecode(req) if body and body.data then for i, v in next, body.data do if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.id ~= JobId then table.insert(servers, 1, v.id) end end end if #servers > 0 then TeleportService:TeleportToPlaceInstance(PlaceId, servers[math.random(1, #servers)], Players.LocalPlayer) else return notify("Serverhop", "Couldn't find a server.") end end) addcmd("exit", {"shutdown", "leave"}, function(args, speaker) game:Shutdown() end) noclipConnection = nil noclipParts = {} addcmd("noclip", {}, function(args, speaker) execCmd("unnoclip nonotify") noclipConnection = CmdsTrackConnection(RunService.Stepped:Connect(function() local character = speaker.Character if not character then return end for _, part in character:GetDescendants() do if part:IsA("BasePart") and part.CanCollide == true and part.Name ~= floatName then part.CanCollide = false noclipParts[part] = true end end end)) isClipped = false if args[1] ~= "nonotify" then notify("Noclip", "Noclip Enabled") end end) addcmd("unnoclip", {"clip"}, function(args, speaker) if noclipConnection ~= nil then noclipConnection:Disconnect() noclipConnection = nil end for part in noclipParts do if part.Parent then part.CanCollide = true end end table.clear(noclipParts) isClipped = true if args[1] ~= "nonotify" then notify("Noclip", "Noclip Disabled") end end) addcmd("togglenoclip", {}, function(args, speaker) execCmd(isClipped and "noclip" or "unnoclip") end) FLYING = false QEfly = true iyflyspeed = 1 vehicleflyspeed = 1 function sFLY(vfly) local plr = Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local humanoid = char:FindFirstChildOfClass("Humanoid") if not humanoid then repeat task.wait() until char:FindFirstChildOfClass("Humanoid") humanoid = char:FindFirstChildOfClass("Humanoid") end if flyKeyDown or flyKeyUp then flyKeyDown:Disconnect() flyKeyUp:Disconnect() end local T = getRoot(char) local CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0} local lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0} local SPEED = 0 local function FLY() FLYING = true local BG = Instance.new('BodyGyro') local BV = Instance.new('BodyVelocity') BG.P = 9e4 BG.Parent = T BV.Parent = T BG.MaxTorque = Vector3.new(9e9, 9e9, 9e9) BG.CFrame = T.CFrame BV.Velocity = Vector3.new(0, 0, 0) BV.MaxForce = Vector3.new(9e9, 9e9, 9e9) task.spawn(function() repeat task.wait() local camera = workspace.CurrentCamera if not vfly and humanoid then humanoid.PlatformStand = true end if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0 then SPEED = 50 elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 or CONTROL.Q + CONTROL.E ~= 0) and SPEED ~= 0 then SPEED = 0 end if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 or (CONTROL.Q + CONTROL.E) ~= 0 then BV.Velocity = ((camera.CFrame.LookVector * (CONTROL.F + CONTROL.B)) + ((camera.CFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - camera.CFrame.p)) * SPEED lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R} elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and (CONTROL.Q + CONTROL.E) == 0 and SPEED ~= 0 then BV.Velocity = ((camera.CFrame.LookVector * (lCONTROL.F + lCONTROL.B)) + ((camera.CFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B + CONTROL.Q + CONTROL.E) * 0.2, 0).p) - camera.CFrame.p)) * SPEED else BV.Velocity = Vector3.new(0, 0, 0) end BG.CFrame = camera.CFrame until not FLYING CONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0} lCONTROL = {F = 0, B = 0, L = 0, R = 0, Q = 0, E = 0} SPEED = 0 BG:Destroy() BV:Destroy() if humanoid then humanoid.PlatformStand = false end end) end flyKeyDown = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.W then CONTROL.F = (vfly and vehicleflyspeed or iyflyspeed) elseif input.KeyCode == Enum.KeyCode.S then CONTROL.B = - (vfly and vehicleflyspeed or iyflyspeed) elseif input.KeyCode == Enum.KeyCode.A then CONTROL.L = - (vfly and vehicleflyspeed or iyflyspeed) elseif input.KeyCode == Enum.KeyCode.D then CONTROL.R = (vfly and vehicleflyspeed or iyflyspeed) elseif input.KeyCode == Enum.KeyCode.E and QEfly then CONTROL.Q = (vfly and vehicleflyspeed or iyflyspeed)*2 elseif input.KeyCode == Enum.KeyCode.Q and QEfly then CONTROL.E = -(vfly and vehicleflyspeed or iyflyspeed)*2 end pcall(function() camera.CameraType = Enum.CameraType.Track end) end)) flyKeyUp = CmdsTrackConnection(UserInputService.InputEnded:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.W then CONTROL.F = 0 elseif input.KeyCode == Enum.KeyCode.S then CONTROL.B = 0 elseif input.KeyCode == Enum.KeyCode.A then CONTROL.L = 0 elseif input.KeyCode == Enum.KeyCode.D then CONTROL.R = 0 elseif input.KeyCode == Enum.KeyCode.E then CONTROL.Q = 0 elseif input.KeyCode == Enum.KeyCode.Q then CONTROL.E = 0 end end)) FLY() end function NOFLY() FLYING = false if flyKeyDown or flyKeyUp then flyKeyDown:Disconnect() flyKeyUp:Disconnect() end if Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid') then Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false end pcall(function() workspace.CurrentCamera.CameraType = Enum.CameraType.Custom end) end local velocityHandlerName = randomString() local gyroHandlerName = randomString() local mobileflyhand = nil function unmobilefly(speaker) pcall(function() FLYING = false local root = getRoot(speaker.Character) root:FindFirstChild(velocityHandlerName):Destroy() root:FindFirstChild(gyroHandlerName):Destroy() speaker.Character:FindFirstChildWhichIsA("Humanoid").PlatformStand = false mobileflyhand:Disconnect() end) end function mobilefly(speaker, vfly) unmobilefly(speaker) FLYING = true local root = getRoot(speaker.Character) local camera = workspace.CurrentCamera local v3none = Vector3.new() local v3zero = Vector3.new(0, 0, 0) local v3inf = Vector3.new(9e9, 9e9, 9e9) local controlModule = require(speaker.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("ControlModule")) local bv = Instance.new("BodyVelocity") bv.Name = velocityHandlerName bv.Parent = root bv.MaxForce = v3zero bv.Velocity = v3zero local bg = Instance.new("BodyGyro") bg.Name = gyroHandlerName bg.Parent = root bg.MaxTorque = v3inf bg.P = 1000 bg.D = 50 mobileflyhand = CmdsTrackConnection(RunService.RenderStepped:Connect(function() root = getRoot(speaker.Character) camera = workspace.CurrentCamera if speaker.Character:FindFirstChildWhichIsA("Humanoid") and root and root:FindFirstChild(velocityHandlerName) and root:FindFirstChild(gyroHandlerName) then local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") local VelocityHandler = root:FindFirstChild(velocityHandlerName) local GyroHandler = root:FindFirstChild(gyroHandlerName) VelocityHandler.MaxForce = v3inf GyroHandler.MaxTorque = v3inf if not vfly then humanoid.PlatformStand = true end GyroHandler.CFrame = camera.CoordinateFrame VelocityHandler.Velocity = v3none local direction = controlModule:GetMoveVector() if direction.X > 0 then VelocityHandler.Velocity = VelocityHandler.Velocity + camera.CFrame.RightVector * (direction.X * ((vfly and vehicleflyspeed or iyflyspeed) * 50)) end if direction.X < 0 then VelocityHandler.Velocity = VelocityHandler.Velocity + camera.CFrame.RightVector * (direction.X * ((vfly and vehicleflyspeed or iyflyspeed) * 50)) end if direction.Z > 0 then VelocityHandler.Velocity = VelocityHandler.Velocity - camera.CFrame.LookVector * (direction.Z * ((vfly and vehicleflyspeed or iyflyspeed) * 50)) end if direction.Z < 0 then VelocityHandler.Velocity = VelocityHandler.Velocity - camera.CFrame.LookVector * (direction.Z * ((vfly and vehicleflyspeed or iyflyspeed) * 50)) end end end)) end addcmd('fly',{},function(args, speaker) if not IsOnMobile then NOFLY() wait() sFLY() else mobilefly(speaker) end if args[1] and isNumber(args[1]) then iyflyspeed = args[1] end end) addcmd('flyspeed',{'flysp'},function(args, speaker) local speed = args[1] or 1 if isNumber(speed) then iyflyspeed = speed end end) addcmd('unfly',{'nofly','novfly','unvehiclefly','novehiclefly','unvfly'},function(args, speaker) if not IsOnMobile then NOFLY() else unmobilefly(speaker) end end) addcmd('vfly',{'vehiclefly'},function(args, speaker) if not IsOnMobile then NOFLY() wait() sFLY(true) else mobilefly(speaker, true) end if args[1] and isNumber(args[1]) then vehicleflyspeed = args[1] end end) addcmd('togglevfly',{},function(args, speaker) if FLYING then if not IsOnMobile then NOFLY() else unmobilefly(speaker) end else if not IsOnMobile then sFLY(true) else mobilefly(speaker, true) end end end) addcmd('vflyspeed',{'vflysp','vehicleflyspeed','vehicleflysp'},function(args, speaker) local speed = args[1] or 1 if isNumber(speed) then vehicleflyspeed = speed end end) addcmd('qefly',{'flyqe'},function(args, speaker) assert(#args<=1 and (args[1]==nil or args[1]=='true' or args[1]=='false'), 'Use /qefly [true/false]') if args[1]==nil then QEfly=not QEfly else QEfly=args[1]=='true' end end) addcmd('togglefly',{},function(args, speaker) if FLYING then if not IsOnMobile then NOFLY() else unmobilefly(speaker) end else if not IsOnMobile then sFLY() else mobilefly(speaker) end end end) CFspeed = 50 addcmd('cframefly', {'cfly'}, function(args, speaker) if args[1] and isNumber(args[1]) then CFspeed = args[1] end -- Full credit to peyton#9148 (apeyton) speaker.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true local Head = speaker.Character:WaitForChild("Head") Head.Anchored = true if CFloop then CFloop:Disconnect() end CFloop = CmdsTrackConnection(RunService.Heartbeat:Connect(function(deltaTime) local moveDirection = speaker.Character:FindFirstChildOfClass('Humanoid').MoveDirection * (CFspeed * deltaTime) local headCFrame = Head.CFrame local camera = workspace.CurrentCamera local cameraCFrame = camera.CFrame local cameraOffset = headCFrame:ToObjectSpace(cameraCFrame).Position cameraCFrame = cameraCFrame * CFrame.new(-cameraOffset.X, -cameraOffset.Y, -cameraOffset.Z + 1) local cameraPosition = cameraCFrame.Position local headPosition = headCFrame.Position local objectSpaceVelocity = CFrame.new(cameraPosition, Vector3.new(headPosition.X, cameraPosition.Y, headPosition.Z)):VectorToObjectSpace(moveDirection) Head.CFrame = CFrame.new(headPosition) * (cameraCFrame - cameraPosition) * CFrame.new(objectSpaceVelocity) end)) end) addcmd('uncframefly',{'uncfly'},function(args, speaker) if CFloop then CFloop:Disconnect() speaker.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false local Head = speaker.Character:WaitForChild("Head") Head.Anchored = false end end) addcmd('cframeflyspeed',{'cflyspeed'},function(args, speaker) if isNumber(args[1]) then CFspeed = args[1] end end) floating = false local beganListener: RBXScriptConnection local endListener: RBXScriptConnection local floatingFunc: RBXScriptConnection addcmd('float', {'platform'},function(args, speaker) local pchar = speaker.Character floatName = randomString() floating = true if pchar and not pchar:FindFirstChild(floatName) then task.spawn(function() local floatPoint = -3.1 local floatPart = Instance.new('Part') floatPart.Name = floatName floatPart.Parent = pchar floatPart.Transparency = 1 floatPart.Size = Vector3.new(2, 0.2, 1.5) floatPart.Anchored = true notify('Float', 'Started floating (Q = down & E = up)') beganListener = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(key, processed) if processed then return end if key.KeyCode == Enum.KeyCode.Q then floatPoint -= 0.5 end if key.KeyCode == Enum.KeyCode.E then floatPoint += 1.5 end end)) endListener = CmdsTrackConnection(UserInputService.InputEnded:Connect(function(key, processed) if processed then return end if key.KeyCode == Enum.KeyCode.Q then floatPoint += 0.5 end if key.KeyCode == Enum.KeyCode.E then floatPoint -= 1.5 end end)) floatDied = CmdsTrackConnection(speaker.Character:FindFirstChildOfClass('Humanoid').Died:Connect(function() floatingFunc:Disconnect() floatPart:Destroy() floatDied:Disconnect() beganListener:Disconnect() endListener:Disconnect() floatName = nil end)) local function floatPadLoop() if pchar:FindFirstChild(floatName) and getRoot(pchar) then floatPart.CFrame = getRoot(pchar).CFrame * CFrame.new(0, floatPoint, 0) else floatingFunc:Disconnect() floatPart:Destroy() floatDied:Disconnect() beganListener:Disconnect() endListener:Disconnect() floatName = nil end end floatingFunc = CmdsTrackConnection(RunService.PreAnimation:Connect(floatPadLoop)) end) end end) addcmd('unfloat',{'nofloat','unplatform','noplatform'},function(args, speaker) floating = false local pchar = speaker.Character notify('Float', 'Stopped floating') if pchar:FindFirstChild(floatName) then pchar:FindFirstChild(floatName):Destroy() end if floatDied then floatingFunc:Disconnect() floatDied:Disconnect() beganListener:Disconnect() endListener:Disconnect() floatName = nil end end) addcmd('togglefloat',{},function(args, speaker) if floating then execCmd('unfloat') else execCmd('float') end end) swimming = false local oldgrav = workspace.Gravity local swimbeat = nil addcmd('swim',{},function(args, speaker) if not swimming and speaker and speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") then oldgrav = workspace.Gravity workspace.Gravity = 0 local swimDied = function() workspace.Gravity = oldgrav swimming = false end local Humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") gravReset = CmdsTrackConnection(Humanoid.Died:Connect(swimDied)) local enums = Enum.HumanoidStateType:GetEnumItems() table.remove(enums, table.find(enums, Enum.HumanoidStateType.None)) for i, v in pairs(enums) do Humanoid:SetStateEnabled(v, false) end Humanoid:ChangeState(Enum.HumanoidStateType.Swimming) swimbeat = CmdsTrackConnection(RunService.Heartbeat:Connect(function() pcall(function() getRoot(speaker.Character).Velocity = ((Humanoid.MoveDirection ~= Vector3.new() or UserInputService:IsKeyDown(Enum.KeyCode.Space)) and getRoot(speaker.Character).Velocity or Vector3.new()) end) end)) swimming = true end end) addcmd('unswim',{'noswim'},function(args, speaker) if speaker and speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") then workspace.Gravity = oldgrav swimming = false if gravReset then gravReset:Disconnect() end if swimbeat ~= nil then swimbeat:Disconnect() swimbeat = nil end local Humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") local enums = Enum.HumanoidStateType:GetEnumItems() table.remove(enums, table.find(enums, Enum.HumanoidStateType.None)) for i, v in pairs(enums) do Humanoid:SetStateEnabled(v, true) end end end) addcmd('toggleswim',{},function(args, speaker) if swimming then execCmd('unswim') else execCmd('swim') end end) addcmd('setwaypoint',{'swp','setwp','spos','saveposition','savepos'},function(args, speaker) local WPName = tostring(getstring(1, args)) or "" if getRoot(speaker.Character) then notify('Modified Waypoints',"Created waypoint: "..getstring(1, args)) local torso = getRoot(speaker.Character) WayPoints[#WayPoints + 1] = {NAME = WPName, COORD = {math.floor(torso.Position.X), math.floor(torso.Position.Y), math.floor(torso.Position.Z)}, GAME = PlaceId} if AllWaypoints ~= nil then AllWaypoints[#AllWaypoints + 1] = {NAME = WPName, COORD = {math.floor(torso.Position.X), math.floor(torso.Position.Y), math.floor(torso.Position.Z)}, GAME = PlaceId} end end refreshwaypoints() updatesaves() end) addcmd('waypointpos',{'wpp','setwaypointposition','setpos','setwaypointpos'},function(args, speaker) local WPName = tostring(getstring(1, args)) local x, y, z = tonumber(args[2]), tonumber(args[3]), tonumber(args[4]) if not x or not y or not z then return notify("Unable to Create Waypoint", "You must give a position in the format X Y Z.") end notify('Modified Waypoints',"Created waypoint: "..getstring(1, args)) WayPoints[#WayPoints + 1] = {NAME = WPName, COORD = {x, y, z}, GAME = PlaceId} if AllWaypoints ~= nil then AllWaypoints[#AllWaypoints + 1] = {NAME = WPName, COORD = {x, y, z}, GAME = PlaceId} end refreshwaypoints() updatesaves() end) addcmd('waypoints',{'positions'},function(args, speaker) if SettingsOpen == false then SettingsOpen = true Settings:TweenPosition(UDim2.new(0, 0, 0, 45), "InOut", "Quart", 0.5, true, nil) CMDsF.Visible = false end KeybindsFrame:TweenPosition(UDim2.new(0, 0, 0, 175), "InOut", "Quart", 0.5, true, nil) AliasesFrame:TweenPosition(UDim2.new(0, 0, 0, 175), "InOut", "Quart", 0.5, true, nil) PluginsFrame:TweenPosition(UDim2.new(0, 0, 0, 175), "InOut", "Quart", 0.5, true, nil) PositionsFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "InOut", "Quart", 0.5, true, nil) wait(0.5) SettingsHolder.Visible = false maximizeHolder() end) waypointParts = {} addcmd('showwaypoints',{'showwp','showwps'},function(args, speaker) execCmd('hidewaypoints') wait() for i,_ in pairs(WayPoints) do local x = WayPoints[i].COORD[1] local y = WayPoints[i].COORD[2] local z = WayPoints[i].COORD[3] local part = Instance.new("Part") part.Size = Vector3.new(5,5,5) part.CFrame = CFrame.new(x,y,z) part.Parent = workspace part.Anchored = true part.CanCollide = false table.insert(waypointParts,part) local view = Instance.new("BoxHandleAdornment") view.Adornee = part view.AlwaysOnTop = true view.ZIndex = 10 view.Size = part.Size view.Parent = part end local pwppos for i,v in pairs(pWayPoints) do pwppos = pWayPoints[i].COORD[1] if not pwppos or not pwppos.Parent then continue end local view = Instance.new("BoxHandleAdornment") view.Adornee = pWayPoints[i].COORD[1] view.AlwaysOnTop = true view.ZIndex = 10 view.Size = pWayPoints[i].COORD[1].Size view.Parent = pWayPoints[i].COORD[1] table.insert(waypointParts,view) end end) addcmd('hidewaypoints',{'hidewp','hidewps'},function(args, speaker) for i,v in pairs(waypointParts) do v:Destroy() end waypointParts = {} end) local walkto = false local waypointwalkto = false WPactiveTween = nil function stopwpping(wphuman, wproot) waypointwalkto = false if WPactiveTween then WPactiveTween:Cancel() WPactiveTween = nil end if wphuman then wphuman.WalkToPoint = wproot.Position end end function waypointmover(WPName: string, mode: string, speaker: Player) local wpchr = speaker.Character if not wpchr then return false end local wproot = getRoot(wpchr) if not wproot then return false end local wphuman = wpchr:FindFirstChildOfClass('Humanoid') if not wphuman and (mode == "walkto" or mode == "pathfind") then return false end stopwpping(wphuman, wproot) local wpname_lc = tostring(WPName):lower() local function runPathfind(targetPos: Vector3, targetPart: BasePart?) task.wait() if wphuman.SeatPart then wphuman.Sit = false task.wait(.1) end local path = PathService:CreatePath() waypointwalkto = true task.spawn(function() while waypointwalkto and speaker.Character and wphuman.Parent and wproot.Parent do if targetPart then if not targetPart.Parent then break end targetPos = targetPart.Position end if (targetPos - wproot.Position).Magnitude <= 5 then break end local success = pcall(function() path:ComputeAsync(wproot.Position, targetPos) end) if success and path.Status == Enum.PathStatus.Success then local waypoints = path:GetWaypoints() for waypointIndex = 2, #waypoints do if not waypointwalkto or not wphuman.Parent or not wproot.Parent then break end local waypoint = waypoints[waypointIndex] if waypoint.Action == Enum.PathWaypointAction.Jump then wphuman.Jump = true end wphuman:MoveTo(waypoint.Position) local timeout = os.clock() + 3 while waypointwalkto and wphuman.Parent and wproot.Parent and (waypoint.Position - wproot.Position).Magnitude > 5 and os.clock() < timeout do task.wait() end end else wphuman:MoveTo(targetPos) task.wait(0.25) end task.wait() end waypointwalkto = false end) end for i, _ in pairs(WayPoints) do if tostring(WayPoints[i].NAME):lower() == wpname_lc then local x = WayPoints[i].COORD[1] local y = WayPoints[i].COORD[2] local z = WayPoints[i].COORD[3] local TrueCoords = Vector3.new(x, y, z) if mode == "default" then wproot.CFrame = CFrame.new(TrueCoords) elseif mode == "tween" then WPactiveTween = TweenService:Create(wproot, TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = CFrame.new(TrueCoords)}) WPactiveTween:Play() elseif mode == "walkto" then if wphuman.SeatPart then wphuman.Sit = false task.wait(.1) end wphuman.WalkToPoint = TrueCoords elseif mode == "pathfind" then runPathfind(TrueCoords, nil) end return true end end for i, _ in pairs(pWayPoints) do if tostring(pWayPoints[i].NAME):lower() == wpname_lc then local pwppos = pWayPoints[i].COORD[1] if not pwppos or not pwppos.Parent then continue end if mode == "default" then wproot.CFrame = CFrame.new(pwppos.Position) elseif mode == "tween" then WPactiveTween = TweenService:Create(wproot, TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = CFrame.new(pwppos.Position)}) WPactiveTween:Play() elseif mode == "walkto" then if wphuman.SeatPart then wphuman.Sit = false task.wait(.1) end wphuman.WalkToPoint = pwppos.Position elseif mode == "pathfind" then runPathfind(pwppos.Position, pwppos) end return true end end return false end addcmd('waypoint',{'wp','lpos','loadposition','loadpos'},function(args, speaker) local WPName = tostring(getstring(1, args)) local pwork = waypointmover(WPName, "default", speaker) if not pwork then return notify("Waypoint Error", "Failed to move to waypoint.") end end) tweenSpeed = 1 addcmd('tweenspeed',{'tspeed'},function(args, speaker) local newSpeed = tonumber(args[1]) or 1 if newSpeed > 0 then tweenSpeed = newSpeed end end) addcmd('tweenwaypoint',{'twp'},function(args, speaker) local WPName = tostring(getstring(1, args)) local pwork = waypointmover(WPName, "tween", speaker) if not pwork then return notify("Waypoint Error", "Failed to move to waypoint.") end end) addcmd('walktowaypoint',{'wtwp'},function(args, speaker) local WPName = tostring(getstring(1, args)) local pwork = waypointmover(WPName, "walkto", speaker) if not pwork then return notify("Waypoint Error", "Failed to move to waypoint.") end end) addcmd('pathfindwalktowaypoint',{'pathfindwalktowp'},function(args, speaker) local WPName = tostring(getstring(1, args)) local pwork = waypointmover(WPName, "pathfind", speaker) if not pwork then return notify("Waypoint Error", "Failed to move to waypoint.") end end) function remove_waypoints(tbl, wpna: string, rmmode: boolean, shouldNotify: boolean) if not tbl then return end for i = #tbl, 1, -1 do local v = tbl[i] if rmmode then if v.GAME == PlaceId then table.remove(tbl, i) end elseif v.NAME:lower() == wpna then if not v.GAME or v.GAME == PlaceId then if shouldNotify then notify('Modified Waypoints', "Deleted waypoint: " .. v.NAME) end table.remove(tbl, i) end end end end function wprm(wpna: string?, rmmode: boolean) local targetName = wpna and wpna:lower() or "" remove_waypoints(WayPoints, targetName, rmmode, not rmmode) remove_waypoints(AllWaypoints, targetName, rmmode, false) remove_waypoints(pWayPoints, targetName, rmmode, not rmmode) refreshwaypoints() updatesaves() end addcmd('deletewaypoint', {'dwp','dpos','deleteposition','deletepos'}, function(args, speaker) local passdin = getstring(1, args) or "" wprm(tostring(passdin), false) end) addcmd('clearwaypoints', {'cwp','clearpositions','cpos','clearpos'}, function(args, speaker) WayPoints = {} pWayPoints = {} AllWaypoints = {} refreshwaypoints() updatesaves() notify('Modified Waypoints', 'Removed all waypoints') end) addcmd('cleargamewaypoints', {'cgamewp'}, function(args, speaker) wprm(nil, true) notify('Modified Waypoints', 'Deleted game waypoints') end) local coreGuiTypeNames = { -- predefined aliases ["inventory"] = Enum.CoreGuiType.Backpack, ["leaderboard"] = Enum.CoreGuiType.PlayerList, ["emotes"] = Enum.CoreGuiType.EmotesMenu } for _, enumItem in ipairs(Enum.CoreGuiType:GetEnumItems()) do coreGuiTypeNames[enumItem.Name:lower()] = enumItem end addcmd('enable',{},function(args, speaker) local input = args[1] and args[1]:lower() if input then if input == "reset" then StarterGui:SetCore("ResetButtonCallback", true) else local coreGuiType = coreGuiTypeNames[input] if coreGuiType then StarterGui:SetCoreGuiEnabled(coreGuiType, true) end end end end) addcmd('disable',{},function(args, speaker) local input = args[1] and args[1]:lower() if input then if input == "reset" then StarterGui:SetCore("ResetButtonCallback", false) else local coreGuiType = coreGuiTypeNames[input] if coreGuiType then StarterGui:SetCoreGuiEnabled(coreGuiType, false) end end end end) local invisGUIS = {} addcmd('showguis',{},function(args, speaker) for i,v in pairs(PlayerGui:GetDescendants()) do if (v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("ScrollingFrame")) and not v.Visible then v.Visible = true if not FindInTable(invisGUIS,v) then table.insert(invisGUIS,v) end end end end) addcmd('unshowguis',{},function(args, speaker) for i,v in pairs(invisGUIS) do v.Visible = false end invisGUIS = {} end) local hiddenGUIS = {} addcmd('hideguis',{},function(args, speaker) for i,v in pairs(PlayerGui:GetDescendants()) do if (v:IsA("Frame") or v:IsA("ImageLabel") or v:IsA("ScrollingFrame")) and v.Visible then v.Visible = false if not FindInTable(hiddenGUIS,v) then table.insert(hiddenGUIS,v) end end end end) addcmd('unhideguis',{},function(args, speaker) for i,v in pairs(hiddenGUIS) do v.Visible = true end hiddenGUIS = {} end) function deleteGuisAtPos() pcall(function() local guisAtPosition = PlayerGui:GetGuiObjectsAtPosition(IYMouse.X, IYMouse.Y) for _, gui in pairs(guisAtPosition) do if gui.Visible == true then gui:Destroy() end end end) end local deleteGuiInput addcmd('guidelete',{},function(args, speaker) deleteGuiInput = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then if input.KeyCode == Enum.KeyCode.Backspace then deleteGuisAtPos() end end end)) notify('GUI Delete Enabled','Hover over a GUI and press backspace to delete it') end) addcmd('unguidelete',{'noguidelete'},function(args, speaker) if deleteGuiInput then deleteGuiInput:Disconnect() end notify('GUI Delete Disabled','GUI backspace delete has been disabled') end) local wasStayOpen = StayOpen addcmd('rec', {'record'}, function(args, speaker) return COREGUI:ToggleRecording() end) addcmd('screenshot', {'scrnshot'}, function(args, speaker) return COREGUI:TakeScreenshot() end) addcmd('togglefs', {'togglefullscreen'}, function(args, speaker) return GuiService:ToggleFullscreen() end) addcmd('inspect', {'examine'}, function(args, speaker) for _, v in ipairs(getPlayer(args[1], speaker)) do GuiService:CloseInspectMenu() GuiService:InspectPlayerFromUserId(Players[v].UserId) end end) addcmd("savegame", {"saveplace"}, function(args, speaker) if saveinstance then notify("Loading", "Downloading game. This will take a while") saveinstance() notify("Game Saved", "Saved place to the workspace folder within your exploit folder.") else notify("Incompatible Exploit", "Your exploit does not support this command (missing saveinstance)") end end) addcmd("savelogs", {"saveclogs", "saveconsolelogs"}, function(args, speaker) local placeName = CleanFileName(MarketplaceService:GetProductInfo(PlaceId).Name) local writelogs = '-- Infinite Yield console logs for "'..placeName..'"\n' local getLogMessages = LogService:GetLogHistory() local array = {} local writelogsFile if not writefileExploit() then return notify('Incompatible Exploit','Your exploit does not support read/writefile.') end notify("Loading",'Hold on a sec') for i, v in ipairs(getLogMessages) do local logMessage = v.message local logMessageName = v.messageType.Name local logMessageType = logMessageName:gsub('Message', '') local logMessageTimestamp = os.date('%H:%M:%S', v.timestamp) local formattedString = string.format('%s [%s] %s', logMessageTimestamp, logMessageType, logMessage).."\n" array[i] = formattedString end writelogsFile = writelogs..'\n'..table.concat(array) local fileext = 0 local function nameFile() local file pcall(function() file = readfile(placeName..' Console Logs ('..fileext..').txt') end) if file then fileext += 1 nameFile() else writefileCooldown(placeName..' Console Logs ('..fileext..').txt', writelogsFile) end end nameFile() notify('Success','Saved console logs to the workspace within your exploit folder.') end) addcmd("clearerror", {"clearerrors"}, function(args, speaker) GuiService:ClearError() end) addcmd("antigameplaypaused", {}, function(args, speaker) pcall(function() networkPaused:Disconnect() end) networkPaused = CmdsTrackConnection(COREGUI.RobloxGui.ChildAdded:Connect(function(obj) if obj.Name == "CoreScripts/NetworkPause" then obj:Destroy() end end)) COREGUI.RobloxGui["CoreScripts/NetworkPause"]:Destroy() end) addcmd("unantigameplaypaused", {}, function(args, speaker) networkPaused:Disconnect() end) addcmd('clientantikick',{'antikick'},function(args, speaker) if not hookmetamethod then return notify('Incompatible Exploit','Your exploit does not support this command (missing hookmetamethod)') end local LocalPlayer = Players.LocalPlayer local oldNamecall; oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...) local method = getnamecallmethod and getnamecallmethod() or "" if select(1, ...) == LocalPlayer and method == "Kick" or method == "kick" then return nil end return oldNamecall(...) end)) hookfunction(LocalPlayer.Kick, newcclosure(function(self, _) if self ~= lp then error("Expected ':' not '.' calling member function Kick", 2) end return nil end)) notify('Client Antikick','Client anti kick is now active (only effective on LocalScript kick)') end) allow_rj = true addcmd('clientantiteleport',{'antiteleport'},function(args, speaker) if not hookmetamethod then return notify('Incompatible Exploit','Your exploit does not support this command (missing hookmetamethod)') end local oldTp; oldTp = hookfunction(TeleportService.Teleport, newcclosure(function(self, placeId, player, _teleportData, customLoadingScreen) if checkcaller() or (allow_rj and placeId == game.PlaceId) then return oldTp(self, placeId, player, _teleportData, customLoadingScreen) end if self ~= TeleportService then error("Expected ':' not '.' calling member function Teleport", 2) end if placeId == nil then error("Argument 1 missing or nil", 2) end if typeof(placeId) ~= "number" and placeId ~= true then error(`Unable to cast {typeof(placeId)} to int64`, 2) elseif placeId == true then -- somehow raise raiseTeleportInitFailedEvent return end if typeof(customLoadingScreen) ~= "Instance" and customLoadingScreen ~= nil then error("Unable to cast value to Object", 2) end return nil end)) hookfunction(TeleportService.TeleportAsync, newcclosure(function(self, placeId, players, teleportOptions) if self ~= TeleportService then error("Expected ':' not '.' calling member function TeleportAsync", 2) end if players == nil then error("Argument 2 missing or nil", 2) end if typeof(players) ~= "table" then error("Unable to cast value to Objects", 2) end error("TeleportUnknown must be called from a Server", 2) end)) local oldNamecall; oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...) local nmc = getnamecallmethod() if select(1, ...) == TeleportService and nmc == "teleport" or nmc == "Teleport" or nmc == "TeleportToPlaceInstance" or nmc == "TeleportAsync" then if checkcaller() or (allow_rj and select(2, ...) == game.PlaceId) then return oldNamecall(...) end return end return oldNamecall(...) end)) notify('Client AntiTP','Client anti teleport is now active (only effective on LocalScript teleport)') end) addcmd('allowrejoin',{'allowrj'},function(args, speaker) allow_rj = not allow_rj notify("Client AntiTP", `Scripts now may{allow_rj and "" or " not"} make you rejoin the server`) end) addcmd("cancelteleport", {"canceltp"}, function(args, speaker) TeleportService:TeleportCancel() end) addcmd("volume",{ "vol"}, function(args, speaker) UserSettings():GetService("UserGameSettings").MasterVolume = args[1]/10 end) addcmd("antilag", {"boostfps", "lowgraphics"}, function(args, speaker) execCmd("unantilag") local Terrain = workspace:FindFirstChildWhichIsA("Terrain") if Terrain then Terrain.WaterWaveSize = 0 Terrain.WaterWaveSpeed = 0 Terrain.WaterReflectance = 0 Terrain.WaterTransparency = 1 end Lighting.GlobalShadows = false Lighting.FogEnd = 9e9 Lighting.FogStart = 9e9 settings().Rendering.QualityLevel = Enum.QualityLevel.Level01 for _, v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") then v.CastShadow = false v.Material = Enum.Material.Plastic v.Reflectance = 0 elseif v:IsA("Decal") or v:IsA("Texture") then v.Transparency = 1 elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then v.Enabled = false elseif v:IsA("Sparkles") or v:IsA("Smoke") or v:IsA("Fire") then v.Enabled = false end end for _, v in ipairs(Lighting:GetDescendants()) do if v:IsA("PostEffect") then v.Enabled = false end end antiLagConn = CmdsTrackConnection(workspace.DescendantAdded:Connect(function(child) task.spawn(function() if child:IsA("ForceField") or child:IsA("Sparkles") or child:IsA("Smoke") or child:IsA("Fire") or child:IsA("Beam") then RunService.Heartbeat:Wait() child:Destroy() elseif child:IsA("BasePart") then child.CastShadow = false child.Material = Enum.Material.Plastic end end) end)) end) addcmd("unantilag", {"unboostfps", "unlowgraphics", "highgraphics"}, function(args, speaker) if antiLagConn then antiLagConn:Disconnect() antiLagConn = nil end end) addcmd("setfpscap", {"fpscap", "maxfps"}, function(args, speaker) execCmd("removefpscap") if args[1] and args[1]:lower() == "none" then return end local fpsCap = tonumber(args[1]) or 100000 if fpsCap <= 0 then return notify("Invalid argument", "FPS Cap must be greater than 0.") end if setfpscap and type(setfpscap) == "function" then setfpscap(fpsCap) else local targetFrameTime = 1 / fpsCap local lastFrame = os.clock() fpscaploop = CmdsTrackConnection(RunService.RenderStepped:Connect(function() while os.clock() - lastFrame < targetFrameTime do end lastFrame = os.clock() end)) end end) addcmd("removefpscap", {"unfpscap"}, function(args, speaker) if fpscaploop then fpscaploop:Disconnect() fpscaploop = nil end if setfpscap and type(setfpscap) == "function" then setfpscap(1000) -- this command only exists because of fpscaploop end end) addcmd('notify',{},function(args, speaker) notify(getstring(1, args)) end) addcmd('esp',{},function(args, speaker) if not CHMSenabled then ESPenabled = true for i,v in pairs(Players:GetPlayers()) do if v.Name ~= speaker.Name then ESP(v) end end else notify('ESP','Disable chams (nochams) before using esp') end end) addcmd('espteam',{},function(args, speaker) if not CHMSenabled then ESPenabled = true for i,v in pairs(Players:GetPlayers()) do if v.Name ~= speaker.Name then ESP(v, true) end end else notify('ESP','Disable chams (nochams) before using esp') end end) addcmd('noesp',{'unesp','unespteam'},function(args, speaker) ESPenabled = false for i,c in pairs(COREGUI:GetChildren()) do if string.sub(c.Name, -4) == '_ESP' then c:Destroy() end end end) addcmd("esptransparency", {}, function(args, speaker) espTransparency = tonumber(args[1]) or 0.3 if ESPenabled then execCmd("esp") end if CHMSenabled then execCmd("chams") end updatesaves() end) local espParts = {} local partEspTrigger = nil function partAdded(part) if #espParts > 0 then if FindInTable(espParts,part.Name:lower()) then local a = Instance.new("BoxHandleAdornment") a.Name = part.Name:lower().."_PESP" a.Parent = part a.Adornee = part a.AlwaysOnTop = true a.ZIndex = 0 a.Size = part.Size a.Transparency = espTransparency a.Color = BrickColor.new("Lime green") end else partEspTrigger:Disconnect() partEspTrigger = nil end end addcmd('partesp',{},function(args, speaker) local partEspName = getstring(1, args):lower() if not FindInTable(espParts,partEspName) then table.insert(espParts,partEspName) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") and v.Name:lower() == partEspName then local a = Instance.new("BoxHandleAdornment") a.Name = partEspName.."_PESP" a.Parent = v a.Adornee = v a.AlwaysOnTop = true a.ZIndex = 0 a.Size = v.Size a.Transparency = espTransparency a.Color = BrickColor.new("Lime green") end end end if partEspTrigger == nil then partEspTrigger = CmdsTrackConnection(workspace.DescendantAdded:Connect(partAdded)) end end) addcmd('unpartesp',{'nopartesp'},function(args, speaker) if args[1] then local partEspName = getstring(1, args):lower() if FindInTable(espParts,partEspName) then table.remove(espParts, GetInTable(espParts, partEspName)) end for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BoxHandleAdornment") and v.Name == partEspName..'_PESP' then v:Destroy() end end else partEspTrigger:Disconnect() partEspTrigger = nil espParts = {} for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BoxHandleAdornment") and v.Name:sub(-5) == '_PESP' then v:Destroy() end end end end) addcmd('chams',{},function(args, speaker) if not ESPenabled then CHMSenabled = true for i,v in pairs(Players:GetPlayers()) do if v.Name ~= speaker.Name then CHMS(v) end end else notify('Chams','Disable ESP (noesp) before using chams') end end) addcmd('nochams',{'unchams'},function(args, speaker) CHMSenabled = false for i,v in pairs(Players:GetPlayers()) do local chmsplr = v for i,c in pairs(COREGUI:GetChildren()) do if c.Name == chmsplr.Name..'_CHMS' then c:Destroy() end end end end) addcmd('locate',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do Locate(Players[v]) end end) addcmd('nolocate',{'unlocate'},function(args, speaker) local players = getPlayer(args[1], speaker) if args[1] then for i,v in pairs(players) do for i,c in pairs(COREGUI:GetChildren()) do if c.Name == Players[v].Name..'_LC' then c:Destroy() end end end else for i,c in pairs(COREGUI:GetChildren()) do if string.sub(c.Name, -3) == '_LC' then c:Destroy() end end end end) viewing = nil addcmd('view',{'spectate'},function(args, speaker) StopFreecam() local players = getPlayer(args[1], speaker) for i,v in pairs(players) do if viewDied then viewDied:Disconnect() viewChanged:Disconnect() end viewing = Players[v] workspace.CurrentCamera.CameraSubject = viewing.Character notify('Spectate','Viewing ' .. Players[v].Name) local function viewDiedFunc() repeat wait() until Players[v].Character ~= nil and getRoot(Players[v].Character) workspace.CurrentCamera.CameraSubject = viewing.Character end viewDied = CmdsTrackConnection(Players[v].CharacterAdded:Connect(viewDiedFunc)) local function viewChangedFunc() workspace.CurrentCamera.CameraSubject = viewing.Character end viewChanged = CmdsTrackConnection(workspace.CurrentCamera:GetPropertyChangedSignal("CameraSubject"):Connect(viewChangedFunc)) end end) addcmd('viewpart',{'viewp'},function(args, speaker) StopFreecam() if args[1] then for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("BasePart") then wait(0.1) workspace.CurrentCamera.CameraSubject = v end end end end) addcmd('unview',{'unspectate'},function(args, speaker) StopFreecam() if viewing ~= nil then viewing = nil notify('Spectate','View turned off') end if viewDied then viewDied:Disconnect() viewChanged:Disconnect() end workspace.CurrentCamera.CameraSubject = speaker.Character end) fcRunning = false local Camera = workspace.CurrentCamera local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value Spring = {} do Spring.__index = Spring function Spring.new(freq, pos) local self = setmetatable({}, Spring) self.f = freq self.p = pos self.v = pos*0 return self end function Spring:Update(dt, goal) local f = self.f*2*math.pi local p0 = self.p local v0 = self.v local offset = goal - p0 local decay = math.exp(-f*dt) local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay local v1 = (f*dt*(offset*f - v0) + v0)*decay self.p = p1 self.v = v1 return p1 end function Spring:Reset(pos) self.p = pos self.v = pos*0 end end local cameraPos = Vector3.new() local cameraRot = Vector2.new() local velSpring = Spring.new(5, Vector3.new()) local panSpring = Spring.new(5, Vector2.new()) Input = {} do keyboard = { W = 0, A = 0, S = 0, D = 0, E = 0, Q = 0, Up = 0, Down = 0, LeftShift = 0, } mouse = { Delta = Vector2.new(), } NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1) PAN_MOUSE_SPEED = Vector2.new(1, 1)*(math.pi/64) NAV_ADJ_SPEED = 0.75 NAV_SHIFT_MUL = 0.25 navSpeed = 1 function Input.Vel(dt) navSpeed = math.clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4) local kKeyboard = Vector3.new( keyboard.D - keyboard.A, keyboard.E - keyboard.Q, keyboard.S - keyboard.W )*NAV_KEYBOARD_SPEED local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) return (kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1)) end function Input.Pan(dt) local kMouse = mouse.Delta*PAN_MOUSE_SPEED mouse.Delta = Vector2.new() return kMouse end do function Keypress(action, state, input) keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0 return Enum.ContextActionResult.Sink end function MousePan(action, state, input) local delta = input.Delta mouse.Delta = Vector2.new(-delta.y, -delta.x) return Enum.ContextActionResult.Sink end function Zero(t) for k, v in pairs(t) do t[k] = v*0 end end function Input.StartCapture() ContextActionService:BindActionAtPriority("FreecamKeyboard",Keypress,false,INPUT_PRIORITY, Enum.KeyCode.W, Enum.KeyCode.A, Enum.KeyCode.S, Enum.KeyCode.D, Enum.KeyCode.E, Enum.KeyCode.Q, Enum.KeyCode.Up, Enum.KeyCode.Down ) ContextActionService:BindActionAtPriority("FreecamMousePan",MousePan,false,INPUT_PRIORITY,Enum.UserInputType.MouseMovement) end function Input.StopCapture() navSpeed = 1 Zero(keyboard) Zero(mouse) ContextActionService:UnbindAction("FreecamKeyboard") ContextActionService:UnbindAction("FreecamMousePan") end end end function GetFocusDistance(cameraFrame) local znear = 0.1 local viewport = Camera.ViewportSize local projy = 2*math.tan(cameraFov/2) local projx = viewport.x/viewport.y*projy local fx = cameraFrame.RightVector local fy = cameraFrame.UpVector local fz = cameraFrame.LookVector local minVect = Vector3.new() local minDist = 512 for x = 0, 1, 0.5 do for y = 0, 1, 0.5 do local cx = (x - 0.5)*projx local cy = (y - 0.5)*projy local offset = fx*cx - fy*cy + fz local origin = cameraFrame.p + offset*znear local _, hit = workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist)) local dist = (hit - origin).magnitude if minDist > dist then minDist = dist minVect = offset.unit end end end return fz:Dot(minVect)*minDist end local function StepFreecam(dt) local vel = velSpring:Update(dt, Input.Vel(dt)) local pan = panSpring:Update(dt, Input.Pan(dt)) local zoomFactor = math.sqrt(math.tan(math.rad(70/2))/math.tan(math.rad(cameraFov/2))) cameraRot = cameraRot + pan*Vector2.new(0.75, 1)*8*(dt/zoomFactor) cameraRot = Vector2.new(math.clamp(cameraRot.x, -math.rad(90), math.rad(90)), cameraRot.y%(2*math.pi)) local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*Vector3.new(1, 1, 1)*64*dt) cameraPos = cameraCFrame.p Camera.CFrame = cameraCFrame Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame)) Camera.FieldOfView = cameraFov end local PlayerState = {} do mouseBehavior = "" mouseIconEnabled = "" cameraType = "" cameraFocus = "" cameraCFrame = "" cameraFieldOfView = "" function PlayerState.Push() cameraFieldOfView = Camera.FieldOfView Camera.FieldOfView = 70 cameraType = Camera.CameraType Camera.CameraType = Enum.CameraType.Custom cameraCFrame = Camera.CFrame cameraFocus = Camera.Focus mouseIconEnabled = UserInputService.MouseIconEnabled UserInputService.MouseIconEnabled = true mouseBehavior = UserInputService.MouseBehavior UserInputService.MouseBehavior = Enum.MouseBehavior.Default end function PlayerState.Pop() Camera.FieldOfView = 70 Camera.CameraType = cameraType cameraType = nil Camera.CFrame = cameraCFrame cameraCFrame = nil Camera.Focus = cameraFocus cameraFocus = nil UserInputService.MouseIconEnabled = mouseIconEnabled mouseIconEnabled = nil UserInputService.MouseBehavior = mouseBehavior mouseBehavior = nil end end function StartFreecam(pos) if fcRunning then StopFreecam() end local cameraCFrame = Camera.CFrame if pos then cameraCFrame = pos end cameraRot = Vector2.new() cameraPos = cameraCFrame.p cameraFov = Camera.FieldOfView velSpring:Reset(Vector3.new()) panSpring:Reset(Vector2.new()) PlayerState.Push() RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam) Input.StartCapture() fcRunning = true end function StopFreecam() if not fcRunning then return end Input.StopCapture() RunService:UnbindFromRenderStep("Freecam") PlayerState.Pop() workspace.Camera.FieldOfView = 70 fcRunning = false end addcmd("freecam", {"fcam", "fc"},function(args, speaker) StartFreecam() end) addcmd("freecampos", {"fcpos", "fcp", "freecamposition", "fcposition"},function(args, speaker) if not args[1] then return end local freecamPos = CFrame.new(args[1], args[2], args[3]) StartFreecam(freecamPos) end) addcmd('freecamwaypoint',{'fcwp'},function(args, speaker) local WPName = tostring(getstring(1, args)):lower() if not speaker.Character then return end for i, _ in pairs(WayPoints) do local x = WayPoints[i].COORD[1] local y = WayPoints[i].COORD[2] local z = WayPoints[i].COORD[3] if tostring(WayPoints[i].NAME):lower() == WPName then StartFreecam(CFrame.new(x,y,z)) end end for i, _ in pairs(pWayPoints) do if tostring(pWayPoints[i].NAME):lower() == WPName then local pwppos = pWayPoints[i].COORD[1] if not pwppos or not pwppos.Parent then continue end StartFreecam(CFrame.new(pwppos.Position)) end end end) addcmd('freecamgoto',{'fcgoto','freecamtp','fctp'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do StartFreecam(getRoot(Players[v].Character).CFrame) end end) addcmd('unfreecam',{'nofreecam','unfc','nofc'},function(args, speaker) StopFreecam() end) addcmd('freecamspeed',{'fcspeed'},function(args, speaker) local FCspeed = args[1] or 1 if isNumber(FCspeed) then NAV_KEYBOARD_SPEED = Vector3.new(FCspeed, FCspeed, FCspeed) end end) addcmd('notifyfreecamposition',{'notifyfcpos'},function(args, speaker) if fcRunning then local X,Y,Z = workspace.CurrentCamera.CFrame.Position.X,workspace.CurrentCamera.CFrame.Position.Y,workspace.CurrentCamera.CFrame.Position.Z local Format, Round = string.format, math.round notify("Current Position", Format("%s, %s, %s", Round(X), Round(Y), Round(Z))) end end) addcmd('copyfreecamposition',{'copyfcpos'},function(args, speaker) if fcRunning then local X,Y,Z = workspace.CurrentCamera.CFrame.Position.X,workspace.CurrentCamera.CFrame.Position.Y,workspace.CurrentCamera.CFrame.Position.Z local Format, Round = string.format, math.round toClipboard(Format("%s, %s, %s", Round(X), Round(Y), Round(Z))) end end) addcmd('gotocamera',{'gotocam','tocam'},function(args, speaker) getRoot(speaker.Character).CFrame = workspace.Camera.CFrame end) addcmd('tweengotocamera',{'tweengotocam','tgotocam','ttocam'},function(args, speaker) TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = workspace.Camera.CFrame}):Play() end) addcmd('fov',{},function(args, speaker) local fov = args[1] or 70 if isNumber(fov) then workspace.CurrentCamera.FieldOfView = fov end end) local preMaxZoom = Players.LocalPlayer.CameraMaxZoomDistance local preMinZoom = Players.LocalPlayer.CameraMinZoomDistance addcmd('lookat',{},function(args, speaker) if speaker.CameraMaxZoomDistance ~= 0.5 then preMaxZoom = speaker.CameraMaxZoomDistance preMinZoom = speaker.CameraMinZoomDistance end speaker.CameraMaxZoomDistance = 0.5 speaker.CameraMinZoomDistance = 0.5 wait() local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local target = Players[v].Character if target and target:FindFirstChild('Head') then workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.p, target.Head.CFrame.p) wait(0.1) end end speaker.CameraMaxZoomDistance = preMaxZoom speaker.CameraMinZoomDistance = preMinZoom end) addcmd('fixcam',{'restorecam'},function(args, speaker) StopFreecam() execCmd('unview') workspace.CurrentCamera:remove() wait(.1) repeat wait() until speaker.Character ~= nil workspace.CurrentCamera.CameraSubject = speaker.Character:FindFirstChildWhichIsA('Humanoid') workspace.CurrentCamera.CameraType = "Custom" speaker.CameraMinZoomDistance = 0.5 speaker.CameraMaxZoomDistance = 400 speaker.CameraMode = "Classic" speaker.Character.Head.Anchored = false end) addcmd("enableshiftlock", {"enablesl", "shiftlock"}, function(args, speaker) local function enableShiftlock() speaker.DevEnableMouseLock = true end CmdsTrackConnection(speaker:GetPropertyChangedSignal("DevEnableMouseLock"):Connect(enableShiftlock)) enableShiftlock() notify("Shiftlock", "Shift lock should now be available") end) addcmd('firstp',{},function(args, speaker) speaker.CameraMode = "LockFirstPerson" end) addcmd('thirdp',{},function(args, speaker) speaker.CameraMode = "Classic" end) addcmd('noclipcam', {'nccam'}, function(args, speaker) local sc = (debug and debug.setconstant) or setconstant local gc = (debug and debug.getconstants) or getconstants if not sc or not getgc or not gc then return notify('Incompatible Exploit', 'Your exploit does not support this command (missing setconstant or getconstants or getgc)') end local pop = speaker.PlayerScripts.PlayerModule.CameraModule.ZoomController.Popper for _, v in pairs(getgc()) do if type(v) == 'function' and getfenv(v).script == pop then for i, v1 in pairs(gc(v)) do if tonumber(v1) == .25 then sc(v, i, 0) elseif tonumber(v1) == 0 then sc(v, i, .25) end end end end end) addcmd('maxzoom',{},function(args, speaker) speaker.CameraMaxZoomDistance = args[1] end) addcmd('minzoom',{},function(args, speaker) speaker.CameraMinZoomDistance = args[1] end) addcmd('camdistance',{},function(args, speaker) local camMax = speaker.CameraMaxZoomDistance local camMin = speaker.CameraMinZoomDistance if camMax < tonumber(args[1]) then camMax = args[1] end speaker.CameraMaxZoomDistance = args[1] speaker.CameraMinZoomDistance = args[1] wait() speaker.CameraMaxZoomDistance = camMax speaker.CameraMinZoomDistance = camMin end) addcmd('unlockws',{'unlockworkspace'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") then v.Locked = false end end end) addcmd('lockws',{'lockworkspace'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") then v.Locked = true end end end) addcmd('delete',{'remove'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() then v:Destroy() end end notify('Item(s) Deleted','Deleted ' ..getstring(1, args)) end) addcmd('deleteclass',{'removeclass','deleteclassname','removeclassname','dc'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.ClassName:lower() == getstring(1, args):lower() then v:Destroy() end end notify('Item(s) Deleted','Deleted items with ClassName ' ..getstring(1, args)) end) addcmd('chardelete',{'charremove','cd'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() then v:Destroy() end end notify('Item(s) Deleted','Deleted ' ..getstring(1, args)) end) addcmd('chardeleteclass',{'charremoveclass','chardeleteclassname','charremoveclassname','cdc'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v.ClassName:lower() == getstring(1, args):lower() then v:Destroy() end end notify('Item(s) Deleted','Deleted items with ClassName ' ..getstring(1, args)) end) addcmd('deletevelocity',{'dv','removevelocity','removeforces'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("BodyVelocity") or v:IsA("BodyGyro") or v:IsA("RocketPropulsion") or v:IsA("BodyThrust") or v:IsA("BodyAngularVelocity") or v:IsA("AngularVelocity") or v:IsA("BodyForce") or v:IsA("VectorForce") or v:IsA("LineForce") then v:Destroy() end end end) addcmd('deleteinvisparts',{'deleteinvisibleparts','dip'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") and v.Transparency == 1 and v.CanCollide then v:Destroy() end end end) local shownParts = {} addcmd('invisibleparts',{'invisparts'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") and v.Transparency == 1 then if not table.find(shownParts,v) then table.insert(shownParts,v) end v.Transparency = 0 end end end) addcmd('uninvisibleparts',{'uninvisparts'},function(args, speaker) for i,v in pairs(shownParts) do v.Transparency = 1 end shownParts = {} end) addcmd("btools", {}, function(args, speaker) for i = 1, 4 do local Tool = Instance.new("HopperBin") Tool.BinType = i Tool.Name = randomString() Tool.Parent = speaker:FindFirstChildWhichIsA("Backpack") end end) addcmd("f3x", {"fex"}, function(args, speaker) loadstring(CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/refs/heads/main/f3x.lua"))() end) addcmd("partpath", {"partname"}, function(args, speaker) selectPart() end) local antiAfkCon = nil addcmd("antiafk", {"antiidle"}, function(args, speaker) if getconnections then for _, c in getconnections(speaker.Idled) do pcall(function() c:Disable() end) -- supposed to "pause" it pcall(function() c:Disconnect() end) -- supposed to disconnect it end end pcall(function() antiAfkCon:Disconnect() end) antiAfkCon = CmdsTrackConnection(speaker.Idled:Connect(function() local VirtualInputManager = Instance.new("VirtualInputManager") VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0) VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0) VirtualInputManager:Destroy() end)) if not (args[1] and tostring(args[1]) == "nonotify") then notify("Anti Idle", "Anti idle is enabled") end end) addcmd("datalimit", {}, function(args, speaker) local kbps = tonumber(args[1]) if kbps then Services.NetworkClient:SetOutgoingKBPSLimit(kbps) end end) addcmd("replicationlag", {"backtrack"}, function(args, speaker) if tonumber(args[1]) then settings():GetService("NetworkSettings").IncomingReplicationLag = args[1] end end) addcmd("noprompts", {"nopurchaseprompts"}, function(args, speaker) COREGUI.PurchasePromptApp.Enabled = false end) addcmd("showprompts", {"showpurchaseprompts"}, function(args, speaker) COREGUI.PurchasePromptApp.Enabled = true end) promptNewRig = function(speaker, rig) local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") if humanoid then AvatarEditorService:PromptSaveAvatar(humanoid.HumanoidDescription, Enum.HumanoidRigType[rig]) local result = AvatarEditorService.PromptSaveAvatarCompleted:Wait() if result == Enum.AvatarPromptResult.Success then execCmd("reset") end end end addcmd("promptr6", {}, function(args, speaker) promptNewRig(speaker, "R6") end) addcmd("promptr15", {}, function(args, speaker) promptNewRig(speaker, "R15") end) addcmd("wallwalk", {"walkonwalls"}, function(args, speaker) loadstring(CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/main/wallwalker.lua"))() end) addcmd('age',{},function(args, speaker) local players = getPlayer(args[1], speaker) local ages = {} for i,v in pairs(players) do local p = Players[v] table.insert(ages, p.Name.."'s age is: "..p.AccountAge) end notify('Account Age',table.concat(ages, ',\n')) end) addcmd('chatage',{},function(args, speaker) local players = getPlayer(args[1], speaker) local ages = {} for i,v in pairs(players) do local p = Players[v] table.insert(ages, p.Name.."'s age is: "..p.AccountAge) end local chatString = table.concat(ages, ', ') chatMessage(chatString) end) addcmd('joindate',{'jd'},function(args, speaker) local players = getPlayer(args[1], speaker) local dates = {} for i,v in pairs(players) do local p = Players[v] local secondsOld = p.AccountAge * 24 * 60 * 60 local now = os.time() local dateJoined = p.Name .. " joined: " .. os.date("%m/%d/%y", now - secondsOld) table.insert(dates, dateJoined) end notify('Join Date (Month/Day/Year)',table.concat(dates, ',\n')) end) addcmd('chatjoindate',{'cjd'},function(args, speaker) local players = getPlayer(args[1], speaker) local dates = {} for i,v in pairs(players) do local p = Players[v] local secondsOld = p.AccountAge * 24 * 60 * 60 local now = os.time() local dateJoined = p.Name .. " joined: " .. os.date("%m/%d/%y", now - secondsOld) table.insert(dates, dateJoined) end local chatString = table.concat(dates, ', ') chatMessage(chatString) end) addcmd('copyname',{'copyuser'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local name = tostring(Players[v].Name) toClipboard(name) end end) addcmd('userid',{'id'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local id = tostring(Players[v].UserId) notify('User ID',id) end end) addcmd("copyplaceid", {"placeid"}, function(args, speaker) toClipboard(PlaceId) end) addcmd("copygameid", {"gameid"}, function(args, speaker) toClipboard(game.GameId) end) addcmd('copyid',{'copyuserid'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local id = tostring(Players[v].UserId) toClipboard(id) end end) addcmd('creatorid',{'creator'},function(args, speaker) if game.CreatorType == Enum.CreatorType.User then notify('Creator ID',game.CreatorId) elseif game.CreatorType == Enum.CreatorType.Group then local OwnerID = GroupService:GetGroupInfoAsync(game.CreatorId).Owner.Id speaker.UserId = OwnerID notify('Creator ID',OwnerID) end end) addcmd('copycreatorid',{'copycreator'},function(args, speaker) if game.CreatorType == Enum.CreatorType.User then toClipboard(game.CreatorId) notify('Copied ID','Copied creator ID to clipboard') elseif game.CreatorType == Enum.CreatorType.Group then local OwnerID = GroupService:GetGroupInfoAsync(game.CreatorId).Owner.Id toClipboard(OwnerID) notify('Copied ID','Copied creator ID to clipboard') end end) addcmd('setcreatorid',{'setcreator'},function(args, speaker) if game.CreatorType == Enum.CreatorType.User then speaker.UserId = game.CreatorId notify('Set ID','Set UserId to '..game.CreatorId) elseif game.CreatorType == Enum.CreatorType.Group then local OwnerID = GroupService:GetGroupInfoAsync(game.CreatorId).Owner.Id speaker.UserId = OwnerID notify('Set ID','Set UserId to '..OwnerID) end end) addcmd('appearanceid',{'aid'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local aid = tostring(Players[v].CharacterAppearanceId) notify('Appearance ID',aid) end end) addcmd('copyappearanceid',{'caid'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do local aid = tostring(Players[v].CharacterAppearanceId) toClipboard(aid) end end) addcmd('agecheck',{},function(args, speaker) local plr = getSinglePlayer(args[1], speaker) local target = plr and Players:FindFirstChild(plr) if target then local z = (target.AgeChecked == Enum.AgeCheckStatus.Checked) if z then notify("Age Check", plr .. " did age verification.") else notify("Age Check", plr .. " did not do age verification.") end end end) addcmd('norender',{},function(args, speaker) RunService:Set3dRenderingEnabled(false) end) addcmd('render',{},function(args, speaker) RunService:Set3dRenderingEnabled(true) end) addcmd('2022materials',{'use2022materials'},function(args, speaker) if sethidden then sethidden(MaterialService, "Use2022Materials", true) else notify('Incompatible Exploit','Your exploit does not support this command (missing sethiddenproperty)') end end) addcmd('un2022materials',{'unuse2022materials'},function(args, speaker) if sethidden then sethidden(MaterialService, "Use2022Materials", false) else notify('Incompatible Exploit','Your exploit does not support this command (missing sethiddenproperty)') end end) addcmd("goto", {"to"}, function(args, speaker) local character = speaker and speaker.Character local humanoid = character and character:FindFirstChildWhichIsA("Humanoid") if humanoid == nil then return end if humanoid and humanoid.SeatPart then humanoid.Sit = false task.wait(0.1) end local waitForStream = parseBoolean(args[2], false) for _, name in getPlayer(args[1], speaker) do local targetCharacter = Players[name].Character if targetCharacter ~= nil then local targetPivot = targetCharacter:GetPivot() local targetPosition = targetPivot.Position if waitForStream and workspace.StreamingEnabled then task.spawn(speaker.RequestStreamAroundAsync, speaker, targetPosition, 5) targetCharacter:WaitForChild("HumanoidRootPart", 5) end speaker.Character:PivotTo(CFrame.new(targetPosition + (targetPivot.LookVector * 3), targetPosition)) breakVelocity() break end end end) plrtweening = nil addcmd("tweengoto", {"tgoto", "tto", "tweento"}, function(args, speaker) if not getRoot(speaker.Character) then return end local character = speaker.Character local humanoid = character:FindFirstChildWhichIsA("Humanoid") if not humanoid then return end local plr = Players:FindFirstChild(getSinglePlayer(args[1], speaker)) if not plr then return end if not getRoot(plr.Character) then return end local oldState = humanoid:GetStateEnabled(Enum.HumanoidStateType.Seated) if oldState then humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false) end if plrtweening then plrtweening:Cancel() end if humanoid and humanoid.SeatPart then humanoid.Sit = false task.wait(0.1) end plrtweening = TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed or 1, Enum.EasingStyle.Linear), { CFrame = getRoot(plr.Character):GetPivot() + Vector3.new(3, 1, 0) }) plrtweening:Play() CmdsTrackConnection(plrtweening.Completed:Once(function() breakVelocity() if humanoid and type(oldState) == "boolean" then humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, oldState) end end)) end) addcmd("vehiclegoto", {"vgoto", "vtp", "vehicletp"}, function(args, speaker) local character = speaker.Character local humanoid = if character then character:FindFirstChildOfClass("Humanoid") else nil if not humanoid then return end local seat = humanoid.SeatPart local vehicleModel = if seat then seat:FindFirstAncestorWhichIsA("Model") else nil if vehicleModel == nil then notify("Vehicle Goto", "Make sure you're sitting in a vehicle.") return end for _, v in getPlayer(args[1], speaker) do if Players[v].Character == nil then continue end local root = getRoot(Players[v].Character) if root == nil then continue end vehicleModel:PivotTo(root:GetPivot()) break end end) addcmd('pulsetp',{'ptp'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do if Players[v].Character ~= nil then local startPos = getRoot(speaker.Character).CFrame local seconds = args[2] or 1 if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end getRoot(speaker.Character).CFrame = getRoot(Players[v].Character).CFrame + Vector3.new(3,1,0) wait(seconds) getRoot(speaker.Character).CFrame = startPos end end execCmd('breakvelocity') end) vnoclipParts = {} addcmd('vehiclenoclip',{'vnoclip'},function(args, speaker) local character = speaker.Character local humanoid = character and character:FindFirstChildOfClass('Humanoid') if not humanoid then return end local seat = humanoid.SeatPart if not seat then return end local vehicleModel = seat:FindFirstAncestorOfClass("Model") if not vehicleModel then return end vnoclipParts = {} task.wait(0.1) execCmd('noclip') for i,v in pairs(vehicleModel:GetDescendants()) do if v:IsA("BasePart") and v.CanCollide then table.insert(vnoclipParts,v) v.CanCollide = false end end end) addcmd("vehicleclip", {"vclip", "unvnoclip", "unvehiclenoclip"}, function(args, speaker) execCmd("clip") for i, v in pairs(vnoclipParts) do if v and v.Parent then v.CanCollide = true end end vnoclipParts = {} end) addcmd("togglevnoclip", {}, function(args, speaker) execCmd(isClipped and "vnoclip" or "vclip") end) addcmd('clientbring',{'cbring'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do if Players[v].Character ~= nil then if Players[v].Character:FindFirstChildOfClass('Humanoid') then Players[v].Character:FindFirstChildOfClass('Humanoid').Sit = false end wait() getRoot(Players[v].Character).CFrame = getRoot(speaker.Character).CFrame + Vector3.new(3,1,0) end end end) local bringT = {} addcmd('loopbring',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do task.spawn(function() if Players[v].Name ~= speaker.Name and not FindInTable(bringT, Players[v].Name) then table.insert(bringT, Players[v].Name) local plrName = Players[v].Name local pchar=Players[v].Character local distance = 3 if args[2] and isNumber(args[2]) then distance = args[2] end local lDelay = 0 if args[3] and isNumber(args[3]) then lDelay = args[3] end repeat for i,c in pairs(players) do if Players:FindFirstChild(v) then pchar = Players[v].Character if pchar~= nil and Players[v].Character ~= nil and getRoot(pchar) and speaker.Character ~= nil and getRoot(speaker.Character) then getRoot(pchar).CFrame = getRoot(speaker.Character).CFrame + Vector3.new(distance,1,0) end wait(lDelay) else for a,b in pairs(bringT) do if b == plrName then table.remove(bringT, a) end end end end until not FindInTable(bringT, plrName) end end) end end) addcmd('unloopbring',{'noloopbring'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do task.spawn(function() for a,b in pairs(bringT) do if b == Players[v].Name then table.remove(bringT, a) end end end) end end) addcmd('walkto', {'follow'}, function(args, speaker) local wpchr = speaker.Character if not wpchr then return end local wproot = getRoot(wpchr) local wphuman = wpchr:FindFirstChildOfClass('Humanoid') if not wproot or not wphuman then return end walkto = false stopwpping(wphuman, wproot) task.wait() local fwtname = getSinglePlayer(args[1], speaker) local wt_target = fwtname and Players:FindFirstChild(fwtname) if not wt_target or not wt_target.Character then return end if wphuman.SeatPart then wphuman.Sit = false task.wait(0.1) end walkto = true task.spawn(function() while walkto and speaker.Character and wphuman.Parent and wproot.Parent do local wtchr = wt_target.Character local wtroot = wtchr and getRoot(wtchr) if not wtroot then break end wphuman:MoveTo(wtroot.Position) task.wait() end walkto = false end) end) addcmd('pathfindwalkto', {'pathfindfollow'}, function(args, speaker) local wpchr = speaker.Character if not wpchr then return end local wproot = getRoot(wpchr) local wphuman = wpchr:FindFirstChildOfClass('Humanoid') if not wproot or not wphuman then return end walkto = false stopwpping(wphuman, wproot) task.wait() local fpfwtarget = getSinglePlayer(args[1], speaker) local pfwtarget = fpfwtarget and Players:FindFirstChild(fpfwtarget) if not pfwtarget or not pfwtarget.Character then return end if wphuman.SeatPart then wphuman.Sit = false task.wait(0.1) end local path = PathService:CreatePath() walkto = true task.spawn(function() while walkto and speaker.Character and wphuman.Parent and wproot.Parent do local pfwchr = pfwtarget.Character local pfwroot = pfwchr and getRoot(pfwchr) if not pfwroot then break end local pfwpos = pfwroot.Position if (pfwpos - wproot.Position).Magnitude <= 5 then task.wait(0.1) continue end local success = pcall(function() path:ComputeAsync(wproot.Position, pfwpos) end) if success and path.Status == Enum.PathStatus.Success then local waypoints = path:GetWaypoints() for waypointIndex = 2, #waypoints do if not walkto or not wphuman.Parent or not wproot.Parent then break end if not pfwroot.Parent or (pfwroot.Position - pfwpos).Magnitude > 15 then break end local waypoint = waypoints[waypointIndex] if waypoint.Action == Enum.PathWaypointAction.Jump then wphuman.Jump = true end wphuman:MoveTo(waypoint.Position) local timeout = os.clock() + 3 while walkto and wphuman.Parent and wproot.Parent and (waypoint.Position - wproot.Position).Magnitude > 5 and os.clock() < timeout do task.wait() end end else wphuman:MoveTo(pfwpos) task.wait(0.25) end task.wait() end walkto = false end) end) addcmd('unwalkto',{'nowalkto','unfollow','nofollow'},function(args, speaker) walkto = false waypointwalkto = false end) addcmd("orbit", {}, function(args, speaker) execCmd("unorbit nonotify") local target = Players:FindFirstChild(getSinglePlayer(args[1], speaker)) local root = getRoot(speaker.Character) local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") if target and target.Character and getRoot(target.Character) and root and humanoid then local rotation = 0 local speed = tonumber(args[2]) or 0.2 local distance = tonumber(args[3]) or 6 orbit1 = CmdsTrackConnection(RunService.Stepped:Connect(function() breakVelocity() rotation = rotation + speed local targetRoot = getRoot(target.Character).Position local orbitPosition = (CFrame.new(targetRoot) * CFrame.Angles(0, math.rad(rotation), 0) * CFrame.new(distance, 0, 0)).Position root.CFrame = CFrame.lookAt(orbitPosition, Vector3.new(targetRoot.X, orbitPosition.Y, targetRoot.Z)) end)) orbit2 = CmdsTrackConnection(humanoid.Died:Connect(function() execCmd("unorbit") end)) orbit3 = CmdsTrackConnection(humanoid.Seated:Connect(function(value) if value then execCmd("unorbit") end end)) notify("Orbit", "Started orbiting " .. formatUsername(target)) end end) addcmd("unorbit", {}, function(args, speaker) if orbit1 then orbit1:Disconnect() end if orbit2 then orbit2:Disconnect() end if orbit3 then orbit3:Disconnect() end if args[1] ~= "nonotify" then notify("Orbit", "Stopped orbiting player") end end) addcmd('freeze',{'fr'},function(args, speaker) local players = getPlayer(args[1], speaker) if players ~= nil then for i,v in pairs(players) do task.spawn(function() for i, x in next, Players[v].Character:GetDescendants() do if x:IsA("BasePart") and not x.Anchored then x.Anchored = true end end end) end end end) addcmd('thaw',{'unfreeze','unfr'},function(args, speaker) local players = getPlayer(args[1], speaker) if players ~= nil then for i,v in pairs(players) do task.spawn(function() for i, x in next, Players[v].Character:GetDescendants() do if x.Name ~= floatName and x:IsA("BasePart") and x.Anchored then x.Anchored = false end end end) end end end) addcmd("anchor", {}, function(args, speaker) getRoot(speaker.Character).Anchored = true end) addcmd("unanchor", {}, function(args, speaker) getRoot(speaker.Character).Anchored = false end) oofing = false addcmd('loopoof',{},function(args, speaker) oofing = true repeat wait(0.1) for i,v in pairs(Players:GetPlayers()) do if v.Character ~= nil and v.Character:FindFirstChild'Head' then for _,x in pairs(v.Character.Head:GetChildren()) do if x:IsA'Sound' then x.Playing = true end end end end until oofing == false end) addcmd('unloopoof',{},function(args, speaker) oofing = false end) local notifiedRespectFiltering = false function check_nrf() if not notifiedRespectFiltering and SoundService.RespectFilteringEnabled then notifiedRespectFiltering = true notify('RespectFilteringEnabled','RespectFilteringEnabled is set to true (the command will still work but may only be clientsided)') end end addcmd('muteboombox',{'mutebb'},function(args, speaker) check_nrf() local players = getPlayer(args[1], speaker) if players ~= nil then for i,v in pairs(players) do task.spawn(function() for i, x in next, Players[v].Character:GetDescendants() do if x:IsA("Sound") and x.Playing == true then x.Playing = false end end for i, x in next, Players[v]:FindFirstChildOfClass("Backpack"):GetDescendants() do if x:IsA("Sound") and x.Playing == true then x.Playing = false end end end) end end end) addcmd('unmuteboombox',{'unmutebb'},function(args, speaker) check_nrf() local players = getPlayer(args[1], speaker) if players ~= nil then for i,v in pairs(players) do task.spawn(function() for i, x in next, Players[v].Character:GetDescendants() do if x:IsA("Sound") and x.Playing == false then x.Playing = true end end end) end end end) addcmd('killsounds',{'destroysounds', 'nosounds'},function(args, speaker) check_nrf() for _, sound in next, game:GetDescendants() do if sound:IsA("Sound") then sound:Destroy() end end end) addcmd('loopkillsounds',{'lksounds'},function(args, speaker) check_nrf() execCmd("unloopkillsounds nonotify\\killsounds") local function kso(sound) if sound:IsA("Sound") then sound:Destroy() end end foreverkillsounds = CmdsTrackConnection(game.DescendantAdded:Connect(kso)) return "Now destroying all sounds." end) addcmd('unloopkillsounds',{'unlksounds'},function(args, speaker) if foreverkillsounds then foreverkillsounds:Disconnect() foreverkillsounds = nil return "No longer destroying all sounds." end end) addcmd('stopsounds',{},function(args, speaker) check_nrf() for _, sound in next, game:GetDescendants() do if sound:IsA("Sound") then sound:Stop() end end end) addcmd('pausesounds',{},function(args, speaker) check_nrf() for _, sound in next, game:GetDescendants() do if sound:IsA("Sound") then sound:Pause() end end end) addcmd('playsounds',{},function(args, speaker) check_nrf() for _, sound in next, game:GetDescendants() do if sound:IsA("Sound") then sound:Play() end end end) addcmd("reset", {}, function(args, speaker) local humanoid = speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Dead) else speaker.Character:BreakJoints() end end) addcmd('freezeanims',{},function(args, speaker) local Humanoid = speaker.Character:FindFirstChildOfClass("Humanoid") or speaker.Character:FindFirstChildOfClass("AnimationController") local ActiveTracks = Humanoid:GetPlayingAnimationTracks() for _, v in pairs(ActiveTracks) do v:AdjustSpeed(0) end end) addcmd('unfreezeanims',{},function(args, speaker) local Humanoid = speaker.Character:FindFirstChildOfClass("Humanoid") or speaker.Character:FindFirstChildOfClass("AnimationController") local ActiveTracks = Humanoid:GetPlayingAnimationTracks() for _, v in pairs(ActiveTracks) do v:AdjustSpeed(1) end end) addcmd("respawn", {}, function(args, speaker) respawn(speaker) end) addcmd("refresh", {"re"}, function(args, speaker) refresh(speaker) end) invisRunning = false addcmd("strengthen", {}, function(args, speaker) for _, child in pairs(speaker.Character:GetDescendants()) do if child.ClassName == "Part" then if args[1] then child.CustomPhysicalProperties = PhysicalProperties.new(args[1], 0.3, 0.5) else child.CustomPhysicalProperties = PhysicalProperties.new(100, 0.3, 0.5) end end end end) addcmd("weaken", {}, function(args, speaker) for _, child in pairs(speaker.Character:GetDescendants()) do if child.ClassName == "Part" then if args[1] then child.CustomPhysicalProperties = PhysicalProperties.new(-args[1], 0.3, 0.5) else child.CustomPhysicalProperties = PhysicalProperties.new(0, 0.3, 0.5) end end end end) addcmd("unweaken", {"unstrengthen"}, function(args, speaker) for _, child in pairs(speaker.Character:GetDescendants()) do if child.ClassName == "Part" then child.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5) end end end) addcmd("breakvelocity", {}, function(args, speaker) local BeenASecond, V3 = false, Vector3.new(0, 0, 0) delay(1, function() BeenASecond = true end) while not BeenASecond do for _, v in ipairs(speaker.Character:GetDescendants()) do if v:IsA("BasePart") then v.Velocity, v.RotVelocity = V3, V3 end end wait() end end) addcmd('jpower',{'jumppower','jp'},function(args, speaker) local jpower = args[1] or 50 if isNumber(jpower) then if speaker.Character:FindFirstChildOfClass('Humanoid').UseJumpPower then speaker.Character:FindFirstChildOfClass('Humanoid').JumpPower = jpower else speaker.Character:FindFirstChildOfClass('Humanoid').JumpHeight = jpower end end end) addcmd("maxslopeangle", {"msa"}, function(args, speaker) local sangle = args[1] or 89 if isNumber(sangle) then speaker.Character:FindFirstChildWhichIsA("Humanoid").MaxSlopeAngle = sangle end end) addcmd("gravity", {"grav"}, function(args, speaker) local grav = args[1] or oldgrav if isNumber(grav) then workspace.Gravity = grav end end) addcmd("hipheight", {"hheight"}, function(args, speaker) local hipHeight = args[1] or (r15(speaker) and 2.1 or 0) if isNumber(hipHeight) then speaker.Character:FindFirstChildWhichIsA("Humanoid").HipHeight = hipHeight end end) addcmd("dance", {}, function(args, speaker) pcall(execCmd, "undance") local dances = {"27789359", "30196114", "248263260", "45834924", "33796059", "28488254", "52155728"} if r15(speaker) then dances = {"3333432454", "4555808220", "4049037604", "4555782893", "10214311282", "10714010337", "10713981723", "10714372526", "10714076981", "10714392151", "11444443576"} end local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://" .. dances[math.random(1, #dances)] danceTrack = speaker.Character:FindFirstChildWhichIsA("Humanoid"):LoadAnimation(animation) danceTrack.Looped = true danceTrack:Play() end) addcmd("undance", {"nodance"}, function(args, speaker) danceTrack:Stop() danceTrack:Destroy() end) addcmd("defemote", {}, function(args, speaker) if args[1] then if speaker.Character then speaker.Character.Animate.PlayEmote:Invoke(getstring(1, args)) end end end) addcmd('nolimbs',{'rlimbs'},function(args, speaker) if r15(speaker) then for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("BasePart") and v.Name == "RightUpperLeg" or v.Name == "LeftUpperLeg" or v.Name == "RightUpperArm" or v.Name == "LeftUpperArm" then v:Destroy() end end else for i,v in pairs(speaker.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:Destroy() end end end end) addcmd('noarms',{'rarms'},function(args, speaker) if r15(speaker) then for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("BasePart") and v.Name == "RightUpperArm" or v.Name == "LeftUpperArm" then v:Destroy() end end else for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("BasePart") and v.Name == "Right Arm" or v.Name == "Left Arm" then v:Destroy() end end end end) addcmd('nolegs',{'rlegs'},function(args, speaker) if r15(speaker) then for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("BasePart") and v.Name == "RightUpperLeg" or v.Name == "LeftUpperLeg" then v:Destroy() end end else for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("BasePart") and v.Name == "Right Leg" or v.Name == "Left Leg" then v:Destroy() end end end end) addcmd("sit", {}, function(args, speaker) speaker.Character:FindFirstChildWhichIsA("Humanoid").Sit = true end) addcmd("lay", {"laydown"}, function(args, speaker) local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") humanoid.Sit = true task.wait(0.1) humanoid.RootPart.CFrame = humanoid.RootPart.CFrame * CFrame.Angles(math.pi * 0.5, 0, 0) for _, v in ipairs(humanoid:GetPlayingAnimationTracks()) do v:Stop() end end) sitWalkBackups = {} addcmd("sitwalk", {}, function(args, speaker) if not speaker.Character then return end local hum = speaker.Character:FindFirstChild("Humanoid") if not hum then return end local anims = speaker.Character:FindFirstChild("Animate") if not anims then return end local function getAnim(stateName) local folder = anims:FindFirstChild(stateName) return folder and folder:FindFirstChildWhichIsA("Animation") end local sitAnim = getAnim("sit") if not sitAnim then return end if not sitWalkBackups[speaker] then sitWalkBackups[speaker] = { hipHeight = hum.HipHeight, anims = {} } for _, state in ipairs({"idle", "walk", "run", "jump"}) do local anim = getAnim(state) if anim then sitWalkBackups[speaker].anims[state] = anim.AnimationId end end end for _, state in ipairs({"idle", "walk", "run", "jump"}) do local anim = getAnim(state) if anim then anim.AnimationId = sitAnim.AnimationId end end hum.HipHeight = not r15(speaker) and -1.5 or 0.5 end) addcmd("unsitwalk", {}, function(args, speaker) if not speaker.Character then return end local hum = speaker.Character:FindFirstChild("Humanoid") local anims = speaker.Character:FindFirstChild("Animate") if not hum or not anims then return end local backup = sitWalkBackups[speaker] if backup then hum.HipHeight = backup.hipHeight for state, oldId in pairs(backup.anims) do local folder = anims:FindFirstChild(state) local anim = folder and folder:FindFirstChildWhichIsA("Animation") if anim then anim.AnimationId = oldId end end sitWalkBackups[speaker] = nil else hum.HipHeight = not r15(speaker) and 0 or 2 end anims.Disabled = true task.wait() anims.Disabled = false end) addcmd("nosit", {}, function(args, speaker) speaker.Character:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Seated, false) end) addcmd("unnosit", {}, function(args, speaker) speaker.Character:FindFirstChildWhichIsA("Humanoid"):SetStateEnabled(Enum.HumanoidStateType.Seated, true) end) addcmd("jump", {}, function(args, speaker) speaker.Character:FindFirstChildWhichIsA("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping) end) local infJump infJumpDebounce = false addcmd("infjump", {"infinitejump"}, function(args, speaker) if infJump then infJump:Disconnect() end infJumpDebounce = false infJump = CmdsTrackConnection(UserInputService.JumpRequest:Connect(function() if not infJumpDebounce then infJumpDebounce = true speaker.Character:FindFirstChildWhichIsA("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping) wait() infJumpDebounce = false end end)) end) addcmd("uninfjump", {"uninfinitejump", "noinfjump", "noinfinitejump"}, function(args, speaker) if infJump then infJump:Disconnect() end infJumpDebounce = false end) local flyjump addcmd("flyjump", {}, function(args, speaker) if flyjump then flyjump:Disconnect() end flyjump = CmdsTrackConnection(UserInputService.JumpRequest:Connect(function() speaker.Character:FindFirstChildWhichIsA("Humanoid"):ChangeState(Enum.HumanoidStateType.Jumping) end)) end) addcmd("unflyjump", {"noflyjump"}, function(args, speaker) if flyjump then flyjump:Disconnect() end end) local HumanModCons = {} addcmd('autojump',{'ajump'},function(args, speaker) local Char = speaker.Character local Human = Char and Char:FindFirstChildWhichIsA("Humanoid") local function autoJump() if Char and Human then local adroot = getRoot(Char) if not adroot then return end local check1 = workspace:FindPartOnRay(Ray.new(adroot.Position-Vector3.new(0,1.5,0), adroot.CFrame.lookVector*3), Human.Parent) local check2 = workspace:FindPartOnRay(Ray.new(adroot.Position+Vector3.new(0,1.5,0), adroot.CFrame.lookVector*3), Human.Parent) if check1 or check2 then Human.Jump = true end end end autoJump() HumanModCons.ajLoop = (HumanModCons.ajLoop and HumanModCons.ajLoop:Disconnect() and false) or CmdsTrackConnection(RunService.RenderStepped:Connect(autoJump)) HumanModCons.ajCA = (HumanModCons.ajCA and HumanModCons.ajCA:Disconnect() and false) or CmdsTrackConnection(speaker.CharacterAdded:Connect(function(nChar) Char, Human = nChar, nChar:WaitForChild("Humanoid") autoJump() HumanModCons.ajLoop = (HumanModCons.ajLoop and HumanModCons.ajLoop:Disconnect() and false) or CmdsTrackConnection(RunService.RenderStepped:Connect(autoJump)) end)) end) addcmd('unautojump',{'noautojump', 'noajump', 'unajump'},function(args, speaker) HumanModCons.ajLoop = (HumanModCons.ajLoop and HumanModCons.ajLoop:Disconnect() and false) or nil HumanModCons.ajCA = (HumanModCons.ajCA and HumanModCons.ajCA:Disconnect() and false) or nil end) addcmd('edgejump',{'ejump'},function(args, speaker) local Char = speaker.Character local Human = Char and Char:FindFirstChildWhichIsA("Humanoid") -- Full credit to NoelGamer06 @V3rmillion local state local laststate local lastcf local function edgejump() if Char and Human then laststate = state state = Human:GetState() local edroot = getRoot(Char) if not edroot then return end if laststate ~= state and state == Enum.HumanoidStateType.Freefall and laststate ~= Enum.HumanoidStateType.Jumping and lastcf then edroot.CFrame = lastcf local jutype = Human.UseJumpPower and Human.JumpPower or math.sqrt(2 * workspace.Gravity * Human.JumpHeight) edroot.Velocity = Vector3.new(edroot.Velocity.X, jutype, edroot.Velocity.Z) end lastcf = edroot.CFrame end end edgejump() HumanModCons.ejLoop = (HumanModCons.ejLoop and HumanModCons.ejLoop:Disconnect() and false) or CmdsTrackConnection(RunService.RenderStepped:Connect(edgejump)) HumanModCons.ejCA = (HumanModCons.ejCA and HumanModCons.ejCA:Disconnect() and false) or CmdsTrackConnection(speaker.CharacterAdded:Connect(function(nChar) Char, Human = nChar, nChar:WaitForChild("Humanoid") edgejump() HumanModCons.ejLoop = (HumanModCons.ejLoop and HumanModCons.ejLoop:Disconnect() and false) or CmdsTrackConnection(RunService.RenderStepped:Connect(edgejump)) end)) end) addcmd('unedgejump',{'noedgejump', 'noejump', 'unejump'},function(args, speaker) HumanModCons.ejLoop = (HumanModCons.ejLoop and HumanModCons.ejLoop:Disconnect() and false) or nil HumanModCons.ejCA = (HumanModCons.ejCA and HumanModCons.ejCA:Disconnect() and false) or nil end) addcmd('bunnyhop',{'bhop'},function(args, speaker) execCmd("unbhop") if not speaker.Character then return end local humanoid = speaker.Character:FindFirstChildOfClass("Humanoid") if not humanoid then return end local function hoppster() if humanoid.Health <= 0 then execCmd("unbhop") elseif humanoid.FloorMaterial ~= Enum.Material.Air then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end bHOP = CmdsTrackConnection(RunService.Heartbeat:Connect(hoppster)) end) addcmd('unbunnyhop',{'unbhop'},function(args, speaker) if bHOP then bHOP:Disconnect() bHOP = nil end end) addcmd("team", {}, function(args, speaker) local teamName = getstring(1, args) local team = nil local root = speaker.Character and getRoot(speaker.Character) for _, v in ipairs(Teams:GetChildren()) do if v.Name:lower():match(teamName:lower()) then team = v break end end if not team then return notify("Invalid Team", teamName .. " is not a valid team") end if root and firetouchinterest then for _, v in ipairs(workspace:GetDescendants()) do if v:IsA("SpawnLocation") and v.BrickColor == team.TeamColor and v.AllowTeamChangeOnTouch == true then firetouchinterest(v, root, 0) firetouchinterest(v, root, 1) break end end else speaker.Team = team end end) addcmd('nobgui',{'unbgui','nobillboardgui','unbillboardgui','noname','rohg'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants())do if v:IsA("BillboardGui") or v:IsA("SurfaceGui") then v:Destroy() end end end) addcmd('loopnobgui',{'loopunbgui','loopnobillboardgui','loopunbillboardgui','loopnoname','looprohg'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants())do if v:IsA("BillboardGui") or v:IsA("SurfaceGui") then v:Destroy() end end local function charPartAdded(part) if part:IsA("BillboardGui") or part:IsA("SurfaceGui") then wait() part:Destroy() end end charPartTrigger = CmdsTrackConnection(speaker.Character.DescendantAdded:Connect(charPartAdded)) end) addcmd('unloopnobgui',{'unloopunbgui','unloopnobillboardgui','unloopunbillboardgui','unloopnoname','unlooprohg'},function(args, speaker) if charPartTrigger then charPartTrigger:Disconnect() end end) addcmd('spasm',{},function(args, speaker) if not r15(speaker) then local pchar=speaker.Character local AnimationId = "33796059" SpasmAnim = Instance.new("Animation") SpasmAnim.AnimationId = "rbxassetid://"..AnimationId Spasm = pchar:FindFirstChildOfClass('Humanoid'):LoadAnimation(SpasmAnim) Spasm:Play() Spasm:AdjustSpeed(99) else notify('R6 Required','This command requires the r6 rig type') end end) addcmd('unspasm',{'nospasm'},function(args, speaker) Spasm:Stop() SpasmAnim:Destroy() end) addcmd('headthrow',{},function(args, speaker) if not r15(speaker) then local AnimationId = "35154961" local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://"..AnimationId local k = speaker.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(Anim) k:Play(0) k:AdjustSpeed(1) else notify('R6 Required','This command requires the r6 rig type') end end) addcmd("hug", {}, function(args, speaker) if not r15(speaker) then local Anim = Instance.new("Animation") Anim.AnimationId = "rbxassetid://27432686" local Humanoid = speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") if not Humanoid then return end local k = Humanoid:LoadAnimation(Anim) k:Play(0.1, 1, 1) task.wait(0.8) k:AdjustSpeed(0) else notify("R6 Required", "This command requires the r6 rig type") end end) addcmd("unhug", {}, function(args, speaker) local Humanoid = speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") if Humanoid then for _, v in ipairs(Humanoid:GetPlayingAnimationTracks()) do if v.Animation.AnimationId == "rbxassetid://27432686" then v:Stop() end end end end) function anim2track(asset_id) local objs = game:GetObjects(asset_id) for i = 1, #objs do if objs[i]:IsA("Animation") then return objs[i].AnimationId end end return asset_id end addcmd("animation", {"anim"}, function(args, speaker) if not args[1] then return end local animid = tostring(args[1]) local character = speaker.Character local humanoid = character and (character:FindFirstChildOfClass("Humanoid") or character:FindFirstChildOfClass("AnimationController")) if not humanoid then return end if not animid:find("rbxassetid://") then animid = "rbxassetid://" .. animid end animid = anim2track(animid) local speed local overlay = false if args[2] then if isNumber(args[2]) then speed = tonumber(args[2]) if args[3] then overlay = parseBoolean(args[3], false) end else overlay = parseBoolean(args[2], false) end end if not overlay then execCmd("stopanimations") end local animation = Instance.new("Animation") animation.AnimationId = animid local animator = humanoid:FindFirstChildWhichIsA("Animator") or humanoid local anim = animator:LoadAnimation(animation) anim.Priority = overlay and Enum.AnimationPriority.Action or Enum.AnimationPriority.Movement anim:Play() if speed then anim:AdjustSpeed(speed) end end) addcmd("emote", {"em"}, function(args, speaker) local anim = humanoid:PlayEmoteAndGetAnimTrackById(args[1]) if args[2] then anim:AdjustSpeed(tostring(args[2])) end end) addcmd('noanim',{},function(args, speaker) speaker.Character.Animate.Disabled = true end) addcmd('reanim',{},function(args, speaker) speaker.Character.Animate.Disabled = false end) addcmd('animspeed',{},function(args, speaker) local Char = speaker.Character local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController") for i,v in next, Hum:GetPlayingAnimationTracks() do v:AdjustSpeed(tonumber(args[1] or 1)) end end) addcmd('copyanimation',{'copyanim','copyemote'},function(args, speaker) local players = getPlayer(args[1], speaker) for _,v in ipairs(players)do local char = Players[v].Character for _, v1 in pairs(speaker.Character:FindFirstChildOfClass('Humanoid'):GetPlayingAnimationTracks()) do v1:Stop() end for _, v1 in pairs(Players[v].Character:FindFirstChildOfClass('Humanoid'):GetPlayingAnimationTracks()) do if not string.find(v1.Animation.AnimationId, "507768375") then local ANIM = speaker.Character:FindFirstChildOfClass('Humanoid'):LoadAnimation(v1.Animation) ANIM:Play(.1, 1, v1.Speed) ANIM.TimePosition = v1.TimePosition task.spawn(function() v1.Stopped:Wait() ANIM:Stop() ANIM:Destroy() end) end end end end) addcmd("copyanimationid", {"copyanimid", "copyemoteid"}, function(args, speaker) local copyAnimId = function(player) local found = "Animations Copied" for _, v in pairs(player.Character:FindFirstChildWhichIsA("Humanoid"):GetPlayingAnimationTracks()) do local animationId = v.Animation.AnimationId local assetId = animationId:find("rbxassetid://") and animationId:match("%d+") if not string.find(animationId, "507768375") and not string.find(animationId, "180435571") then if assetId then local success, result = pcall(function() return MarketplaceService:GetProductInfo(tonumber(assetId)).Name end) local name = success and result or "Failed to get name" found = found .. "\n\nName: " .. name .. "\nAnimation Id: " .. animationId else found = found .. "\n\nAnimation Id: " .. animationId end end end if found ~= "Animations Copied" then toClipboard(found) else notify("Animations", "No animations to copy") end end if args[1] then copyAnimId(Players[getSinglePlayer(args[1], speaker)]) else copyAnimId(speaker) end end) addcmd('stopanimations', {'stopanims', 'stopanim'}, function(args, speaker) local Char = speaker.Character local Hum = Char and (Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")) if not Hum then return end for i, v in next, Hum:GetPlayingAnimationTracks() do v:Stop() end end) addcmd('refreshanimations', {'refreshanimation', 'refreshanims', 'refreshanim'}, function(args, speaker) local Char = speaker.Character or speaker.CharacterAdded:Wait() local Human = Char and Char:WaitForChild('Humanoid', 15) local Animate = Char and Char:WaitForChild('Animate', 15) if not Human or not Animate then return notify('Refresh Animations', 'Failed to get Animate/Humanoid') end Animate.Disabled = true for _, v in ipairs(Human:GetPlayingAnimationTracks()) do v:Stop() end Animate.Disabled = false end) addcmd('allowcustomanim', {'allowcustomanimations'}, function(args, speaker) StarterPlayer.AllowCustomAnimations = true execCmd('refreshanimations') end) addcmd('unallowcustomanim', {'unallowcustomanimations'}, function(args, speaker) StarterPlayer.AllowCustomAnimations = false execCmd('refreshanimations') end) addcmd('loopanimation', {'loopanim'},function(args, speaker) local Char = speaker.Character local Human = Char and Char.FindFirstChildWhichIsA(Char, "Humanoid") for _, v in ipairs(Human.GetPlayingAnimationTracks(Human)) do v.Looped = true end end) addcmd('tpposition',{'tppos'},function(args, speaker) if #args < 3 then return end local tpX,tpY,tpZ = tonumber((args[1]:gsub(",", ""))),tonumber((args[2]:gsub(",", ""))),tonumber((args[3]:gsub(",", ""))) local char = speaker.Character if char and getRoot(char) then getRoot(char).CFrame = CFrame.new(tpX,tpY,tpZ) end end) addcmd('tweentpposition',{'ttppos'},function(args, speaker) if #args < 3 then return end local tpX,tpY,tpZ = tonumber((args[1]:gsub(",", ""))),tonumber((args[2]:gsub(",", ""))),tonumber((args[3]:gsub(",", ""))) local char = speaker.Character if char and getRoot(char) then TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = CFrame.new(tpX,tpY,tpZ)}):Play() end end) addcmd("offset", {}, function(args, speaker) if #args < 3 then return end speaker.Character:TranslateBy(Vector3.new(tonumber(args[1]) or 0, tonumber(args[2]) or 0, tonumber(args[3]) or 0)) end) addcmd("tweenoffset", {"toffset"}, function(args, speaker) if #args < 3 then return end local tpX, tpY, tpZ = tonumber(args[1]), tonumber(args[2]), tonumber(args[3]) local root = getRoot(speaker.Character) local pos = root.Position + Vector3.new(tpX, tpY, tpZ) TweenService:Create(root, TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = CFrame.new(pos)}):Play() breakVelocity() end) addcmd("mouseteleport", {"mousetp"}, function(args, speaker) local root = getRoot(speaker.Character) local pos = IYMouse.Hit if root and pos then root.CFrame = CFrame.new(pos.X, pos.Y + 3, pos.Z, select(4, root.CFrame:components())) breakVelocity() end end) addcmd("tptool", {"teleporttool"}, function(args, speaker) local TpTool = Instance.new("Tool") TpTool.Name = "Teleport Tool" TpTool.RequiresHandle = false TpTool.Parent = speaker:FindFirstChildOfClass("Backpack") CmdsTrackConnection(TpTool.Activated:Connect(function() local root = getRoot(speaker.Character) local pos = IYMouse.Hit if not root or not pos then return end root.CFrame = CFrame.new(pos.X, pos.Y + 3, pos.Z, select(4, root.CFrame:components())) breakVelocity() end)) end) addcmd("tweentptool", {"tweenteleporttool", "ttptool", "twtptool"}, function(args, speaker) local TpTool = Instance.new("Tool") TpTool.Name = "Tween Teleport Tool" TpTool.RequiresHandle = false TpTool.Parent = speaker:FindFirstChildOfClass("Backpack") local activeTween = nil CmdsTrackConnection(TpTool.Activated:Connect(function() local character = speaker and speaker.Character local root = getRoot(character) local humanoid = character and character:FindFirstChildWhichIsA("Humanoid") local pos = IYMouse.Hit if not root or not pos then return end if activeTween then activeTween:Cancel() end local oldState = humanoid and humanoid:GetStateEnabled(Enum.HumanoidStateType.Seated) if humanoid then humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, false) if humanoid.SeatPart then humanoid.Sit = false task.wait(0.1) end end local targetCFrame = CFrame.new(pos.X, pos.Y + 3, pos.Z, select(4, root.CFrame:components())) activeTween = TweenService:Create(root, TweenInfo.new(tweenSpeed or 1, Enum.EasingStyle.Linear), { CFrame = targetCFrame }) activeTween:Play() CmdsTrackConnection(activeTween.Completed:Once(function() breakVelocity() if humanoid and type(oldState) == "boolean" then humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated, oldState) end end)) end)) end) addcmd("thru", {}, function(args, speaker) local character = speaker.Character local root = character and getRoot(character) if not root then return end local thudistance = tonumber(args[1]) or 5 local typeyth = parseBoolean(args[2]) or false if typeyth then local pos = root.CFrame.Position + (root.CFrame.LookVector * thudistance) root.CFrame = CFrame.new(pos, pos + root.CFrame.LookVector) else character:PivotTo(root:GetPivot() * CFrame.new(0, 0, -thudistance)) end end) addcmd('getposition',{'getpos','notifypos','notifyposition'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do local char = Players[v].Character local pos = char and (getRoot(char) or char:FindFirstChildWhichIsA("BasePart")) pos = pos and pos.Position if not pos then return notify('Getposition Error','Missing character') end local roundedPos = math.round(pos.X) .. ", " .. math.round(pos.Y) .. ", " .. math.round(pos.Z) notify('Current Position',roundedPos) end end) addcmd('copyposition',{'copypos'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do local char = Players[v].Character local pos = char and (getRoot(char) or char:FindFirstChildWhichIsA("BasePart")) pos = pos and pos.Position if not pos then return notify('Getposition Error','Missing character') end local roundedPos = math.round(pos.X) .. ", " .. math.round(pos.Y) .. ", " .. math.round(pos.Z) toClipboard(roundedPos) end end) addcmd('walktopos',{'walktoposition'},function(args, speaker) if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end speaker.Character:FindFirstChildOfClass('Humanoid').WalkToPoint = Vector3.new(args[1],args[2],args[3]) end) addcmd('speed',{'ws','walkspeed'},function(args, speaker) if args[2] then local speed = args[2] or 16 if isNumber(speed) then speaker.Character:FindFirstChildOfClass('Humanoid').WalkSpeed = speed end else local speed = args[1] or 16 if isNumber(speed) then speaker.Character:FindFirstChildOfClass('Humanoid').WalkSpeed = speed end end end) addcmd('spoofspeed',{'spoofws','spoofwalkspeed'},function(args, speaker) if args[1] and isNumber(args[1]) then if hookmetamethod then local char = speaker.Character local setspeed; local index; index = hookmetamethod(game, "__index", function(self, key) if not checkcaller() and typeof(self) == "Instance" and self:IsA("Humanoid") and (key == "WalkSpeed" or key == "walkSpeed") and self:IsDescendantOf(char) then return setspeed or args[1] end return index(self, key) end) local newindex; newindex = hookmetamethod(game, "__newindex", function(self, key, value) if not checkcaller() and typeof(self) == "Instance" and self:IsA("Humanoid") and (key == "WalkSpeed" or key == "walkSpeed") and self:IsDescendantOf(char) then setspeed = tonumber(value) end return newindex(self, key, value) end) else notify('Incompatible Exploit','Your exploit does not support this command (missing hookmetamethod)') end end end) addcmd('loopspeed',{'loopws'},function(args, speaker) local speed = args[1] or 16 if args[2] then speed = args[2] or 16 end if isNumber(speed) then local Char = speaker.Character or workspace:FindFirstChild(speaker.Name) local Human = Char and Char:FindFirstChildWhichIsA("Humanoid") local function WalkSpeedChange() if Char and Human then Human.WalkSpeed = speed end end WalkSpeedChange() HumanModCons.wsLoop = (HumanModCons.wsLoop and HumanModCons.wsLoop:Disconnect() and false) or CmdsTrackConnection(Human:GetPropertyChangedSignal("WalkSpeed"):Connect(WalkSpeedChange)) HumanModCons.wsCA = (HumanModCons.wsCA and HumanModCons.wsCA:Disconnect() and false) or CmdsTrackConnection(speaker.CharacterAdded:Connect(function(nChar) Char, Human = nChar, nChar:WaitForChild("Humanoid") WalkSpeedChange() HumanModCons.wsLoop = (HumanModCons.wsLoop and HumanModCons.wsLoop:Disconnect() and false) or CmdsTrackConnection(Human:GetPropertyChangedSignal("WalkSpeed"):Connect(WalkSpeedChange)) end)) end end) addcmd('unloopspeed',{'unloopws'},function(args, speaker) HumanModCons.wsLoop = (HumanModCons.wsLoop and HumanModCons.wsLoop:Disconnect() and false) or nil HumanModCons.wsCA = (HumanModCons.wsCA and HumanModCons.wsCA:Disconnect() and false) or nil end) addcmd('spoofjumppower',{'spoofjp'},function(args, speaker) if args[1] and isNumber(args[1]) then if hookmetamethod then local char = speaker.Character local setpower; local index; index = hookmetamethod(game, "__index", function(self, key) if not checkcaller() and typeof(self) == "Instance" and self:IsA("Humanoid") and (key == "JumpPower" or key == "jumpPower") and self:IsDescendantOf(char) then return setpower or args[1] end return index(self, key) end) local newindex; newindex = hookmetamethod(game, "__newindex", function(self, key, value) if not checkcaller() and typeof(self) == "Instance" and self:IsA("Humanoid") and (key == "JumpPower" or key == "jumpPower") and self:IsDescendantOf(char) then setpower = tonumber(value) end return newindex(self, key, value) end) else notify('Incompatible Exploit','Your exploit does not support this command (missing hookmetamethod)') end end end) addcmd('loopjumppower',{'loopjp','loopjpower'},function(args, speaker) local jpower = args[1] or 50 if isNumber(jpower) then local Char = speaker.Character or workspace:FindFirstChild(speaker.Name) local Human = Char and Char:FindFirstChildWhichIsA("Humanoid") local function JumpPowerChange() if Char and Human then if speaker.Character:FindFirstChildOfClass('Humanoid').UseJumpPower then speaker.Character:FindFirstChildOfClass('Humanoid').JumpPower = jpower else speaker.Character:FindFirstChildOfClass('Humanoid').JumpHeight = jpower end end end JumpPowerChange() HumanModCons.jpLoop = (HumanModCons.jpLoop and HumanModCons.jpLoop:Disconnect() and false) or CmdsTrackConnection(Human:GetPropertyChangedSignal("JumpPower"):Connect(JumpPowerChange)) HumanModCons.jpCA = (HumanModCons.jpCA and HumanModCons.jpCA:Disconnect() and false) or CmdsTrackConnection(speaker.CharacterAdded:Connect(function(nChar) Char, Human = nChar, nChar:WaitForChild("Humanoid") JumpPowerChange() HumanModCons.jpLoop = (HumanModCons.jpLoop and HumanModCons.jpLoop:Disconnect() and false) or CmdsTrackConnection(Human:GetPropertyChangedSignal("JumpPower"):Connect(JumpPowerChange)) end)) end end) addcmd('unloopjumppower',{'unloopjp','unloopjpower'},function(args, speaker) local Char = speaker.Character or workspace:FindFirstChild(speaker.Name) local Human = Char and Char:FindFirstChildWhichIsA("Humanoid") HumanModCons.jpLoop = (HumanModCons.jpLoop and HumanModCons.jpLoop:Disconnect() and false) or nil HumanModCons.jpCA = (HumanModCons.jpCA and HumanModCons.jpCA:Disconnect() and false) or nil if Char and Human then if speaker.Character:FindFirstChildOfClass('Humanoid').UseJumpPower then speaker.Character:FindFirstChildOfClass('Humanoid').JumpPower = 50 else speaker.Character:FindFirstChildOfClass('Humanoid').JumpHeight = 50 end end end) addcmd('tools',{'gears'},function(args, speaker) local function copy(instance) for i,c in pairs(instance:GetChildren())do if c:IsA('Tool') or c:IsA('HopperBin') then c:Clone().Parent = speaker:FindFirstChildOfClass("Backpack") end copy(c) end end copy(Lighting) local function copy(instance) for i,c in pairs(instance:GetChildren())do if c:IsA('Tool') or c:IsA('HopperBin') then c:Clone().Parent = speaker:FindFirstChildOfClass("Backpack") end copy(c) end end copy(ReplicatedStorage) notify('Tools','Copied tools from ReplicatedStorage and Lighting') end) addcmd('notools',{'rtools','clrtools','removetools','deletetools','dtools'},function(args, speaker) for i,v in pairs(speaker:FindFirstChildOfClass("Backpack"):GetDescendants()) do if v:IsA('Tool') or v:IsA('HopperBin') then v:Destroy() end end for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA('Tool') or v:IsA('HopperBin') then v:Destroy() end end end) addcmd('deleteselectedtool',{'dst'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA('Tool') or v:IsA('HopperBin') then v:Destroy() end end end) addcmd("console", {}, function(args, speaker) StarterGui:SetCore("DevConsoleVisible", true) end) addcmd('oldconsole',{},function(args, speaker) -- Thanks wally!! notify("Loading",'Hold on a sec') local _, str = pcall(function() return CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/main/console.lua", true) end) local s, e = loadstring(str) if typeof(s) ~= "function" then return end local success, message = pcall(s) if (not success) then if printconsole then printconsole(message) elseif printoutput then printoutput(message) end end wait(1) notify('Console','Press F9 to open the console') end) addcmd("explorer", {"dex"}, function(args, speaker) notify("Loading", "Hold on a sec") loadstring(CmdsHttpGet("https://github.com/AZYsGithub/DexPlusPlus/releases/latest/download/out.lua"))() end) addcmd("moondex", {"mdex"}, function(args, speaker) notify("Loading", "Hold on a sec") loadstring(CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/main/dex.lua"))() end) addcmd("remotespy", {"rspy", "cobalt", "cspy"}, function(args, speaker) notify("Loading", "Hold on a sec") -- Full credit to notpoiu, creator of Cobalt loadstring(CmdsHttpGet("https://gitlab.com/upio/cobalt/-/releases/permalink/latest/downloads/Cobalt.luau"))() end) addcmd("simplespy", {"sspy"}, function(args, speaker) notify("Loading", "Hold on a sec") -- Full credit to exx, creator of SimpleSpy -- also thanks to Amity for fixing loadstring(CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/main/SimpleSpyV3/main.lua"))() end) addcmd('audiologger',{'alogger'},function(args, speaker) notify("Loading",'Hold on a sec') loadstring(CmdsHttpGet(('https://raw.githubusercontent.com/infyiff/backup/main/audiologger.lua'),true))() end) addcmd("animationlogger", {"animlogger"}, function(args, speaker) notify("Loading", "Hold on a sec") loadstring(CmdsHttpGet("https://raw.githubusercontent.com/infyiff/backup/refs/heads/main/animationlogger.lua"))() end) local loopgoto = nil addcmd('loopgoto',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do loopgoto = nil if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end loopgoto = Players[v] local distance = 3 if args[2] and isNumber(args[2]) then distance = args[2] end local lDelay = 0 if args[3] and isNumber(args[3]) then lDelay = args[3] end repeat if Players:FindFirstChild(v) then if Players[v].Character ~= nil then getRoot(speaker.Character).CFrame = getRoot(Players[v].Character).CFrame + Vector3.new(distance,1,0) end wait(lDelay) else loopgoto = nil end until loopgoto ~= Players[v] end end) addcmd('unloopgoto',{'noloopgoto'},function(args, speaker) loopgoto = nil end) addcmd('headsit',{},function(args, speaker) local players = getPlayer(args[1], speaker) if headSit then headSit:Disconnect() end for i,v in pairs(players)do speaker.Character:FindFirstChildOfClass('Humanoid').Sit = true headSit = CmdsTrackConnection(RunService.Heartbeat:Connect(function() if Players:FindFirstChild(Players[v].Name) and Players[v].Character ~= nil and getRoot(Players[v].Character) and getRoot(speaker.Character) and speaker.Character:FindFirstChildOfClass('Humanoid').Sit == true then getRoot(speaker.Character).CFrame = getRoot(Players[v].Character).CFrame * CFrame.Angles(0,math.rad(0),0)* CFrame.new(0,1.6,0.4) else headSit:Disconnect() end end)) end end) addcmd('chat',{'say'},function(args, speaker) local cString = getstring(1, args) chatMessage(cString) end) parroting = false addcmd('parrot',{},function(args, speaker) parroting = true end) addcmd('unparrot',{},function(args, speaker) parroting = false end) addcmd("vsay", {}, function(args, speaker) if speaker.Character and speaker.Character:FindFirstChild("Head") then game.Chat:Chat(speaker.Character.Head, getstring(1, args), Enum.ChatColor.White) end end) spamming = false spamspeed = 1 addcmd('spam',{},function(args, speaker) spamming = true local spamstring = getstring(1, args) repeat wait(spamspeed) chatMessage(spamstring) until spamming == false end) addcmd('nospam',{'unspam'},function(args, speaker) spamming = false end) addcmd('whisper',{'pm'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do task.spawn(function() local plrName = Players[v].Name local pmstring = getstring(2, args) chatMessage("/w "..plrName.." "..pmstring) end) end end) pmspamming = {} addcmd('pmspam',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do task.spawn(function() local plrName = Players[v].Name if FindInTable(pmspamming, plrName) then return end table.insert(pmspamming, plrName) local pmspamstring = getstring(2, args) repeat if Players:FindFirstChild(v) then wait(spamspeed) chatMessage("/w "..plrName.." "..pmspamstring) else for a,b in pairs(pmspamming) do if b == plrName then table.remove(pmspamming, a) end end end until not FindInTable(pmspamming, plrName) end) end end) addcmd('nopmspam',{'unpmspam'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do task.spawn(function() for a,b in pairs(pmspamming) do if b == Players[v].Name then table.remove(pmspamming, a) end end end) end end) addcmd('spamspeed',{},function(args, speaker) local speed = args[1] or 1 if isNumber(speed) then spamspeed = speed end end) addcmd('bubblechat',{},function(args, speaker) if isLegacyChat then ChatService.BubbleChatEnabled = true else TextChatService.BubbleChatConfiguration.Enabled = true end end) addcmd('unbubblechat',{'nobubblechat'},function(args, speaker) if isLegacyChat then ChatService.BubbleChatEnabled = false else TextChatService.BubbleChatConfiguration.Enabled = false end end) addcmd("chatwindow", {}, function(args, speaker) TextChatService.ChatWindowConfiguration.Enabled = true end) addcmd("unchatwindow", {"nochatwindow"}, function(args, speaker) TextChatService.ChatWindowConfiguration.Enabled = false end) addcmd("darkchat", {}, function(args, speaker) local BCC = TextChatService:FindFirstChildOfClass("BubbleChatConfiguration") local CWC = TextChatService:FindFirstChildOfClass("ChatWindowConfiguration") local CIBC = TextChatService:FindFirstChildOfClass("ChatInputBarConfiguration") if BCC then BCC.Enabled = true BCC.BackgroundColor3 = Color3.fromRGB() BCC.BackgroundTransparency = 0.3 BCC.TailVisible = true BCC.TextColor3 = Color3.fromRGB(0xFF, 0xFF, 0xFF) end if CWC then CWC.Enabled = true CWC.BackgroundColor3 = Color3.fromRGB() CWC.BackgroundTransparency = 0.3 CWC.TextColor3 = Color3.fromRGB(0xFF, 0xFF, 0xFF) CWC.TextStrokeColor3 = Color3.fromRGB() CWC.TextStrokeTransparency = 0.5 end if CIBC then CIBC.Enabled = true CIBC.BackgroundColor3 = Color3.fromRGB() CIBC.BackgroundTransparency = 0.5 CIBC.PlaceholderColor3 = Color3.fromRGB(0xFF, 0xFF, 0xFF) CIBC.TextColor3 = Color3.fromRGB(0xFF, 0xFF, 0xFF) CIBC.TextStrokeColor3 = Color3.fromRGB() CIBC.TextStrokeTransparency = 0.5 end end) addcmd('blockhead',{},function(args, speaker) speaker.Character.Head:FindFirstChildOfClass("SpecialMesh"):Destroy() end) addcmd('blockhats',{},function(args, speaker) for _,v in pairs(speaker.Character:FindFirstChildOfClass('Humanoid'):GetAccessories()) do for i,c in pairs(v:GetDescendants()) do if c:IsA("SpecialMesh") then c:Destroy() end end end end) addcmd('blocktool',{},function(args, speaker) for _,v in pairs(speaker.Character:GetChildren()) do if v:IsA("Tool") or v:IsA("HopperBin") then for i,c in pairs(v:GetDescendants()) do if c:IsA("SpecialMesh") then c:Destroy() end end end end end) addcmd('creeper',{},function(args, speaker) if r15(speaker) then speaker.Character.Head:FindFirstChildOfClass("SpecialMesh"):Destroy() speaker.Character.LeftUpperArm:Destroy() speaker.Character.RightUpperArm:Destroy() speaker.Character:FindFirstChildOfClass("Humanoid"):RemoveAccessories() else speaker.Character.Head:FindFirstChildOfClass("SpecialMesh"):Destroy() speaker.Character["Left Arm"]:Destroy() speaker.Character["Right Arm"]:Destroy() speaker.Character:FindFirstChildOfClass("Humanoid"):RemoveAccessories() end end) function getTorso(x) x = x or Players.LocalPlayer.Character return x:FindFirstChild("Torso") or x:FindFirstChild("UpperTorso") or x:FindFirstChild("LowerTorso") or x:FindFirstChild("HumanoidRootPart") end addcmd('friend',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do speaker:RequestFriendship(Players[v]) end end) addcmd('unfriend',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do speaker:RevokeFriendship(Players[v]) end end) addcmd('bringpart',{},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("BasePart") then v.CFrame = getRoot(speaker.Character).CFrame end end end) addcmd('bringpartclass',{'bpc'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.ClassName:lower() == getstring(1, args):lower() and v:IsA("BasePart") then v.CFrame = getRoot(speaker.Character).CFrame end end end) gotopartDelay = 0.1 addcmd('gotopart',{'topart'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("BasePart") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) getRoot(speaker.Character).CFrame = v.CFrame end end end) addcmd('tweengotopart',{'tgotopart','ttopart'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("BasePart") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = v.CFrame}):Play() end end end) addcmd('gotopartclass',{'gpc'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.ClassName:lower() == getstring(1, args):lower() and v:IsA("BasePart") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) getRoot(speaker.Character).CFrame = v.CFrame end end end) addcmd('tweengotopartclass',{'tgpc'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.ClassName:lower() == getstring(1, args):lower() and v:IsA("BasePart") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = v.CFrame}):Play() end end end) addcmd('gotomodel',{'tomodel'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("Model") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) getRoot(speaker.Character).CFrame = v:GetModelCFrame() end end end) addcmd('tweengotomodel',{'tgotomodel','ttomodel'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v.Name:lower() == getstring(1, args):lower() and v:IsA("Model") then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end wait(gotopartDelay) TweenService:Create(getRoot(speaker.Character), TweenInfo.new(tweenSpeed, Enum.EasingStyle.Linear), {CFrame = v:GetModelCFrame()}):Play() end end end) addcmd('gotopartdelay',{},function(args, speaker) local gtpDelay = args[1] or 0.1 if isNumber(gtpDelay) then gotopartDelay = gtpDelay end end) addcmd('noclickdetectorlimits',{'nocdlimits','removecdlimits'},function(args, speaker) for i,v in ipairs(workspace:GetDescendants()) do if v:IsA("ClickDetector") then v.MaxActivationDistance = math.huge end end end) addcmd('fireclickdetectors',{'firecd','firecds'}, function(args, speaker) if fireclickdetector then if args[1] then local name = getstring(1, args):lower() for _, descendant in ipairs(workspace:GetDescendants()) do if descendant:IsA("ClickDetector") and descendant.Name:lower() == name or descendant.Parent.Name:lower() == name then fireclickdetector(descendant) end end else for _, descendant in ipairs(workspace:GetDescendants()) do if descendant:IsA("ClickDetector") then fireclickdetector(descendant) end end end else notify("Incompatible Exploit", "Your exploit does not support this command (missing fireclickdetector)") end end) addcmd('noproximitypromptlimits',{'nopplimits','removepplimits'},function(args, speaker) for i,v in pairs(workspace:GetDescendants()) do if v:IsA("ProximityPrompt") then v.MaxActivationDistance = math.huge end end end) addcmd('fireproximityprompts',{'firepp'},function(args, speaker) if fireproximityprompt then if args[1] then local name = getstring(1, args) for _, descendant in ipairs(workspace:GetDescendants()) do if descendant:IsA("ProximityPrompt") and descendant.Name == name or descendant.Parent.Name == name then fireproximityprompt(descendant) end end else for _, descendant in ipairs(workspace:GetDescendants()) do if descendant:IsA("ProximityPrompt") then fireproximityprompt(descendant) end end end else notify("Incompatible Exploit", "Your exploit does not support this command (missing fireproximityprompt)") end end) local PromptButtonHoldBegan = nil addcmd('instantproximityprompts',{'instantpp'},function(args, speaker) if fireproximityprompt then execCmd("uninstantproximityprompts") wait(0.1) PromptButtonHoldBegan = CmdsTrackConnection(ProximityPromptService.PromptButtonHoldBegan:Connect(function(prompt) fireproximityprompt(prompt) end)) else notify('Incompatible Exploit','Your exploit does not support this command (missing fireproximityprompt)') end end) addcmd('uninstantproximityprompts',{'uninstantpp'},function(args, speaker) if PromptButtonHoldBegan ~= nil then PromptButtonHoldBegan:Disconnect() PromptButtonHoldBegan = nil end end) local promptConnection, disabledPrompts = nil, {} addcmd('disableproximityprompts', {'disablepp'}, function(args, speaker) execCmd("enableproximityprompts nonotify") table.clear(disabledPrompts) for _, inst in Workspace:GetDescendants() do if inst:IsA("ProximityPrompt") and inst.Enabled then inst.Enabled = false disabledPrompts[inst] = true end end promptConnection = CmdsTrackConnection(Workspace.DescendantAdded:Connect(function(inst) if inst:IsA("ProximityPrompt") and inst.Enabled then inst.Enabled = false disabledPrompts[inst] = true end end)) return "All proximity prompts will be disabled." end) addcmd('enableproximityprompts', {'enablepp'}, function(args, speaker) if promptConnection then promptConnection:Disconnect() promptConnection = nil end for inst in disabledPrompts do if inst.Parent then inst.Enabled = true end end table.clear(disabledPrompts) return "Proximity prompts enabled." end) addcmd('notifyping',{'ping'},function(args, speaker) notify("Ping", math.round(speaker:GetNetworkPing() * 1000) .. "ms") end) addcmd('grabtools', {}, function(args, speaker) local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") for _, child in ipairs(workspace:GetChildren()) do if speaker.Character and child:IsA("BackpackItem") and child:FindFirstChild("Handle") then humanoid:EquipTool(child) end end if grabtoolsFunc then grabtoolsFunc:Disconnect() end grabtoolsFunc = CmdsTrackConnection(workspace.ChildAdded:Connect(function(child) if speaker.Character and child:IsA("BackpackItem") and child:FindFirstChild("Handle") then humanoid:EquipTool(child) end end)) notify("Grabtools", "Picking up any dropped tools") end) addcmd('nograbtools',{'ungrabtools'},function(args, speaker) if grabtoolsFunc then grabtoolsFunc:Disconnect() end notify("Grabtools", "Grabtools has been disabled") end) local specifictoolremoval = {} addcmd('removespecifictool',{},function(args, speaker) if args[1] and speaker:FindFirstChildOfClass("Backpack") then local tool = string.lower(getstring(1, args)) local RST = CmdsTrackConnection(RunService.RenderStepped:Connect(function() if speaker:FindFirstChildOfClass("Backpack") then for i,v in pairs(speaker:FindFirstChildOfClass("Backpack"):GetChildren()) do if v.Name:lower() == tool then v:Remove() end end end end)) specifictoolremoval[tool] = RST end end) addcmd('unremovespecifictool',{},function(args, speaker) if args[1] then local tool = string.lower(getstring(1, args)) if specifictoolremoval[tool] ~= nil then specifictoolremoval[tool]:Disconnect() specifictoolremoval[tool] = nil end end end) addcmd('clearremovespecifictool',{},function(args, speaker) for obj in pairs(specifictoolremoval) do specifictoolremoval[obj]:Disconnect() specifictoolremoval[obj] = nil end end) addcmd('viewbackpack', {'viewbp', 'checktools', 'viewtools', 'toolview', 'seetools'}, function(args, speaker) local target = getSinglePlayer(args[1], speaker) local pl = target and Players:FindFirstChild(target) if not pl then return end local bp = pl:FindFirstChildOfClass("Backpack") if not bp or not pl.Character then return end local t = {} local chartool = pl.Character:FindFirstChildOfClass("Tool") if chartool then -- include the tool the player is holding as well table.insert(t, chartool.Name) end for _, v in bp:GetChildren() do if v:IsA("Tool") then table.insert(t, v.Name) end end local title = ("%s's tools"):format(formatUsername(pl)) if #t > 0 then notify(title, table.concat(t, ", ")) else notify(title, "No tools.") end end) addcmd('light', {}, function(args, speaker) local root = getRoot(speaker.Character) if not root then return end local light = Instance.new("PointLight") light.Name = "AdminLight" light.Brightness = tonumber(args[2]) or 5 light.Range = tonumber(args[1]) or 30 light.Parent = root end) addcmd('unlight', {'nolight'}, function(args, speaker) if not speaker.Character then return end local gothruall = parseBoolean(args[1]) == true for _, v in pairs(speaker.Character:GetDescendants()) do if v:IsA("PointLight") then if v.Name ~= "AdminLight" and not gothruall then continue end v:Destroy() end end end) addcmd('deletelighting', {'dlighting', 'removelighting'}, function(args, speaker) for _, v in ipairs(workspace:GetDescendants()) do if (v:IsA("Light") and v.Name ~= "AdminLight") or v:IsA("Beam") then v:Destroy() end end end) addcmd('copytools',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players)do task.spawn(function() for i,v in pairs(Players[v]:FindFirstChildOfClass("Backpack"):GetChildren()) do if v:IsA('Tool') or v:IsA('HopperBin') then v:Clone().Parent = speaker:FindFirstChildOfClass("Backpack") end end end) end end) addcmd('naked',{},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Clothing") or v:IsA("ShirtGraphic") then v:Destroy() end end end) addcmd('noface',{'removeface'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Decal") and v.Name == 'face' then v:Destroy() end end end) addcmd('spawnpoint',{'spawn'},function(args, speaker) spawnpos = getRoot(speaker.Character).CFrame spawnpoint = true spDelay = tonumber(args[1]) or 0.1 notify('Spawn Point','Spawn point created at '..tostring(spawnpos)) end) addcmd('nospawnpoint',{'nospawn','removespawnpoint'},function(args, speaker) spawnpoint = false notify('Spawn Point','Removed spawn point') end) addcmd('flashback',{'diedtp'},function(args, speaker) if lastDeath ~= nil then if speaker.Character:FindFirstChildOfClass('Humanoid') and speaker.Character:FindFirstChildOfClass('Humanoid').SeatPart then speaker.Character:FindFirstChildOfClass('Humanoid').Sit = false wait(.1) end getRoot(speaker.Character).CFrame = lastDeath end end) spinhats = nil addcmd('hatspin',{'spinhats'},function(args, speaker) local humanspin = speaker.Character and speaker.Character:FindFirstChildOfClass('Humanoid') if not humanspin then return end local hatspinsp = tonumber(args[1]) or 100 execCmd('unhatspin') task.wait(.5) local tbofhats = {} for _,v in pairs(humanspin:GetAccessories()) do if not v:FindFirstChild("Handle") then continue end local keep = Instance.new("BodyPosition") keep.Name = randomString() keep.Parent = v.Handle local spin = Instance.new("BodyAngularVelocity") spin.Name = randomString() spin.Parent = v.Handle local desny = v.Handle:FindFirstChildOfClass("Weld") if desny then desny:Destroy() end spin.AngularVelocity = Vector3.new(0, hatspinsp, 0) spin.MaxTorque = Vector3.new(0, hatspinsp * 2, 0) keep.P = 30000 keep.D = 50 table.insert(tbofhats, keep) end spinhats = CmdsTrackConnection(RunService.Stepped:Connect(function() if not speaker.Character or not speaker.Character:FindFirstChild('Head') then return end for _, ke in pairs(tbofhats) do ke.Position = speaker.Character.Head.Position end end)) end) addcmd('unhatspin',{'unspinhats'},function(args, speaker) if spinhats then spinhats:Disconnect() spinhats = nil end local humster = speaker.Character and speaker.Character:FindFirstChildOfClass('Humanoid') if not humster then return end for _,v in pairs(humster:GetAccessories()) do if not v:FindFirstChild("Handle") then continue end v.Parent = workspace for i,c in pairs(v.Handle:GetChildren()) do if c:IsA("BodyPosition") or c:IsA("BodyAngularVelocity") then c:Destroy() end end wait() v.Parent = speaker.Character end end) addcmd('clearhats',{'cleanhats'},function(args, speaker) if firetouchinterest then local hattercatter = speaker.Character if not hattercatter then return end local Human = hattercatter:FindFirstChildOfClass("Humanoid") if not Human then return end if not getRoot(hattercatter) then return end local Old = getRoot(hattercatter).CFrame local Hats = {} for _, child in ipairs(workspace:GetChildren()) do if child:IsA("Accessory") then table.insert(Hats, child) end end for _, accessory in ipairs(Human:GetAccessories()) do accessory:Destroy() end for i = 1, #Hats do repeat RunService.Heartbeat:Wait() until Hats[i] firetouchinterest(Hats[i].Handle,getRoot(hattercatter),0) repeat RunService.Heartbeat:Wait() until hattercatter:FindFirstChildOfClass("Accessory") hattercatter:FindFirstChildOfClass("Accessory"):Destroy() repeat RunService.Heartbeat:Wait() until not hattercatter:FindFirstChildOfClass("Accessory") end execCmd("reset") hattercatter = speaker.CharacterAdded:Wait() for i = 1,20 do RunService.Heartbeat:Wait() local htroot = getRoot(hattercatter) if htroot then htroot.CFrame = Old end end else notify("Incompatible Exploit","Your exploit does not support this command (missing firetouchinterest)") end end) addcmd('clearcharappearance',{'clearchar','clrchar'},function(args, speaker) speaker:ClearCharacterAppearance() end) addcmd('equiptools',{},function(args, speaker) for i,v in pairs(speaker:FindFirstChildOfClass("Backpack"):GetChildren()) do if v:IsA("Tool") or v:IsA("HopperBin") then v.Parent = speaker.Character end end end) addcmd('unequiptools',{},function(args, speaker) speaker.Character:FindFirstChildOfClass('Humanoid'):UnequipTools() end) local function GetHandleTools(p) p = p or Players.LocalPlayer local r = {} for _, v in ipairs(p.Character and p.Character:GetChildren() or {}) do if v.IsA(v, "BackpackItem") and v.FindFirstChild(v, "Handle") then r[#r + 1] = v end end for _, v in ipairs(p.Backpack:GetChildren()) do if v.IsA(v, "BackpackItem") and v.FindFirstChild(v, "Handle") then r[#r + 1] = v end end return r end addcmd('touchinterests', {'touchinterest', 'firetouchinterests', 'firetouchinterest'}, function(args, speaker) local Root = getRoot(speaker.Character) or speaker.Character:FindFirstChildWhichIsA("BasePart") if not firetouchinterest then notify("Incompatible Exploit", "Your exploit does not support this command (missing firetouchinterest)") return end local function Touch(x) x = x.FindFirstAncestorWhichIsA(x, "Part") if x then return task.spawn(function() firetouchinterest(x, Root, 1, wait() and firetouchinterest(x, Root, 0)) end) end x.CFrame = Root.CFrame end if args[1] then local name = getstring(1, args):lower() print(name..' -name') for _, v in ipairs(workspace:GetDescendants()) do if v:IsA("TouchTransmitter") and v.Name:lower() == name or v.Parent.Name:lower() == name then Touch(v) end end else for _, v in ipairs(workspace:GetDescendants()) do if v.IsA(v, "TouchTransmitter") then Touch(v) end end end end) oldfbsets, isfbac = nil, false addcmd('fullbright', {'fb', 'fullbrightness'}, function(args, speaker) if not isfbac then oldfbsets = { Brightness = Lighting.Brightness, ClockTime = Lighting.ClockTime, FogEnd = Lighting.FogEnd, GlobalShadows = Lighting.GlobalShadows, OutdoorAmbient = Lighting.OutdoorAmbient } isfbac = true end Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.FogEnd = 100000 Lighting.GlobalShadows = false Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) end) addcmd('loopfullbright',{'loopfb'},function(args, speaker) execCmd("fb") if brightLoop then brightLoop:Disconnect() brightLoop = nil end local function brightFunc() Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.FogEnd = 100000 Lighting.GlobalShadows = false Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128) end brightLoop = CmdsTrackConnection(RunService.RenderStepped:Connect(brightFunc)) end) addcmd('unloopfullbright',{'unloopfb', 'unfb', 'unfullbright', 'unfullbrightness'},function(args, speaker) if brightLoop then brightLoop:Disconnect() brightLoop = nil end if isfbac and oldfbsets then Lighting.Brightness = oldfbsets.Brightness Lighting.ClockTime = oldfbsets.ClockTime Lighting.FogEnd = oldfbsets.FogEnd Lighting.GlobalShadows = oldfbsets.GlobalShadows Lighting.OutdoorAmbient = oldfbsets.OutdoorAmbient isfbac = false oldfbsets = nil end end) orig_ambient, orig_outdoor_ambient = nil, nil addcmd("ambient", {}, function(args, speaker) if not args[1] or not args[2] or not args[3] then return end if not orig_ambient then orig_ambient = Lighting.Ambient orig_outdoor_ambient = Lighting.OutdoorAmbient end local r = tonumber(args[1]) or 0 local g = tonumber(args[2]) or 0 local b = tonumber(args[3]) or 0 local newcol = Color3.fromRGB(r, g, b) Lighting.Ambient = newcol Lighting.OutdoorAmbient = newcol end) addcmd("unambient", {}, function(args, speaker) if orig_ambient and orig_outdoor_ambient then Lighting.Ambient = orig_ambient Lighting.OutdoorAmbient = orig_outdoor_ambient orig_ambient = nil orig_outdoor_ambient = nil end end) addcmd('day',{},function(args, speaker) Lighting.ClockTime = 14 end) addcmd('night',{},function(args, speaker) Lighting.ClockTime = 0 end) addcmd('time',{},function(args, speaker) if not isNumber(args[1]) then return end Lighting.ClockTime = args[1] end) addcmd('nofog',{},function(args, speaker) Lighting.FogEnd = 100000 for i,v in pairs(Lighting:GetDescendants()) do if v:IsA("Atmosphere") then v:Destroy() end end end) addcmd('brightness',{},function(args, speaker) Lighting.Brightness = args[1] end) daynightthread = nil addcmd("dncycle", {"daynightcycle"}, function(args, speaker) execCmd("undncycle nonotify") local step = tonumber(args[1]) or 0.05 local delay_time = tonumber(args[2]) or 0.05 notify("Day/Night Cycle", "Started client day/night cycle.") daynightthread = task.spawn(function() while true do Lighting.ClockTime = (Lighting.ClockTime + step) % 24 task.wait(delay_time) end end) end) addcmd("undncycle", {"stopdncycle"}, function(args, speaker) if not daynightthread then return end task.cancel(daynightthread) daynightthread = nil if args[1] ~= "nonotify" then notify("Day/Night Cycle", "Stopped day/night cycle.") end end) addcmd("globalshadows", {"gshadows"}, function(args, speaker) Lighting.GlobalShadows = true end) addcmd("unglobalshadows", {"ungshadows"}, function(args, speaker) Lighting.GlobalShadows = false end) origsettings = {abt = Lighting.Ambient, oabt = Lighting.OutdoorAmbient, brt = Lighting.Brightness, time = Lighting.ClockTime, fe = Lighting.FogEnd, fs = Lighting.FogStart, gs = Lighting.GlobalShadows} addcmd('restorelighting',{'rlighting'},function(args, speaker) Lighting.Ambient = origsettings.abt Lighting.OutdoorAmbient = origsettings.oabt Lighting.Brightness = origsettings.brt Lighting.ClockTime = origsettings.time Lighting.FogEnd = origsettings.fe Lighting.FogStart = origsettings.fs Lighting.GlobalShadows = origsettings.gs end) addcmd('stun',{'platformstand'},function(args, speaker) speaker.Character:FindFirstChildOfClass('Humanoid').PlatformStand = true end) addcmd('unstun',{'nostun','unplatformstand','noplatformstand'},function(args, speaker) speaker.Character:FindFirstChildOfClass('Humanoid').PlatformStand = false end) addcmd('norotate',{'noautorotate'},function(args, speaker) speaker.Character:FindFirstChildOfClass('Humanoid').AutoRotate = false end) addcmd('unnorotate',{'autorotate'},function(args, speaker) speaker.Character:FindFirstChildOfClass('Humanoid').AutoRotate = true end) addcmd('enablestate',{},function(args, speaker) local x = args[1] if not tonumber(x) then local x = Enum.HumanoidStateType[args[1]] end speaker.Character:FindFirstChildOfClass("Humanoid"):SetStateEnabled(x, true) end) addcmd('disablestate',{},function(args, speaker) local x = args[1] if not tonumber(x) then local x = Enum.HumanoidStateType[args[1]] end speaker.Character:FindFirstChildOfClass("Humanoid"):SetStateEnabled(x, false) end) addcmd('drophats',{'drophat'},function(args, speaker) if speaker.Character then for _,v in pairs(speaker.Character:FindFirstChildOfClass('Humanoid'):GetAccessories()) do v.Parent = workspace end end end) addcmd('deletehats',{'nohats','rhats'},function(args, speaker) for i,v in next, speaker.Character:GetDescendants() do if v:IsA("Accessory") then for i,p in next, v:GetDescendants() do if p:IsA("Weld") then p:Destroy() end end end end end) addcmd('droptools',{'droptool'},function(args, speaker) for i,v in pairs(speaker.Backpack:GetChildren()) do if v:IsA("Tool") then v.Parent = speaker.Character end end wait() for i,v in pairs(speaker.Character:GetChildren()) do if v:IsA("Tool") then v.Parent = workspace end end end) addcmd('droppabletools',{},function(args, speaker) if speaker.Character then for _,obj in pairs(speaker.Character:GetChildren()) do if obj:IsA("Tool") then obj.CanBeDropped = true end end end if speaker:FindFirstChildOfClass("Backpack") then for _,obj in pairs(speaker:FindFirstChildOfClass("Backpack"):GetChildren()) do if obj:IsA("Tool") then obj.CanBeDropped = true end end end end) local currentToolSize = "" local currentGripPos = "" addcmd('reach',{},function(args, speaker) execCmd('unreach') wait() for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Tool") then if args[1] then currentToolSize = v.Handle.Size currentGripPos = v.GripPos local a = Instance.new("SelectionBox") a.Name = "SelectionBoxCreated" a.Parent = v.Handle a.Adornee = v.Handle v.Handle.Massless = true v.Handle.Size = Vector3.new(0.5,0.5,args[1]) v.GripPos = Vector3.new(0,0,0) speaker.Character:FindFirstChildOfClass('Humanoid'):UnequipTools() else currentToolSize = v.Handle.Size currentGripPos = v.GripPos local a = Instance.new("SelectionBox") a.Name = "SelectionBoxCreated" a.Parent = v.Handle a.Adornee = v.Handle v.Handle.Massless = true v.Handle.Size = Vector3.new(0.5,0.5,60) v.GripPos = Vector3.new(0,0,0) speaker.Character:FindFirstChildOfClass('Humanoid'):UnequipTools() end end end end) addcmd("boxreach", {}, function(args, speaker) execCmd("unreach") wait() for i, v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Tool") then local size = tonumber(args[1]) or 60 currentToolSize = v.Handle.Size currentGripPos = v.GripPos local a = Instance.new("SelectionBox") a.Name = "SelectionBoxCreated" a.Parent = v.Handle a.Adornee = v.Handle v.Handle.Massless = true v.Handle.Size = Vector3.new(size, size, size) v.GripPos = Vector3.new(0, 0, 0) speaker.Character:FindFirstChildOfClass("Humanoid"):UnequipTools() end end end) addcmd('unreach',{'noreach','unboxreach'},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Tool") then v.Handle.Size = currentToolSize v.GripPos = currentGripPos v.Handle.SelectionBoxCreated:Destroy() end end end) addcmd('grippos',{},function(args, speaker) for i,v in pairs(speaker.Character:GetDescendants()) do if v:IsA("Tool") then v.Parent = speaker:FindFirstChildOfClass("Backpack") v.GripPos = Vector3.new(args[1],args[2],args[3]) v.Parent = speaker.Character end end end) addcmd('usetools', {}, function(args, speaker) local Backpack = speaker:FindFirstChildOfClass("Backpack") local amount = tonumber(args[1]) or 1 local delay_ = tonumber(args[2]) or false for _, v in ipairs(Backpack:GetChildren()) do v.Parent = speaker.Character task.spawn(function() for _ = 1, amount do v:Activate() if delay_ then wait(delay_) end end v.Parent = Backpack end) end end) flinging = false addcmd('fling',{},function(args, speaker) flinging = false for _, child in next, speaker.Character:GetDescendants() do if child:IsA("BasePart") then child.CustomPhysicalProperties = PhysicalProperties.new(100, 0.3, 0.5) end end execCmd('noclip nonotify') task.wait(.1) local bambam = Instance.new("BodyAngularVelocity") bambam.Name = randomString() bambam.Parent = getRoot(speaker.Character) bambam.AngularVelocity = Vector3.new(0,99999,0) bambam.MaxTorque = Vector3.new(0,math.huge,0) bambam.P = math.huge for i, v in next, speaker.Character:GetChildren() do if v:IsA("BasePart") then v.Massless = true v.Velocity = Vector3.zero end end flinging = true flingDied = CmdsTrackConnection(speaker.Character:FindFirstChildOfClass('Humanoid').Died:Connect(function() execCmd('unfling') end)) repeat bambam.AngularVelocity = Vector3.new(0,99999,0) task.wait(.2) bambam.AngularVelocity = Vector3.new(0,0,0) task.wait(.1) until flinging == false end) addcmd('unfling',{'nofling'},function(args, speaker) execCmd('clip nonotify') if flingDied then flingDied:Disconnect() end flinging = false task.wait(.1) local speakerChar = speaker.Character if not speakerChar or not getRoot(speakerChar) then return end for _, v in next, speakerChar:GetDescendants() do if v:IsA("BasePart") then v.CustomPhysicalProperties = PhysicalProperties.new(0.7, 0.3, 0.5) v.Massless = false v.Velocity = Vector3.zero elseif v:IsA("BodyAngularVelocity") then v:Destroy() end end end) addcmd('togglefling',{},function(args, speaker) if flinging then execCmd('unfling') else execCmd('fling') end end) addcmd("flyfling", {}, function(args, speaker) execCmd("unvehiclefly\\unwalkfling") task.wait() vehicleflyspeed = tonumber(args[1]) or vehicleflyspeed execCmd("vehiclefly\\walkfling") end) addcmd("unflyfling", {}, function(args, speaker) execCmd("unvehiclefly\\unwalkfling\\breakvelocity") end) addcmd("toggleflyfling", {}, function(args, speaker) execCmd(flinging and "unflyfling" or "flyfling") end) walkflinging = false addcmd("walkfling", {}, function(args, speaker) execCmd("unwalkfling") local humanoid = speaker.Character:FindFirstChildWhichIsA("Humanoid") if humanoid then CmdsTrackConnection(humanoid.Died:Connect(function() execCmd("unwalkfling") end)) end execCmd("noclip nonotify") walkflinging = true repeat RunService.Heartbeat:Wait() local character = speaker.Character local root = getRoot(character) local vel, movel = nil, 0.1 while not (character and character.Parent and root and root.Parent) do RunService.Heartbeat:Wait() character = speaker.Character root = getRoot(character) end vel = root.Velocity root.Velocity = vel * 10000 + Vector3.new(0, 10000, 0) RunService.RenderStepped:Wait() if character and character.Parent and root and root.Parent then root.Velocity = vel end RunService.Stepped:Wait() if character and character.Parent and root and root.Parent then root.Velocity = vel + Vector3.new(0, movel, 0) movel = movel * -1 end until walkflinging == false end) addcmd("unwalkfling", {"nowalkfling"}, function(args, speaker) walkflinging = false execCmd("unnoclip nonotify") end) addcmd("togglewalkfling", {}, function(args, speaker) execCmd(walkflinging and "unwalkfling" or "walkfling") end) addcmd("antifling", {}, function(args, speaker) if antifling then antifling:Disconnect() antifling = nil end antifling = CmdsTrackConnection(RunService.Stepped:Connect(function() for _, player in pairs(Players:GetPlayers()) do if player ~= speaker and player.Character then for _, v in pairs(player.Character:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end end end end)) end) addcmd("unantifling", {}, function(args, speaker) if antifling then antifling:Disconnect() antifling = nil end end) addcmd("toggleantifling", {}, function(args, speaker) execCmd(antifling and "unantifling" or "antifling") end) addcmd("handlekill", {"hkill"}, function(args, speaker) if not firetouchinterest then return notify("Incompatible Exploit", "Your exploit does not support this command (missing firetouchinterest)") end if not speaker.Character then return end local tool = speaker.Character:FindFirstChildWhichIsA("Tool") local handle = tool and tool:FindFirstChild("Handle") if not handle then return notify("Handle Kill", "You need to hold a \"Tool\" that does damage on touch. For example a common Sword tool.") end local range = tonumber(args[2]) or math.huge if range ~= math.huge then notify("Handle Kill", ("Started!\nRadius: %s"):format(tostring(range):upper())) end local totlplrs = getPlayer(args[1], speaker) while true do task.wait() if not speaker.Character or tool.Parent ~= speaker.Character then break end for _, plr in pairs(totlplrs) do local isrealplr = plr and Players:FindFirstChild(plr) if isrealplr and isrealplr ~= speaker and isrealplr.Character then local hum = isrealplr.Character:FindFirstChildWhichIsA("Humanoid") local root = hum and getRoot(isrealplr.Character) if root and hum.Health > 0 and hum:GetState() ~= Enum.HumanoidStateType.Dead and speaker:DistanceFromCharacter(root.Position) <= range then firetouchinterest(handle, root, 1) firetouchinterest(handle, root, 0) end end end end notify("Handle Kill", "Stopped!") end) tpwalkStack = 0 addcmd("teleportwalk", {"tpwalk"}, function(args, speaker) pcall(function() tpwalking:Disconnect() end) local character = speaker.Character local humanoid = character and character:FindFirstChildWhichIsA("Humanoid") local speed = (args[1] and isNumber(args[1])) and tonumber(args[1]) or 1 if parseBoolean(args[2]) then tpwalkStack = tpwalkStack + speed end tpwalking = CmdsTrackConnection(RunService.Heartbeat:Connect(function(delta) if not (character and humanoid and humanoid.Parent) then tpwalking:Disconnect() return end if humanoid.MoveDirection.Magnitude > 0 then character:TranslateBy(humanoid.MoveDirection * (speed + tpwalkStack) * delta * 10) end end)) end) addcmd("unteleportwalk", {"untpwalk"}, function(args, speaker) tpwalkStack = 0 tpwalking:Disconnect() end) local infinitypathtool addcmd('spin',{},function(args, speaker) local spinSpeed = 20 if args[1] and isNumber(args[1]) then spinSpeed = args[1] end for i,v in pairs(getRoot(speaker.Character):GetChildren()) do if v.Name == "Spinning" then v:Destroy() end end local Spin = Instance.new("BodyAngularVelocity") Spin.Name = "Spinning" Spin.Parent = getRoot(speaker.Character) Spin.MaxTorque = Vector3.new(0, math.huge, 0) Spin.AngularVelocity = Vector3.new(0,spinSpeed,0) end) addcmd('unspin',{},function(args, speaker) for i,v in pairs(getRoot(speaker.Character):GetChildren()) do if v.Name == "Spinning" then v:Destroy() end end end) xrayEnabled = false function xray() for _, v in pairs(workspace:GetDescendants()) do if v:IsA("BasePart") and not v.Parent:FindFirstChildWhichIsA("Humanoid") and not v.Parent.Parent:FindFirstChildWhichIsA("Humanoid") then v.LocalTransparencyModifier = xrayEnabled and 0.5 or 0 end end end addcmd("xray", {}, function(args, speaker) xrayEnabled = true xray() end) addcmd("unxray", {"noxray"}, function(args, speaker) xrayEnabled = false xray() end) addcmd("togglexray", {}, function(args, speaker) xrayEnabled = not xrayEnabled xray() end) addcmd("loopxray", {}, function(args, speaker) pcall(function() xrayLoop:Disconnect() end) xrayLoop = CmdsTrackConnection(RunService.RenderStepped:Connect(function() xrayEnabled = true xray() end)) end) addcmd("unloopxray", {}, function(args, speaker) pcall(function() xrayLoop:Disconnect() end) xrayEnabled = false xray() end) local walltpTouch = nil addcmd('walltp',{},function(args, speaker) local torso if r15(speaker) then torso = speaker.Character.UpperTorso else torso = speaker.Character.Torso end local function touchedFunc(hit) local Root = getRoot(speaker.Character) if hit:IsA("BasePart") and hit.Position.Y > Root.Position.Y - speaker.Character:FindFirstChildOfClass('Humanoid').HipHeight then local hitP = getRoot(hit.Parent) if hitP ~= nil then Root.CFrame = hit.CFrame * CFrame.new(Root.CFrame.LookVector.X,hitP.Size.Z/2 + speaker.Character:FindFirstChildOfClass('Humanoid').HipHeight,Root.CFrame.LookVector.Z) elseif hitP == nil then Root.CFrame = hit.CFrame * CFrame.new(Root.CFrame.LookVector.X,hit.Size.Y/2 + speaker.Character:FindFirstChildOfClass('Humanoid').HipHeight,Root.CFrame.LookVector.Z) end end end walltpTouch = CmdsTrackConnection(torso.Touched:Connect(touchedFunc)) end) addcmd('unwalltp',{'nowalltp'},function(args, speaker) if walltpTouch then walltpTouch:Disconnect() end end) autoclicking = false addcmd('autoclick',{},function(args, speaker) if mouse1press and mouse1release then execCmd('unautoclick') wait() local clickDelay = 0.1 local releaseDelay = 0.1 if args[1] and isNumber(args[1]) then clickDelay = args[1] end if args[2] and isNumber(args[2]) then releaseDelay = args[2] end autoclicking = true cancelAutoClick = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then if (input.KeyCode == Enum.KeyCode.Backspace and UserInputService:IsKeyDown(Enum.KeyCode.Equals)) or (input.KeyCode == Enum.KeyCode.Equals and UserInputService:IsKeyDown(Enum.KeyCode.Backspace)) then autoclicking = false cancelAutoClick:Disconnect() end end end)) notify('Auto Clicker',"Press [backspace] and [=] at the same time to stop") repeat wait(clickDelay) mouse1press() wait(releaseDelay) mouse1release() until autoclicking == false else notify('Auto Clicker',"Your exploit doesn't have the ability to use the autoclick") end end) addcmd('unautoclick',{'noautoclick'},function(args, speaker) autoclicking = false if cancelAutoClick then cancelAutoClick:Disconnect() end end) addcmd('mousesensitivity',{'ms'},function(args, speaker) UserInputService.MouseDeltaSensitivity = args[1] end) local nameBox = nil local nbSelection = nil addcmd('hovername',{},function(args, speaker) execCmd('unhovername') wait() nameBox = Instance.new("TextLabel") nameBox.Name = randomString() nameBox.Parent = ScaledHolder nameBox.BackgroundTransparency = 1 nameBox.Size = UDim2.new(0,200,0,30) nameBox.Font = Enum.Font.Code nameBox.TextSize = 16 nameBox.Text = "" nameBox.TextColor3 = Color3.new(1, 1, 1) nameBox.TextStrokeTransparency = 0 nameBox.TextXAlignment = Enum.TextXAlignment.Left nameBox.ZIndex = 10 nbSelection = Instance.new('SelectionBox') nbSelection.Name = randomString() nbSelection.LineThickness = 0.03 nbSelection.Color3 = Color3.new(1, 1, 1) local function updateNameBox() local t local target = IYMouse.Target if target then local humanoid = target.Parent:FindFirstChildOfClass("Humanoid") or target.Parent.Parent:FindFirstChildOfClass("Humanoid") if humanoid then t = humanoid.Parent end end if t ~= nil then local x = IYMouse.X local y = IYMouse.Y local xP local yP if IYMouse.X > 200 then xP = x - 205 nameBox.TextXAlignment = Enum.TextXAlignment.Right else xP = x + 25 nameBox.TextXAlignment = Enum.TextXAlignment.Left end nameBox.Position = UDim2.new(0, xP, 0, y) nameBox.Text = t.Name nameBox.Visible = true nbSelection.Parent = t nbSelection.Adornee = t else nameBox.Visible = false nbSelection.Parent = nil nbSelection.Adornee = nil end end nbUpdateFunc = CmdsTrackConnection(IYMouse.Move:Connect(updateNameBox)) end) addcmd('unhovername',{'nohovername'},function(args, speaker) if nbUpdateFunc then nbUpdateFunc:Disconnect() nameBox:Destroy() nbSelection:Destroy() end end) addcmd('headsize',{},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do if Players[v] ~= speaker and Players[v].Character:FindFirstChild('Head') then local sizeArg = tonumber(args[2]) local Size = Vector3.new(sizeArg,sizeArg,sizeArg) local Head = Players[v].Character:FindFirstChild('Head') if Head:IsA("BasePart") then Head.CanCollide = false if not args[2] or sizeArg == 1 then Head.Size = Vector3.new(2,1,1) else Head.Size = Size end end end end end) addcmd('hitbox',{},function(args, speaker) local players = getPlayer(args[1], speaker) local transparency = args[3] and tonumber(args[3]) or 0.4 for i,v in pairs(players) do if Players[v] ~= speaker and getRoot(Players[v].Character) then local sizeArg = tonumber(args[2]) local Size = Vector3.new(sizeArg,sizeArg,sizeArg) local Root = getRoot(Players[v].Character) if Root:IsA("BasePart") then Root.CanCollide = false if not args[2] or sizeArg == 1 then Root.Size = Vector3.new(2,1,1) Root.Transparency = transparency else Root.Size = Size Root.Transparency = transparency end end end end end) addcmd("hitboxes", {}, function(args, speaker) settings():GetService("RenderSettings").ShowBoundingBoxes = true end) addcmd("unhitboxes", {}, function(args, speaker) settings():GetService("RenderSettings").ShowBoundingBoxes = false end) addcmd('stareat',{'stare'},function(args, speaker) local players = getPlayer(args[1], speaker) for i,v in pairs(players) do if stareLoop then stareLoop:Disconnect() end if not getRoot(Players.LocalPlayer.Character) and getRoot(Players[v].Character) then return end local function stareFunc() if Players.LocalPlayer.Character.PrimaryPart and Players:FindFirstChild(v) and Players[v].Character ~= nil and getRoot(Players[v].Character) then local chrPos=Players.LocalPlayer.Character.PrimaryPart.Position local tPos=getRoot(Players[v].Character).Position local modTPos=Vector3.new(tPos.X,chrPos.Y,tPos.Z) local newCF=CFrame.new(chrPos,modTPos) Players.LocalPlayer.Character:SetPrimaryPartCFrame(newCF) elseif not Players:FindFirstChild(v) then stareLoop:Disconnect() end end stareLoop = CmdsTrackConnection(RunService.RenderStepped:Connect(stareFunc)) end end) addcmd('unstareat',{'unstare','nostare','nostareat'},function(args, speaker) if stareLoop then stareLoop:Disconnect() end end) RolewatchData = {Group = 0, Role = "", Leave = false} addcmd("rolewatch", {}, function(args, speaker) local groupId = tonumber(args[1] or 0) local roleName = args[2] and tostring(getstring(2, args)) if groupId and roleName then RolewatchData.Group = groupId RolewatchData.Role = roleName notify("Rolewatch", "Watching Group ID \"" .. tostring(groupId) .. "\" for Role \"" .. roleName .. "\"") end end) addcmd("rolewatchstop", {}, function(args, speaker) RolewatchData.Group = 0 RolewatchData.Role = "" RolewatchData.Leave = false notify("Rolewatch", "Disabled") end) addcmd("rolewatchleave", {"unrolewatch"}, function(args, speaker) RolewatchData.Leave = not RolewatchData.Leave notify("Rolewatch", RolewatchData.Leave and "Leave has been Enabled" or "Leave has been Disabled") end) staffRoles = {"mod", "admin", "staff", "dev", "founder", "owner", "supervis", "manager", "management", "executive", "president", "chairman", "chairwoman", "chairperson", "director"} getStaffRole = function(player) local playerRole = player:GetRoleInGroup(game.CreatorId) local result = {Role = playerRole, Staff = false} if player:IsInGroup(1200769) then result.Role = "Roblox Employee" result.Staff = true end for _, role in pairs(staffRoles) do if string.find(string.lower(playerRole), role) then result.Staff = true end end return result end addcmd("staffwatch", {}, function(args, speaker) if staffwatchjoin then staffwatchjoin:Disconnect() end if game.CreatorType == Enum.CreatorType.Group then local found = {} staffwatchjoin = CmdsTrackConnection(Players.PlayerAdded:Connect(function(player) local result = getStaffRole(player) if result.Staff then notify("Staffwatch", formatUsername(player) .. " is a " .. result.Role) end end)) for _, player in pairs(Players:GetPlayers()) do local result = getStaffRole(player) if result.Staff then table.insert(found, formatUsername(player) .. " is a " .. result.Role) end end if #found > 0 then notify("Staffwatch", table.concat(found, ",\n")) else notify("Staffwatch", "Enabled") end else notify("Staffwatch", "Game is not owned by a Group") end end) addcmd("unstaffwatch", {}, function(args, speaker) if staffwatchjoin then staffwatchjoin:Disconnect() end notify("Staffwatch", "Disabled") end) local function playerGroups() local players = Players:GetPlayers() local graph = {} local seen = {} local groups = {} for _, p in ipairs(players) do graph[p] = {} end for i = 1, #players do for j = i + 1, #players do local p1 = players[i] local p2 = players[j] local success, result = pcall(function() return p1:IsFriendsWithAsync(p2.UserId) end) if success and result then table.insert(graph[p1], p2) table.insert(graph[p2], p1) end end end local function dfs(player, group) seen[player] = true table.insert(group, player) for _, possible in ipairs(graph[player]) do if not seen[possible] then dfs(possible, group) end end end for _, p in ipairs(players) do if not seen[p] then local group = {} dfs(p, group) table.insert(groups, group) end end return groups end addcmd("findfriendgroups", {}, function(args, speaker) notify("Checking Players", "This might take a while (slow function)") local groups = playerGroups() local playerList = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList) local result = "" local index = 1 local found = 0 for _, group in ipairs(groups) do if #group == 1 then continue end local names = {} for _, player in ipairs(group) do table.insert(names, playerList and player.DisplayName or player.Name) end result = result .. index .. ". " .. table.concat(names, ", ") .. "\n" index = index + 1 found = found + 1 end createPopup("Friend Groups", found == 0 and "None" or result) end) addcmd('removeterrain',{'rterrain','noterrain'},function(args, speaker) workspace:FindFirstChildOfClass('Terrain'):Clear() end) addcmd('clearnilinstances',{'nonilinstances','cni'},function(args, speaker) if getnilinstances then for i,v in pairs(getnilinstances()) do v:Destroy() end else notify('Incompatible Exploit','Your exploit does not support this command (missing getnilinstances)') end end) addcmd('destroyheight',{'dh'},function(args, speaker) local dh = args[1] or -500 if isNumber(dh) then workspace.FallenPartsDestroyHeight = dh end end) OrgDestroyHeight = workspace.FallenPartsDestroyHeight addcmd("antivoid", {}, function(args, speaker) execCmd("unantivoid nonotify") task.wait() antivoidloop = CmdsTrackConnection(RunService.Stepped:Connect(function() local root = getRoot(speaker.Character) if root and root.Position.Y <= OrgDestroyHeight + 25 then root.Velocity = root.Velocity + Vector3.new(0, 250, 0) end end)) if args[1] ~= "nonotify" then notify("antivoid", "Enabled") end end) addcmd("unantivoid", {"noantivoid"}, function(args, speaker) pcall(function() antivoidloop:Disconnect() end) antivoidloop = nil if args[1] ~= "nonotify" then notify("antivoid", "Disabled") end end) antivoidWasEnabled = false addcmd("fakeout", {}, function(args, speaker) local root = getRoot(speaker.Character) local oldpos = root.CFrame if antivoidloop then execCmd("unantivoid nonotify") antivoidWasEnabled = true end workspace.FallenPartsDestroyHeight = 0/1/0 root.CFrame = CFrame.new(Vector3.new(0, OrgDestroyHeight - 25, 0)) task.wait(1) root.CFrame = oldpos workspace.FallenPartsDestroyHeight = OrgDestroyHeight if antivoidWasEnabled then execCmd("antivoid nonotify") antivoidWasEnabled = false end end) function tripov(speaker, tri, state) local humanoid = speaker.Character and speaker.Character:FindFirstChildWhichIsA("Humanoid") local root = speaker.Character and getRoot(speaker.Character) if not humanoid or not root then return end if not state then humanoid:ChangeState(Enum.HumanoidStateType.FallingDown) root.AssemblyLinearVelocity = root.CFrame.LookVector * tri else humanoid.PlatformStand = true root.AssemblyLinearVelocity = root.CFrame.LookVector * tri root.AssemblyAngularVelocity = Vector3.new(0, 0, 4) task.delay(1.5, function() if humanoid and humanoid.Parent then humanoid.PlatformStand = false end end) end end addcmd("trip", {}, function(args, speaker) local tripster = args[1] or 30 local volatile = args[2] or false if isNumber(tripster) then tripov(speaker, tripster, volatile) end end) addcmd("removeads", {"adblock"}, function(args, speaker) while wait() do pcall(function() for i, v in pairs(workspace:GetDescendants()) do if v:IsA("PackageLink") then if v.Parent:FindFirstChild("ADpart") then v.Parent:Destroy() end if v.Parent:FindFirstChild("AdGuiAdornee") then v.Parent.Parent:Destroy() end end end end) end end) addcmd("scare", {"spook"}, function(args, speaker) local players = getPlayer(args[1], speaker) local oldpos = nil for _, v in pairs(players) do local root = speaker.Character and getRoot(speaker.Character) local target = Players[v] local targetRoot = target and target.Character and getRoot(target.Character) if root and targetRoot and target ~= speaker then oldpos = root.CFrame root.CFrame = targetRoot.CFrame + targetRoot.CFrame.LookVector * 2 root.CFrame = CFrame.new(root.Position, targetRoot.Position) task.wait(0.5) root.CFrame = oldpos end end end) addcmd("alignmentkeys", {}, function(args, speaker) alignmentKeys = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Comma then workspace.CurrentCamera:PanUnits(-1) end if input.KeyCode == Enum.KeyCode.Period then workspace.CurrentCamera:PanUnits(1) end end)) alignmentKeysEmotes = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu) StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, false) end) addcmd("unalignmentkeys", {"noalignmentkeys"}, function(args, speaker) if type(alignmentKeysEmotes) == "boolean" then StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu, alignmentKeysEmotes) end alignmentKeys:Disconnect() end) addcmd("ctrllock", {}, function(args, speaker) local mouseLockController = speaker.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("CameraModule"):WaitForChild("MouseLockController") local boundKeys = mouseLockController:FindFirstChild("BoundKeys") if boundKeys then boundKeys.Value = "LeftControl" else boundKeys = Instance.new("StringValue") boundKeys.Name = "BoundKeys" boundKeys.Value = "LeftControl" boundKeys.Parent = mouseLockController end end) addcmd("unctrllock", {}, function(args, speaker) local mouseLockController = speaker.PlayerScripts:WaitForChild("PlayerModule"):WaitForChild("CameraModule"):WaitForChild("MouseLockController") local boundKeys = mouseLockController:FindFirstChild("BoundKeys") if boundKeys then boundKeys.Value = "LeftShift" else boundKeys = Instance.new("StringValue") boundKeys.Name = "BoundKeys" boundKeys.Value = "LeftShift" boundKeys.Parent = mouseLockController end end) addcmd("listento", {}, function(args, speaker) execCmd("unlistento") if not args[1] then return end local player = Players:FindFirstChild(getSinglePlayer(args[1], speaker)) local root = player and player.Character and getRoot(player.Character) if root then SoundService:SetListener(Enum.ListenerType.ObjectPosition, root) listentoChar = CmdsTrackConnection(player.CharacterAdded:Connect(function() repeat task.wait() until Players[player.Name].Character ~= nil and getRoot(Players[player.Name].Character) SoundService:SetListener(Enum.ListenerType.ObjectPosition, getRoot(Players[player.Name].Character)) end)) end end) addcmd("unlistento", {}, function(args, speaker) SoundService:SetListener(Enum.ListenerType.Camera) listentoChar:Disconnect() end) addcmd("guiscale", {}, function(args, speaker) if args[1] and isNumber(args[1]) then local scale = tonumber(args[1]) if scale % 1 == 0 then scale = scale / 100 end -- me when i divide and it explodes if scale == 0.01 then scale = 1 end if scale == 0.02 then scale = 2 end if scale >= 0.4 and scale <= 2 then guiScale = scale end else guiScale = defaultGuiScale end Scale.Scale = math.max(Holder.AbsoluteSize.X / 1920, guiScale) updatesaves() end) addcmd("muteallvoices", {"muteallvcs"}, function(args, speaker) Services.VoiceChatInternal:SubscribePauseAll(true) end) addcmd("unmuteallvoices", {"unmuteallvcs"}, function(args, speaker) Services.VoiceChatInternal:SubscribePauseAll(false) end) addcmd("mutevc", {}, function(args, speaker) for _, plr in getPlayer(args[1], speaker) do if Players[plr] == speaker then continue end Services.VoiceChatInternal:SubscribePause(Players[plr].UserId, true) end end) addcmd("unmutevc", {}, function(args, speaker) for _, plr in getPlayer(args[1], speaker) do if Players[plr] == speaker then continue end Services.VoiceChatInternal:SubscribePause(Players[plr].UserId, false) end end) addcmd("phonebook", {"call"}, function(args, speaker) local success, canInvite = pcall(function() return SocialService:CanSendCallInviteAsync(speaker) end) if success and canInvite then SocialService:PromptPhoneBook(speaker, "") else notify("Phonebook", "It seems you're not able to call anyone. Sorry!") end end) local freezingua = nil local badnames = { "Head", "UpperTorso", "LowerTorso", "RightUpperArm", "LeftUpperArm", "RightLowerArm", "LeftLowerArm", "RightHand", "LeftHand", "RightUpperLeg", "LeftUpperLeg", "RightLowerLeg", "LeftLowerLeg", "RightFoot", "LeftFoot", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg", "HumanoidRootPart" } frozenParts = {} addcmd('freezeunanchored',{'freezeua'},function(args, speaker) execCmd("thawunanchored") local function FREEZENOOB(v) if v:IsA("BasePart") and not v.Anchored then local BADD = false for i = 1,#badnames do if v.Name == badnames[i] then BADD = true end end if speaker.Character and v:IsDescendantOf(speaker.Character) then BADD = true end if not BADD then for i,c in pairs(v:GetChildren()) do if c:IsA("BodyPosition") or c:IsA("BodyGyro") then c:Destroy() end end local bodypos = Instance.new("BodyPosition") bodypos.Parent = v bodypos.Position = v.Position bodypos.MaxForce = Vector3.new(math.huge,math.huge,math.huge) local bodygyro = Instance.new("BodyGyro") bodygyro.Parent = v bodygyro.CFrame = v.CFrame bodygyro.MaxTorque = Vector3.new(math.huge,math.huge,math.huge) if not table.find(frozenParts,v) then table.insert(frozenParts,v) end end end end for i,v in pairs(workspace:GetDescendants()) do FREEZENOOB(v) end freezingua = CmdsTrackConnection(workspace.DescendantAdded:Connect(FREEZENOOB)) end) addcmd('thawunanchored',{'thawua','unfreezeunanchored','unfreezeua'},function(args, speaker) if freezingua then freezingua:Disconnect() end for i,v in pairs(frozenParts) do for i,c in pairs(v:GetChildren()) do if c:IsA("BodyPosition") or c:IsA("BodyGyro") then c:Destroy() end end end frozenParts = {} end) addcmd('tpunanchored',{'tpua'},function(args, speaker) local tpuaplr = getSinglePlayer(args[1], speaker) if not tpuaplr or not tpuaplr.Character then return end if not tpuaplr.Character:FindFirstChild('Head') then return end if not speaker.Character then return end local Forces = {} for _, part in pairs(workspace:GetDescendants()) do if not part:IsA("BasePart") then continue end if part.Anchored or part:IsDescendantOf(speaker.Character) then continue end if table.find(badnames, part.Name) then continue end for i,c in pairs(part:GetChildren()) do if c:IsA("BodyPosition") or c:IsA("BodyGyro") then c:Destroy() end end local ForceInstance = Instance.new("BodyPosition") ForceInstance.Parent = part ForceInstance.MaxForce = Vector3.new(math.huge, math.huge, math.huge) table.insert(Forces, ForceInstance) if not table.find(frozenParts,part) then table.insert(frozenParts,part) end end for i,c in pairs(Forces) do c.Position = tpuaplr.Character.Head.Position end end) keycodeMap = { ["0"] = 0x30, ["1"] = 0x31, ["2"] = 0x32, ["3"] = 0x33, ["4"] = 0x34, ["5"] = 0x35, ["6"] = 0x36, ["7"] = 0x37, ["8"] = 0x38, ["9"] = 0x39, ["a"] = 0x41, ["b"] = 0x42, ["c"] = 0x43, ["d"] = 0x44, ["e"] = 0x45, ["f"] = 0x46, ["g"] = 0x47, ["h"] = 0x48, ["i"] = 0x49, ["j"] = 0x4A, ["k"] = 0x4B, ["l"] = 0x4C, ["m"] = 0x4D, ["n"] = 0x4E, ["o"] = 0x4F, ["p"] = 0x50, ["q"] = 0x51, ["r"] = 0x52, ["s"] = 0x53, ["t"] = 0x54, ["u"] = 0x55, ["v"] = 0x56, ["w"] = 0x57, ["x"] = 0x58, ["y"] = 0x59, ["z"] = 0x5A, ["enter"] = 0x0D, ["shift"] = 0x10, ["ctrl"] = 0x11, ["alt"] = 0x12, ["pause"] = 0x13, ["capslock"] = 0x14, ["spacebar"] = 0x20, ["space"] = 0x20, ["pageup"] = 0x21, ["pagedown"] = 0x22, ["end"] = 0x23, ["home"] = 0x24, ["left"] = 0x25, ["up"] = 0x26, ["right"] = 0x27, ["down"] = 0x28, ["insert"] = 0x2D, ["delete"] = 0x2E, ["f1"] = 0x70, ["f2"] = 0x71, ["f3"] = 0x72, ["f4"] = 0x73, ["f5"] = 0x74, ["f6"] = 0x75, ["f7"] = 0x76, ["f8"] = 0x77, ["f9"] = 0x78, ["f10"] = 0x79, ["f11"] = 0x7A, ["f12"] = 0x7B, } autoKeyPressing = false cancelAutoKeyPress = nil addcmd('autokeypress',{'keypress'},function(args, speaker) if keypress and keyrelease and args[1] then local code = keycodeMap[args[1]:lower()] if not code then notify('Auto Key Press',"Invalid key") return end execCmd('unautokeypress') wait() local clickDelay = 0.1 local releaseDelay = 0.1 if args[2] and isNumber(args[2]) then clickDelay = args[2] end if args[3] and isNumber(args[3]) then releaseDelay = args[3] end autoKeyPressing = true cancelAutoKeyPress = CmdsTrackConnection(UserInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent then if (input.KeyCode == Enum.KeyCode.Backspace and UserInputService:IsKeyDown(Enum.KeyCode.Equals)) or (input.KeyCode == Enum.KeyCode.Equals and UserInputService:IsKeyDown(Enum.KeyCode.Backspace)) then autoKeyPressing = false cancelAutoKeyPress:Disconnect() end end end)) notify("Auto Key Press", "Press [backspace] and [=] at the same time to stop (or type 'unautokeypress')") repeat wait(clickDelay) keypress(code) wait(releaseDelay) keyrelease(code) until autoKeyPressing == false if cancelAutoKeyPress then cancelAutoKeyPress:Disconnect() keyrelease(code) end else notify("Auto Key Press", "Your exploit does not support this command (missing keypress or keyrelease)") end end) addcmd('unautokeypress',{'noautokeypress','unkeypress','nokeypress'},function(args, speaker) autoKeyPressing = false if cancelAutoKeyPress then cancelAutoKeyPress:Disconnect() end end) Scale.Parent = ScaledHolder ScaledHolder.Size = UDim2.fromScale(1 / Scale.Scale, 1 / Scale.Scale) function hookCharEvents(plr, instant) task.spawn(function() local char = plr.Character if not char then return end local humanoid = char:WaitForChild("Humanoid", 10) if not humanoid or not humanoid:IsA("Humanoid") then return end local oldHealth = humanoid.Health CmdsTrackConnection(humanoid.HealthChanged:Connect(function(health) local change = math.abs(oldHealth - health) if oldHealth > health then eventEditor.FireEvent("OnDamage", plr.Name, tonumber(health)) end oldHealth = health end)) CmdsTrackConnection(humanoid.Died:Connect(function() eventEditor.FireEvent("OnDied", plr.Name) local killedBy = humanoid:FindFirstChild("creator") if killedBy and killedBy:IsA("ObjectValue") and killedBy.Value and killedBy.Value.Parent then eventEditor.FireEvent("OnKilled", plr.Name, killedBy.Name) end end)) end) end ScaledHolder.Visible = false return { Commands = cmds, Find = findCmd, Execute = execCmd } end end factories[ [=[iy_command_catalog.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Command metadata extracted from the pinned MIT-licensed IY backend. return { { Names = { "serverinfo", "info", "sinfo" } }, { Names = { "jobid", "copyjobid" } }, { Names = { "notifyjobid" } }, { Names = { "joinjobid", "jjid", "jid" }, Required = "" }, { Names = { "breakloops", "break" } }, { Names = { "gametp", "gameteleport" }, Required = "" }, { Names = { "rejoin", "rj" }, Required = "" }, { Names = { "inviteprompt" }, Required = "" }, { Names = { "autorejoin", "autorj" } }, { Names = { "serverhop", "shop" } }, { Names = { "exit", "shutdown", "leave" } }, { Names = { "noclip" } }, { Names = { "unnoclip", "clip" } }, { Names = { "togglenoclip" } }, { Names = { "fly" }, Required = "" }, { Names = { "flyspeed", "flysp" }, Required = "" }, { Names = { "unfly", "nofly", "novfly", "unvehiclefly", "novehiclefly", "unvfly" } }, { Names = { "vfly", "vehiclefly" }, Required = "" }, { Names = { "togglevfly" } }, { Names = { "vflyspeed", "vflysp", "vehicleflyspeed", "vehicleflysp" }, Required = "" }, { Names = { "qefly", "flyqe" }, Optional = "[true/false]" }, { Names = { "togglefly" } }, { Names = { "cframefly", "cfly" }, Required = "" }, { Names = { "uncframefly", "uncfly" } }, { Names = { "cframeflyspeed", "cflyspeed" }, Required = "" }, { Names = { "float", "platform" } }, { Names = { "unfloat", "nofloat", "unplatform", "noplatform" } }, { Names = { "togglefloat" } }, { Names = { "swim" } }, { Names = { "unswim", "noswim" } }, { Names = { "toggleswim" } }, { Names = { "setwaypoint", "swp", "setwp", "spos", "saveposition", "savepos" }, Required = "" }, { Names = { "waypointpos", "wpp", "setwaypointposition", "setpos", "setwaypointpos" }, Required = " " }, { Names = { "waypoints", "positions" } }, { Names = { "showwaypoints", "showwp", "showwps" } }, { Names = { "hidewaypoints", "hidewp", "hidewps" } }, { Names = { "waypoint", "wp", "lpos", "loadposition", "loadpos" }, Required = "" }, { Names = { "tweenspeed", "tspeed" }, Optional = "[num]" }, { Names = { "tweenwaypoint", "twp" }, Required = "" }, { Names = { "walktowaypoint", "wtwp" }, Required = "" }, { Names = { "pathfindwalktowaypoint", "pathfindwalktowp" }, Required = "" }, { Names = { "deletewaypoint", "dwp", "dpos", "deleteposition", "deletepos" }, Required = "" }, { Names = { "clearwaypoints", "cwp", "clearpositions", "cpos", "clearpos" } }, { Names = { "cleargamewaypoints", "cgamewp" } }, { Names = { "enable" }, Required = "" }, { Names = { "disable" }, Required = "" }, { Names = { "showguis" } }, { Names = { "unshowguis" } }, { Names = { "hideguis" } }, { Names = { "unhideguis" } }, { Names = { "guidelete" } }, { Names = { "unguidelete", "noguidelete" } }, { Names = { "rec", "record" } }, { Names = { "screenshot", "scrnshot" } }, { Names = { "togglefs", "togglefullscreen" } }, { Names = { "inspect", "examine" }, Required = "" }, { Names = { "savegame", "saveplace" } }, { Names = { "savelogs", "saveclogs", "saveconsolelogs" } }, { Names = { "clearerror", "clearerrors" } }, { Names = { "antigameplaypaused" } }, { Names = { "unantigameplaypaused" } }, { Names = { "clientantikick", "antikick" } }, { Names = { "clientantiteleport", "antiteleport" } }, { Names = { "allowrejoin", "allowrj" } }, { Names = { "cancelteleport", "canceltp" } }, { Names = { "volume", "vol" }, Required = "<0-10>" }, { Names = { "antilag", "boostfps", "lowgraphics" } }, { Names = { "unantilag", "unboostfps", "unlowgraphics", "highgraphics" } }, { Names = { "setfpscap", "fpscap", "maxfps" }, Optional = "[num]" }, { Names = { "removefpscap", "unfpscap" } }, { Names = { "notify" }, Required = "" }, { Names = { "esp" } }, { Names = { "espteam" } }, { Names = { "noesp", "unesp", "unespteam" } }, { Names = { "esptransparency" }, Optional = "[number]" }, { Names = { "partesp" }, Required = "" }, { Names = { "unpartesp", "nopartesp" }, Required = "" }, { Names = { "chams" } }, { Names = { "nochams", "unchams" } }, { Names = { "locate" }, Required = "" }, { Names = { "nolocate", "unlocate" }, Required = "" }, { Names = { "view", "spectate" }, Required = "" }, { Names = { "viewpart", "viewp" }, Required = "" }, { Names = { "unview", "unspectate" } }, { Names = { "freecam", "fcam", "fc" } }, { Names = { "freecampos", "fcpos", "fcp", "freecamposition", "fcposition" }, Required = "" }, { Names = { "freecamwaypoint", "fcwp" }, Required = "" }, { Names = { "freecamgoto", "fcgoto", "freecamtp", "fctp" }, Required = "" }, { Names = { "unfreecam", "nofreecam", "unfc", "nofc" } }, { Names = { "freecamspeed", "fcspeed" }, Required = "" }, { Names = { "notifyfreecamposition", "notifyfcpos" } }, { Names = { "copyfreecamposition", "copyfcpos" } }, { Names = { "gotocamera", "gotocam", "tocam" } }, { Names = { "tweengotocamera", "tweengotocam", "tgotocam", "ttocam" } }, { Names = { "fov" }, Required = "" }, { Names = { "lookat" }, Required = "" }, { Names = { "fixcam", "restorecam" } }, { Names = { "enableshiftlock", "enablesl", "shiftlock" } }, { Names = { "firstp" } }, { Names = { "thirdp" } }, { Names = { "noclipcam", "nccam" } }, { Names = { "maxzoom" }, Optional = "[num]" }, { Names = { "minzoom" }, Optional = "[num]" }, { Names = { "camdistance" }, Required = "" }, { Names = { "unlockws", "unlockworkspace" } }, { Names = { "lockws", "lockworkspace" } }, { Names = { "delete", "remove" }, Required = "" }, { Names = { "deleteclass", "removeclass", "deleteclassname", "removeclassname", "dc" }, Required = "" }, { Names = { "chardelete", "charremove", "cd" }, Required = "" }, { Names = { "chardeleteclass", "charremoveclass", "chardeleteclassname", "charremoveclassname", "cdc" }, Required = "" }, { Names = { "deletevelocity", "dv", "removevelocity", "removeforces" } }, { Names = { "deleteinvisparts", "deleteinvisibleparts", "dip" } }, { Names = { "invisibleparts", "invisparts" } }, { Names = { "uninvisibleparts", "uninvisparts" } }, { Names = { "btools" } }, { Names = { "f3x", "fex" } }, { Names = { "partpath", "partname" } }, { Names = { "antiafk", "antiidle" } }, { Names = { "datalimit" }, Required = "" }, { Names = { "replicationlag", "backtrack" }, Required = "" }, { Names = { "noprompts", "nopurchaseprompts" } }, { Names = { "showprompts", "showpurchaseprompts" } }, { Names = { "promptr6" } }, { Names = { "promptr15" } }, { Names = { "wallwalk", "walkonwalls" } }, { Names = { "age" }, Required = "" }, { Names = { "chatage" }, Required = "" }, { Names = { "joindate", "jd" }, Required = "" }, { Names = { "chatjoindate", "cjd" }, Required = "" }, { Names = { "copyname", "copyuser" }, Required = "" }, { Names = { "userid", "id" }, Required = "" }, { Names = { "copyplaceid", "placeid" } }, { Names = { "copygameid", "gameid" } }, { Names = { "copyid", "copyuserid" }, Required = "" }, { Names = { "creatorid", "creator" } }, { Names = { "copycreatorid", "copycreator" } }, { Names = { "setcreatorid", "setcreator" } }, { Names = { "appearanceid", "aid" }, Required = "" }, { Names = { "copyappearanceid", "caid" }, Required = "" }, { Names = { "agecheck" }, Required = "" }, { Names = { "norender" } }, { Names = { "render" } }, { Names = { "2022materials", "use2022materials" } }, { Names = { "un2022materials", "unuse2022materials" } }, { Names = { "goto", "to" }, Required = " " }, { Names = { "tweengoto", "tgoto", "tto", "tweento" }, Required = "" }, { Names = { "vehiclegoto", "vgoto", "vtp", "vehicletp" }, Required = "" }, { Names = { "pulsetp", "ptp" }, Required = "", Optional = "[seconds]" }, { Names = { "vehiclenoclip", "vnoclip" } }, { Names = { "vehicleclip", "vclip", "unvnoclip", "unvehiclenoclip" } }, { Names = { "togglevnoclip" } }, { Names = { "clientbring", "cbring" }, Required = "" }, { Names = { "loopbring" }, Required = " " }, { Names = { "unloopbring", "noloopbring" }, Required = "" }, { Names = { "walkto", "follow" }, Required = "" }, { Names = { "pathfindwalkto", "pathfindfollow" }, Required = "" }, { Names = { "unwalkto", "nowalkto", "unfollow", "nofollow" } }, { Names = { "orbit" }, Required = "", Optional = "[speed] [distance]" }, { Names = { "unorbit" } }, { Names = { "freeze", "fr" }, Required = "" }, { Names = { "thaw", "unfreeze", "unfr" }, Required = "" }, { Names = { "anchor" } }, { Names = { "unanchor" } }, { Names = { "loopoof" } }, { Names = { "unloopoof" } }, { Names = { "muteboombox", "mutebb" }, Required = "" }, { Names = { "unmuteboombox", "unmutebb" }, Required = "" }, { Names = { "killsounds", "destroysounds", "nosounds" } }, { Names = { "loopkillsounds", "lksounds" } }, { Names = { "unloopkillsounds", "unlksounds" } }, { Names = { "stopsounds" } }, { Names = { "pausesounds" } }, { Names = { "playsounds" } }, { Names = { "reset" } }, { Names = { "freezeanims" } }, { Names = { "unfreezeanims" } }, { Names = { "respawn" } }, { Names = { "refresh", "re" } }, { Names = { "strengthen" }, Required = "" }, { Names = { "weaken" }, Required = "" }, { Names = { "unweaken", "unstrengthen" } }, { Names = { "breakvelocity" } }, { Names = { "jpower", "jumppower", "jp" }, Required = "" }, { Names = { "maxslopeangle", "msa" }, Required = "" }, { Names = { "gravity", "grav" }, Required = "" }, { Names = { "hipheight", "hheight" }, Required = "" }, { Names = { "dance" } }, { Names = { "undance", "nodance" } }, { Names = { "defemote" }, Required = "" }, { Names = { "nolimbs", "rlimbs" } }, { Names = { "noarms", "rarms" } }, { Names = { "nolegs", "rlegs" } }, { Names = { "sit" } }, { Names = { "lay", "laydown" } }, { Names = { "sitwalk" } }, { Names = { "unsitwalk" } }, { Names = { "nosit" } }, { Names = { "unnosit" } }, { Names = { "jump" } }, { Names = { "infjump", "infinitejump" } }, { Names = { "uninfjump", "uninfinitejump", "noinfjump", "noinfinitejump" } }, { Names = { "flyjump" } }, { Names = { "unflyjump", "noflyjump" } }, { Names = { "autojump", "ajump" } }, { Names = { "unautojump", "noautojump", "noajump", "unajump" } }, { Names = { "edgejump", "ejump" } }, { Names = { "unedgejump", "noedgejump", "noejump", "unejump" } }, { Names = { "bunnyhop", "bhop" } }, { Names = { "unbunnyhop", "unbhop" } }, { Names = { "team" }, Required = "" }, { Names = { "nobgui", "unbgui", "nobillboardgui", "unbillboardgui", "noname", "rohg" } }, { Names = { "loopnobgui", "loopunbgui", "loopnobillboardgui", "loopunbillboardgui", "loopnoname", "looprohg" } }, { Names = { "unloopnobgui", "unloopunbgui", "unloopnobillboardgui", "unloopunbillboardgui", "unloopnoname", "unlooprohg" } }, { Names = { "spasm" } }, { Names = { "unspasm", "nospasm" } }, { Names = { "headthrow" } }, { Names = { "hug" } }, { Names = { "unhug" } }, { Names = { "animation", "anim" }, Required = "", Optional = "[speed] [overlay]" }, { Names = { "emote", "em" }, Required = " " }, { Names = { "noanim" } }, { Names = { "reanim" } }, { Names = { "animspeed" }, Required = "" }, { Names = { "copyanimation", "copyanim", "copyemote" }, Required = "" }, { Names = { "copyanimationid", "copyanimid", "copyemoteid" }, Required = "" }, { Names = { "stopanimations", "stopanims", "stopanim" } }, { Names = { "refreshanimations", "refreshanimation", "refreshanims", "refreshanim" } }, { Names = { "allowcustomanim", "allowcustomanimations" } }, { Names = { "unallowcustomanim", "unallowcustomanimations" } }, { Names = { "loopanimation", "loopanim" } }, { Names = { "tpposition", "tppos" }, Required = "" }, { Names = { "tweentpposition", "ttppos" }, Required = "" }, { Names = { "offset" }, Required = "" }, { Names = { "tweenoffset", "toffset" }, Required = "" }, { Names = { "mouseteleport", "mousetp" } }, { Names = { "tptool", "teleporttool" } }, { Names = { "tweentptool", "tweenteleporttool", "ttptool", "twtptool" } }, { Names = { "thru" }, Required = " " }, { Names = { "getposition", "getpos", "notifypos", "notifyposition" } }, { Names = { "copyposition", "copypos" }, Required = "" }, { Names = { "walktopos", "walktoposition" }, Required = "" }, { Names = { "speed", "ws", "walkspeed" }, Required = "" }, { Names = { "spoofspeed", "spoofws", "spoofwalkspeed" }, Required = "" }, { Names = { "loopspeed", "loopws" }, Required = "" }, { Names = { "unloopspeed", "unloopws" } }, { Names = { "spoofjumppower", "spoofjp" }, Required = "" }, { Names = { "loopjumppower", "loopjp", "loopjpower" }, Required = "" }, { Names = { "unloopjumppower", "unloopjp", "unloopjpower" } }, { Names = { "tools", "gears" } }, { Names = { "notools", "rtools", "clrtools", "removetools", "deletetools", "dtools" } }, { Names = { "deleteselectedtool", "dst" } }, { Names = { "console" } }, { Names = { "oldconsole" } }, { Names = { "explorer", "dex" } }, { Names = { "moondex", "mdex" } }, { Names = { "remotespy", "rspy", "cobalt", "cspy" } }, { Names = { "simplespy", "sspy" } }, { Names = { "audiologger", "alogger" } }, { Names = { "animationlogger", "animlogger" } }, { Names = { "loopgoto" }, Required = " " }, { Names = { "unloopgoto", "noloopgoto" } }, { Names = { "headsit" }, Required = "" }, { Names = { "chat", "say" }, Required = "" }, { Names = { "parrot" } }, { Names = { "unparrot" } }, { Names = { "vsay" }, Required = "" }, { Names = { "spam" }, Required = "" }, { Names = { "nospam", "unspam" } }, { Names = { "whisper", "pm" }, Required = " " }, { Names = { "pmspam" }, Required = " " }, { Names = { "nopmspam", "unpmspam" }, Required = "" }, { Names = { "spamspeed" }, Required = "" }, { Names = { "bubblechat" } }, { Names = { "unbubblechat", "nobubblechat" } }, { Names = { "chatwindow" } }, { Names = { "unchatwindow", "nochatwindow" } }, { Names = { "darkchat" } }, { Names = { "blockhead" } }, { Names = { "blockhats" } }, { Names = { "blocktool" } }, { Names = { "creeper" } }, { Names = { "friend" }, Required = "" }, { Names = { "unfriend" }, Required = "" }, { Names = { "bringpart" }, Required = "" }, { Names = { "bringpartclass", "bpc" }, Required = "" }, { Names = { "gotopart", "topart" }, Required = "" }, { Names = { "tweengotopart", "tgotopart", "ttopart" }, Required = "" }, { Names = { "gotopartclass", "gpc" }, Required = "" }, { Names = { "tweengotopartclass", "tgpc" }, Required = "" }, { Names = { "gotomodel", "tomodel" }, Required = "" }, { Names = { "tweengotomodel", "tgotomodel", "ttomodel" }, Required = "" }, { Names = { "gotopartdelay" }, Required = "" }, { Names = { "noclickdetectorlimits", "nocdlimits", "removecdlimits" } }, { Names = { "fireclickdetectors", "firecd", "firecds" }, Required = "" }, { Names = { "noproximitypromptlimits", "nopplimits", "removepplimits" } }, { Names = { "fireproximityprompts", "firepp" }, Required = "" }, { Names = { "instantproximityprompts", "instantpp" } }, { Names = { "uninstantproximityprompts", "uninstantpp" } }, { Names = { "disableproximityprompts", "disablepp" } }, { Names = { "enableproximityprompts", "enablepp" } }, { Names = { "notifyping", "ping" } }, { Names = { "grabtools" } }, { Names = { "nograbtools", "ungrabtools" } }, { Names = { "removespecifictool" }, Required = "" }, { Names = { "unremovespecifictool" }, Required = "" }, { Names = { "clearremovespecifictool" } }, { Names = { "viewbackpack", "viewbp", "checktools", "viewtools", "toolview", "seetools" }, Required = "" }, { Names = { "light" }, Required = " " }, { Names = { "unlight", "nolight" }, Required = "" }, { Names = { "deletelighting", "dlighting", "removelighting" } }, { Names = { "copytools" }, Required = "" }, { Names = { "naked" } }, { Names = { "noface", "removeface" } }, { Names = { "spawnpoint", "spawn" }, Required = "" }, { Names = { "nospawnpoint", "nospawn", "removespawnpoint" } }, { Names = { "flashback", "diedtp" } }, { Names = { "hatspin", "spinhats" }, Required = "" }, { Names = { "unhatspin", "unspinhats" } }, { Names = { "clearhats", "cleanhats" } }, { Names = { "clearcharappearance", "clearchar", "clrchar" } }, { Names = { "equiptools" } }, { Names = { "unequiptools" } }, { Names = { "touchinterests", "touchinterest", "firetouchinterests", "firetouchinterest" }, Required = "" }, { Names = { "fullbright", "fb", "fullbrightness" } }, { Names = { "loopfullbright", "loopfb" } }, { Names = { "unloopfullbright", "unloopfb", "unfb", "unfullbright", "unfullbrightness" } }, { Names = { "ambient" }, Required = " " }, { Names = { "unambient" } }, { Names = { "day" } }, { Names = { "night" } }, { Names = { "time" }, Required = "" }, { Names = { "nofog" } }, { Names = { "brightness" }, Required = "" }, { Names = { "dncycle", "daynightcycle" }, Required = " " }, { Names = { "undncycle", "stopdncycle" } }, { Names = { "globalshadows", "gshadows" } }, { Names = { "unglobalshadows", "ungshadows" } }, { Names = { "restorelighting", "rlighting" } }, { Names = { "stun", "platformstand" } }, { Names = { "unstun", "nostun", "unplatformstand", "noplatformstand" } }, { Names = { "norotate", "noautorotate" } }, { Names = { "unnorotate", "autorotate" } }, { Names = { "enablestate" }, Required = "" }, { Names = { "disablestate" }, Required = "" }, { Names = { "drophats", "drophat" } }, { Names = { "deletehats", "nohats", "rhats" } }, { Names = { "droptools", "droptool" } }, { Names = { "droppabletools" } }, { Names = { "reach" }, Required = "" }, { Names = { "boxreach" }, Required = "" }, { Names = { "unreach", "noreach", "unboxreach" } }, { Names = { "grippos" }, Required = "" }, { Names = { "usetools" }, Required = "", Optional = "[delay]" }, { Names = { "fling" } }, { Names = { "unfling", "nofling" } }, { Names = { "togglefling" } }, { Names = { "flyfling" }, Required = "" }, { Names = { "unflyfling" } }, { Names = { "toggleflyfling" } }, { Names = { "walkfling" } }, { Names = { "unwalkfling", "nowalkfling" } }, { Names = { "togglewalkfling" } }, { Names = { "antifling" } }, { Names = { "unantifling" } }, { Names = { "toggleantifling" } }, { Names = { "handlekill", "hkill" }, Required = " " }, { Names = { "teleportwalk", "tpwalk" }, Optional = "[num]" }, { Names = { "unteleportwalk", "untpwalk" } }, { Names = { "spin" }, Optional = "[speed]" }, { Names = { "unspin" } }, { Names = { "xray" } }, { Names = { "unxray", "noxray" } }, { Names = { "togglexray" } }, { Names = { "loopxray" } }, { Names = { "unloopxray" } }, { Names = { "walltp" } }, { Names = { "unwalltp", "nowalltp" } }, { Names = { "autoclick" }, Optional = "[click delay] [release delay]" }, { Names = { "unautoclick", "noautoclick" } }, { Names = { "mousesensitivity", "ms" }, Required = "<0-10>" }, { Names = { "hovername" } }, { Names = { "unhovername", "nohovername" } }, { Names = { "headsize" }, Optional = "[player] [size]" }, { Names = { "hitbox" }, Optional = "[player] [size] [transparency]" }, { Names = { "hitboxes" } }, { Names = { "unhitboxes" } }, { Names = { "stareat", "stare" }, Required = "" }, { Names = { "unstareat", "unstare", "nostare", "nostareat" }, Required = "" }, { Names = { "rolewatch" }, Required = " " }, { Names = { "rolewatchstop" } }, { Names = { "rolewatchleave", "unrolewatch" } }, { Names = { "staffwatch" } }, { Names = { "unstaffwatch" } }, { Names = { "findfriendgroups" } }, { Names = { "removeterrain", "rterrain", "noterrain" } }, { Names = { "clearnilinstances", "nonilinstances", "cni" } }, { Names = { "destroyheight", "dh" }, Required = "" }, { Names = { "antivoid" } }, { Names = { "unantivoid", "noantivoid" } }, { Names = { "fakeout" } }, { Names = { "trip" }, Required = " " }, { Names = { "removeads", "adblock" } }, { Names = { "scare", "spook" }, Required = "" }, { Names = { "alignmentkeys" } }, { Names = { "unalignmentkeys", "noalignmentkeys" } }, { Names = { "ctrllock" } }, { Names = { "unctrllock" } }, { Names = { "listento" }, Required = "" }, { Names = { "unlistento" } }, { Names = { "guiscale" }, Required = "" }, { Names = { "muteallvoices", "muteallvcs" } }, { Names = { "unmuteallvoices", "unmuteallvcs" } }, { Names = { "mutevc" }, Required = "" }, { Names = { "unmutevc" }, Required = "" }, { Names = { "phonebook", "call" } }, { Names = { "freezeunanchored", "freezeua" } }, { Names = { "thawunanchored", "thawua", "unfreezeunanchored", "unfreezeua" } }, { Names = { "tpunanchored", "tpua" }, Required = "" }, { Names = { "autokeypress", "keypress" }, Required = " " }, { Names = { "unautokeypress", "noautokeypress", "unkeypress", "nokeypress" } }, } end end factories[ [=[syncemote.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Hold Z and left-click another player's character to sync. local options = ... local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local localPlayer = Players.LocalPlayer local mouse = localPlayer:GetMouse() local stopCurrentSync local syncedPlayer local movementNames = { idle = true, walk = true, run = true, jump = true, fall = true, climb = true, swim = true, swimidle = true, sit = true, } local cancelStates = { [Enum.HumanoidStateType.Jumping] = true, [Enum.HumanoidStateType.Freefall] = true, [Enum.HumanoidStateType.Climbing] = true, [Enum.HumanoidStateType.Swimming] = true, [Enum.HumanoidStateType.Seated] = true, [Enum.HumanoidStateType.PlatformStanding] = true, [Enum.HumanoidStateType.FallingDown] = true, [Enum.HumanoidStateType.GettingUp] = true, [Enum.HumanoidStateType.Dead] = true, } local function localEmoteCancelled(humanoid) return humanoid.MoveDirection.Magnitude > 0.01 or humanoid.Jump or cancelStates[humanoid:GetState()] == true end local function getRig(player) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") local root = humanoid and humanoid.RootPart return character, humanoid, animator, root end local function startSync(TargetUserId) local targetPlayer = Players:GetPlayerByUserId(TargetUserId) if not targetPlayer or targetPlayer == localPlayer then return end local localCharacter, localHumanoid, localAnimator, localRoot = getRig(localPlayer) local targetCharacter, targetHumanoid, targetAnimator, targetRoot = getRig(targetPlayer) if not localAnimator or not targetAnimator or not localRoot or not targetRoot then warn("Both characters must be spawned with an Animator and root part") return end if stopCurrentSync then stopCurrentSync("selected a new player") end local connections = {} local copies = {} local active = true local syncedTracks = setmetatable({}, { __mode = "k" }) local animate = localCharacter:FindFirstChild("Animate") local restoreAnimate = false local suppressLocal = false local function setEmoteOverride(enabled) if suppressLocal == enabled then return end suppressLocal = enabled if enabled then animate = localCharacter:FindFirstChild("Animate") restoreAnimate = animate and animate:IsA("LocalScript") and animate.Enabled if restoreAnimate then animate.Enabled = false end for _, track in ipairs(localAnimator:GetPlayingAnimationTracks()) do if not syncedTracks[track] then track:Stop(0) end end else if restoreAnimate and animate.Parent == localCharacter then animate.Enabled = true end restoreAnimate = false end end -- Only suppress local tracks while a copied emote is actually active. table.insert(connections, localAnimator.AnimationPlayed:Connect(function(track) if active and suppressLocal and not syncedTracks[track] then track:Stop(0) end end)) local function removeCopy(sourceTrack) local copy = copies[sourceTrack] if not copy then return end copies[sourceTrack] = nil syncedTracks[copy.track] = nil if copy.stopped then copy.stopped:Disconnect() end copy.track:Stop(0) copy.track:Destroy() copy.animation:Destroy() if next(copies) == nil then setEmoteOverride(false) end end local function stopSync(reason) if not active then return end active = false if stopCurrentSync == stopSync then stopCurrentSync = nil syncedPlayer = nil end for _, connection in ipairs(connections) do connection:Disconnect() end for sourceTrack in pairs(copies) do removeCopy(sourceTrack) end setEmoteOverride(false) end stopCurrentSync = stopSync syncedPlayer = targetPlayer local targetMovementIds = {} local function addMovementId(value, kind) local id = tostring(value):match("%d+") if id and tonumber(id) > 0 then targetMovementIds[id] = kind or true end end local ok, description = pcall(function() return targetHumanoid:GetAppliedDescription() end) if ok and description then for _, field in ipairs({ "IdleAnimation", "WalkAnimation", "RunAnimation", "JumpAnimation", "FallAnimation", "ClimbAnimation", "SwimAnimation" }) do addMovementId(description[field], field:gsub("Animation$", ""):lower()) end description:Destroy() end local function isMovementTrack(track) local animation = track.Animation if not animation then return false end local name = animation.Name:lower():gsub("%d+$", ""):gsub("anim$", "") if movementNames[name] then return true, name end local targetAnimate = targetCharacter:FindFirstChild("Animate") if targetAnimate then for _, slot in ipairs(targetAnimate:GetChildren()) do if movementNames[slot.Name:lower()] then for _, item in ipairs(slot:GetDescendants()) do if item:IsA("Animation") then addMovementId(item.AnimationId, slot.Name:lower()) end end end end end local id = animation.AnimationId:match("%d+") return id and targetMovementIds[id] ~= nil, id and targetMovementIds[id] end local function targetMoving() return localEmoteCancelled(targetHumanoid) or targetRoot.AssemblyLinearVelocity.Magnitude > 0.75 end local function detachCopy(copy) copy.detached = true copy.track:AdjustSpeed(copy.speed) copy.track:AdjustWeight(copy.weight, 0) end -- Use the LOCAL humanoid's normal locomotion signals to cancel the emote. table.insert(connections, localHumanoid.Running:Connect(function(speed) if suppressLocal and speed > 0.75 then stopSync("local player started moving") end end)) table.insert(connections, localHumanoid.StateChanged:Connect(function(_, state) if suppressLocal and cancelStates[state] then stopSync("local player changed to " .. state.Name) end end)) local function copyAnimation(sourceTrack) if not active or not sourceTrack.Animation then return end local movementTrack, movementKind = isMovementTrack(sourceTrack) if movementTrack then -- Keep the emote instead of copying the target's locomotion. if targetMoving() or (movementKind ~= "idle" and movementKind ~= "sit" and movementKind ~= "swimidle") then for _, copy in pairs(copies) do detachCopy(copy) end end return end if localEmoteCancelled(localHumanoid) then return end if copies[sourceTrack] then copies[sourceTrack].detached = false return end for oldSource, copy in pairs(copies) do if copy.detached then removeCopy(oldSource) end end local animation = Instance.new("Animation") animation.Name = "Synced_" .. sourceTrack.Animation.Name animation.AnimationId = sourceTrack.Animation.AnimationId local ok, track = pcall(function() return localAnimator:LoadAnimation(animation) end) if not ok then animation:Destroy() warn("Could not copy animation: " .. tostring(track)) return end local copy = { animation = animation, track = track, speed = sourceTrack.Speed, weight = math.max(sourceTrack.WeightTarget, 0.001), } copies[sourceTrack] = copy syncedTracks[track] = true setEmoteOverride(true) track.Priority = sourceTrack.Priority track.Looped = sourceTrack.Looped track:Play(0, math.max(sourceTrack.WeightTarget, 0.001), sourceTrack.Speed) track.TimePosition = sourceTrack.TimePosition copy.stopped = sourceTrack.Stopped:Connect(function() if copy.detached or targetMoving() then detachCopy(copy) else removeCopy(sourceTrack) end end) end table.insert(connections, targetAnimator.AnimationPlayed:Connect(copyAnimation)) table.insert(connections, RunService.Heartbeat:Connect(function() if localPlayer.Character ~= localCharacter or targetPlayer.Character ~= targetCharacter or not localRoot.Parent or not targetRoot.Parent or localHumanoid.Health <= 0 or targetHumanoid.Health <= 0 then stopSync("a character changed or died") return end if suppressLocal and localEmoteCancelled(localHumanoid) then stopSync("local player moved or jumped") return end -- Watching an idle target must not disable the local Animate script. -- If an emote began while the local player was moving, copy it once idle. if not suppressLocal then for _, sourceTrack in ipairs(targetAnimator:GetPlayingAnimationTracks()) do copyAnimation(sourceTrack) end end for sourceTrack, copy in pairs(copies) do if not copy.detached and targetMoving() then detachCopy(copy) end if copy.detached then -- The original emote now continues locally at its last synced speed. if not copy.track.IsPlaying then removeCopy(sourceTrack) end elseif not sourceTrack.IsPlaying then removeCopy(sourceTrack) else copy.speed = sourceTrack.Speed copy.weight = math.max(sourceTrack.WeightTarget, 0.001) copy.track.Priority = sourceTrack.Priority copy.track.Looped = sourceTrack.Looped copy.track:AdjustSpeed(sourceTrack.Speed) copy.track:AdjustWeight(sourceTrack.WeightTarget, 0) -- Match the observed source time every frame, without a drift threshold. copy.track.TimePosition = sourceTrack.TimePosition end end end)) table.insert(connections, localPlayer.CharacterRemoving:Connect(function() stopSync("local character removed") end)) table.insert(connections, targetPlayer.CharacterRemoving:Connect(function() stopSync("target character removed") end)) table.insert(connections, Players.PlayerRemoving:Connect(function(player) if player == targetPlayer then stopSync("target player left") end end)) for _, sourceTrack in ipairs(targetAnimator:GetPlayingAnimationTracks()) do copyAnimation(sourceTrack) end end -- Command mode shares the sync logic without installing Z-click controls. if type(options) == "table" and options.CommandMode then return { Start = startSync, Stop = function() if stopCurrentSync then stopCurrentSync("command stopped") end end, Target = function() return syncedPlayer end, } end local function clickedPlayer() local object = mouse.Target -- Walk through accessories and nested models to find the player character. while object and object ~= workspace do if object:IsA("Model") then local player = Players:GetPlayerFromCharacter(object) if player then return player end end object = object.Parent end end local hoverHighlight local syncHighlight local function updateOutline(highlight, name, character, color) if not character then if highlight then highlight.Enabled = false highlight.Adornee = nil end return highlight end if not highlight or not highlight.Parent then highlight = Instance.new("Highlight") highlight.Name = name highlight.FillTransparency = 1 highlight.OutlineTransparency = 0 highlight.DepthMode = Enum.HighlightDepthMode.Occluded highlight.Parent = workspace end highlight.Adornee = character highlight.OutlineColor = color highlight.Enabled = true return highlight end RunService.RenderStepped:Connect(function() local activationHeld = UserInputService:IsKeyDown(Enum.KeyCode.Z) local hovered = activationHeld and clickedPlayer() or nil if hovered == localPlayer then hovered = nil end local hoverCharacter = hovered and hovered.Character local syncCharacter = activationHeld and syncedPlayer and syncedPlayer.Character -- Only one outline on the current target: hover white overrides sync green. if hovered == syncedPlayer then syncCharacter = nil end hoverHighlight = updateOutline(hoverHighlight, "HoveredEmoteOutline", hoverCharacter, Color3.fromRGB(255, 255, 255)) syncHighlight = updateOutline(syncHighlight, "SyncedEmoteOutline", syncCharacter, Color3.fromRGB(0, 255, 0)) end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed or input.UserInputType ~= Enum.UserInputType.MouseButton1 or UserInputService:GetFocusedTextBox() then return end if not UserInputService:IsKeyDown(Enum.KeyCode.Z) then return end local targetPlayer = clickedPlayer() if targetPlayer and targetPlayer ~= localPlayer then startSync(targetPlayer.UserId) elseif not targetPlayer and stopCurrentSync then stopCurrentSync("Z-clicked empty space or a non-player") end end) end end factories[ [=[antifling.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Local velocity-based collision filtering, enabled through /antifling. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local localPlayer = Players.LocalPlayer local api = { Active = true, SpeedLimit = 25, RecoverySeconds = 0.5, Connections = {}, Parts = {}, Players = {} } local function connect(signal, callback, bucket) local connection = signal:Connect(callback) api.Connections[connection] = true if bucket then bucket[connection] = true end return connection end local function disconnect(connection) if connection.Connected then connection:Disconnect() end api.Connections[connection] = nil end local function disconnectBucket(bucket) for connection in pairs(bucket) do disconnect(connection) end table.clear(bucket) end local function removePart(part) local record = api.Parts[part] if not record then return end api.Parts[part] = nil disconnectBucket(record.Connections) pcall(function() if record.Owner ~= localPlayer then part.CanCollide = record.OriginalCollision end end) end local function velocityMagnitude(velocity) local x, y, z = velocity.X, velocity.Y, velocity.Z return math.sqrt(x * x + y * y + z * z) end local function sampleRoot(owner) local record = api.Players[owner] if not record then return end local character = owner.Character local root = character and character:FindFirstChild("HumanoidRootPart") record.RootSpeed = root and root:IsA("BasePart") and velocityMagnitude(root.Velocity) or nil end local function updatePart(part, record) if not api.Active then return end if not part:IsDescendantOf(record.Character) or record.Owner.Character ~= record.Character then removePart(part); return end if record.Owner ~= localPlayer then local ownerRecord = api.Players[record.Owner] local speed = ownerRecord and ownerRecord.RootSpeed or 0 local limit = api.SpeedLimit if type(limit) ~= "number" or limit ~= limit or limit <= 0 or limit == math.huge then limit = 25 end local excessive = speed ~= speed or speed > limit if excessive then if not record.Blocked then record.CollisionStateBeforeMarginCross = record.OriginalCollision record.Blocked = true end record.SafeSince = nil elseif record.Blocked then record.SafeSince = record.SafeSince or os.clock() if os.clock() - record.SafeSince >= api.RecoverySeconds then record.OriginalCollision = record.CollisionStateBeforeMarginCross record.Blocked, record.SafeSince = false, nil end end local desired = not record.Blocked and record.OriginalCollision if part.CanCollide ~= desired then record.Writing = true part.CanCollide = desired record.Writing = false end end end local function watchPart(owner, character, part) if not api.Active or not part:IsA("BasePart") or not part:IsDescendantOf(character) or api.Parts[part] then return end local record = { Owner = owner, Character = character, OriginalCollision = part.CanCollide, Connections = {} } api.Parts[part] = record sampleRoot(owner) connect(part:GetPropertyChangedSignal("CanCollide"), function() if not api.Active or record.Owner == localPlayer or record.Writing or api.Parts[part] ~= record then return end -- Sample speed before accepting a new collision state. Changes during -- suppression/recovery must never overwrite the state saved at entry. local requested = part.CanCollide sampleRoot(owner) updatePart(part, record) if record.Blocked then return end record.OriginalCollision = requested updatePart(part, record) end, record.Connections) if owner ~= localPlayer and part.Name == "HumanoidRootPart" and part.Parent == character then connect(part:GetPropertyChangedSignal("AssemblyLinearVelocity"), function() sampleRoot(owner) for otherPart, otherRecord in pairs(api.Parts) do if otherRecord.Owner == owner then updatePart(otherPart, otherRecord) end end end, record.Connections) end connect(part.Destroying, function() removePart(part) end, record.Connections) updatePart(part, record) end local function clearCharacter(owner, record) disconnectBucket(record.CharacterConnections) for part, partRecord in pairs(api.Parts) do if partRecord.Owner == owner then removePart(part) end end record.Character, record.RootSpeed = nil, nil end local function watchCharacter(owner, record, character) clearCharacter(owner, record) if not api.Active then return end record.Character = character connect(character.DescendantAdded, function(part) watchPart(owner, character, part) if part.Name == "HumanoidRootPart" then sampleRoot(owner) for otherPart, otherRecord in pairs(api.Parts) do if otherRecord.Owner == owner then updatePart(otherPart, otherRecord) end end end end, record.CharacterConnections) connect(character.DescendantRemoving, function(part) removePart(part) end, record.CharacterConnections) for _, part in ipairs(character:GetDescendants()) do watchPart(owner, character, part) end end local function removePlayer(owner) local record = api.Players[owner] if not record then return end clearCharacter(owner, record) disconnectBucket(record.Connections) api.Players[owner] = nil end local function watchPlayer(owner) if not api.Active or api.Players[owner] then return end local record = { Connections = {}, CharacterConnections = {} } api.Players[owner] = record connect(owner.CharacterAdded, function(character) watchCharacter(owner, record, character) end, record.Connections) connect(owner.CharacterRemoving, function(character) if record.Character == character then clearCharacter(owner, record) end end, record.Connections) if owner.Character then watchCharacter(owner, record, owner.Character) end end function api.IsReady(owner) local record = api.Players[owner] local character = record and record.Character if not character or character ~= owner.Character or not character.Parent then return false end local root = character:FindFirstChild("HumanoidRootPart") local humanoid = character:FindFirstChildOfClass("Humanoid") return root ~= nil and root:IsA("BasePart") and humanoid ~= nil and humanoid.Health > 0 end local speedGui = Instance.new("ScreenGui") speedGui.Name, speedGui.ResetOnSpawn, speedGui.IgnoreGuiInset = "AntiFlingSpeeds", false, true local speedText = Instance.new("TextLabel") speedText.Name = "Players" speedText.AnchorPoint = Vector2.new(1, 0.5) speedText.Position = UDim2.new(1, -12, 0.5, 0) speedText.Size = UDim2.new(0.48, 0, 0, 0) speedText.AutomaticSize = Enum.AutomaticSize.Y speedText.BackgroundTransparency = 1 speedText.TextColor3, speedText.TextStrokeColor3 = Color3.new(1, 1, 1), Color3.new(0, 0, 0) speedText.TextStrokeTransparency, speedText.TextSize = 0, 18 speedText.Font = Enum.Font.SourceSans speedText.TextXAlignment, speedText.TextYAlignment = Enum.TextXAlignment.Right, Enum.TextYAlignment.Center speedText.Active, speedText.Selectable = false, false speedText.Text, speedText.Visible = "", false speedText.Parent = speedGui speedGui.Parent = localPlayer:WaitForChild("PlayerGui") local function updateSpeedList() local entries = {} for owner, record in pairs(api.Players) do local speed = record.RootSpeed if speed and speed == speed and speed > 500 and not (owner == localPlayer and speed > 5000) then table.insert(entries, { Owner = owner, Speed = speed }) end end table.sort(entries, function(a, b) return a.Owner.UserId < b.Owner.UserId end) local lines = {} for _, entry in ipairs(entries) do local owner = entry.Owner table.insert(lines, string.format("%s (@%s): %.0f/s", owner.DisplayName, owner.Name, entry.Speed)) end local text = table.concat(lines, "\n") if speedText.Text ~= text then speedText.Text = text end speedText.Visible = #entries > 0 end local function sample() if not api.Active then return end for owner in pairs(api.Players) do sampleRoot(owner) end for part, record in pairs(api.Parts) do updatePart(part, record) end end connect(Players.PlayerAdded, watchPlayer) connect(Players.PlayerRemoving, removePlayer) connect(RunService.PreSimulation, sample) local displayElapsed = 0 connect(RunService.PostSimulation, function(delta) displayElapsed = displayElapsed + delta if displayElapsed >= 0.1 then displayElapsed = 0 for owner in pairs(api.Players) do sampleRoot(owner) end updateSpeedList() end end) for _, owner in ipairs(Players:GetPlayers()) do watchPlayer(owner) end function api.Disconnect() if not api.Active then return end api.Active = false speedGui:Destroy() for connection in pairs(api.Connections) do disconnect(connection) end for part, record in pairs(api.Parts) do pcall(function() if record.Owner ~= localPlayer then part.CanCollide = record.OriginalCollision end end) api.Parts[part] = nil end table.clear(api.Players) end return api end end factories[ [=[cmds_invis.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Temporary root-position swap, using the same Heartbeat/render pattern as weapon_v2. local options = ... local player = game:GetService("Players").LocalPlayer local RunService = game:GetService("RunService") local Workspace = game:GetService("Workspace") local globals = type(getgenv) == "function" and getgenv() or _G local previous = globals.CommandsInvisibility if previous and previous.Disconnect then previous.Disconnect() end local api = { Active = true, Connections = {}, Materials = {} } local function restorePosition() local saved = api.Saved api.Saved = nil if saved and saved.Root.Parent and saved.Character==player.Character then saved.Root.CFrame = saved.Client saved.Root.Velocity, saved.Root.RotVelocity = Vector3.zero, Vector3.zero saved.Root.Velocity = saved.Velocity + Vector3.new(0, -0.1, 0) saved.Root.RotVelocity = saved.RotationVelocity end end -- Command teleports first restore the client pose and discard the old snapshot. -- The next Heartbeat captures the new pose, so rendering cannot undo the move. function api.PivotTo(transform) assert(api.Active,"Invisibility is stopped") restorePosition() local character=assert(player.Character,"Your character has not spawned") character:PivotTo(transform) for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then part.AssemblyLinearVelocity,part.AssemblyAngularVelocity=Vector3.zero,Vector3.zero end end end function api.SetRootCFrame(transform) assert(api.Active,"Invisibility is stopped") restorePosition() local character=player.Character local humanoid=character and character:FindFirstChildOfClass("Humanoid") local root=assert(humanoid and humanoid.RootPart,"Your character has not spawned") root.CFrame=transform root.AssemblyLinearVelocity,root.AssemblyAngularVelocity=Vector3.zero,Vector3.zero end local function clearMaterials() if api.PartAdded then api.PartAdded:Disconnect(); api.PartAdded = nil end for part, material in pairs(api.Materials) do pcall(function() part.Material = material end) end table.clear(api.Materials) api.Character = nil end local function setCharacter(character) if api.Character == character then return end clearMaterials() api.Character = character local function apply(part) if part:IsA("BasePart") and api.Materials[part] == nil then api.Materials[part] = part.Material part.Material = Enum.Material.ForceField end end api.PartAdded = character.DescendantAdded:Connect(apply) for _, part in ipairs(character:GetDescendants()) do apply(part) end end local hook = globals.CommandsInvisHook if type(hook) ~= "table" then hook = {}; globals.CommandsInvisHook = hook end hook.Controller = api if not hook.Installed then assert(type(hookmetamethod) == "function" and type(newcclosure) == "function" and type(checkcaller) == "function", "Position invisibility requires hookmetamethod/newcclosure/checkcaller") local original original = hookmetamethod(game, "__index", newcclosure(function(instance, key) local active = hook.Controller local saved = active and active.Active and active.Saved if saved and key == "CFrame" and instance == saved.Root and not checkcaller() then return saved.Client end return original(instance, key) end)) hook.Installed = true end api.Connections.Heartbeat = RunService.Heartbeat:Connect(function() if not api.Active then return end restorePosition() local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = humanoid and humanoid.RootPart if not root or humanoid.Health <= 0 then clearMaterials(); return end setCharacter(character) api.Saved = { Root = root, Character = character, Client = root.CFrame, Velocity = root.Velocity, RotationVelocity = root.RotVelocity } if api.DestroyHeight == nil then api.DestroyHeight = Workspace.FallenPartsDestroyHeight end Workspace.FallenPartsDestroyHeight = 0 / 0 api.WroteDestroyHeight = true root.CFrame = CFrame.new(math.random(-0x7FFFFFFF, 0x7FFFFFFF), math.random(-0x7FFFFFFF, 0x7FFFFFFF), math.random(-0x7FFFFFFF, 0x7FFFFFFF)) root.Velocity = root.Velocity + Vector3.new(0, -0.1, 0) end) if type(RunService.BindToRenderStep)=="function" then local binding="CommandsWebInvisRestore" RunService:BindToRenderStep(binding,Enum.RenderPriority.First.Value-1,restorePosition) api.Connections.Render={Connected=true,Disconnect=function(self) RunService:UnbindFromRenderStep(binding);self.Connected=false end} else api.Connections.Render=RunService.RenderStepped:Connect(restorePosition) end api.Connections.Respawn = player.CharacterRemoving:Connect(function() restorePosition(); clearMaterials() end) function api.Disconnect() if not api.Active then return end api.Active = false restorePosition() clearMaterials() for _, connection in pairs(api.Connections) do if connection.Connected then connection:Disconnect() end end if api.WroteDestroyHeight and Workspace.FallenPartsDestroyHeight ~= Workspace.FallenPartsDestroyHeight then Workspace.FallenPartsDestroyHeight = api.DestroyHeight end if hook.Controller == api then hook.Controller = nil end if globals.CommandsInvisibility == api then globals.CommandsInvisibility = nil end end globals.CommandsInvisibility = api return api end end factories[ [=[clickweapon.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Click a player to use owned Knife/Gun remotes. Backpack tools are supported. local options = ... local commandMode = type(options) == "table" and options.CommandMode == true local ignoreLineOfSight = commandMode and options.IgnoreLineOfSight == true local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local player = Players.LocalPlayer local mouse = player:GetMouse() local globals = type(getgenv) == "function" and getgenv() or _G if not commandMode and globals.ClickWeaponController then globals.ClickWeaponController.Disconnect() end local controller = { Active = true, Connections = {} } if not commandMode then globals.ClickWeaponController = controller end local Config = { RayCount = 32, Radius = 5, BasePrediction = 0.125, FallbackPrediction = 0.150, GroundProbeMargin = 0.5, ShotDelay = 2, } local rayOrder = {} local left, right = math.floor((Config.RayCount + 1) / 2), math.floor((Config.RayCount + 1) / 2) + 1 while left >= 1 or right <= Config.RayCount do if left >= 1 then table.insert(rayOrder, left); left = left - 1 end if right <= Config.RayCount then table.insert(rayOrder, right); right = right + 1 end end local function findTools(owner, name) local tools = {} for _, container in pairs({ owner.Character, owner:FindFirstChildOfClass("Backpack") }) do for _, item in ipairs(container:GetChildren()) do if item:IsA("Tool") and item.Name:lower() == name then table.insert(tools, item) end end end return tools end local function HasKnife(owner) return #findTools(owner, "knife") > 0 end local function remote(container, name) local event = container and container:FindFirstChild(name) return event and event:IsA("RemoteEvent") and event or nil end local gunShot = { nextShotAt = 0, nextCallAt = 0 } local gunFiredEvent local gunFiredConnection local function bindGunAcknowledgement() local services = ReplicatedStorage:FindFirstChild("ClientServices") local weaponService = services and services:FindFirstChild("WeaponService") local event = remote(weaponService, "GunFired") if event == gunFiredEvent then return end if gunFiredConnection then gunFiredConnection:Disconnect() gunFiredConnection = nil end gunFiredEvent = event if not event then return end gunFiredConnection = event.OnClientEvent:Connect(function(firedHandle) if typeof(firedHandle) ~= "Instance" or not firedHandle:IsA("BasePart") then return end local isLocalShot = firedHandle == gunShot.pendingHandle if not isLocalShot then for _, gun in ipairs(findTools(player, "gun")) do if gun:FindFirstChild("Handle", true) == firedHandle then isLocalShot = true break end end end if not isLocalShot then return end gunShot.pendingHandle = nil gunShot.nextShotAt = os.clock() + Config.ShotDelay end) end local function canSendGunShot() if not gunFiredEvent then return false end local now = os.clock() return now >= gunShot.nextShotAt and now >= gunShot.nextCallAt end local function predictionTime() local ok, ping = pcall(function() return player:GetNetworkPing() end) -- GetNetworkPing returns seconds; use the full value as requested. if ok and type(ping) == "number" and ping == ping and ping >= 0 and ping < math.huge then return Config.BasePrediction + ping end return Config.FallbackPrediction end local function predictRoot(root, humanoid, localCharacter, seconds) local current = root.Position local velocity = root.AssemblyLinearVelocity local gravity = math.max(workspace.Gravity, 0) local jumpSpeed = humanoid.JumpPower if not humanoid.UseJumpPower then jumpSpeed = math.sqrt(2 * gravity * math.max(humanoid.JumpHeight, 0)) end jumpSpeed = math.max(jumpSpeed, 0) local jumpPeakHeight = gravity > 0 and jumpSpeed * jumpSpeed / (2 * gravity) or 0 local state = humanoid:GetState() local airborne = humanoid.FloorMaterial == Enum.Material.Air or state == Enum.HumanoidStateType.Jumping or state == Enum.HumanoidStateType.Freefall local verticalSpeed = velocity.Y -- At the first jump frame, physics may not have applied the impulse yet. if state == Enum.HumanoidStateType.Jumping and math.abs(verticalSpeed) < 0.001 then verticalSpeed = jumpSpeed end local predictedY = current.Y local peakY = current.Y if airborne then predictedY = current.Y + verticalSpeed * seconds - 0.5 * gravity * seconds * seconds if gravity > 0 then peakY = current.Y + math.max(verticalSpeed, 0) ^ 2 / (2 * gravity) end end local predicted = Vector3.new( current.X + velocity.X * seconds, predictedY, current.Z + velocity.Z * seconds ) -- Ground checks exclude ONLY the local character. Noncollidable parts -- (including the prediction marker) are skipped via RespectCanCollide. local groundParams = RaycastParams.new() groundParams.FilterType = Enum.RaycastFilterType.Exclude groundParams.FilterDescendantsInstances = { localCharacter } groundParams.RespectCanCollide = true groundParams.IgnoreWater = true local clearance = humanoid.HipHeight + root.Size.Y / 2 if humanoid.RigType == Enum.HumanoidRigType.R6 then local leg = root.Parent:FindFirstChild("Left Leg") clearance = clearance + (leg and leg.Size.Y or 2) end local currentGround = workspace:Raycast(current, Vector3.new(0, -(clearance + Config.GroundProbeMargin), 0), groundParams) -- When grounded, measure actual root-to-floor clearance (including slopes). if currentGround and not airborne then clearance = math.max(root.Size.Y / 2, current.Y - currentGround.Position.Y) end clearance = math.max(clearance, root.Size.Y / 2) local depth = clearance + Config.GroundProbeMargin local ground = workspace:Raycast(predicted, Vector3.new(0, -depth, 0), groundParams) -- Sweep only the predicted vertical travel plus root clearance and margin. -- This still catches landings when the future root would be inside the floor. local probeY = math.max(current.Y, predicted.Y) local upperGround = workspace:Raycast(Vector3.new(predicted.X, probeY, predicted.Z), Vector3.new(0, -(depth + probeY - predicted.Y), 0), groundParams) if upperGround and (not ground or upperGround.Position.Y > ground.Position.Y) then ground = upperGround end if ground then predicted = Vector3.new(predicted.X, math.max(predicted.Y, ground.Position.Y + clearance), predicted.Z) end local info = { jumpPeakHeight = jumpPeakHeight, peakY = peakY, grounded = not airborne, jumping = state == Enum.HumanoidStateType.Jumping or (airborne and verticalSpeed > 0.01), falling = airborne and verticalSpeed < -0.01, } if info.falling and ground then local floorY = ground.Position.Y + clearance local distanceToLand = math.max(current.Y - floorY, 0) local landingTime = math.huge if gravity > 0 then landingTime = (verticalSpeed + math.sqrt(verticalSpeed * verticalSpeed + 2 * gravity * distanceToLand)) / gravity elseif verticalSpeed < 0 then landingTime = distanceToLand / -verticalSpeed end if landingTime <= seconds then local afterLanding = math.max(seconds - landingTime, 0) info.groundPosition = Vector3.new(predicted.X, floorY, predicted.Z) info.jumpPosition = Vector3.new(predicted.X, math.max(floorY, floorY + jumpSpeed * afterLanding - 0.5 * gravity * afterLanding * afterLanding), predicted.Z) end end return predicted, info end -- Each character keeps its own unresolved landing decision, even when the -- randomly selected gun target changes. State events capture quick land/jumps. local landingDecisions = setmetatable({}, { __mode = "k" }) local function resolvePrediction(root, humanoid, character, seconds) local decision = landingDecisions[root] if not decision then decision = {} landingDecisions[root] = decision local stateConnection = humanoid.StateChanged:Connect(function(_, state) if decision.pending then if state == Enum.HumanoidStateType.Jumping then decision.confirmed = "jump" elseif state == Enum.HumanoidStateType.Landed then decision.confirmed = "ground" end end end) decision.stateConnection = stateConnection decision.destroyConnection = root.Destroying:Once(function() stateConnection:Disconnect() landingDecisions[root] = nil end) end local position, info = predictRoot(root, humanoid, character, seconds) if decision.pending and (decision.confirmed or info.grounded or info.jumping) then -- Current physics now confirms one branch. Recompute from the observed -- root and velocity rather than retaining an old hypothetical position. decision.pending = false decision.confirmed = nil decision.jumpPosition = nil return position, nil end if info.jumpPosition then decision.pending = true decision.jumpPosition = info.jumpPosition return info.groundPosition, info.jumpPosition end if decision.pending then -- A missing ground probe does not count as confirmation of either branch. return position, decision.jumpPosition end return position, nil end local movementSlots = { idle = true, walk = true, run = true, jump = true, fall = true, climb = true, swim = true, swimidle = true, sit = true, } local descriptionAnimationFields = { "IdleAnimation", "WalkAnimation", "RunAnimation", "JumpAnimation", "FallAnimation", "ClimbAnimation", "SwimAnimation", } local animationFilter local function animationId(value) local id = tonumber(tostring(value):match("%d+")) return id and id > 0 and tostring(id) or nil end local function clearAnimationFilter() if animationFilter then for _, connection in ipairs(animationFilter.connections) do connection:Disconnect() end animationFilter = nil end end local function resetAnimations(character) local humanoid = character:FindFirstChildOfClass("Humanoid") local animator = humanoid and humanoid:FindFirstChildOfClass("Animator") if not animator then return end if animationFilter and animationFilter.animator == animator then animationFilter.expiresAt = os.clock() + Config.ShotDelay return end clearAnimationFilter() local filter = { animator = animator, connections = {}, descriptionIds = {}, expiresAt = os.clock() + Config.ShotDelay, } animationFilter = filter local function readDescription(description) filter.descriptionIds = {} for _, field in ipairs(descriptionAnimationFields) do local id = animationId(description[field]) if id then filter.descriptionIds[id] = true end end end local ok, description = pcall(function() return humanoid:GetAppliedDescription() end) if ok and description then readDescription(description) description:Destroy() end table.insert(filter.connections, humanoid.ApplyDescriptionFinished:Connect(readDescription)) local function stopNonMovement(track) if not controller.Active or player.Character ~= character or os.clock() > filter.expiresAt then return end local ids = {} for id in pairs(filter.descriptionIds) do ids[id] = true end -- Read live configuration so custom movement replacements are preserved. local animate = character:FindFirstChild("Animate") if animate then for _, slot in ipairs(animate:GetChildren()) do if movementSlots[slot.Name:lower()] then local animations = slot:GetDescendants() table.insert(animations, slot) for _, animation in ipairs(animations) do if animation:IsA("Animation") then local id = animationId(animation.AnimationId) if id then ids[id] = true end end end end end end local id = track.Animation and animationId(track.Animation.AnimationId) if id and ids[id] then return end -- Some custom rigs expose no movement IDs. Preserve locomotion priorities -- in that case rather than stopping all character movement animations. if next(ids) == nil and (track.Priority == Enum.AnimationPriority.Core or track.Priority == Enum.AnimationPriority.Idle or track.Priority == Enum.AnimationPriority.Movement) then return end track:Stop(0) end table.insert(filter.connections, animator.AnimationPlayed:Connect(stopNonMovement)) table.insert(filter.connections, character.Destroying:Once(function() if animationFilter == filter then clearAnimationFilter() end end)) -- Handle non-movement tracks that were already started by the shot input. for _, track in ipairs(animator:GetPlayingAnimationTracks()) do stopNonMovement(track) end end local hoverHighlight local function hoveredPlayer() local object = mouse.Target while object and object ~= workspace do if object:IsA("Model") then local owner = Players:GetPlayerFromCharacter(object) if owner then return owner ~= player and owner or nil end end object = object.Parent end end local function gunOrigin(gun, handle, character, targetRoot, center) if ignoreLineOfSight then local current = targetRoot.Position local direction = Vector3.new(center.X - current.X, 0, center.Z - current.Z) if direction.Magnitude < 0.001 then local look = targetRoot.CFrame.LookVector direction = Vector3.new(look.X, 0, look.Z) end if direction.Magnitude < 0.001 then direction = Vector3.new(0, 0, -1) end local offset = -direction.Unit * Config.Radius local origin = Vector3.new(center.X + offset.X, current.Y, center.Z + offset.Z) return CFrame.lookAt(origin, center) end local ignored = { character, targetRoot.Parent } for _, other in ipairs(Players:GetPlayers()) do if other.Character and HasKnife(other) then table.insert(ignored, other.Character) end end local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = ignored params.IgnoreWater = false if gun.Parent == character then if not workspace:Raycast(handle.Position, center - handle.Position, params) then return handle.CFrame end return end local current = targetRoot.Position local movement = Vector3.new(center.X - current.X, 0, center.Z - current.Z) if movement.Magnitude < 0.001 then local look = targetRoot.CFrame.LookVector movement = Vector3.new(look.X, 0, look.Z) end if movement.Magnitude < 0.001 then movement = Vector3.new(0, 0, -1) end local behind = -movement.Unit local side = Vector3.new(behind.Z, 0, -behind.X) local samples = {} for _, index in ipairs(rayOrder) do local angle = math.rad(-45 + 90 * (index - 1) / (Config.RayCount - 1)) local offset = (behind * math.cos(angle) + side * math.sin(angle)) * Config.Radius local origin = Vector3.new(center.X + offset.X, current.Y, center.Z + offset.Z) samples[index] = { origin = origin, visible = workspace:Raycast(origin, center - origin, params) == nil } end local bestStart, bestLength, runStart, runLength = nil, 0, 1, 0 for index, sample in ipairs(samples) do if sample.visible then if runLength == 0 then runStart = index end runLength = runLength + 1 if runLength > bestLength then bestStart, bestLength = runStart, runLength end else runLength = 0 end end if not bestStart then return end local index = bestStart + math.floor((bestLength - 1) / 2) return CFrame.lookAt(samples[index].origin, center) end local function stabClickedPlayer(knife, root, character) local events = knife:FindFirstChild("Events") local stabbed = remote(events, "KnifeStabbed") local touched = remote(events, "HandleTouched") if not stabbed or not touched then return false end resetAnimations(character) stabbed:FireServer() touched:FireServer(root) return true end local function shootClickedPlayer(gun, root, humanoid, character) bindGunAcknowledgement() if not canSendGunShot() then return false end local event = remote(gun, "Shoot") local handle = gun:FindFirstChild("Handle", true) if not event or not handle or not handle:IsA("BasePart") then return false end local center, jumpPosition = resolvePrediction(root, humanoid, character, predictionTime()) if jumpPosition then return false end local from = gunOrigin(gun, handle, character, root, center) if not from then return false end local inBackpack = gun.Parent ~= character local originalHandle = handle.CFrame if inBackpack or ignoreLineOfSight then handle.CFrame = from end resetAnimations(character) gunShot.pendingHandle = handle gunShot.nextCallAt = os.clock() + Config.ShotDelay event:FireServer(handle.CFrame, CFrame.new(center)) local events = gun:FindFirstChild("Events") local touched = remote(events, "HandleTouched") or remote(gun, "HandleTouched") or remote(events, "GunTouched") or remote(gun, "GunTouched") or remote(events, "Touched") or remote(gun, "Touched") if touched then touched:FireServer(root) end if inBackpack then handle.Position = Vector3.new(0xFFFFFF, 0xFFFFFF, 0xFFFFFF) elseif ignoreLineOfSight then handle.CFrame = originalHandle end return true end function controller.Disconnect() if not controller.Active then return end controller.Active = false for _, connection in pairs(controller.Connections) do connection:Disconnect() end if gunFiredConnection then gunFiredConnection:Disconnect() end clearAnimationFilter() if hoverHighlight then hoverHighlight:Destroy(); hoverHighlight = nil end for _, decision in pairs(landingDecisions) do if decision.stateConnection then decision.stateConnection:Disconnect() end if decision.destroyConnection then decision.destroyConnection:Disconnect() end end end -- Command mode reuses the same handlers without installing a mouse-click action -- or replacing a separately loaded clickweapon.lua controller. function controller.UseWeapon(kind, target) if not controller.Active then return false, "Weapon handler is stopped" end if not target or target == player or target.Parent ~= Players then return false, "Target is unavailable" end local character, targetCharacter = player.Character, target.Character local localHumanoid = character and character:FindFirstChildOfClass("Humanoid") local humanoid = targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid") local root = targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart") if not localHumanoid or localHumanoid.Health <= 0 or not humanoid or humanoid.Health <= 0 or not root or not root:IsA("BasePart") then return false, "Both characters must be spawned and alive" end local tools = findTools(player, kind) if #tools == 0 then return false, "You do not have a " .. kind .. " tool" end if kind == "gun" then bindGunAcknowledgement() if not gunFiredEvent then return false, "GunFired remote is unavailable" end if not canSendGunShot() then return false, "cooldown" end end for _, tool in ipairs(tools) do if kind == "knife" then if stabClickedPlayer(tool, root, character) then return true end elseif kind == "gun" then if shootClickedPlayer(tool, root, humanoid, character) then return true end else return false, "Unknown weapon type" end end return false, kind == "gun" and (ignoreLineOfSight and "Prediction is unresolved" or "Prediction is unresolved or not visible") or "Knife remotes are unavailable" end if not commandMode then controller.Connections.Click = UserInputService.InputBegan:Connect(function(input, processed) if not controller.Active or processed or input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end local target = hoveredPlayer() if not target or target:GetAttribute("Alive") == false then return end local character = player.Character local localHumanoid = character and character:FindFirstChildOfClass("Humanoid") local targetCharacter = target.Character local root = targetCharacter and targetCharacter:FindFirstChild("HumanoidRootPart") local humanoid = targetCharacter and targetCharacter:FindFirstChildOfClass("Humanoid") if not localHumanoid or localHumanoid.Health <= 0 or not root or not root:IsA("BasePart") or not humanoid or humanoid.Health <= 0 then return end -- Match weapon.lua's ordering if both weapons are owned. for _, knife in ipairs(findTools(player, "knife")) do if stabClickedPlayer(knife, root, character) then break end end for _, gun in ipairs(findTools(player, "gun")) do if shootClickedPlayer(gun, root, humanoid, character) then break end end end) end controller.Connections.Render = RunService.RenderStepped:Connect(function() if not controller.Active then return end bindGunAcknowledgement() local character = player.Character if animationFilter and (not character or os.clock() > animationFilter.expiresAt or not animationFilter.animator:IsDescendantOf(character)) then clearAnimationFilter() end if commandMode then return end local hasWeapon = #findTools(player, "knife") > 0 or #findTools(player, "gun") > 0 local target = hasWeapon and hoveredPlayer() or nil if not target or not target.Character then if hoverHighlight then hoverHighlight.Adornee = nil; hoverHighlight.Enabled = false end return end if not hoverHighlight then hoverHighlight = Instance.new("Highlight") hoverHighlight.Name = "ClickWeaponHover" hoverHighlight.FillTransparency = 1 hoverHighlight.OutlineColor = Color3.fromRGB(255, 255, 255) hoverHighlight.OutlineTransparency = 0 hoverHighlight.DepthMode = Enum.HighlightDepthMode.Occluded hoverHighlight.Parent = workspace end hoverHighlight.Adornee = target.Character hoverHighlight.Enabled = true end) return controller end end factories[ [=[roleview.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Role highlights and persistent name/health/distance tags. Red=Murderer, blue=Sheriff, gold=other gun holder. if not game:IsLoaded() then game.Loaded:Wait() end local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local espBounds=assert(loadfile("cmds_esp_bounds.lua"))() while not Players.LocalPlayer do Players:GetPropertyChangedSignal("LocalPlayer"):Wait() end local localPlayer = Players.LocalPlayer local globals = type(getgenv) == "function" and getgenv() or _G local previous = globals.RoleViewController if type(previous) == "table" and type(previous.Disconnect) == "function" then previous.Disconnect() end local api = { Active = true, Connections = {}, Players = {}, Data = {}, Drops = {}, Revision = 0 } globals.RoleViewController = api local colors = { Murderer = Color3.fromRGB(255, 0, 0), Sheriff = Color3.fromRGB(0, 0, 255), Gun = Color3.fromRGB(255, 215, 0), Other = Color3.fromRGB(0, 255, 0), Both = Color3.fromRGB(255, 255, 255), Drop = Color3.fromRGB(255, 105, 180), } local folder = Instance.new("Folder") folder.Name = "RoleViewHighlights" folder.Parent = workspace api.Folder = folder local function connect(signal, callback, bucket) local connection = signal:Connect(callback) api.Connections[connection] = true if bucket then bucket[connection] = true end return connection end local function disconnect(connection) if not connection then return end if connection.Connected then connection:Disconnect() end api.Connections[connection] = nil end local function clearConnections(bucket) for connection in pairs(bucket) do disconnect(connection) end table.clear(bucket) end local function removeHighlight(record) if record.Highlight then record.Highlight:Destroy(); record.Highlight = nil end end local function removeNameTag(record) if record.Tag then record.Tag:Destroy();record.Tag=nil end if record.BottomTag then record.BottomTag:Destroy();record.BottomTag=nil end record.Label,record.BottomLabel=nil,nil end local function removePlayerVisual(record) removeHighlight(record) removeNameTag(record) end local function createRoleTag(name,gui) local tag=Instance.new("BillboardGui") tag.Name=name tag.AlwaysOnTop=true tag.ResetOnSpawn=false tag.Size=UDim2.new(0,360,0,20) local label=Instance.new("TextLabel") label.Size=UDim2.new(1,0,1,0) label.BackgroundTransparency=1 label.TextStrokeColor3=Color3.new(0,0,0) label.TextStrokeTransparency=0 label.Font=Enum.Font.SourceSans label.TextSize=11 label.TextScaled=false label.Parent=tag tag.Parent=gui return tag,label end local function refreshNameTag(owner,record,color,roleName) local character=record.Character local bounds=espBounds(character) local playerGui=localPlayer:FindFirstChildOfClass("PlayerGui") if not bounds or not playerGui then removeNameTag(record);return end if not record.Tag or record.Tag.Parent~=playerGui or not record.Label or record.Label.Parent~=record.Tag or not record.BottomTag or record.BottomTag.Parent~=playerGui or not record.BottomLabel or record.BottomLabel.Parent~=record.BottomTag then removeNameTag(record) record.Tag,record.Label=createRoleTag("RoleViewNameTag",playerGui) record.BottomTag,record.BottomLabel=createRoleTag("RoleViewRoleDistanceTag",playerGui) end local root=localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart") local camera=workspace.CurrentCamera local origin=root and root.Position or camera and camera.CFrame.Position local distance=origin and (bounds.Center-origin).Magnitude or 0 local human=character:FindFirstChildOfClass("Humanoid") record.Tag.Adornee=bounds.Anchor record.Tag.StudsOffsetWorldSpace=bounds.Top record.BottomTag.Adornee=bounds.Anchor record.BottomTag.StudsOffsetWorldSpace=bounds.Bottom record.Label.TextColor3,record.BottomLabel.TextColor3=color,color record.Label.Text=api.ShowDisplay and owner.DisplayName or owner.Name record.BottomLabel.Text=string.format("%s || %.0fs",roleName,distance) end local function hasTool(owner, name) for _, container in pairs({ owner.Character, owner:FindFirstChildOfClass("Backpack") }) do for _, item in ipairs(container:GetChildren()) do if item:IsA("Tool") and item.Name:lower() == name then return true end end end return false end local function unknownRole(role) return role ~= "Murderer" and role ~= "Sheriff" and role ~= "Innocent" and role ~= "Hero" end local function localIsMurderer() local entry = api.Data[localPlayer.UserId] local role = entry and entry.Role return role == "Murderer" or (unknownRole(role) and hasTool(localPlayer, "knife") and not hasTool(localPlayer, "gun")) end local function isAlive(owner) local record = api.Players[owner] if record and (record.Died or not record.Character) then return false end local character = record and record.Character or owner.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.Health <= 0 then return false end local entry = api.Data[owner.UserId] if entry and type(entry.Dead) == "boolean" then return not entry.Dead end -- Unknown/missing player-data death state falls back to Alive; nil means dead. return owner:GetAttribute("Alive") == true end local function refresh(owner) if not api.Active then return end local record = api.Players[owner] if not record then return end local character = record.Character local entry = api.Data[owner.UserId] if owner == localPlayer or owner.UserId == localPlayer.UserId or not character or (api.Suppressed and api.Suppressed[owner]) or owner.Character ~= character or not isAlive(owner) then removePlayerVisual(record); return end local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.Health <= 0 then removePlayerVisual(record); return end local role = entry and entry.Role local gun, knife = hasTool(owner, "gun"), hasTool(owner, "knife") local color if role == "Murderer" then color = colors.Murderer elseif role == "Sheriff" then color = colors.Sheriff elseif unknownRole(role) and gun and knife then color = colors.Both elseif unknownRole(role) and knife then color = colors.Murderer elseif unknownRole(role) and gun then color = colors.Sheriff elseif gun then color = colors.Gun elseif localIsMurderer() and isAlive(localPlayer) then color = colors.Other end if not color then removePlayerVisual(record); return end if not record.Highlight or not record.Highlight.Parent then local highlight = Instance.new("Highlight") highlight.Name = "Role_" .. owner.UserId highlight.Adornee = character highlight.FillTransparency = 1 highlight.OutlineTransparency = 0 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = folder record.Highlight = highlight end record.Highlight.OutlineColor = color local roleName=role if unknownRole(roleName) then roleName=knife and "Murderer" or gun and "Sheriff" or "Innocent" elseif gun and roleName=="Innocent" then roleName="Hero" end refreshNameTag(owner,record,color,roleName) end local refreshDrops local function refreshAll() for owner in pairs(api.Players) do refresh(owner) end if refreshDrops then refreshDrops() end end api.Refresh = refreshAll local function refreshInventory(owner) if owner == localPlayer then refreshAll() else refresh(owner) end end local function restoreDropPart(part, original) original.Writing = true pcall(function() part.Transparency = original.Transparency part.LocalTransparencyModifier = original.LocalTransparencyModifier end) original.Writing = false end local function removeDropPart(record, part) local original = record.Parts[part] if not original then return end clearConnections(original.Connections) restoreDropPart(part, original) record.Parts[part] = nil end local function removeDrop(drop) local record = api.Drops[drop] if not record then return end api.Drops[drop] = nil clearConnections(record.Connections) removeHighlight(record) removeNameTag(record) for part in pairs(record.Parts) do removeDropPart(record, part) end end local function makeDropPartVisible(part, original) original.Writing = true if part.Transparency ~= 0 then part.Transparency = 0 end if part.LocalTransparencyModifier ~= 0 then part.LocalTransparencyModifier = 0 end original.Writing = false end local function watchDropPart(record, part) if not part:IsA("BasePart") or record.Parts[part] then return end local original = { Transparency = part.Transparency, LocalTransparencyModifier = part.LocalTransparencyModifier, Connections = {} } record.Parts[part] = original for _, property in ipairs({ "Transparency", "LocalTransparencyModifier" }) do connect(part:GetPropertyChangedSignal(property), function() if not api.Active or original.Writing then return end original[property] = part[property] if record.Highlight then makeDropPartVisible(part, original) end end, original.Connections) end if record.Highlight then makeDropPartVisible(part, original) end end local function refreshDropTag(drop,record) local bounds if drop:IsA("BasePart") then local frame,size=drop.CFrame,drop.Size local height=(math.abs(frame.RightVector.Y)*size.X+math.abs(frame.UpVector.Y)*size.Y +math.abs(frame.LookVector.Y)*size.Z)/2 local gap=math.max(0.35,height*0.1) bounds={Anchor=drop,Top=Vector3.new(0,height+gap,0),Bottom=Vector3.new(0,-height-gap,0)} else bounds=espBounds(drop) end local gui=localPlayer:FindFirstChildOfClass("PlayerGui") if not bounds or not gui then removeNameTag(record);return end if not record.Tag or record.Tag.Parent~=gui or not record.Label or record.Label.Parent~=record.Tag or not record.BottomTag or record.BottomTag.Parent~=gui or not record.BottomLabel or record.BottomLabel.Parent~=record.BottomTag then removeNameTag(record) record.Tag,record.Label=createRoleTag("GunDropNameTag",gui) record.BottomTag,record.BottomLabel=createRoleTag("GunDropDistanceTag",gui) end local root=localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart") local camera=workspace.CurrentCamera local origin=root and root.Position or camera and camera.CFrame.Position local distance=origin and (bounds.Anchor.Position-origin).Magnitude or 0 record.Tag.Adornee,record.BottomTag.Adornee=bounds.Anchor,bounds.Anchor record.Tag.StudsOffsetWorldSpace,record.BottomTag.StudsOffsetWorldSpace=bounds.Top,bounds.Bottom record.Label.TextColor3,record.BottomLabel.TextColor3=colors.Drop,colors.Drop record.Label.Text="Dropped Gun" record.BottomLabel.Text=string.format("%.0fs",distance) end local function refreshDrop(drop, record) if not drop:IsDescendantOf(workspace) then removeDrop(drop); return end if not isAlive(localPlayer) then removeNameTag(record) removeHighlight(record) for part, original in pairs(record.Parts) do restoreDropPart(part, original) end return end if not record.Highlight or not record.Highlight.Parent then local highlight = Instance.new("Highlight") highlight.Name = "GunDropHighlight" highlight.Adornee = drop highlight.FillColor, highlight.OutlineColor = colors.Drop, colors.Drop highlight.FillTransparency, highlight.OutlineTransparency = 0, 0 highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = folder record.Highlight = highlight end refreshDropTag(drop,record) for part, original in pairs(record.Parts) do makeDropPartVisible(part, original) end end refreshDrops = function() if not api.Active then return end for drop, record in pairs(api.Drops) do refreshDrop(drop, record) end end local function watchDrop(drop) if not api.Active or drop.Name ~= "GunDrop" or api.Drops[drop] or not (drop:IsA("BasePart") or drop:IsA("Model")) then return end local record = { Connections = {}, Parts = {} } api.Drops[drop] = record connect(drop.DescendantAdded, function(part) watchDropPart(record, part) refreshDrop(drop, record) end, record.Connections) connect(drop.DescendantRemoving, function(part) removeDropPart(record, part) end, record.Connections) connect(drop.Destroying, function() removeDrop(drop) end, record.Connections) connect(drop.AncestryChanged, function() refreshDrop(drop, record) end, record.Connections) watchDropPart(record, drop) for _, part in ipairs(drop:GetDescendants()) do watchDropPart(record, part) end refreshDrop(drop, record) end local function watchHumanoid(owner, record) disconnect(record.DeathConnection) record.DeathConnection = nil local humanoid = record.Character and record.Character:FindFirstChildOfClass("Humanoid") if humanoid then record.DeathConnection = connect(humanoid.Died, function() record.Died = true removePlayerVisual(record) if owner == localPlayer then refreshAll() end end, record.CharacterConnections) end end local function watchCharacter(owner, record, character) clearConnections(record.CharacterConnections) removePlayerVisual(record) record.Character, record.Died = character, false if character then connect(character.ChildAdded, function(child) if child:IsA("Humanoid") then watchHumanoid(owner, record) end refreshInventory(owner) end, record.CharacterConnections) connect(character.ChildRemoved, function(child) if child:IsA("Humanoid") then watchHumanoid(owner, record) end refreshInventory(owner) end, record.CharacterConnections) watchHumanoid(owner, record) end if owner == localPlayer then refreshAll() else refresh(owner) end end local function watchBackpack(owner, record) clearConnections(record.BackpackConnections) local backpack = owner:FindFirstChildOfClass("Backpack") if backpack then connect(backpack.ChildAdded, function() refreshInventory(owner) end, record.BackpackConnections) connect(backpack.ChildRemoved, function() refreshInventory(owner) end, record.BackpackConnections) end refreshInventory(owner) end local function removePlayer(owner) local record = api.Players[owner] if not record then return end clearConnections(record.Connections) clearConnections(record.CharacterConnections) clearConnections(record.BackpackConnections) removePlayerVisual(record) api.Players[owner] = nil end local function watchPlayer(owner) if not api.Active or api.Players[owner] then return end local record = { Connections = {}, CharacterConnections = {}, BackpackConnections = {} } api.Players[owner] = record connect(owner.CharacterAdded, function(character) watchCharacter(owner, record, character) end, record.Connections) connect(owner.CharacterRemoving, function(character) if record.Character == character then watchCharacter(owner, record, nil) end end, record.Connections) connect(owner.ChildAdded, function(child) if child:IsA("Backpack") then watchBackpack(owner, record) end end, record.Connections) connect(owner.ChildRemoved, function(child) if child:IsA("Backpack") then watchBackpack(owner, record) end end, record.Connections) connect(owner:GetAttributeChangedSignal("Alive"), function() if owner == localPlayer then refreshAll() else refresh(owner) end end, record.Connections) watchCharacter(owner, record, owner.Character) watchBackpack(owner, record) end local function acceptData(data) if not api.Active or type(data) ~= "table" then return end local parsed, count = {}, 0 for name, entry in pairs(data) do if type(entry) == "table" then local id = tonumber(entry.UserId) if not id and type(name) == "string" then local owner = Players:FindFirstChild(name) id = owner and owner.UserId end if id and id > 0 and id < math.huge and id % 1 == 0 then local dead if type(entry.Dead) == "boolean" then dead = entry.Dead end parsed[id] = { Role = type(entry.Role) == "string" and entry.Role or nil, Dead = dead } count = count + 1 end end end if next(data) ~= nil and count == 0 then return end api.Data, api.Revision = parsed, api.Revision + 1 refreshAll() end local function bindData() if not api.Active then return end local remotes = ReplicatedStorage:FindFirstChild("Remotes") local gameplay = remotes and remotes:FindFirstChild("Gameplay") local event = gameplay and gameplay:FindFirstChild("PlayerDataChanged") if event and event:IsA("RemoteEvent") and (event ~= api.Event or not api.EventConnection or not api.EventConnection.Connected) then disconnect(api.EventConnection) api.Event = event api.EventConnection = connect(event.OnClientEvent, acceptData) end local snapshot = gameplay and gameplay:FindFirstChild("GetCurrentPlayerData") if snapshot and snapshot:IsA("RemoteFunction") and snapshot ~= api.Snapshot then api.Snapshot = snapshot local revision = api.Revision task.spawn(function() local ok, data = pcall(function() return snapshot:InvokeServer() end) if api.Active and ok and revision == api.Revision then acceptData(data) end end) end end function api.Disconnect() if not api.Active then return end api.Active = false for drop in pairs(api.Drops) do removeDrop(drop) end for connection in pairs(api.Connections) do disconnect(connection) end for _, record in pairs(api.Players) do removePlayerVisual(record) end table.clear(api.Players) folder:Destroy() if globals.RoleViewController == api then globals.RoleViewController = nil end end -- Keep distances/health current and repair tags removed by a GUI reset. -- Remote-player tags do not depend on the local player's life state. local elapsed=0 connect(RunService.Heartbeat,function(delta) elapsed=elapsed+delta if elapsed<0.1 then return end elapsed=0 refreshAll() end) connect(Players.PlayerAdded, watchPlayer) connect(Players.PlayerRemoving, removePlayer) connect(ReplicatedStorage.DescendantAdded, function(instance) if instance.Name == "PlayerDataChanged" or instance.Name == "GetCurrentPlayerData" or instance.Name == "Gameplay" then bindData() end end) for _, owner in ipairs(Players:GetPlayers()) do watchPlayer(owner) end connect(workspace.DescendantAdded, watchDrop) for _, descendant in ipairs(workspace:GetDescendants()) do watchDrop(descendant) end bindData() return api end end factories[ [=[cmds_esp_bounds.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Label anchors at the world's top/bottom of the character's complete box. return function(character) if not character then return nil end local anchor=character:FindFirstChild("HumanoidRootPart") or character.PrimaryPart or character:FindFirstChildWhichIsA("BasePart",true) if not anchor or not anchor:IsA("BasePart") then return nil end local ok,frame,size=pcall(function() return character:GetBoundingBox() end) if not ok then return nil end -- GetBoundingBox can rotate with the model. Project its three half-axes -- onto world Y, keeping labels outside the box even when the rig tilts. local halfHeight=(math.abs(frame.RightVector.Y)*size.X +math.abs(frame.UpVector.Y)*size.Y+math.abs(frame.LookVector.Y)*size.Z)/2 local padding=math.max(0.35,halfHeight*0.1) local center=Vector3.new(anchor.Position.X,frame.Position.Y,anchor.Position.Z) local offset=center-anchor.Position return {Anchor=anchor,Center=center, Top=offset+Vector3.new(0,halfHeight+padding,0), Bottom=offset-Vector3.new(0,halfHeight+padding,0)} end end end factories[ [=[cmds_network.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Commands use the existing local coordinator; no chat messages are broadcast. local options=... local controller=options.Controller local report=options.Report or warn local Common=assert(loadfile("coordination.lua"))() local Players=game:GetService("Players") local HttpService=game:GetService("HttpService") local player=Players.LocalPlayer local globals=Common.Globals local api={Active=true} local seen=globals.CommandsRemoteSeen if type(seen)~="table" then seen={};Common.SetGlobal("CommandsRemoteSeen",seen) end local function clock() local ok,value=pcall(function() return workspace:GetServerTimeNow() end) return ok and value or os.time() end local function sameServer(host) return type(host)=="table" and host.HostPlaceID==game.PlaceId and host.HostJobID==game.JobId end local function ownsHost() local host=globals.HostController return host and host.Active and globals.HostIsRegistered==true and globals.HostUserID==player.UserId and globals.HostPlaceID==game.PlaceId and globals.HostJobID==game.JobId end function api.ReceiveHost(host,clientUserIDs) if not api.Active or not controller.Active or not sameServer(host) or host.HostUserID==player.UserId or not Players:GetPlayerByUserId(host.HostUserID) or type(host.HostData)~="table" then return end api.Host=host if type(clientUserIDs)=="table" then api.ClientUserIDs={} for _, id in pairs(clientUserIDs) do if type(id)=="number" then api.ClientUserIDs[id]=true end end api.RosterAt=clock() end local requests=host.HostData.CommandRequests if type(requests)~="table" then return end local now=clock() for key,at in pairs(seen) do if now-at>120 then seen[key]=nil end end for _, request in ipairs(requests) do if type(request)=="table" and type(request.ID)=="string" and type(request.Command)=="string" and type(request.At)=="number" and request.At<=now+2 and now-request.At<=15 and type(request.Targets)=="table" then local selected=false for _, id in ipairs(request.Targets) do if id==player.UserId then selected=true;break end end local key=tostring(host.HostUserID)..":"..request.ID if selected and not seen[key] then seen[key]=now if controller.HasCommand(request.Command) then controller.HandleChat(request.Command) else report("Host sent an unavailable command: "..request.Command) end end end end end api.Network=Common.Start({ Name="Command coordination", Hello=function() return {type="client_hello",UserID=player.UserId} end, Pulse=function() return {type="client_poll",UserID=player.UserId} end, OnDisconnect=function() api.Discovered=false;api.Host=nil;api.ClientUserIDs=nil end, OnMessage=function(packet) if not api.Active or packet.type~="host_state" then return end api.Discovered=true api.RosterAt=clock() if type(packet.ClientUserIDs)=="table" then api.ClientUserIDs={} for _, id in pairs(packet.ClientUserIDs) do if type(id)=="number" then api.ClientUserIDs[id]=true end end end api.Host=type(packet.host)=="table" and packet.host or nil api.ReceiveHost(api.Host) end, }) local function claimHost() if ownsHost() then return true,"You are already the host" end local deadline=os.clock()+5 while api.Active and (not api.Discovered or not api.Network.Socket) and os.clock()10 then return error("The active-client roster is unavailable") end end assert(roster,err or "The active-client roster is unavailable") local result={} for _, owner in ipairs(Players:GetPlayers()) do if owner.UserId~=hostID and ((selector=="@clients" and roster[owner.UserId]) or (selector=="@nonclients" and not roster[owner.UserId])) then result[#result+1]=owner end end return result end function api.ReleaseHost() if not ownsHost() then return false,"You are not the registered host" end local targeting=controller.ExtraCommands and controller.ExtraCommands.Targeting if targeting then targeting.Cancel() end local data=globals.HostData if type(data)=="table" then data.CommandRequests=nil end globals.HostController.Disconnect() api.Host=nil return true,"Host released" end -- Replace only complete selector arguments, preserving other quoting/spacing. -- All @c arguments in one broadcast use the same player selected by the host. local function resolveHostClick(raw) local spans={} local position=1 while position<=#raw do local first,last=raw:find("^%s+",position) if first then position=last+1 end if position>#raw then break end local symbol=raw:sub(position,position) if symbol=='&' or symbol=='|' or symbol=='(' or symbol==')' then position+=1;continue end local start=position local negative=false while raw:sub(position,position)=='!' do negative=not negative;position+=1 end local quote=raw:sub(position,position) local value if quote=='"' or quote=="'" then local close=raw:find(quote,position+1,true) if not close then return nil,"Unclosed quoted argument" end value=raw:sub(position+1,close-1) position=close+1 else local atomStart=position position=raw:find("[%s&|()!]",position) or #raw+1 value=raw:sub(atomStart,position-1) end local selectors=controller.ExtraCommands and controller.ExtraCommands.Selectors local key=selectors and selectors.Canonical(value) or value:lower() if key=="@c" then spans[#spans+1]={start,position-1,Negative=negative} end end if #spans==0 then return raw end local extra=controller.ExtraCommands if not extra then return nil,"Host click targeting is unavailable" end local ok,target=pcall(extra.SelectPlayer,"@c") if not ok then return nil,tostring(target) end if not target or target.Parent~=Players then return nil,"The selected player has left the server" end for index=#spans,1,-1 do local span=spans[index] raw=raw:sub(1,span[1]-1)..(span.Negative and "!" or "")..tostring(target.UserId)..raw:sub(span[2]+1) end return raw,nil,target end function api.SendCommand(raw) if not api.Active or not ownsHost() then return false,"Only the registered host can use /client; use /host first" end raw=tostring(raw or ""):match("^%s*(.-)%s*$") if raw=="" or #raw>1024 then return false,"Use /client (up to 1024 characters)" end if raw:sub(1,1)==";" then raw="/"..raw:sub(2) elseif raw:sub(1,1)~="/" then raw="/"..raw end if not controller.HasCommand(raw) then return false,"Unknown client command: "..raw end local resolved,resolveError,picked=resolveHostClick(raw) if not resolved then return false,resolveError end raw=resolved if not api.Active or not ownsHost() then return false,"Host ownership changed before the command could be sent" end local host=globals.HostController local roster,err=host.GetClients() if not roster then return false,err end if not ownsHost() then return false,"Host ownership changed before the command could be sent" end if picked and picked.Parent~=Players then return false,"The selected player has left the server" end local targets={} for id,active in pairs(roster) do if active and id~=player.UserId and Players:GetPlayerByUserId(id) then targets[#targets+1]=id end end if #targets==0 then return false,"There are no active clients in this server" end table.sort(targets) local now=clock() local data=type(globals.HostData)=="table" and globals.HostData or {} local previous=data.CommandRequests local queue={} for _, request in ipairs(type(previous)=="table" and previous or {}) do if type(request)=="table" and type(request.At)=="number" and now-request.At<=15 then queue[#queue+1]=request end end while #queue>=16 do table.remove(queue,1) end queue[#queue+1]={ID=HttpService:GenerateGUID(false),At=now,Command=raw,Targets=targets} data.CommandRequests=queue Common.SetGlobal("HostData",data) if not host.Publish() then data.CommandRequests=previous;return false,"The local relay is unavailable" end return true,"Sent "..raw.." to "..#targets.." active client(s)" end function api.Disconnect() if not api.Active then return end api.Active=false if api.Network then api.Network.Disconnect() end end return api end end factories[ [=[cmds_targeting.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Interactive player targeting; only the requesting command waits for a click. local options=... local Players=game:GetService("Players") local RunService=game:GetService("RunService") local UserInputService=game:GetService("UserInputService") local GuiService=game:GetService("GuiService") local player=Players.LocalPlayer local api={Active=true} local function restoreBorrowedHighlight(request) if request.Borrowed then pcall(function() request.Borrowed.FillColor=request.OriginalFillColor request.Borrowed.FillTransparency=request.OriginalFillTransparency end) end request.Borrowed=nil end local function cleanup(request) restoreBorrowedHighlight(request) for _, connection in ipairs(request.Connections) do connection:Disconnect() end if request.Highlight then request.Highlight:Destroy() end if request.Tag then request.Tag:Destroy() end end local function finish(request,owner,reason) if request.Done then return end request.Done=true if api.Pending==request then api.Pending=nil end cleanup(request) request.Event:Fire(owner,reason) end function api.Cancel() if not api.Pending then return false end finish(api.Pending,nil,"Target selection cancelled") return true end local function hoveredPlayer() local camera=workspace.CurrentCamera if not camera then return end local mouse=UserInputService:GetMouseLocation() local inset=GuiService:GetGuiInset() local ray=camera:ScreenPointToRay(mouse.X-inset.X,mouse.Y-inset.Y) local throughWalls=options.IsESPEnabled()==true local params=RaycastParams.new() params.IgnoreWater=true if throughWalls then local characters={} for _, owner in ipairs(Players:GetPlayers()) do if owner~=player and owner.Character then characters[#characters+1]=owner.Character end end params.FilterType=Enum.RaycastFilterType.Include params.FilterDescendantsInstances=characters else params.FilterType=Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances=player.Character and {player.Character} or {} end local hit=workspace:Raycast(ray.Origin,ray.Direction*15000,params) if not hit then return end for _, owner in ipairs(Players:GetPlayers()) do if owner~=player and owner.Character and hit.Instance:IsDescendantOf(owner.Character) then return owner end end end local function renderHover(request) local owner=hoveredPlayer() request.Hovered=owner local character=owner and owner.Character local root=character and (character:FindFirstChild("HumanoidRootPart") or character:FindFirstChild("Torso")) if not request.Highlight then local highlight=Instance.new("Highlight") highlight.Name="CommandsHoveredTarget" highlight.FillColor=Color3.new(1,1,1) highlight.FillTransparency=0.5 highlight.OutlineTransparency=1 highlight.Parent=workspace request.Highlight=highlight end local borrowed=owner and options.GetHighlight and options.GetHighlight(owner) or nil if request.Borrowed~=borrowed then restoreBorrowedHighlight(request) if borrowed then request.Borrowed=borrowed request.OriginalFillColor,request.OriginalFillTransparency=borrowed.FillColor,borrowed.FillTransparency end end if borrowed then borrowed.FillColor=Color3.new(1,1,1);borrowed.FillTransparency=0.5 end request.Highlight.Adornee=character request.Highlight.Enabled=character~=nil and borrowed==nil request.Highlight.DepthMode=options.IsESPEnabled() and Enum.HighlightDepthMode.AlwaysOnTop or Enum.HighlightDepthMode.Occluded local gui=player:FindFirstChildOfClass("PlayerGui") if gui and (not request.Tag or request.Tag.Parent~=gui) then if request.Tag then request.Tag:Destroy() end local tag=Instance.new("BillboardGui") tag.Name="CommandsHoveredTargetName" tag.Size=UDim2.new(0,360,0,30) tag.StudsOffsetWorldSpace=Vector3.zero tag.AlwaysOnTop=true tag.ResetOnSpawn=false local label=Instance.new("TextLabel") label.BackgroundTransparency=1 label.Size=UDim2.new(1,0,1,0) label.TextColor3=Color3.new(1,1,1) label.TextStrokeColor3=Color3.new(0,0,0) label.TextStrokeTransparency=0 label.TextSize=14 label.TextScaled=false label.Font=Enum.Font.SourceSans label.Parent=tag tag.Parent=gui request.Tag,request.Label=tag,label end if request.Tag then request.Tag.Adornee=root request.Tag.Enabled=root~=nil and gui~=nil request.Label.Text=owner and (owner.DisplayName.." (@"..owner.Name..")") or "" end end function api.Pick() assert(api.Active,"Target selection is stopped") api.Cancel() local request={Connections={},Event=Instance.new("BindableEvent")} api.Pending=request local function update() local ok,err=pcall(renderHover,request) if not ok then finish(request,nil,tostring(err)) end end request.Connections[#request.Connections+1]=RunService.RenderStepped:Connect(update) request.Connections[#request.Connections+1]=UserInputService.InputBegan:Connect(function(input,processed) if processed or input.UserInputType~=Enum.UserInputType.MouseButton1 then return end local ok,owner=pcall(hoveredPlayer) if not ok then finish(request,nil,tostring(owner)) elseif owner and owner.Parent==Players then finish(request,owner) end end) options.Notify("Click a target player, or use /cancel to stop") local owner,reason=request.Event.Event:Wait() request.Event:Destroy() assert(owner,reason or "Target selection cancelled") return owner end function api.Disconnect() if not api.Active then return end api.Active=false api.Cancel() end return api end end factories[ [=[cmds_selectors.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Player-set expressions. Precedence: parentheses, !, &, ||. local options=... local api={} local aliases={['@all']='@a',['@self']='@s',['@others']='@o',['@random']='@r', ['@n']='@p',['@nearest']='@p',['@farthest']='@f',['@click']='@c',['@last']='@l', ['@client']='@clients',['@nonclient']='@nonclients',['@enemy']='@e',['@enemies']='@e', ['@team']='@t',['@teammate']='@t',['@teammates']='@t'} local reducers={['@r']=true,['@p']=true,['@f']=true} local function fail(message) error('Could not filter for targets: '..message,0) end local function trim(text) return text:match('^%s*(.-)%s*$') end function api.Canonical(value) local key=trim(value):lower() return aliases[key] or key end local function lex(text) local tokens,position={},1 while position<=#text do local ch=text:sub(position,position) if ch:match('%s') then position+=1 elseif ch=='&' or ch=='!' or ch=='(' or ch==')' then tokens[#tokens+1]={Kind=ch};position+=1 elseif ch=='|' then if text:sub(position,position+1)~='||' then fail('use || for OR') end tokens[#tokens+1]={Kind='||'};position+=2 elseif ch=='"' or ch=="'" then local start,quote=position,ch position+=1 local close=text:find(quote,position,true) if not close then fail('unclosed quoted player name') end tokens[#tokens+1]={Kind='atom',Value=text:sub(position,close-1),Raw=text:sub(start,close)} position=close+1 else local start=position position=text:find('[&!()|]',position) or #text+1 local value=trim(text:sub(start,position-1)) if value=='' then fail('missing selector or player') end tokens[#tokens+1]={Kind='atom',Value=value,Raw=value} end end return tokens end function api.IsQuery(text) text=tostring(text or '') local ok,tokens=pcall(lex,text) if not ok then return text:find('[&!()|]')~=nil end if #tokens~=1 or tokens[1].Kind~='atom' then return #tokens>0 end return options.IsSelector(api.Canonical(tokens[1].Value)) end function api.IsExpression(text) local tokens=lex(tostring(text or '')) return #tokens>1 or (#tokens==1 and tokens[1].Kind~='atom') end function api.Compile(text) local tokens=lex(tostring(text or '')) local position=1 local parseOr,parseAnd,parseUnary parseUnary=function() local token=tokens[position] if not token then fail('missing selector or player') end if token.Kind=='!' then position+=1 local child=parseUnary() return {Kind='not',Child=child,Ranking=child.Ranking} elseif token.Kind=='(' then position+=1 local child=parseOr() if not tokens[position] or tokens[position].Kind~=')' then fail('missing closing parenthesis') end position+=1 -- A parenthesized group is evaluated as its own player set before -- outside operations, including any random/nearest selection inside. return {Kind='group',Child=child,Ranking=false} elseif token.Kind=='atom' then position+=1 local key=api.Canonical(token.Value) return {Kind='atom',Key=key,Raw=token.Raw,Selector=options.IsSelector(key),Ranking=reducers[key]==true} end fail('unexpected '..token.Kind) end parseAnd=function() local node=parseUnary() while tokens[position] and tokens[position].Kind=='&' do position+=1 local right=parseUnary() node={Kind='and',Left=node,Right=right,Ranking=node.Ranking or right.Ranking} end return node end parseOr=function() local node=parseAnd() while tokens[position] and tokens[position].Kind=='||' do position+=1 local right=parseAnd() node={Kind='or',Left=node,Right=right,Ranking=node.Ranking or right.Ranking} end return node end local node=parseOr() if tokens[position] then fail('unexpected '..tokens[position].Kind) end return node end -- Read a target expression as one argument, leaving later command parameters -- (speed, distance, etc.) in their original positions. function api.Arguments(text,allTargets) local tokens,position={},1 while position<=#text do local ch=text:sub(position,position) if ch:match('%s') then position+=1 elseif ch=='&' or ch=='!' or ch=='(' or ch==')' then tokens[#tokens+1]={Kind=ch,First=position,Last=position,Value=ch};position+=1 elseif ch=='|' then if text:sub(position,position+1)~='||' then fail('use || for OR') end tokens[#tokens+1]={Kind='||',First=position,Last=position+1,Value='||'};position+=2 elseif ch=='"' or ch=="'" then local close=text:find(ch,position+1,true) if not close then fail('unclosed quoted argument') end tokens[#tokens+1]={Kind='atom',First=position,Last=close,Value=text:sub(position+1,close-1),Quoted=true} position=close+1 else local finish=text:find('[%s&!()|]',position) or #text+1 tokens[#tokens+1]={Kind='atom',First=position,Last=finish-1,Value=text:sub(position,finish-1)} position=finish end end local index=1 local readOr,readAnd,readUnary readUnary=function() local token=tokens[index] if not token then fail('missing target after operator') end if token.Kind=='!' then index+=1;readUnary() elseif token.Kind=='(' then index+=1;readOr() if not tokens[index] or tokens[index].Kind~=')' then fail('missing closing parenthesis') end index+=1 elseif token.Kind=='atom' then index+=1 else fail('unexpected '..token.Kind) end end readAnd=function() readUnary() while tokens[index] and tokens[index].Kind=='&' do index+=1;readUnary() end end readOr=function() readAnd() while tokens[index] and tokens[index].Kind=='||' do index+=1;readAnd() end end local args={} while index<=#tokens do local first=index if #args>0 and not allTargets then for tail=index,#tokens do if tokens[tail].Kind~='atom' then fail('unexpected operator in a command parameter') end args[#args+1]=tokens[tail].Value end break end readOr() local last=index-1 if first==last and tokens[first].Quoted and not tokens[first].Value:find('[&!()|]') then args[#args+1]=tokens[first].Value else args[#args+1]=text:sub(tokens[first].First,tokens[last].Last) end end return args end -- A continuous command treats click/last targets as supplied player names, -- not as another request for input every time its filters are refreshed. function api.FreezeInteractive(plan,context) local resolved={} local function freeze(node) if node.Kind=='atom' and (node.Key=='@c' or node.Key=='@l') then local matches=resolved[node.Key] if not matches then local ok,value=pcall(options.Atomic,node.Key,context) if not ok then fail(tostring(value)) end matches=value;resolved[node.Key]=matches end if #matches~=1 then fail('interactive selector needs one player') end node.Key=tostring(matches[1].UserId) node.Raw=node.Key node.Selector=false node.Ranking=false elseif node.Left then freeze(node.Left);freeze(node.Right) elseif node.Child then freeze(node.Child) end end freeze(plan) return plan end local function intersection(a,b) local result={} for owner in pairs(a) do if b[owner] then result[owner]=true end end return result end function api.Resolve(query,allowEmpty,context) local plan=type(query)=='table' and query or api.Compile(query) local roster=options.Players() local universe={} for _, owner in ipairs(roster) do universe[owner]=true end local atomCache,rankingCache,groupCache={},{},{} local namedCache={} local function namedMatches(node) local cached=namedCache[node.Raw] if cached then return cached end local matches,reason if options.LookupPlayer then local ok,owner=pcall(options.LookupPlayer,node.Raw) if not ok then fail(tostring(owner)) end matches=owner and {owner} or {} else local ok,value=pcall(options.Atomic,node.Raw,context) if ok then matches=value else matches={};reason=tostring(value) end end local live={} for _, owner in ipairs(matches) do if universe[owner] then live[#live+1]=owner end end cached={Matches=live,Reason=reason} namedCache[node.Raw]=cached return cached end local function pruneMissingExclusions(node,insideExclusion) if node.Kind=='not' then local child=pruneMissingExclusions(node.Child,true) if not child then return nil end return {Kind='not',Child=child,Ranking=child.Ranking} elseif node.Kind=='group' then local child=pruneMissingExclusions(node.Child,insideExclusion) return child and {Kind='group',Child=child,Ranking=false} or nil elseif node.Left then local left,right=pruneMissingExclusions(node.Left,insideExclusion),pruneMissingExclusions(node.Right,insideExclusion) if not left then return right end if not right then return left end return {Kind=node.Kind,Left=left,Right=right,Ranking=left.Ranking or right.Ranking} elseif insideExclusion and node.Kind=='atom' and not node.Selector and #namedMatches(node).Matches==0 then return nil end return node end -- Remove an absent exclusion as a term, rather than turning it into ALL; -- this also keeps OR expressions from unexpectedly selecting everyone. -- Work on a copy so continuous policies can restore a rejoining exclusion. plan=pruneMissingExclusions(plan) if not plan then if #roster==0 and not allowEmpty then fail('no matching players') end return table.clone(roster) end local evaluate local function rank(key,domain) local candidates,ids={},{} for _, owner in ipairs(roster) do if domain[owner] and owner~=options.LocalPlayer then candidates[#candidates+1]=owner;ids[#ids+1]=tostring(owner.UserId) end end table.sort(ids) local signature=key..':'..table.concat(ids,',') if rankingCache[signature] then return rankingCache[signature] end local selected if #candidates>0 then if key=='@r' then selected=candidates[math.random(1,#candidates)] else local distance=key=='@f' and -math.huge or math.huge for _, owner in ipairs(candidates) do local measured=options.Distance(owner) if measured and ((key=='@f' and measured>distance) or (key~='@f' and measured]+>' or '%[[^%]]+%]') do local body=raw:sub(2,-2) local lower=body:lower() local target=lower:match('^user') or lower:match('^player') or lower:match('^target') or lower:match('^more user') local label,default=body:match('^(.-):(.*)$') label=label or body if not default and field=='Optional' then for _, name in ipairs(command.Names) do if (name=='e' or name=='emote') and lower=='speed' then default='1' end if (name=='id' or name=='copyid' or name=='userid') and lower=='user' then default='@s' end end end local spec={Raw=raw,Body=body,Label=label,Default=default,Optional=field=='Optional',Kind=target and 'target' or 'other',Repeat=lower:find('%.%.%.')~=nil} local choice=body:match('^([^:]+)') or body if not target and choice:find('/',1,true) and not choice:find('%s') and not lower:find('id',1,true) then spec.Kind='choice';spec.Choices={} for value in choice:gmatch('[^/]+') do spec.Choices[#spec.Choices+1]=value end end result[#result+1]=spec end end parameters[command]=result return result end for _, command in ipairs(commands) do descriptors(command) for _, name in ipairs(command.Names) do byName[name:lower()]=command end end local universal={ {'@a','all players'},{'@all','all players'},{'@c','click a player'},{'@click','click a player'}, {'@client','active clients'},{'@clients','active clients'},{'@e','enemies / no team'}, {'@enemies','enemies / no team'},{'@enemy','enemies / no team'}, {'@f','farthest player'},{'@farthest','farthest player'},{'@host','registered host'}, {'@l','last command target'},{'@last','last command target'},{'@n','nearest player'}, {'@nearest','nearest player'},{'@nonclient','nonclient players'},{'@nonclients','nonclient players'}, {'@o','other players'},{'@others','other players'},{'@p','nearest player'}, {'@r','random player'},{'@random','random player'},{'@s','self/localplayer'},{'@self','self/localplayer'}, {'@t','teammates'},{'@team','teammates'},{'@teammate','teammates'},{'@teammates','teammates'}, } local mm2={ {'@alive','known alive players'},{'@dead','known dead players'},{'@gun','dropped gun object'}, {'@hero','current gun holder'},{'@innocent','innocent roled players'}, {'@murderer','murderer roled players'},{'@murderers','murderer roled players'}, {'@sheriff','sheriff roled players'}, } local function tokenize(text,start,finish) local tokens={} local position=start while position<=finish do local ch=text:sub(position,position) if ch:match('%s') then position+=1 elseif ch=='&' or ch=='|' or ch=='!' or ch=='(' or ch==')' then local last=position if ch=='|' and text:sub(position,position+1)=='||' and position+1<=finish then last+=1 end tokens[#tokens+1]={Kind=(ch=='&' or ch=='|') and 'operator' or ch,First=position,Last=last,Value=text:sub(position,last)} position=last+1 elseif ch=='"' or ch=="'" then local close=text:find(ch,position+1,true) if not close or close>finish then close=nil end local last=close or finish tokens[#tokens+1]={Kind='atom',First=position,Last=last,Value=text:sub(position+1,close and close-1 or finish)} position=last+1 else local stop=text:find('[%s&|!()]',position) or finish+1 stop=math.min(stop,finish+1) tokens[#tokens+1]={Kind='atom',First=position,Last=stop-1,Value=text:sub(position,stop-1)} position=stop end end return tokens end local function targetEnd(tokens,start) local unary,expression unary=function(index) while tokens[index] and tokens[index].Kind=='!' do index+=1 end if not tokens[index] then return index,true,false end if tokens[index].Kind=='(' then local nextIndex,waiting,open=expression(index+1) if tokens[nextIndex] and tokens[nextIndex].Kind==')' then return nextIndex+1,waiting,open end return nextIndex,waiting,true end if tokens[index].Kind=='atom' then return index+1,false,false end return index+1,true,false end expression=function(index) local nextIndex,waiting,open=unary(index) while tokens[nextIndex] and tokens[nextIndex].Kind=='operator' do local nestedOpen nextIndex,waiting,nestedOpen=unary(nextIndex+1) open=open or nestedOpen end return nextIndex,waiting,open end return expression(start) end local function specAt(specs,index) return specs[index] or (specs[#specs] and specs[#specs].Repeat and specs[#specs]) or nil end local function commandContext(text,cursor) local start=text:find('%S') if not start or not text:sub(start,start):match('[/;]') then return end local stop=text:find('%s',start) or #text+1 local name=text:sub(start+1,stop-1) local command=byName[name:lower()] if cursor<=stop or not command then return {Mode='command',Needle=text:sub(start+1,math.min(cursor-1,stop-1)):lower(),First=start+1,Last=stop-1,DisplayPrefix=text:sub(1,start)} end if clientAliases[name:lower()] then local inner=text:find('%S',stop) or #text+1 local marker=text:sub(inner,inner) local innerStart=(marker=='/' or marker==';') and inner+1 or inner local innerStop=text:find('%s',inner) or #text+1 local innerName=text:sub(innerStart,innerStop-1) local innerCommand=byName[innerName:lower()] if cursor<=innerStop or not innerCommand then return {Mode='command',Needle=text:sub(innerStart,math.min(cursor-1,innerStop-1)):lower(),First=innerStart,Last=innerStop-1, DisplayPrefix=text:sub(1,innerStart-1),FormatCommand=command,FormatPrefix=text:sub(start,stop-1)} end return {Mode='parameter',Command=innerCommand,CommandPrefix=text:sub(start,innerStop-1),ParamStart=innerStop} end return {Mode='parameter',Command=command,CommandPrefix=text:sub(start,stop-1),ParamStart=stop} end local function setFormat(state,command,prefix,index) local specs=descriptors(command) if #specs==0 then return end state.FormatPrefix=prefix state.Parameters={} state.ActiveParameter=index state.Usage=prefix for position,spec in ipairs(specs) do local current=table.clone(spec) current.Default=(options.Default and options.Default(command,spec,position)) or spec.Default if current.Optional then current.Raw='['..current.Label..']' end state.Parameters[position]=current state.Usage=state.Usage..' '..current.Raw end end local function selectExact(state) state.SelectedIndex=1 if state.Needle=='' and state.Parameter and state.Parameter.Optional and state.Parameter.Default then for index,match in ipairs(state.Matches) do if match.Value==state.Parameter.Default then state.SelectedIndex=index;return end end end for index,match in ipairs(state.Matches) do if match.Value:lower()==state.Needle:lower() or (match.Player and match.Player.Name:lower()==state.Needle:lower()) then state.SelectedIndex=index;break end end end function api.Build(text,cursor) cursor=type(cursor)=='number' and cursor>=1 and math.min(cursor,#text+1) or #text+1 local context=commandContext(text,cursor) local state={InputText=text,Matches={},Cursor=cursor,Needle=''} if not context then return state end state.Mode=context.Mode if context.Mode=='command' then state.Needle=context.Needle state.First,state.Last=context.First,context.Last for _, command in ipairs(commands) do local chosen for _, name in ipairs(command.Names) do if name:lower()==state.Needle then chosen=name;break end end if not chosen then for _, name in ipairs(command.Names) do if name:lower():sub(1,#state.Needle)==state.Needle then chosen=name;break end end end if chosen then state.Matches[#state.Matches+1]={Kind='command',Value=chosen,Display=context.DisplayPrefix..chosen,Command=command,PlaceSpecific=command.PlaceSpecific, Sort=chosen:lower(),HighlightFirst=1,HighlightLength=#context.DisplayPrefix+#state.Needle} end end table.sort(state.Matches,function(a,b) return a.Sort0 selectExact(state) return state end local specs=descriptors(context.Command) local tokens=tokenize(text,context.ParamStart,cursor-1) local index,paramIndex=1,1 local current while index<=#tokens do local first=index local spec=specAt(specs,paramIndex) local nextIndex,waiting,open if spec and spec.Kind=='target' then nextIndex,waiting,open=targetEnd(tokens,index) else nextIndex,waiting,open=index+1,false,false end current={First=first,Last=nextIndex-1,Index=paramIndex,Waiting=waiting,Open=open} index=nextIndex paramIndex+=1 end local trailing=cursor>context.ParamStart and text:sub(cursor-1,cursor-1):match('%s')~=nil local activeIndex if not current then activeIndex=1 elseif trailing and not current.Waiting and not current.Open then activeIndex=current.Index+1;current=nil else activeIndex=current.Index end setFormat(state,context.Command,context.CommandPrefix,activeIndex) state.Parameter=specAt(state.Parameters or specs,activeIndex) state.EmptyParameter=current==nil state.First,state.Last=cursor,cursor-1 local atom=current and tokens[current.Last] if atom and atom.Kind=='atom' and not trailing then state.Needle=atom.Value state.First,state.Last=atom.First,atom.Last for _, full in ipairs(tokenize(text,context.ParamStart,#text)) do if full.First==atom.First and full.Kind=='atom' then state.Last=full.Last;break end end elseif current and not current.Waiting then return state end local spec=state.Parameter if not spec then return state end state.Supported=spec.Kind=='target' or spec.Kind=='choice' or (spec.Optional and spec.Default~=nil) if spec.Kind=='target' then local needle=state.Needle:lower() local function selectors(entries,section,title) for _, entry in ipairs(entries) do if entry[1]:sub(1,#needle)==needle then state.Matches[#state.Matches+1]={Kind='selector',Value=entry[1],Display=entry[1],Description=entry[2], Section=section,SectionTitle=title,PlaceSpecific=section==1,Sort=entry[1],HighlightFirst=1,HighlightLength=#needle} end end end if options.PlaceId==142823291 then selectors(mm2,1,(type(options.GameName)=='function' and options.GameName() or options.GameName or tostring(options.PlaceId))..' Selectors') end selectors(universal,2,'Universal selectors') if needle:sub(1,1)~='@' then for _, owner in ipairs(options.Players()) do local display=owner.DisplayName..' (@'..owner.Name..', '..owner.UserId..')' local displayLower,name,id=owner.DisplayName:lower(),owner.Name:lower(),tostring(owner.UserId) if needle=='' or displayLower:find(needle,1,true) or name:find(needle,1,true) or id:sub(1,#needle)==needle then local value=(owner==options.LocalPlayer or needle:match('^%d+$') or owner.Name:match('^%d+$')) and id or owner.Name local highlight=needle~='' and display:lower():find(needle,1,true) or nil state.Matches[#state.Matches+1]={Kind='player',Value=value,Display=display,Player=owner,Section=3,SectionTitle='Players', Sort=displayLower..'\0'..name..'\0'..id,HighlightFirst=highlight or 1,HighlightLength=highlight and #needle or 0} end end end table.sort(state.Matches,function(a,b) if a.Section~=b.Section then return a.Section0 and (state.Needle~='' or not spec.Optional or (current and current.Waiting)) return state end function api.Apply(text,state,match) match=match or state.Matches[state.SelectedIndex or 1] if not match or not state.First or state.InputText~=text then return text,state.Cursor end local before,after=text:sub(1,state.First-1),text:sub(state.Last+1) local value=match.Value local first=after:sub(1,1) local space=(after=='' or (not first:match('%s') and first~=')' and first~='&' and first~='|')) and ' ' or '' local completed=before..value..space..after return completed,#before+#value+#space+1 end function api.Submission(text,state) if state and state.InputText==text and (state.Mode=='parameter' or state.NestedCommand) and state.CanImplicitComplete then return api.Apply(text,state) end return text end return api end end factories[ [=[coordination.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) if not game:IsLoaded() then game.Loaded:Wait() end local HttpService = game:GetService("HttpService") local RunService = game:GetService("RunService") local globals = type(getgenv) == "function" and getgenv() or _G local Common = { Globals = globals } function Common.SetGlobal(name, value) globals[name] = value _G[name] = value end function Common.ClientScript(filename, ...) assert(type(filename) == "string" and filename ~= "" and filename:sub(-4) == ".lua", "A Lua workspace filename is required") local args = {} for index = 1, select("#", ...) do local value = select(index, ...) args[index] = value == nil and { IsNil = true } or { Value = value } end local command = { ID = HttpService:GenerateGUID(false), File = filename, Args = args } -- Reject unsupported/cyclic arguments before changing the published command. HttpService:JSONEncode(command) return command end function Common.QueueReload(filename, data) local queue = queueonteleport or queue_on_teleport or queueteleport if type(queue) ~= "function" then return false, "Volt teleport queue API is unavailable" end local code = "if not game:IsLoaded() then game.Loaded:Wait() end\n" if data then local ok, json = pcall(function() return HttpService:JSONEncode(data) end) if not ok then return false, "HostData must be JSON-serializable" end code = code .. string.format("_G.HostData=game:GetService('HttpService'):JSONDecode(%q)\n", json) end code = code .. "local f,e=loadstring(game:HttpGet('https://luacommands.siratools.win/' .. tostring(game.PlaceId))); if f then f() else warn(e) end" return pcall(queue, code) end function Common.Start(options) local api = WebSocket or websocket assert(api and type(api.connect) == "function", "Volt WebSocket API is required") local net = { Active = true, NextConnect = 0, NextPulse = 0, LastMessage = -math.huge, Connections = {} } local lastWarning = -math.huge function net.Warn(err) if os.clock() - lastWarning >= 5 then lastWarning = os.clock() warn(options.Name .. ": " .. tostring(err)) end end local function safe(callback, ...) if not callback then return true end local ok, result = pcall(callback, ...) if not ok then net.Warn(result) end return ok, result end local function clearConnections() for _, connection in pairs(net.Connections) do pcall(function() connection:Disconnect() end) end net.Connections = {} end local function drop(socket) if socket ~= net.Socket then return end net.Socket = nil net.LastMessage = -math.huge clearConnections() net.NextConnect = os.clock() + 2 pcall(function() socket:Close() end) safe(options.OnDisconnect) end function net.Send(packet) local socket = net.Socket if not net.Active or not socket then return false end local ok, text = pcall(function() return HttpService:JSONEncode(packet) end) if not ok then net.Warn("Data is not JSON-serializable"); return false end task.spawn(function() if not net.Active or net.Socket ~= socket then return end local sent, err = pcall(function() socket:Send(text) end) if not sent then drop(socket); net.Warn(err) end end) return true end function net.Disconnect() if not net.Active then return end net.Active = false if net.Heartbeat then net.Heartbeat:Disconnect() end local socket = net.Socket net.Socket = nil clearConnections() if socket then pcall(function() socket:Close() end) end safe(options.OnDisconnect) end local function connect() if net.Connecting or net.Socket or not net.Active then return end net.Connecting = true net.NextConnect = os.clock() + 2 task.spawn(function() local ok, socket = pcall(function() return api.connect("ws://127.0.0.1:8766") end) net.Connecting = false if not net.Active then if ok then pcall(function() socket:Close() end) end return end if not ok or not socket then net.NextConnect = os.clock() + 2 net.Warn("Cannot connect to ws://127.0.0.1:8766. Run start_local_presence.ps1 if the local relay is stopped. " .. tostring(socket)) return end net.Socket = socket net.Connections.Message = socket.OnMessage:Connect(function(raw, binary) if not net.Active or net.Socket ~= socket or binary then return end local decoded, packet = pcall(function() return HttpService:JSONDecode(raw) end) if decoded and type(packet) == "table" then net.LastMessage = os.clock() safe(options.OnMessage, packet) end end) net.Connections.Close = socket.OnClose:Connect(function() drop(socket) end) net.NextPulse = os.clock() + 2 local built, packet = safe(options.Hello) if built and packet then net.Send(packet) end end) end net.Heartbeat = RunService.Heartbeat:Connect(function() if not net.Active then return end local now = os.clock() if not net.Socket and now >= net.NextConnect then connect() end if net.Socket and now >= net.NextPulse then net.NextPulse = now + 2 local built, packet = safe(options.Pulse) if built and packet then net.Send(packet) end end end) -- Let the caller store net before OnMessage can invoke its handlers. task.defer(connect) return net end return Common end end factories[ [=[host.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) local Common = assert(loadfile("coordination.lua"))() local Players = game:GetService("Players") local player = Players.LocalPlayer assert(player, "host.lua must run on a client") local previous = Common.Globals.HostController local function installRejoin(controller) function controller.ClientsRejoin() if not controller.Active or not Common.Globals.HostIsRegistered then return false, "This account is not the registered host" end return controller.Network.Send({ type = "clients_rejoin" }) end Common.SetGlobal("ClientsRejoin", controller.ClientsRejoin) end if type(previous) == "table" and previous.Active and previous.Version == 4 then installRejoin(previous) return previous end if type(previous) == "table" and type(previous.Disconnect) == "function" then previous.Disconnect() end local state = { Version = 4, Active = true, Connections = {}, ClientUserIDs = {}, RosterRequest = 0 } Common.SetGlobal("HostController", state) Common.SetGlobal("HostIsRegistered", false) Common.SetGlobal("HostData", type(Common.Globals.HostData) == "table" and Common.Globals.HostData or type(_G.HostData) == "table" and _G.HostData or {}) Common.SetGlobal("HostUserID", player.UserId) Common.SetGlobal("HostPlaceID", game.PlaceId) Common.SetGlobal("HostJobID", game.JobId) local function payload(kind) local data = type(Common.Globals.HostData) == "table" and Common.Globals.HostData or {} Common.SetGlobal("HostData", data) Common.SetGlobal("HostPlaceID", game.PlaceId) Common.SetGlobal("HostJobID", game.JobId) return { type = kind, HostUserID = player.UserId, HostPlaceID = game.PlaceId, HostJobID = game.JobId, HostData = data, } end function state.Disconnect() if not state.Active then return end state.Active = false for _, connection in pairs(state.Connections) do connection:Disconnect() end if state.Network then state.Network.Disconnect() end Common.SetGlobal("HostIsRegistered", false) Common.SetGlobal("ClientIsHost", false) end state.Network = Common.Start({ Name = "Host coordination", Hello = function() return payload("host_hello") end, Pulse = function() return payload("host_update") end, OnDisconnect = function() Common.SetGlobal("HostIsRegistered", false) end, OnMessage = function(packet) if (packet.type == "host_registered" or packet.type == "host_clients") and type(packet.ClientUserIDs) == "table" then local users = {} for _, id in pairs(packet.ClientUserIDs) do if type(id) == "number" then users[id] = true end end state.ClientUserIDs = users state.ClientsKnown = true if packet.type == "host_clients" then state.RosterReply = packet.request end end if packet.type == "host_registered" then Common.SetGlobal("HostIsRegistered", true) if type(Common.Globals.ClientVolumeBeforeMute) == "number" then local ok, err = pcall(function() UserSettings():GetService("UserGameSettings").MasterVolume = Common.Globals.ClientVolumeBeforeMute end) if ok then Common.SetGlobal("ClientVolumeBeforeMute", nil) else warn("Host volume restore failed: " .. tostring(err)) end end Common.SetGlobal("ClientIsHost", true) Common.SetGlobal("ClientReady", false) local client = Common.Globals.ClientController if client and client.Active then client.Disconnect() end elseif packet.type == "coord_error" then state.Error = tostring(packet.code) warn("Host coordination: " .. tostring(packet.code)) if packet.code == "host_in_use" or packet.code == "host_superseded" then state.Disconnect() end end end, }) function state.Publish() if state.Active then return state.Network.Send(payload("host_update")) end return false end function state.GetClients() if not state.Active or not Common.Globals.HostIsRegistered then return nil, "Host is not registered" end state.RosterRequest = state.RosterRequest + 1 local request = state.RosterRequest if not state.Network.Send({ type = "host_clients", request = request }) then return nil, "Relay is unavailable" end local deadline = os.clock() + 5 while state.Active and state.RosterReply ~= request and os.clock() < deadline do task.wait(0.05) end if state.RosterReply ~= request then return nil, "Client roster request timed out" end return state.ClientUserIDs end function state.ClientsExit() if not state.Active or not Common.Globals.HostIsRegistered then return false, "This account is not the registered host" end return state.Network.Send({ type = "clients_exit" }) end Common.SetGlobal("ClientsExit", state.ClientsExit) installRejoin(state) state.Connections.Teleport = player.OnTeleport:Connect(function(teleportState) if teleportState == Enum.TeleportState.Started and not state.QueueArmed then local file = type(Common.Globals.HostRestartFile) == "string" and Common.Globals.HostRestartFile or "host.lua" local ok, err = Common.QueueReload(file, Common.Globals.HostData) state.QueueArmed = ok if not ok then warn("Host restart: " .. tostring(err)) end end end) return state end end factories[ [=[client.lua]=] ] = function(loadfile, loadPlaceCommands) return function(...) -- Background service: dependent scripts only need to gate work on _G.ClientReady. -- IsHost() checks confirmed ownership; RequestHost() waits for confirmation and -- returns true or false, reason. It never takes the role from another account. local Common = assert(loadfile("coordination.lua"))() local options = ... local serverEntry = Common.Globals.ClientServerEntry if type(serverEntry) ~= "table" or serverEntry.PlaceID ~= game.PlaceId or serverEntry.JobID ~= game.JobId then Common.SetGlobal("ClientServerEntry", { PlaceID = game.PlaceId, JobID = game.JobId, At = os.clock() }) end local Players = game:GetService("Players") local RunService = game:GetService("RunService") local TeleportService = game:GetService("TeleportService") local player = Players.LocalPlayer assert(player, "client.lua must run on a client") local hostController = Common.Globals.HostController if not (type(options) == "table" and options.HostMode) and not (type(hostController) == "table" and hostController.Active) then local muted, muteError = pcall(function() local settings = UserSettings():GetService("UserGameSettings") if Common.Globals.ClientVolumeBeforeMute == nil then Common.SetGlobal("ClientVolumeBeforeMute", settings.MasterVolume) end settings.MasterVolume = 0 end) if not muted then warn("Client mute failed: " .. tostring(muteError)) end end local previous = Common.Globals.ClientController -- Auto-loaders and dependent scripts can load this file without restarting it. if type(previous) == "table" and previous.Active and previous.Version == 10 then return previous end if type(previous) == "table" and type(previous.Disconnect) == "function" then previous.Disconnect() end local state = { Version = 10, Active = true, Connections = {}, LastHostAt = -math.huge, NextTeleportAt = 0, Revision = -1 } Common.SetGlobal("ClientController", state) Common.SetGlobal("ClientReady", false) Common.SetGlobal("ClientIsHost", false) local oldTarget = Common.Globals.ClientTargetController local targetWasRecovering = type(oldTarget) == "table" and oldTarget.Recovering if type(oldTarget) == "table" and type(oldTarget.Connections) == "table" then for key, connection in pairs(oldTarget.Connections) do if key == "RecoveryTeleportFailed" or key == "DisconnectError" or key == "DisconnectPrompt" or (type(key) == "number" and oldTarget.Connections.DisconnectPrompt) then connection:Disconnect() end end oldTarget.Recovering = false end local function ownHostActive() local host = Common.Globals.HostController return type(host) == "table" and host.Active == true end if not ownHostActive() then Common.SetGlobal("HostData", {}) end local function clearHost() state.Host = nil Common.SetGlobal("ClientReady", false) if ownHostActive() then return end Common.SetGlobal("HostUserID", nil) Common.SetGlobal("HostPlaceID", nil) Common.SetGlobal("HostJobID", nil) Common.SetGlobal("HostData", {}) end function state.Disconnect() if not state.Active then return end state.Active = false Common.SetGlobal("ClientReady", false) for _, connection in pairs(state.Connections) do connection:Disconnect() end if state.Network then state.Network.Disconnect() end end local function isHost() return ownHostActive() and Common.Globals.HostIsRegistered == true end local requesting = false local function requestHost() if isHost() then return true end if requesting then return false, "Host request already pending" end requesting = true -- Wait for discovery before trying to claim an apparently empty relay. local deadline = os.clock() + 1 while state.Active and (not state.Discovered or not state.Network.Socket) and os.clock() < deadline do task.wait(0.05) end local knownSelf = state.Host and state.Host.HostUserID == player.UserId if not knownSelf and (not state.Discovered or not state.Network or not state.Network.Socket) then requesting = false return false, "Host discovery is unavailable" end if state.Host and state.Host.HostUserID ~= player.UserId then requesting = false return false, "Another account is already the host" end local ok, host = pcall(function() return assert(loadfile("host.lua"))() end) if not ok then requesting = false; return false, tostring(host) end deadline = os.clock() + 1 while host.Active and not isHost() and os.clock() < deadline do task.wait(0.05) end requesting = false if isHost() then return true end if host.Active then host.Disconnect() end return false, host.Error or "Host registration timed out" end state.IsHost = isHost state.RequestHost = requestHost Common.SetGlobal("IsHost", isHost) Common.SetGlobal("RequestHost", requestHost) local function runClientScript(host) local command = host.HostData.ClientScript if type(command) ~= "table" or type(command.ID) ~= "string" or type(command.File) ~= "string" or type(command.Args) ~= "table" then return end -- HostData is authoritative; update existing scripts without loading them again. if command.ConfigField == "WeaponConfig" and type(host.HostData.WeaponConfig) == "table" then local defaults = assert(loadfile("weapon_v2_config.lua"))() for name, default in pairs(defaults) do local value = host.HostData.WeaponConfig[name] if type(value) ~= type(default) or (type(value) == "number" and (value ~= value or math.abs(value) == math.huge)) then value = default end Common.SetGlobal(name, value) end end local key = tostring(host.HostUserID) .. ":" .. command.ID if Common.Globals.ClientLoadedScriptKey == key then return end Common.SetGlobal("ClientLoadedScriptKey", key) task.spawn(function() if not state.Active or not Common.Globals.ClientReady then if Common.Globals.ClientLoadedScriptKey == key then Common.SetGlobal("ClientLoadedScriptKey", nil) end return end if Common.Globals.ClientLoadedScriptKey ~= key then return end local ok, err = pcall(function() local chunk, loadError = loadfile(command.File) assert(chunk, loadError) local args = {} for index, entry in ipairs(command.Args) do assert(type(entry) == "table", "Invalid client script argument") if not entry.IsNil then args[index] = entry.Value end end local old = Common.Globals.ClientLoadedScript if type(old) == "table" and type(old.Disconnect) == "function" then old.Disconnect() elseif type(old) == "function" then old() end local target = Common.Globals.ClientTargetController if target and target.Active then target.Disconnect() end if Common.Globals.ClientTestConnection then Common.Globals.ClientTestConnection:Disconnect() end Common.SetGlobal("ClientRestartFile", "client.lua") Common.SetGlobal("ClientLoadedScript", nil) local result = chunk(table.unpack(args, 1, #command.Args)) if Common.Globals.ClientLoadedScriptKey == key then Common.SetGlobal("ClientLoadedScript", result) elseif type(result) == "table" and type(result.Disconnect) == "function" then result.Disconnect() end end) if not ok then state.Network.Warn("Client script " .. command.File .. ": " .. tostring(err)) end end) end -- Disconnect recovery cannot depend on ClientReady or the host still being -- present in the local player list. Keep this server's identity locally. local recoveryPlaceID, recoveryJobID = game.PlaceId, game.JobId local function beginDisconnectRecovery() if not state.Active or Common.Globals.ClientIsHost or ownHostActive() or recoveryJobID == "" then return end if not state.Recovering then state.Recovering = true state.RecoveryNextAt = 0 end Common.SetGlobal("ClientReady", false) end local function recoverDisconnectedClient() local now = os.clock() if state.RecoveryInFlight and now - state.RecoveryStartedAt < 20 then return end if now < state.RecoveryNextAt then return end if not state.RecoveryQueued then local filename = "client.lua" local ok, err = Common.QueueReload(filename) state.RecoveryQueued = ok if not ok then warn("Disconnect rejoin reload: " .. tostring(err)) end end state.RecoveryInFlight = true state.RecoveryStartedAt = now state.RecoveryNextAt = now + 3 task.spawn(function() if not state.Active or Common.Globals.ClientIsHost or ownHostActive() then return end local ok, err = pcall(function() TeleportService:TeleportToPlaceInstance(recoveryPlaceID, recoveryJobID, player) end) if not ok then state.RecoveryInFlight = false state.RecoveryNextAt = os.clock() + 3 warn("Disconnect rejoin failed: " .. tostring(err)) end end) end state.Connections.RecoveryTeleportFailed = TeleportService.TeleportInitFailed:Connect(function(owner, _, _, placeID) if owner == player and state.Recovering and state.RecoveryInFlight and (placeID == nil or placeID == recoveryPlaceID) then state.RecoveryInFlight = false state.RecoveryNextAt = os.clock() + 3 end end) local errorSignalOK = pcall(function() local gui = game:GetService("GuiService") state.Connections.DisconnectError = gui.ErrorMessageChanged:Connect(function(message) local text = tostring(message or ""):lower() if text:find("idle", 1, true) or text:find("disconnect", 1, true) or text:find("kicked", 1, true) or text:find("lost connection", 1, true) then beginDisconnectRecovery() end end) end) local promptSignalOK = pcall(function() local coreGui = game:GetService("CoreGui") local watched = setmetatable({}, { __mode = "k" }) local function watchPrompt(instance) if watched[instance] or instance.Name ~= "ErrorPrompt" or not instance:IsA("GuiObject") or not instance:FindFirstAncestor("RobloxPromptGui") then return end watched[instance] = true local function changed() if instance.Visible then beginDisconnectRecovery() end end table.insert(state.Connections, instance:GetPropertyChangedSignal("Visible"):Connect(changed)) changed() end state.Connections.DisconnectPrompt = coreGui.DescendantAdded:Connect(watchPrompt) for _, instance in ipairs(coreGui:GetDescendants()) do watchPrompt(instance) end end) if not errorSignalOK and not promptSignalOK then warn("Disconnect rejoin: this client could not access Roblox's disconnect error listeners") end if targetWasRecovering then beginDisconnectRecovery() end local function checkHost() if not state.Active then return end if Common.Globals.ClientIsHost then state.Disconnect(); return end if state.Recovering then Common.SetGlobal("ClientReady", false) if not Common.Globals.ClientIsHost and not ownHostActive() then recoverDisconnectedClient() end return end local host = state.Host if not host or not state.Network or not state.Network.Socket or os.clock() - state.LastHostAt > (state.TTL or 10) then Common.SetGlobal("ClientReady", false) return end if host.HostUserID == player.UserId then -- This account is the host now. Break its following loop permanently. Common.SetGlobal("ClientIsHost", true) state.Disconnect() return end local inServer = game.PlaceId == host.HostPlaceID and game.JobId == host.HostJobID if inServer and not state.Rejoin then state.Teleporting = false Common.SetGlobal("ClientReady", game:IsLoaded() and not state.HostLeft and Players:GetPlayerByUserId(host.HostUserID) ~= nil) if Common.Globals.ClientReady then runClientScript(host) end return end Common.SetGlobal("ClientReady", false) if not game:IsLoaded() then return end local now = os.clock() if state.Teleporting and now - state.TeleportStartedAt < 20 then return end if now < state.NextTeleportAt then return end if not state.QueueArmed then local file = type(Common.Globals.ClientRestartFile) == "string" and Common.Globals.ClientRestartFile or "client.lua" local ok, err = Common.QueueReload(file) if not ok then state.NextTeleportAt = now + 1 state.Network.Warn("Cannot follow automatically: " .. tostring(err)) return end state.QueueArmed = true end state.Teleporting, state.TeleportStartedAt = true, now state.NextTeleportAt = now + 10 -- This API permits a local client to join a specific public server instance. task.spawn(function() if not state.Active or state.Host ~= host then state.Teleporting = false; return end local ok, err = pcall(function() TeleportService:TeleportToPlaceInstance(host.HostPlaceID, host.HostJobID, player) end) if not ok then state.Teleporting = false state.NextTeleportAt = os.clock() + 1 state.Network.Warn("Teleport failed: " .. tostring(err)) end end) end -- Older followers can receive commands even if cmds.lua was not their entry -- script. Bootstrapping is lazy and preserves their existing ClientScript. local function runChatCommands(host) if host.HostUserID==player.UserId or host.HostPlaceID~=game.PlaceId or host.HostJobID~=game.JobId or not Players:GetPlayerByUserId(host.HostUserID) or type(host.HostData.CommandRequests)~="table" or #host.HostData.CommandRequests==0 or state.LoadingCommands then return end state.LoadingCommands=true task.spawn(function() local ok,err=pcall(function() local commands=Common.Globals.EmoteController if not commands or not commands.Active or not commands.CommandNetwork then commands=assert(loadfile("cmds.lua"))() end if commands.CommandNetwork then commands.CommandNetwork.ReceiveHost(host,Common.Globals.CoordinatorClientUserIDs) end end) state.LoadingCommands=false if not ok then state.Network.Warn("Client command: "..tostring(err)) end end) end local function receive(packet) if packet.type == "clients_rejoin" then if state.Recovering then return end if packet.HostUserID == player.UserId or ownHostActive() or state.Rejoin then return end local host = state.Host if not host or packet.HostUserID ~= host.HostUserID or packet.HostPlaceID ~= host.HostPlaceID or packet.HostJobID ~= host.HostJobID or game.PlaceId ~= packet.HostPlaceID or game.JobId ~= packet.HostJobID then return end state.Rejoin = true state.Teleporting = false state.NextTeleportAt = 0 Common.SetGlobal("ClientReady", false) checkHost() return end if packet.type == "clients_exit" then if packet.HostUserID == player.UserId or ownHostActive() or state.Exiting then return end state.Exiting = true state.Disconnect() local ok, err = pcall(function() game:Shutdown() end) if not ok then warn("Client shutdown failed: " .. tostring(err)) end return end if packet.type ~= "host_state" then return end Common.SetGlobal("CoordinatorClientUserIDs", type(packet.ClientUserIDs) == "table" and packet.ClientUserIDs or {}) if type(packet.revision) == "number" then if packet.revision < state.Revision then return end state.Revision = packet.revision end state.LastHostAt = os.clock() state.Discovered = true state.TTL = type(packet.ttl) == "number" and math.clamp(packet.ttl, 1, 30) or 10 local host = packet.host if type(host) ~= "table" or type(host.HostUserID) ~= "number" or type(host.HostPlaceID) ~= "number" or type(host.HostJobID) ~= "string" or host.HostJobID == "" or type(host.HostData) ~= "table" then clearHost() return end local old = state.Host if not old or old.HostUserID ~= host.HostUserID or old.HostPlaceID ~= host.HostPlaceID or old.HostJobID ~= host.HostJobID then state.HostLeft = false state.Rejoin = nil state.Teleporting = false state.NextTeleportAt = 0 Common.SetGlobal("ClientReady", false) end state.Host = host Common.SetGlobal("HostUserID", host.HostUserID) Common.SetGlobal("HostPlaceID", host.HostPlaceID) Common.SetGlobal("HostJobID", host.HostJobID) Common.SetGlobal("HostData", host.HostData) runChatCommands(host) checkHost() end function state.RejoinServer() if not state.Active or not Common.Globals.ClientReady or ownHostActive() then return false end local host = state.Host if not host then return false end receive({ type = "clients_rejoin", HostUserID = host.HostUserID, HostPlaceID = host.HostPlaceID, HostJobID = host.HostJobID }) return state.Rejoin == true end state.Network = Common.Start({ Name = "Client coordination", Hello = function() return { type = "client_hello", UserID = player.UserId } end, -- Keep querying even when there was no host when this client started. Pulse = function() return { type = "client_poll", UserID = player.UserId } end, OnMessage = receive, OnDisconnect = function() state.Revision = -1 state.Discovered = false if not _G.ClientIsHost then clearHost() end Common.SetGlobal("ClientReady", false) end, }) state.Connections.Removing = Players.PlayerRemoving:Connect(function(other) if state.Host and other.UserId == state.Host.HostUserID then state.HostLeft = true Common.SetGlobal("ClientReady", false) end end) state.Connections.Added = Players.PlayerAdded:Connect(function(other) if state.Host and other.UserId == state.Host.HostUserID then state.HostLeft = false checkHost() end end) state.Connections.TeleportFailed = TeleportService.TeleportInitFailed:Connect(function(owner) if owner == player then state.Teleporting = false state.NextTeleportAt = os.clock() + 1 Common.SetGlobal("ClientReady", false) end end) local nextCheck = 0 state.Connections.Check = RunService.Heartbeat:Connect(function() if os.clock() >= nextCheck then nextCheck = os.clock() + 0.25 local ok, err = pcall(checkHost) if not ok then Common.SetGlobal("ClientReady", false); state.Network.Warn(err) end end end) return state end end loadPlaceCommands = function() local factory = factories["place_" .. tostring(game.PlaceId)] if factory then return factory(bundledLoadfile, loadPlaceCommands) end return nil end bundledLoadfile = function(filename, ...) local factory = factories[filename] if factory then return factory(bundledLoadfile, loadPlaceCommands) end if type(diskLoadfile)=="function" then return diskLoadfile(filename, ...) end return nil, "File is not bundled: " .. tostring(filename) end return assert(bundledLoadfile("cmds.lua"))()