GetPlayerFromCharacter not working?
2 | handle = tool:WaitForChild( 'Handle' ) |
3 | event = tool:WaitForChild( 'RemoteEvent' ) |
9 | player = game.Players:GetPlayerfromCharacter(character) |
that's the chunk of code I'm having issues with
I keep getting this error:
1 | 18 : 17 : 33.809 - GetPlayerfromCharacter is not a valid member of Players |
2 | 18 : 17 : 33.810 - Script 'Players.Player1.Backpack.Black.Script' , Line 9 |
3 | 18 : 17 : 33.811 - Stack End |
And I typed this script out while watching one of stickmasterluke's videos on how to make a custom sword. I checked 20 times, and it's still the same as in the video, yet he has no errors.