#wait in function doesn't work

6 messages · Page 1 of 1 (latest)

clear temple
#

local function SpawnBall()
local rollingsphere = Instance.new("Part")
rollingsphere.Parent = game.Workspace
rollingsphere.Position = Vector3.new(-0.399, 19.351, -17.6)
wait(5)
end

game.Workspace.ballregenpart.Touched:Connect(SpawnBall)

#

It just spawns a bunch of parts without waiting

#

I'm new to roblox studio

plain flame
#

Well

plain flame
#

So it work few times, try adding couldown or something like that