Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i create a magnetic block?

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

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.