Hi! I'm trying to figure out how to make a GUI visible (only to that player) when a player claims their respective tycoon. The GUI is meant to be visible after they claim it so they are able to change the color of certain parts to their liking. Here's my script, I can't seem to find out how to piece it together.
local lasers = script.Parent.Parent.Lasers.pipe
local green = script.Parent.Green
local colorgui = script.ColorGui
local boothname = script.Parent.Parent.Parent.Booth.Sign.SurfaceGui.SIGN
script.Parent.Head.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player ~= nil then
local PlayerStats = game.ServerStorage.PlayerMoney:FindFirstChild(player.Name)
if PlayerStats ~= nil then
local ownstycoon = PlayerStats:FindFirstChild("OwnsTycoon")
if ownstycoon ~= nil then
if ownstycoon.Value == nil then
if script.Parent.Parent.Parent.Owner.Value == nil then
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Parent.Humanoid.Health > 0 then
script.Parent.Parent.Parent.Owner.Value = player
ownstycoon.Value = script.Parent.Parent.Parent
script.Parent.Name = " "
boothname.Text = player.Name.."'s Booth"
colorgui.Button.Visible = true
green.BrickColor = BrickColor.new("Bright green")
lasers.Transparency = .2
script.Parent.Head.Transparency = 1
script.Parent.Head.CanCollide = false
player.TeamColor = script.Parent.Parent.Parent.TeamColor.Value
end
end
end
end
end
end
end
end)

1 comment
Assuming 'colorgui' is the Gui you're wanting the player to see. Just clone it and parent it to their PlayerGui.