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.
Locked by AmericanStripes
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?