Tweening rig humanoid root part causes floating in mid-air

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make it so when I unanchor the rig after tweening it doesn’t break
  2. What is the issue? Include screenshots / videos if possible!
    Rig floating in mid air after unanchoring
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Not sure how to fix no one had same problem
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
-- This is an example Lua code block

1 Like

Cool effect!
Please include your script though.
What does the script use to move the other player up?

1 Like

Did you tween the person to the humanoid root part position? turns out character piviot is at feet (because roblox said so)

thereful do

position - vector3.yaxis*hipheight*2
1 Like

tweenservice is used to move character up, its stated in the title

1 Like

explain this please, I can’t comprehend

1 Like

I was under the assumption that moving up was unintentional. Evidently I was wrong.

To un- move up, did we tween the model as a whole, or did we tween only parts in the model? Did we tween the hipheight of the humanoid to move up? if so set it back.

1 Like

tweened the humanoid root part

1 Like

Maybe instead do model:piviotTo()

1 Like

how does that work? provide an example

I am aware of the fact that you could not, tween models, you could however, tween CFrame values
thereful we do

local cframevalue = Instance.new("CFrameValue")
local goal = {}
goal.Value = up -- your desired tween result
local tween = TweenService:Create(cframevalue,TweenInfo.new(0.3),goal)
tween:Play()
local tweenconnection			
tweenconnection = cframevalue.changed:Connect(function(value)
    therperosn:PiviotTo(value)
end)
tween.Completed:Connect(function()
    tweenconnection:Disconnect() -- prevents memory leak
end)
1 Like
goal.Value = CFrame.new(0, 5, 0)
TweenService:Create(cframevalue,TweenInfo.new(0.3),goal):Play()

unable to cast to dictionary

error on which line? the line with tweenservicecreate?

1 Like

yes, that line is the one that got the bug

1 Like

try like this to know exzact argument

local tween  = TweenService:Create(
	cframevalue ,
	TweenInfo.new(--[[stuff here]]), 
	{Value = CFrame.new(0, 5,0)}
)

doesn’t do anything since there is no tweening of an actual thing

yes you do tween:Play() in the next line

Pivotto not working for some reason, pivotto not valid member of the model

it is :PiviotTo()

Enemy:PiviotTo(value) not working not valid member of workpsace.rig

1 Like

well the how was I supposed to know your data structure

didn’t you say it yourself you should do wrokspace.rig:PiviotTo(value) ?

1 Like