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 5 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 — 5y
0
That's not true at all.... lowercase property names are just deprecated - it does not prevent his code from working. SummerEquinox 643 — 5y
0
ok u try urself WideSteal321 773 — 5y
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 — 5y
View all comments (3 more)
0
told u WideSteal321 773 — 5y
0
You did. I was comparing properties to utilization of the lowercase "parent" - which technically works. My bad. SummerEquinox 643 — 5y
0
lol WideSteal321 773 — 5y

1 answer

Log in to vote
3
Answered by 5 years ago
Edited 5 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 — 5y
0
omg thx now i have 109 rep WideSteal321 773 — 5y
0
yeeet piRadians 297 — 5y
Ad

Answer this question