How do I tween the full character with all the parts? [SOLVED!]
Asked by
5 years ago Edited 5 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
01 | local UserInputService = game:GetService( "UserInputService" ) |
02 | local myPosition = Vector 3. new( 0 , 0 , 0 ) |
03 | local player = game.Players.LocalPlayer |
04 | local character = player.Character |
05 | local humanoidRootPart = character:WaitForChild( 'HumanoidRootPart' ) |
06 | local tweenService = game:GetService( "TweenService" ) |
08 | function InputBegin(input,gameProcessedEvent) |
09 | if input.UserInputType = = Enum.UserInputType.KeyBoard then |
10 | if input.KeyCode = = Enum.KeyCode.L and not gameProcessedEvent then |
11 | tweenService:Create(humanoidRootPart,TweenInfo.new(. 5 ,Enum.EasingStyle.Linear,Enum.EasingDirection.Out), { Position = myPosition } )Play() |
16 | UserInputService.InputBegan:Connect(InputBegin) |