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

Connecting a function twice?

Is there a way to connect a function for two different things? Like this?

function pie()
print("text")
end

script.Parent.Touched:connect(pie)
game.Players.Player.Character.Humanoid.Changed:connect(pie)

1 comment

1

Yes and that seems to work fine.

1 answer

✓ Accepted answer

Your code is exactly correct.

Please, in the future, test your own code before asking about it here. You would have seen that your code works had you taken a minute to test it.

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