i can’t really find any videos online about it so i came here, im trying to clear debris for 1000 points for example, if someone can help with the coding that would be great
You could use multiple methods. You could use Proximity Prompts | Roblox Creator Documentation to initiate the clearing of the debris, or check that they have enough money. The first, most obvious method of clearing is to destroy the parts blocking the path.
part:Destroy()
Otherwise you could set the part/parts to transparent and can collide to false.
part.Transparency = 1
part.CanCollide = false
-- or if it's a model
for _,v in pairs (model:GetChildren()) do
v.Transparency = 1
v.CanCollide = false
end
1 Like