Hi there.
I’m getting this error, and I’m not sure how to fix it:
Unable to cast Instance to token.
The following is my script. I’m trying to replace my character hands with a blade.
local Players = game:GetService("Players")
local LH = game.Workspace.LeftHand
local LA = game.Workspace.LeftLowerArm
local RH = game.Workspace.RightHand
local RA = game.Workspace.RightLowerArm
game.Players.PlayerAdded:Connect(function(Plr)
Plr.CharacterAdded:Connect(function(C)
local Player = Players:GetPlayerFromCharacter(C)
local LeftHand = C:FindFirstChild("LeftHand")
local Humanoid = Player.Character.Humanoid
Humanoid:ReplaceBodyPartR15(LeftHand,LH)
end)
end)
I’ve actually been struggling with replacing humanoid parts for awhile now, so any help would be greatly appreciated ![]()