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 9 years ago

Lets say I had this:

function Random(plr)

How would I add "plr" like this:

script.Parent.Touched:connect(function()

1 answer

Log in to vote
2
Answered by
Lapwn 10
9 years ago
script.Parent.Touched:connect(function(plr)
1
Thank you (P.S. I thought that is where you put a function name :c groovydino 2 — 9y
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 — 9y
Ad

Answer this question