Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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()

5 comments

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

0

it just moves the invisible humanoidrootpart and the camera

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

0

Basically, CFrame.new(myPosition)

0

oh ok Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.