While I was testing my code, I encountered a problem when testing it on a local server. The code below is placed in a local script inside the PlayerGUI
local plr = game.Players.LocalPlayer
local char = plr.Character
char.Torso.Touched:connect(function(hit)
print("Rome")
end
When the function is activated on a local server, It will not print Rome but instead return "Torso is not a valid member of Model". I find this problem extremely odd. All help is appreciated.

1 comment
It's :Wait not :wait. :Connect not :connect. Don't give deprecated code.