This is a script I use
local Players = game:GetService("Players")
local Character = Players.LocalPlayer.CharacterAdded:wait()
local tycoonDoors = {
game.Workspace["Zednov's Tycoon Kit"].Tycoons["HackerTycoon1"].Entrance["Touch to claim!"].Head,
-- game.Workspace["Zednov's Tycoon Kit"].Tycoons["Blue Cafe Tycoon"].Entrance["Touch to claim!"].Head, -- EXAMPLE
}
local function createArrows()
for i,v in pairs(tycoonDoors) do
local beam = Instance.new("Beam")
-- SETTINGS --
beam.Parent = v
beam.Color = ColorSequence.new(Color3.fromRGB(0,0,0)) -- Color
beam.Texture = "rbxassetid://5886559421" -- Beam texture
beam.TextureLength = 7
beam.TextureMode = "Static"
beam.TextureSpeed = 1
beam.FaceCamera = true
--
local attachmentPlayer = Instance.new("Attachment")
attachmentPlayer.Name = "TycoonArrow"
attachmentPlayer.Parent = Character:WaitForChild("HumanoidRootPart")
beam.Attachment1 = v.Attachment
beam.Attachment0 = attachmentPlayer
end
end
createArrows()
local function disableArrows()
for i,v in pairs(tycoonDoors) do -- Loops through the doors table
v.Beam.Enabled = false -- Makes the beam not enabled
end
end
local function enableArrows()
for i,v in pairs(tycoonDoors) do -- Loops through the doors table
--if v.Parent.Parent.Parent.Owner.Value == nil then -- dont enable
v.Beam.Enabled = true -- Makes the beam enabled
end
end
local function CheckIfBeam()
if Players.LocalPlayer.Team.Name == "For Hire" then -- Change "For Hire" if its different for you.
enableArrows()
else
disableArrows()
end
end
-----
wait(1)
while wait(1) do
CheckIfBeam()
end
--end
When someone claims tycoon it still shows GUI, can anyone help? (I am using zed tycoon Kit)