Here is my script which opens a gui when i step on a part:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players:GetPlayerFromCharacter(hit.Parent:FindFirstChild("Humanoid").Parent).PlayerGui.shop.Enabled = true
end
end)
but when i press the exit button
script.Parent.MouseButton1Click:connect(function()
script.Parent.Parent.Parent.Enabled = false
end)
then when i step on the part again the gui doesnt open, can anyone help?
(on the first script i didnt just skip a bunch of stuff its just cut off for some reason. just press view source code)
