so i'm currently trying to make a script where when a ball (soccerball) drops on a block it changes a gui and cant get it to change anything, it doesn't show any errors, it just does absolutely nothing. here's the script
script.Parent.Touched:Connect(function(hit)
if hit.Name == "soccerball" then
game.Players.LocalPlayer.PlayerGui.thing.Frame.display.Text = "100"
end
end)
yes it's in a local script, and it doesn't work in actual game or test mode
i'm very new to scripting so any help is greatly appreciated, thanks!
p.s not in experimental mode

2 comments
I recommend using remotes. http://robloxdev.com/articles/Remote-Functions-and-Events
LocalScripts can only run in PlayerGui, Backpack, PlayerScripts, Player Character, and ReplicatedFirst. Also, from your script, there was no way to get the player.