Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to fix Script timeout: exhausted allowed execution time?

Asked by 3 years ago
Edited 3 years ago

local spike = game.ServerStorage:WaitForChild("Spike") local danger = game.ServerStorage:WaitForChild("Danger") local X = Instance.new("NumberValue") local Z = Instance.new("NumberValue")

while true do X.Value = math.random(-72, 65) Z.Value = math.random(-110, 26) local spike2 = spike:Clone() local danger2 = danger:Clone() danger2.Parent = game.Workspace danger2.Position = Vector3.new(X.Value, danger2.Position.Y, Z.Value ) spike2.Position = Vector3.new(X.Value, spike2.Position.Y, Z.Value ) wait(1.5) spike2.Parent = game.Workspace danger2.Parent = nil print('Work') end

0
Its called "Code Block". IT EXIST FOR A REASON. how will i help with this unreadable code. use code block and i might be able to sata5pa3da 286 — 3y
0
which one? minefeekyt 4 — 3y

Answer this question