For Some Reason this script only works once, please someone help me this is very urgent
local touchPart = script.Parent
touchPart.Touched:Connect(function(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if player then
player.PlayerGui:WaitForChild("DoubleJumpShop").Frame.Visible = true
end
end)

1 comment
What are you trying to do exactly? The script works fine. Are you trying to "close" the Frame when the player stop touching the part?