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

1 answer

Log in to vote
4
Answered by 9 days ago
Edited 9 days 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 — 9d
0
omg thx now i have 109 rep WideSteal321 309 — 9d
0
yeeet pellm 245 — 9d
Ad

Answer this question