How do i make the part when they have enough money to pay for it and go in?
Asked by
3 years ago Edited 3 years ago
local rc = 50000
local debounce = true
if hit.Parent:FindFirstChild("Humanoid")then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player.leaderstats.Money.Value >= rc then
if debounce then
debounce = false
script.Parent.Transparency = 0.5
script.Parent.CanCollide = false
if rc.Value <=rc then
script.Parent.Transparency= 0.15
script.Parent.CanCollide = true
end
end
end
end
end)