How can i fix this welding script that don't work?
Asked by
5 years ago Edited 5 years ago
I made this script a while ago, and it's supposed to SIMPLY create a part and weld it to player's left hand. The thing is that i have no idea on how to fix the error and i already tried a lot of solutions that didn't work. Here's the script:
Script:
1 | game.Players.PlayerAdded:Connect( function (player) |
3 | local part = Instance.new( "Part" , workspace) |
4 | local weld = Instance.new( "Weld" , part) |
6 | weld.Part 1 = game.Workspace.player [ "LeftHand" ] |
7 | weld.C 0 = CFrame.new( 0 , 0 , 0 ) *CFrame.new( 0 , 0 , 0 ) |
Error:
player is not a valid member of Workspace
I would be glad if anyone help, because i've been trying for a long time and i keep getting errors.
:(
PS: Everything except for that error works because i already tested with my own username.