So I’m trying to tween each of a players body parts at different times to a location and scale them down a bit. However, tweening the head is not working, as it just stays put and the script says that it tweened. I tried setting the primary part of the player to the HRP upon their joining, but this still does not work, even though all of the other parts tween properly. How would I fix this?
You could start by showing us the code you’re using to try do accomplish this
local tweenInfo = TweenInfo.new(1.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local table = {}
table.Position = Vector3.new(103, 42, 302.2)
table.Size = Vector3.new(0, 0, 0)
local head = TweenService:Create(character.Head, tweenInfo, table)
local torso = TweenService:Create(character.Torso, tweenInfo, table)
local la = TweenService:Create(character["Left Arm"], tweenInfo, table)
local ra = TweenService:Create(character["Right Arm"], tweenInfo, table)
local ll = TweenService:Create(character["Left Leg"], tweenInfo, table)
local rl = TweenService:Create(character["Right Leg"], tweenInfo, table)
head:Play()
wait(1.3)
torso:Play()
la:Play()
ra:Play()
wait(1.3)
ll:Play()
rl:Play()
I think the issue could be that you set the size to 0.
table.Size = Vector3.new(0.1, 0.1, 0.1)
Unfortunately, this was not the issue. All of the other parts adapted to it but the head still stayed in the same position
Did you check for any constraints on the head? Is the head anchored? any welds? Do you use motor6ds for anything? like a camera system.
The head isn’t anchored, but all of the parts are jointed by motor6ds, no welds. And what do you mean by a camera system?
Well, you could be causing this issue with a camera system that sets constraints on the Roblox head.
but I honestly don’t know why your issue is happening.
I don’t know if this is because of the dev forum or if it’s the way you typed out the quotations, but it could very well be the quotations causing this. try this
local head = TweenService:Create(character.Head, tweenInfo, table)
local torso = TweenService:Create(character.Torso, tweenInfo, table)
local la = TweenService:Create(character[“Left Arm”], tweenInfo, table)
local ra = TweenService:Create(character[“Right Arm”], tweenInfo, table)
local ll = TweenService:Create(character[“Left Leg”], tweenInfo, table)
local rl = TweenService:Create(character[“Right Leg”], tweenInfo, table)
tween the motor6d C0 neck inside of torso instead of the head directly
How would I tween the size of this? The position worked, but it threw an error when I tried to add the size.
Found a slightly better way to do this., I just made a basic rig, put it into replicated storage, and then when I wanted the parts tweened, I made everything of the player’s original body transparent, cloned the rig and parented the characters clothes, body colors and character meshes to it, put the rig in the workspace where the player was, and tweened its body parts, which ended up working as I wanted it to. I also set the camera subject to the rig instead of the actual player.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.