my script is a script that goes in a textbutton and when you click on that button it pops up a gui.
heres my script:
local shopgui = Workspace.ShopGui local player = game.Players.LocalPlayer script.Parent.MouseButton1Click:connect(function() shopgui:Clone().Parent = player.PlayerGui end)
Its not showing everything. I need help
Make sure this is in a local script.
local shopgui = Workspace.ShopGui:Clone() local player = game.Players.LocalPlayer local playergui = player.PlayerGui script.Parent.MouseButton1Click:Connect(function() if playergui:FindFirstChild("ShopGui") ~= nil then--this makes sure you dont have duplicates wait(0) else shopgui.Parent = playergui end)
without the if statement
local shopgui = Workspace.ShopGui:Clone() local player = game.Players.LocalPlayer local playergui = player.PlayerGui script.Parent.MouseButton1Click:Connect(function() shopgui.Parent = playergui end)