#Shop GUI only opens once. Print statement works. This is a ServerScript inside a part in Workspace

1 messages · Page 1 of 1 (latest)

dawn wagon
#

``local trigger = script.Parent
local shop = trigger.Parent
local noob = shop.Noob

trigger.Touched:Connect(function(hit)
if hit.Parent then
if hit.Parent:FindFirstChild("Humanoid") then
local plr = game.Players:FindFirstChild(hit.Parent.Name)
local humanoid = plr:FindFirstChild("Humanoid")
print(plr.Name .. " has opened the Shop")
plr.PlayerGui.ShopUI.ShopGui.Enabled = true

    else
        return
    end

end

end)``

#

It opens once and then after closing it with a button and going back into the trigger zone, it wont open anymore

grim bronze
#

Why don't u open it locally?

dawn wagon
#

yea i suppose that makes a lot more sense

#

i just wanted to see if it would be possible with serverscript

#

thanks

tiny iron
toxic moth
#

whys u opening from server