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

How do i do this?

Asked by 10 years ago

Lets say I had this:

1function Random(plr)

How would I add "plr" like this:

1script.Parent.Touched:connect(function()

1 answer

Log in to vote
2
Answered by
Lapwn 10
10 years ago
1script.Parent.Touched:connect(function(plr)
1
Thank you (P.S. I thought that is where you put a function name :c groovydino 2 — 10y
0
You don't need a function name unless you define the function after like 1)function onPlayerEntered(nP) 2)--nil 3)end 4)game.Players.PlayerAdded:connect(onPlayerEntered) Lapwn 10 — 10y
Ad

Answer this question