Basically, I'm making a game and am learning scripting a bit still. Now I never really have much experience with FE but know a bit about it. So What I want to do is simply make it where you click the part and the GUI appears. Thing is it works fine in the studio with a server test, but when i close it and click it again it doesn't work. Any ways to fix this or something that may help?
Layout: https://i.imgur.com/AdQdPcc.png
Script
script.Parent.Clicky.MouseClick:connect(function(plr)
local Shop = script.Parent.Shop
print("Went through")
if plr.PlayerGui:FindFirstChild("Shop") == nil then
local Cloned = Shop:Clone()
Cloned.Parent = plr.PlayerGui
end
end)

1 comment
Read this and the one that Sharkeedub posted going to try to script it now Hopefully I learned enought!