local plr = game.Players.LocalPlayer local PartShop = game.StarterGui.KrakenShop local PartNpc = script.Parent local plrGui = plr.PlayerGui local ShopP = plrGui.KrakenShop.Kshop
function OnClicked(playerwhoclicked) local gui = PartShop:Clone() gui.Parent = plrGui local PShop = gui.Kshop PShop.Visible = true end script.Parent:connect(OnClicked)
Not Going Visible help
You forgot to write "ClickDetector.MouseClick" before :connect
local plr = game.Players.LocalPlayer local PartShop = game.StarterGui.KrakenShop local PartNpc = script.Parent local plrGui = plr.PlayerGui local ShopP = plrGui.KrakenShop.Kshop function OnClicked(playerwhoclicked) local gui = PartShop:Clone() gui.Parent = plrGui local PShop = gui.Kshop PShop.Visible = true end script.Parent.ClickDetector.MouseClick:connect(OnClicked)
Try to post your code inside the code block next time.