Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I tween the full character with all the parts? [SOLVED!]

Asked by 4 years ago
Edited 4 years ago

Can anyone tell me how I can tween the full character with the legs and arms IN R15

I tried to tween the HumanoidRootPart but it doesn't take the whole character this is my code: this is a localscript inside startercharacterScripts

local UserInputService = game:GetService("UserInputService")
local myPosition = Vector3.new(0,0,0)
local player = game.Players.LocalPlayer
local character = player.Character
local humanoidRootPart = character:WaitForChild('HumanoidRootPart')
local tweenService = game:GetService("TweenService")

function InputBegin(input,gameProcessedEvent)
    if input.UserInputType == Enum.UserInputType.KeyBoard then
        if input.KeyCode == Enum.KeyCode.L and not gameProcessedEvent then
            tweenService:Create(humanoidRootPart,TweenInfo.new(.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Position = myPosition})Play()
        end
    end
end

UserInputService.InputBegan:Connect(InputBegin)

1 answer

Log in to vote
0
Answered by
compUcomp 417 Moderation Voter
4 years ago

You're missing the third parameter of :Create, the goal properties. That would certainly explain why nothing is happening. Line 10 should be

tweenService:Create(humanoidRootPart,TweenInfo.new(.5,Enum.EasingStyle.Linear,Enum.EasingDirection.Out), { ["CFrame"] = NewCFrameHere }):Play()
0
sorry, but that doessn't help, I forgot to put it, the point is it doesn't move the whole character like if you change its position AnasBahauddin1978 715 — 4y
0
it just moves the invisible humanoidrootpart and the camera AnasBahauddin1978 715 — 4y
0
I think the problem is that you're using Position. I'm pretty sure welds don't work with Position, only CFrame. Use that instead compUcomp 417 — 4y
0
Basically, CFrame.new(myPosition) compUcomp 417 — 4y
0
oh ok Thanks AnasBahauddin1978 715 — 4y
Ad

Answer this question