I want to make a script where if a player touches a certain block then a screen gui appears only for them. This is a script I've tried to make but it won't work since it's a local script:
player = game.Player.LocalPlayer
script.Parent.Touched:connect(function(hit)
game.StarterGui.ScreenGui.Enabled = true
wait(5)
game.StarterGui.ScreenGui.Enabled = false
end
it's a pretty simple concept and I'm sure there's something better I could use and I would really appreciate if someone taught me what it is. :)

1 comment
haha thank you I will keep that in mind next time I try to access the gui's :)