Since An Roblox Update, The GUIs Used For The Tycoon Are Broken. The "Become Owner" Thing And Buttons Doesn't Disappear (Transparent) Unlike Before. In Studio Mode Everything Works Fine But In Roblox Player It Doesn't. On The Dev Console, It Says That The Error Is On Line 32. There's The Script Bellow And Thanks For Helping :)
local main = script.Parent.Parent.Parent local owner = main.Owner local tn = main.Parent.TycoonName local debounce = false script.Parent.Touched:connect(function(hit) if (debounce == false) then debounce = true local h = hit.Parent:FindFirstChild("Humanoid") if (h ~= nil) then local p = game.Players:FindFirstChild(hit.Parent.Name) if (p ~= nil) then if p.Tycoon.Value == true then for GuiReveal = 1, 0, -0.05 do p.PlayerGui.TycoonGui.Notice.Text = "You already have a "..tn.Value.."!" p.PlayerGui.TycoonGui.Notice:TweenPosition(UDim2.new(0, 0, 0, 50), Out, Quad, 0.5, false) p.PlayerGui.TycoonGui.Notice.Transparency = GuiReveal wait() end wait(3) for GuiReveal = 0, 1, 0.15 do p.PlayerGui.TycoonGui.Notice:TweenPosition(UDim2.new(-1.2, 0, 0, 50), Out, Quad, 0.5, false) p.PlayerGui.TycoonGui.Notice.Transparency = GuiReveal wait() end wait(2) debounce = false return end owner.Value = p.Name p.Tycoon.Value = true for GuiReveal = 1, 0, -0.05 do p.PlayerGui.TycoonGui.Notice.Text = "You now own a "..tn.Value..", "..p.Name.."!" p.PlayerGui.TycoonGui.Notice:TweenPosition(UDim2.new(0, 0, 0, 50), Out, Quad, 0.5, false) p.PlayerGui.TycoonGui.Notice.Transparency = GuiReveal wait() end main.Sign:remove() wait(3) for GuiReveal = 0, 1, 0.15 do p.PlayerGui.TycoonGui.Notice:TweenPosition(UDim2.new(-1.2, 0, 0, 50), Out, Quad, 0.5, false) p.PlayerGui.TycoonGui.Notice.Transparency = GuiReveal wait() end for i = 0.4, 1, 0.02 do wait() script.Parent.Transparency = i end script.Parent.Parent:remove() end end wait(2) debounce = false end end)
Try updating the script. It might help! Try testing each line seeing if they all work, if a line doesn't work, try to update it to fix it! Hope this helps!