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)
COMMUNITY QUESTION
How do i make the part when they have enough money to pay for it and go in?
1 answer
hi its me
This discussion is preserved as it was. New answers, comments, and votes are closed.

9 comments
Use the lua button provided, and then Copy + Paste your code.
^^ Do what he said or we cannot help you this is a mess.
i don't know what a lua button is because i am new.
There is a lua button on the top bar when creating a question. This is a blue circle with the words lua on it. Click on that and move your code inside the lines.
which section. home model test view or plugins?
Not IN studio. In this website. Click edit on the question. and then click the lua button, and then copy + paste your code in.
oh
not there
i did the lua button