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

Explain :connect depricated and :Connect replacing it?

Asked by 6 years ago

So basically using :connect in a function may not finish the function?

i.g

This Works?

game.Players.PlayerAdded:Connect(function(plr)
    --
end)

function playerjoin(plr)
    --
end

game.Players.PlayerAdded:Connect(playerjoin)

And this doesn't?

game.Players.PlayerAdded:connect(function(plr)
    --
end)

function playerjoin(plr)
    --
end

game.Players.PlayerAdded:connect(playerjoin)
0
They both work in studio. I believe roblox is trying to make their methods UpperCamelCase. RockerCaleb1234 282 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

You are thinking depricated things incorrectly Both of those scripts will work in studio But the not depricated one will work in the realeased game And the depricated one will not work in the realeased game

Ad

Answer this question