I only know a teleport script. I never knew how to make it slide and I don't know where to start. Help? At least start me off?
This can easily be accomplished with a BodyPosition!! It will smoothly move your part to a desired Position! (Vector3 of course!) Here is a simple script in which you can modify yourself. I put notes to give you a better understanding of what each property does!
1 | --The Following properties are all defaults! Modify to your will! |
2 | --Place the script into the part you want to slide! |
3 | bp = Instance.new( "BodyPosition" ) --Creates a new BodyPosition! |
4 | bp.Parent = script.Parent --this is where the BodyPosition will be stored! |
5 | bp.position = Vector 3. new( 0 , 10 , 0 ) -- change this to the position you want the part to slide to! |
6 | bp.maxForce = Vector 3. new( 4000 , 4000 , 4000 ) --a Limit to how much power it should have! |
7 | bp.D = 1250 --How much dampening the object has before it reaches the desired position |
8 | bp.P = 10000 --Sets how aggresive the part will try to get to the position! |
Hope this helps!