Hi,
My current script is for tweening the humanoidrootpart but the avatar does not move along with it. I’m sure the humanoidrootpart is moving because the camera moves with it.
Can someone please help?
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidrootpart = character:WaitForChild("HumanoidRootPart")
humanoidrootpart.Anchored = true
UIS.InputBegan:Connect(function(input, GPE)
if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.Up then -- Making a if statement to ask if the players input is == to input
local info = TweenInfo.new(0.5, Enum.EasingStyle.Circular, Enum.EasingDirection.In, 0, false, 0)
local Animation = TweenService:Create(humanoidrootpart, info, {Position = (CFrame.new(humanoidrootpart.CFrame.Position)*CFrame.new(0,0,6)).Position})
Animation:Play()
end
end)
Sincerely,
-coolguyweir