I already asked this in a old post but that wasn’t the main focus of the post. and i’ve done everything else thanks to people here and my own work. but i have no idea how to do this since i’ve been suggested so many things.
I am making a “Homing attack” system similar to the one in the sonic franchise which consists of sonic jumping, homing onto something then being sent to it before jumping up again to chain it if possible.
how would i go around doing the “Being sent to it” part (send a player to a position smoothly (no teleportation) while in mid-air)?
(if you don’t know what i mean, here’s a wiki page on the entire system Homing Attack | Sonic News Network | Fandom )
note: I’m asking for hints / suggestions on how this can be done, not scripts
3 Likes
You can tween their HumanoidRootPart
using TweenService
.
1 Like
i’ll return with results if this works
1 Like
regexman
(reg)
November 6, 2021, 3:46pm
#4
Make sure to anchor the humanoid root part and unanchor when the tween finishes
2 Likes
regexman
(reg)
November 6, 2021, 3:47pm
#6
Yeah, so the player can’t move during tween
2 Likes
same result as last time sadly
1 Like
doing this does move the rootpart, but not the character itself
1 Like
Xacima
(Yui)
November 6, 2021, 3:49pm
#9
Though, instead of SetPrimaryPartCFrame, use PVInstance | Roblox Creator Documentation .
1 Like
regexman
(reg)
November 6, 2021, 3:49pm
#10
Try bodyvelocities, used them before and it worked
1 Like
regexman
(reg)
November 6, 2021, 3:50pm
#11
He wants player to fly to a place, not tekeport
1 Like
Qin2007
(Qin2007)
November 6, 2021, 3:51pm
#12
maybe body movers
i am not known with body movers
1 Like
regexman
(reg)
November 6, 2021, 3:52pm
#13
That’s what I said (30 ch ars)
1 Like
is pivot to a transition to the target location or is it teleporting players to the position?
1 Like
Xacima
(Yui)
November 6, 2021, 3:55pm
#15
No, it will teleport the player.
But, it will only teleport them when the CFrameValue changes, which might be a smooth transition.
Just something I found though, test it out.
1 Like
it gave the exact result as using Tweens
1 Like
Xacima
(Yui)
November 6, 2021, 4:08pm
#17
Then this should help you:
Unfortunately the TweenService will only touch individual instances. And to move a model, you can’t just set the primary part’s CFrame. Instead, you have to go through the SetPrimaryPartCFrame() method on the model, which will move all the other parts relative to the primary part for you.
Personally I use a custom Tween object that I created, which lets me pass a callback function, which allows me to do custom tweens.
1 Like
a question that may be slightly off-topic, but is the primarypart of a character meant to be it’s head? i thought it was the HRP…
Xacima
(Yui)
November 6, 2021, 4:12pm
#19
weird, whenever i join the game my primarypart is the head and not the humanoidrootpart