Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Part W/ClickDetector Help?

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

2 comments

0

First off, make it readable Use code block.

0

mb i tried Lol

1 answer

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.

1 comment

0

Still Didnt Become Visible

This discussion is preserved as it was. New answers, comments, and votes are closed.