#Help with applying linearvelocity

70 messages · Page 1 of 1 (latest)

unborn jungle
#

also a note: this creates a memory leak since it creates an attachment and doesn't remove it

unborn jungle
#

check if a part in the assembly is anchored

dark valve
#

nope its not

unborn jungle
#

is AssemblyMass inf?

#

ok wait

dark valve
#

wth is assembily mass

unborn jungle
dark valve
#

maxforce?

unborn jungle
#

no part's assemblymass

dark valve
#

nah

#

its 5,6

unborn jungle
#

if power is 0 or "Derection" is vector3 zero

dark valve
#

yuh?

unborn jungle
#

it will be 0 or NaN

#

since unit of vector3.zero is NaN

#

check what the arguments are

#

so if you lift it up in air it should be not moving

dark valve
#

what exactly do you mean

unborn jungle
#

what the arguments are to the function?

pure kettleBOT
#

studio** You are now Level 9! **studio

dark valve
unborn jungle
#

oh

#

can you do a print statement in the keydown bind?

dark valve
#

dw the keydown works

unborn jungle
#

oh

#

no idea then

#

i have replicated the addvelocity function behavior and it works for me

dark valve
#

send ur script

#

lemme see it

#

and ima compare it

unborn jungle
#

it is the same

dark valve
#

my roblox studio is tweaking ig

unborn jungle
#

ohh wait nvm you said the attachment and linearvelocity are being created

dark valve
#

yea

#

but it aint movin

unborn jungle
#

also last thing to make sure

#

the active property of linearvelocity is true?

dark valve
#

nah

#

lemme turn it on

unborn jungle
#

oh

#

you cant

#

active determines if the velocity is even being applied

#

hmm

dark valve
#

oh

unborn jungle
#

can you send a screenshot of linearvelocity properties

dark valve
#

ight

#

wait a sec whys the vector velocity 0

unborn jungle
#

oh

#

so nothing is set

#

this is weird

dark valve
#

wait nvm

#

it its 3

#

but still not movin

unborn jungle
#

can you send it then

#

the properties

dark valve
#

wth it started moving but it took like a min for it to start

unborn jungle
dark valve
#

nope

unborn jungle
#

because all these properties lead to it being active but not if the part is anchored

dark valve
#

this wierd af the part dosent move for like 2 minutes then starts moveing a little bit then stops then actually moves

hexed kiln
#

Just a question

#

How do you add color to some words? (I really need it)

unborn jungle
#

like this

function testFunction(a: number): () -> number
  return coroutine.wrap(function()
    return -a
  end)
end
#

```lua
function testFunction(a: number): () -> number
return coroutine.wrap(function()
return -a
end)
end
```