Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

FireClient: player argument must be a Player object?

Asked by 5 years ago

Error Is On Line 171,

FireClient: player argument must be a Player object

Script 'Players.Jomeliter.Backpack.Punch.Server', Line 171

The Idle animation is constantly playing and doesn't stop!?

Server Script

001local Tool = script.Parent
002local Remote = Tool:WaitForChild("Remote")
003local Handle = Tool:WaitForChild("Handle")
004local Mesh = Handle:WaitForChild("Mesh")
005 
006 
007 
008local Equipping = false
009local Grip = nil
010 
011local StraightMeshData = "http://www.roblox.com/asset/?id=193827643"
012local StraightGripPos = Vector3.new(0, 0, 1.5)
014local BentGripPos = Vector3.new(0, 0.6, 0.5)
015local Bent = true
View all 186 lines...

2 answers

Log in to vote
1
Answered by
Necro_las 412 Moderation Voter
5 years ago
Edited 5 years ago

line 037: local char = Tool.Parent

print(Tool.Parent) --> maybe Backpack, not the Character.

0
^ DeceptiveCaster 3761 — 5y
0
It's the player, not the backpack Jomeliter 55 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

I fixed it!

Instead of using the getPlayer() function, I just got the player using the script's parent

Answer this question