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

i need help. my plan is to have the block disappeared when it moves. it wont work at all?

local Brick = script.Parent

while Brick.Velocity.Magnitude < 0.1 do
	wait()
end

Brick.transparency = 1
Brick.cancollide = false


7 comments

0

Lua is cAsE seNSiTivE. transparency should start with a capital 'T' and both 'c's in cancollide should also be capital 'C's

0

That's not true at all.... lowercase property names are just deprecated - it does not prevent his code from working.

0

ok u try urself

0

Ah -- my bad then. I thought the issue lied in that he was running an infinite loop and property changes in seemingly the same thread. Learn something new every day.

0

told u

0

You did. I was comparing properties to utilization of the lowercase "parent" - which technically works. My bad.

0

lol

1 answer

✓ Accepted answer

Lua is case sensitive I have fixed every case where you have used it incorrectly:
see lines 7 and 8.

local Brick = script.Parent

while Brick.Velocity.Magnitude < 0.1 do
    wait()
end

Brick.Transparency = 1 --capital t.
Brick.CanCollide = false --capital c's.

This might help you in the near future.

3 comments

0

wow stupid mistake lol thx

0

omg thx now i have 109 rep

0

yeeet

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