So, I've been having problems getting an onTouch script to work in a server. In test mode it works fine, but on an actual server it fails to work. At first I thought it was the value that wasn't responding, but then I added a print to the script to make sure that the onTouch was actually firing, and, to my surprise, it was actually the script itself that was failing to fire when the brick was touched. Here's the script:
function onTouch(t)
print("is this working?")
game.Players.LocalPlayer.PlayerGui.HUD.TextT.Trigger.Value = "enemy"
end
script.Parent.Touched:connect(onTouch)
It's a very simple script, which confuses me as to why it isn't working. All help is appreciated.

2 comments
Thank you! This will be good to know for future scripts, too!
No problem!