I want the FPS arms to smoothly slide into the correct position, but they seem to just teleport into the spot, which makes the arms look ugly.
This is my script that i use -
local Camera = workspace.CurrentCamera
local RunService = game:GetService("RunService")
local CharacterBodyColor = Character:WaitForChild("Body Colors")
local ArmBodyColor = Arms:WaitForChild("Body Colors")
local Humanoid = Character:FindFirstChildOfClass("Humanoid")
local Clothing = Character:FindFirstChild("Shirt"):Clone()
local CanTrack = true
local TS = game:GetService("TweenService")
local Info = TweenInfo.new(0.1)
Arms.Name = "Arms"
local function assignArms()
if CanTrack == true then
Arms:SetPrimaryPartCFrame(Camera.CFrame * CFrame.new(0,-1.2,0.3))
end
end
local function deleteArms()
Arms:Destroy()
CanTrack = false
end
local function adjustArms()
ArmBodyColor.LeftArmColor3 = CharacterBodyColor.LeftArmColor3
ArmBodyColor.RightArmColor3 = CharacterBodyColor.RightArmColor3
Clothing.Parent = Arms
end
Arms.Parent = Camera
adjustArms()
Humanoid.Died:Connect(deleteArms)
RunService.Heartbeat:Connect(assignArms)
Note - I know that i can use RenderStepped, but that wont give the sliding effect to the arms
