I want to know how to make a while true function to see if an object still exist. If the object exists, then it keeps running. I thought of this but it was kinda wierd.
while game.Workspace:FindFirstChild("Arrow") do end
Its simple, start the loop and use if ...:FindFirstChild(...) then
Here is a example:
while true do -- Start a loop (Do not use while wait() do, its not a good way.) if workspace:FindFirstChild("ITEM") then -- Item location -- Your code here. else break -- End loop if object not found end wait(0.3) -- For no bugs / lag in game end
But is better use .Changed
Hope it helped :)
Errors? tell-me on comments.
Wiki pages:
While true do wait() if game.Workspace.Part ~= nil then --Checks if the part is there ' --your code goes else --if the part is not there break --the loop will break end end