#Introduction So I am working on a Hotel game in which when you touch the computer, a GUI opens. The only problem is that the GUI doesn't only open for one person, it opens for the whole server!
Here are the scripts I used:
local GUI = script.Parent
local part = game.Workspace.coolyoungpart
part.Touched:Connect(function()
game.StarterPlayer.Value.Value = 1
end)
local GUI = script.Parent
local val = game.StarterPlayer.Value
if val.Value == 1 then
GUI.Enabled = true
end
if val.Value == 0 then
GUI.Enabled = false
end
val.Changed:Connect(function()
if val.Value == 1 then
GUI.Enabled = true
end
if val.Value == 0 then
GUI.Enabled = false
end
end)
local button = script.Parent
local GUI = script.Parent.Parent.Parent
button.MouseButton1Click:Connect(function()
game.StarterPlayer.Value.Value = 0
end)
Yeah, and that's it.
#Conclusion Can somebody help me?

1 comment
well uh, nice troll crashing my studio?