OK, so earlier I asked a question about the stickmasterluke mad bloxxer tutorial. I got help from that, fixed it, and moved on. Now there is another error saying: "12:35:53.396 - Unable to cast value to Object" and I was thinking, is it because of FiringClient?
Here is what I have for the error:
--give players tools
local backpack = player:FindFirstChild("Backpack")
if backpack then
if player == knifeman then
local knife = ss:WaitForChild("Knife"):clone()
knife.Parent = backpack
event:FireClient("Class", "Knifeman")
elseif player == officer then
local revolver = ss:WaitForChild("Revolver"):clone()
revolver.Parent = backpack
event:FireClient("Class", "Officer")
else
event:FireClient("Class", "Innocent")
so it says that error on the "event:FireClient" parts. So is it something wrong? I added varibles for serverstorage to make it ss. Anyone know the problem and how should I fix it?

1 comment
The first paramater of 'FireClient' must be the client or the event does not know who to sent the information to. You currently are trying to cast 'string' to a player object hence the error.