I want to achieve that these Fake Hands will replicate the movement of the actual player’s hands.
Why? So I can just animate hands animations, and it will replicate.
This is the script:
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local RenderStepped = game:GetService("RunService").RenderStepped
local ViewModel = game:GetService("ReplicatedStorage").ViewModel:Clone()
local ViewModelRoot = ViewModel.PrimaryPart
ViewModel.Parent = workspace
RenderStepped:Connect(function ()
ViewModelRoot.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0, -1.5, 0)
-- Hardcoded logic test
ViewModel.LeftUpperArm["LeftShoulder"].Transform = Character.LeftUpperArm["LeftShoulder"].Transform
ViewModel.RightUpperArm["RightShoulder"].Transform = Character.RightUpperArm["RightShoulder"].Transform
end)
Problems are:
It doesn’t show the hands, and the hands are pushing the player forward.
Thanks for response.
Parent the viewmodel to the camera(This keeps the local workspace clean) and CFrame the viewmodel’s main root part on the right position of the camera within the renderstepped. Regarding the fix of the hands pushing the user, turn CanCollide off of all the parts within the viewmodel.