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

How do i create a magnetic block?

Asked by 9 years ago

I'm currently trying to create a vent, that pulls you slowly towards it. i didn't want to use a conveyor belt. because that was the easy way to do it. i want to make a script that does the same thing like a conveyor belt. except. the part pulls you to it by a certain radius of studs. what script, would that be?

edit two : answer below me

i researched the site you gave me. but im still confused. i can get 2 lines of that script. but how do i get the player to use magnit to get to the block. get you edit your response to help me on this script?

1 answer

Log in to vote
2
Answered by
DevWork 80
9 years ago

You would use Magnitude to figure out the distance between the Player and the vent. Then, you'd have a while loop that would add a certain number to their Torso's player if the person is within sight of the vent.

Ad

Answer this question