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

How to make this script that uncollides a brick (to release an object) work?

Asked by 6 years ago
function while wait( 60 )do

    script.Parent.Parent.TargetBrick.Anchored= false

end

The error is in "while"

1 answer

Log in to vote
0
Answered by 6 years ago

A couple of things are wrong with this: 1: you do not need the function 2: it would be CanCollide = false not Anchored = false

 while wait( 60 )do

    script.Parent.Parent.TargetBrick.CanCollide= false

end

Just a question, why do you want this to loop without making the brick re-collidable?

0
I made another script that regenerates this script after 120 seconds. thank you! buildbanner 2 — 6y
Ad

Answer this question