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

(Easy)How do I make sure that the ball respawns everytime?

Asked by 5 years ago

--I put the the cloned in replicated server store function ontouched(hit)

local humanoid = hit.Parent:findFirstChild("Humanoid")

if humanoid~=nil then

wait(0.01)

local new = game.ReplicatedStorage.SpeedBuffFireBall:Clone()

new.CFrame = script.Parent.CFrame

script.Parent:Destroy()

humanoid.WalkSpeed = 6*16 --Set walkspeed to *6

wait(3)

new.Parent = game.Workspace

end

end

script.Parent.Touched:Connect(ontouched)

0
wdym? this should everytime you touch this part starmaq 1290 — 5y

Answer this question