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)
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)
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.
1 comment
Yes and that seems to work fine.