Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make the part when they have enough money to pay for it and go in?

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)

9 comments

1

Use the lua button provided, and then Copy + Paste your code.

1

^^ Do what he said or we cannot help you this is a mess.

0

i don't know what a lua button is because i am new.

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.

0

which section. home model test view or plugins?

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.

0

oh

0

not there

0

i did the lua button

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.