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

How do you make a parts limit script? And where do i put it?

Im trying to make a game that is made of survival with build tools and i dont know how to make a part limit (a part limit script that deletes the parts when its over the part limit) and says to a player but that player is the only one sees it and says "you ran out of blocks!"

Im new to scripting so i dont know how to do it.

1 answer

✓ Accepted answer

Just make a value inside the script


local blocks = 10

local popupui = -- Reference 'Ran out of block' text here

script.Parent.Activated:Connect(function()
	if blocks <= 0 then
		popupui.Visible = true
		wait(1)
		popupui.Visible = false
	else
		-- the place blocks section
		
		blocks -= 1
	end

end)

1 comment

0

thx

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