RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make me a anticheat system to stop people from flying with instructions on where to put it"
-- server script for anticheat system local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local flyDetector = Instance.new("Part") flyDetector.Size = Vector3.new(5, 5, 5) flyDetector.Position = character.HumanoidRootPart.Position flyDetector.Anchored = true flyDetector.CanCollide = false flyDetector.Transparency = 1 flyDetector.Parent = workspace local function checkFly() if character.Humanoid:GetState() == Enum.HumanoidStateType.Flying then character.Humanoid:ChangeState(Enum.HumanoidStateType.Physics) end end while wait(1) do checkFly() end -- To use this anticheat system, add this script to the ServerScriptService and name it "AntiFly". It will automatically detect when a player is flying and force them back to the ground.