Hello, I am using a LocalScript because I am changing the players gui. When I change the players gui from disabled to enabled, it shows it to everyone. Any solution?
–The parent of the script is StarterPlayerScripts!
game.Workspace.TimerStart.Touched:Connect(function(player)
local Debounce = false
if not Debounce then
Debounce = true
game.Workspace.TimerStart.CanCollide = false
game.Players.LocalPlayer.PlayerGui.TimerGui.TextLabel.LocalScript.Disabled = false
game.Players.LocalPlayer.PlayerGui.TimerGui.Enabled = true
game.Players.LocalPlayer.PlayerGui.TimerGui.TextLabel.LocalScript.Disabled = false
wait(3.5)
game.Workspace.TimerStart.CanCollide = true
wait(10.0)
Debounce = false
end
end)
game.Workspace.TimerStop.Touched:Connect(function()
local Debounce = false
if not Debounce then
Debounce = true
game.Players.LocalPlayer.PlayerGui.TimerGui.TextLabel.LocalScript.Disabled = true
wait(10.0)
Debounce = false
end
end)