I wrote a script to create fake hands for the player. How do I use them? For example, they should look where the mouse is moving and so on.
--< Variables
Debounce = false
--<Functions
--<Events
game.Workspace.ChildAdded:connect(function(Player)
local Humanoid = Player:FindFirstChild("Humanoid")
if Humanoid then
if not Debounce then
Debounce = true
--< Arm Storage Create
local ArmStorage = workspace:FindFirstChild("ArmStorage")
if not ArmStorage then
local Model = Instance.new("Model",workspace)
Model.Name = "ArmStorage"
print(Model.Name.." was Loaded")
end
wait(1)
--<Generate Player Arms
print("Character was Loaded. Name: "..Player.Name)
local FakeArmL = Player["Left Arm"]:Clone()
FakeArmL.Name = "FakeArmL"
FakeArmL.Parent = workspace.ArmStorage
FakeArmL.CFrame = CFrame.new(Player["Left Arm"].Position)
FakeArmL.CanCollide = false
local Weld1 = Instance.new("Weld",FakeArmL)
Weld1.Part1 = Player["Left Arm"]
Weld1.Part0 = FakeArmL
Player["Left Arm"].Transparency = 1
local FakeArmR = Player["Right Arm"]:Clone()
FakeArmR.Name = "FakeArmR"
FakeArmR.Parent = workspace.ArmStorage
FakeArmR.CFrame = Player["Right Arm"].CFrame
FakeArmR.CanCollide = false
local Weld2 = Instance.new("Weld",FakeArmR)
Weld2.Part1 = Player["Right Arm"]
Weld2.Part0 = FakeArmR
Player["Right Arm"].Transparency = 1
Debounce = false
end
end
end)

3 comments
The problem is that you are not getting the character. So, technically you would do local char = Player.Character. You could also do local char = game.Workspace:FindFirstChild(Player.Name)
You should also change if not ArmStorage then to if ArmStorage == nil then
My script works fine. I need help using these "hands"