Bro I just unanchored it and it just dissapeared
Bruh, you used BodyForce
not BodyVelocity
. Delete BodyForce
and do BodyVelocity
and put it in the script. Actually ill add it to the script.
script.Parent.BodyVelocity.Velocity= Vector3.new(-164.98, 0.5, -0.17)
wait(1)
script.Parent.BodyVelocity.Velocity= Vector3.new(-164.98, 0.5, -21.51)
Bro it works but for some reason it just dosen’t goes to the direction i want it to go it just oh my god just watch the vid
robloxapp-20200928-2128211.wmv (1.5 MB)
if it doesn’t go the direction you want it means it works. You are positioning it wrong.
Can u tell me the correct position please?
Uhmmm that depends where the current part position is and where you want to put it.
(Move it position just move the part and copy and paste the position but remove the {}
)
Bro it just keeps moving upward not the position i want it to go
That’s your problem. At least your part is now moving.
Oh yeah I will make it a solution (DONT MIND THIS)
To stop going Upwards you need to change the position before the wait(1)
Still it keeps moving upward i just dont know why this is happening
Id rather do a tween animation of the part moving like
tween = Tweenservice:create(part,Tweenanimation, {position = vector3(val,val,val)})
something like that
Hmmm… Let me check if this works
Uhh… I dont know how to create a tween animation im a beginner sooo can u tell me how to create it
Just use the other one just look up how to position things good luck with your project!
local Tweenservice = game:GetService("TweenService") -- this is the tween service u primaly need
local TweenAnimation = TweenInfo.new(5,Enum.EasingStyle.Linear) -- 5 presents how many seconds the tween plays, Easing style is animation style, you choose Linear because parts move straight and precise so useLinear
local tweenplayer = TweenService:Create(part,TweenAnimation,{ Position = Vector3.new(val,val,val) }) -- part is the part u wanna reference, TweenAnimation is the animation thats gonna play, Position is the part's position after the tween is played
tweenplayer:Play()
tweenplayer.Completed:Wait() -- this waits until the tween is finished but you could change it to wait(number) too
-- this section u can do another set of tweening like upward or downward but I'll finish from here :)
Uhh, theres an example script of tweening hopefully you can understand
Theres the tween animation example, hopefully you can understand what i meant
@Angrybirdcharacter but it just teleports to the position i want it to move straightly to the position