Ad
Still have questions? Join our Discord server and get real time help.
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 months 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 239 — 5mo
0
That's not true at all.... lowercase property names are just deprecated - it does not prevent his code from working. SummerEquinox 623 — 5mo
0
ok u try urself WideSteal321 445 — 5mo
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 623 — 5mo
View all comments (3 more)
0
told u WideSteal321 445 — 5mo
0
You did. I was comparing properties to utilization of the lowercase "parent" - which technically works. My bad. SummerEquinox 623 — 5mo
0
lol WideSteal321 445 — 5mo

1 answer

Log in to vote
3
Answered by 5 months ago
Edited 5 months 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 — 5mo
0
omg thx now i have 109 rep WideSteal321 445 — 5mo
0
yeeet piRadians 244 — 5mo
Ad

Answer this question