Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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)
1
Use the lua button provided, and then Copy + Paste your code. Dovydas1118 1495 — 3y
1
^^ Do what he said or we cannot help you this is a mess. Nistrict 44 — 3y
0
i don't know what a lua button is because i am new. dabberpro1 -5 — 3y
1
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. Nckripted 580 — 3y
View all comments (5 more)
0
which section. home model test view or plugins? dabberpro1 -5 — 3y
0
Not IN studio. In this website. Click edit on the question. and then click the lua button, and then copy + paste your code in. Dovydas1118 1495 — 3y
0
oh dabberpro1 -5 — 3y
0
not there dabberpro1 -5 — 3y
0
i did the lua button dabberpro1 -5 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

hi its me

Ad

Answer this question