This doesn't work for some reason. No output. I think it's because I am using "LocalPlayer" to find the player that touched the part. Any ways to fix this?
function onTouch()
game.Players.LocalPlayer.PlayerGui.ScreenGui.Script.Disabled = false
game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.ImageLabel.Visible = true
game.Players.LocalPlayer.PlayerGui.End:Play()
end
script.Parent.Touched:connect(onTouch)

1 comment
It does work in play solo on the edit mode. But it doesn't work when I play it as a server.