So I am creating an anti-exploit, I want it to also change the name of workspace every 5 seconds to something very random. Could anyone help me out? This is what I have so far: This is in a normal server sided script.
while wait(10) do
game.Workspace.Name = math.random(-9999999, 99999999999)
end

12 comments
I also heard the game Jailbreak made by Badimo uses this from a guy who knows an exploiter.
*uses this, I know this because I have a friend which knows another friend which exploits.
Changing the name of workspace will not stop exploiters because they can still do game:GetService("Workspace") and other ways
Don't use wait() as a condition. Use while true do with the wait inside of the loop.
There's a ridiculous amount of proprietary software that uses while wait() do, stop being so petty about that stuff
while wait(5) do workspace.Name = "Workspace #"..math.random(-99999,99999) end
You do realize.... a hacker could just do for _, v in pairs(game:GetChildren()) do if v:FindFirstChild('greatneil80') then v.part:Destroy() end end
@Vulkarin because wait() as a loop's condition is a hack. It abuses the fact that wait returns a number corresponding to the time Roblox yielded the thread for. while wait(10) do is almost like saying while 10.002834 do or however long it yielded, as it is never exact. It hurts readability. How does it even make sense? kthx
Commit meet god. https://docs.google.com/document/d/1ieZ8OzXPiXe3R7rs_xWmYZOnhQevlagN0ZWwoj_zKP4/edit
https://docs.google.com/document/d/1ieZ8OzXPiXe3R7rs_xWmYZOnhQevlagN0ZWwoj_zKP4/edit
Changing the name of Workspace can break the game if you have any other scripts accessing Workspace via game.Workspace. 'workspace' is more efficient because it will access workspace without doing game.Workspace and will also access workspace with a different name, you can also do game:GetService("Workspace")
This will do nothing. game.Workspace is a property of game and will still work. game["Workspace"] is the same property of game and will still work. workspace will still work. game:GetService("Workspace") will still work. game:FindFirstChildOfClass("Workspace") will still work. This is entirely pointless.