Hi! I'm trying to make a FPS system and my character will simply flings out of existence. My arms look like this If i change the HumanoidRootPart then the issue is fixed but my animations become broken. Any help?
localscript that adds the arms:
local plr = game:GetService("Players").LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local cam = game.Workspace:WaitForChild("Camera") local arms = game.ReplicatedStorage:WaitForChild("Arms") local rs = game:GetService("RunService") local uis = game:GetService("UserInputService") local plrarms = arms:Clone() plrarms.Parent = workspace plrarms.Name = char.Name .. "_Arms" plrarms:SetPrimaryPartCFrame(cam.CFrame) rs.RenderStepped:Connect(function() plrarms:SetPrimaryPartCFrame(cam.CFrame) end) task.wait() if char:FindFirstChild("Shirt") then plrarms.Shirt.ShirtTemplate = char.Shirt.ShirtTemplate else plrarms.Shirt.ShirtTemplate = "rbxassetid://4699552332" end
localscript that animates it:
local plr = game:GetService("Players").LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local cam = game.Workspace:WaitForChild("Camera") local arms = workspace:WaitForChild(char.Name .. "_Arms") local animi = script.Idle local animr = script.Reload local animf = script.Fire local track track = arms.Humanoid:LoadAnimation(animi) track.Priority = Enum.AnimationPriority.Action track.Looped = true track:Play()
can someone help?
Don't play animation on a local script, Play it on a server script
I already fixed this by adding an AnimationController and an Animator inside and renaming HumanoidRootPart. Thanks to everyone who tried to help though!