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

How can I make a script run again?

Asked by 10 years ago

Like if I do a = Instance.New("Part") How do I make it run again if perhaps, someone clicked a button. I am pretty new to scripting so I need some help.

1 answer

Log in to vote
0
Answered by
KAAK82 16
10 years ago

tempestatem is correct, but he forgot a few things. here's a lil more Accurate Script

while true do
wait(5) --Waits 5 Seconds
a = Instance.new('Part', game.Workspace) --He said Part.Parent, he didn't Define Part, it's 'a' but I made it in 1 line
end

And an OnTouch Script

script.Parent.Touched:connect(function()
a = Instance.new('Part', game.Workspace)
end) --')' is expected to close the connect:(function) at the end
1
Yupthis is better Tempestatem 884 — 10y
0
lol thnx :D KAAK82 16 — 10y
Ad

Answer this question