the script that i'm making is supposed to clone each body part, however before even starting to code this script the output says "attempt to index local 'Character' (a nil value)"
what is wrong with this script? i've tried multiple solutions with no outcome.
-- transform script
local player = game.Players.LocalPlayer
local mouse = script.Parent.Parent:GetMouse()
local Character = player.Character
local transformed = Instance.new("BoolValue")
transformed.Name = "Transformed"
transformed.Value = false
transformed.Parent = script
-- body parts
local LUarm = Character.LeftUpperArm
local LLarm = Character.LeftLowerArm
local Lhand = Character.LeftHand
local RUarm = Character.RightUpperArm
local RLarm = Character.RightLowerArm
local Rhand = Character.RightHand
local utorso = Character.UpperTorso
local ltorso = Character.LowerTorso
local LUleg = Character.LeftUpperLeg
local LLleg = Character.LeftLowerLeg
local Lfoot = Character.LeftFoot
local RUleg = Character.RightUpperLeg
local RLleg = Character.RightLowerLeg
local Rfoot = Character.RightFoot
local head = Character.Head
local hroot = Character.HumanoidRootPart
local CLUarm = Character.LeftUpperArm:Clone()
local CLLarm = Character.LeftLowerArm:Clone()
local CLhand = Character.LeftHand:Clone()
local CRUarm = Character.RightUpperArm:Clone()
local CRLarm = Character.RightLowerArm:Clone()
local CRhand = Character.RightHand:Clone()
local Cutorso = Character.UpperTorso:Clone()
local Cltorso = Character.LowerTorso:Clone()
local CLUleg = Character.LeftUpperLeg:Clone()
local CLLleg = Character.LeftLowerLeg:Clone()
local CLfoot = Character.LeftFoot:Clone()
local CRUleg = Character.RightUpperLeg:Clone()
local CRLleg = Character.RightLowerLeg:Clone()
local CRfoot = Character.RightFoot:Clone()
local Chead = Character.Head:Clone()
local Chroot = Character.HumanoidRootPart:Clone()

2 comments
Every answer doesn't work. This is amazing.
Check my answer. I have tested it, and its fully functional.