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

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

Asked by 6 years ago
local Brick = script.Parent

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

Brick.transparency = 1
Brick.cancollide = false


0
Lua is cAsE seNSiTivE. transparency should start with a capital 'T' and both 'c's in cancollide should also be capital 'C's GoldAngelInDisguise 297 — 6y
0
That's not true at all.... lowercase property names are just deprecated - it does not prevent his code from working. SummerEquinox 643 — 6y
0
ok u try urself WideSteal321 773 — 6y
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. SummerEquinox 643 — 6y
View all comments (3 more)
0
told u WideSteal321 773 — 6y
0
You did. I was comparing properties to utilization of the lowercase "parent" - which technically works. My bad. SummerEquinox 643 — 6y
0
lol WideSteal321 773 — 6y

1 answer

Log in to vote
3
Answered by 6 years ago
Edited 6 years ago

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.

0
wow stupid mistake lol thx andreww1234 4 — 6y
0
omg thx now i have 109 rep WideSteal321 773 — 6y
0
yeeet piRadians 297 — 6y
Ad

Answer this question