"Head is not a valid member of model." Fix?
01 | local LocalPlayer = game:GetService( "Players" ).LocalPlayer |
02 | local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait() |
04 | local Orb = Instance.new( "Part" , Character) |
05 | local Decal = Instance.new( "Decal" , Orb) |
09 | Orb.BrickColor = BrickColor.new( "Pearl" ) |
10 | Orb.Size = Vector 3. new( 2.8 , 4 , 2.8 ) |
13 | local Weld = Instance.new( "Weld" , Orb) |
14 | Weld.Part 0 = Character.Head |
16 | Weld.C 1 = CFrame.new( 2 , 2.4 , 0 ) |
The error occurred on line 14, I do not know how I can fix this problem.
Also, this script works on play in studio but not on a server.