local door = game.Workspace.Door1
local surfacegui = door.SurfaceGui.TextLabel
local plr = game.Players.LocalPlayer
door.Touched:Connect(function(touch)
if touch.Parent:FindFirstChild("Humanoid") then
if plr.leaderstats.Throws.Value <= 99 then
print("Player Does Not Have Enough")
door.Transparency = 0.5
door.CanCollide = true
surfacegui.Visible = true
else
if plr.leaderstats.Throws.Value >= 99 then
plr.doors.DoorsOpened.Value = plr.doors.DoorsOpened.Value +1
if plr.doors.DoorsOpened.Value == 1 then
door.Transparency = 1
door.CanCollide = false
surfacegui.Visible = false
end
end
end
end
end)
Idk why? Maybe i need a debounce for it to make it wait like a LOT?

2 comments
do you know how to make it where you lose 100 Throws value?
Throws.Value = (Throws.Value - 100) ?