while true do
for i, v in pairs(game:GetDescendants()) do
v.Name = math.random(1, 900000000000000)
end
wait(0.0001)
end
This is code for renaming everything in workspace this errors a lot cause it renaming things with property’s greater than its own how can i make this work
task.wait(10)
while true do task.wait(0.5)
for _, Object in ipairs(game:GetDescendants()) do task.wait()
pcall(function()
Object.Name = Random.new():NextInteger(1, 900000000000000)
end)
end
end
we can use a pcall function because some objects can’t be renamed
I am also waiting 10 seconds because you will get warns like “Infinite yield possible on Object”, this can break your game
incase anyone asks, you can set the text property to a number
task.wait(10)
while true do task.wait()
for _, Object in ipairs(game:GetDescendants()) do
pcall(function()
Object.Name = Random.new():NextInteger(1, 900000000000000)
end)
end
end
yea well if you remove most of the waiting, you will get warns regardless
and you will die over and over!
what fun
EDIT:
it seems that if you test this with a local script
if you keep trying to walk forward, you will eventually stop dying and you will spin whenever you walk
or it will stop killing you on it’s own
I haven’t been able to replicate the spinning walking with a server script