Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Explain :connect depricated and :Connect replacing it?

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)

1 comment

0

They both work in studio. I believe roblox is trying to make their methods UpperCamelCase.

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.