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

Error: creator is not a valid member of Humanoid?

Asked by 5 years ago
Edited 5 years ago

creator is not a valid member of Humanoid

 local hum = script.Parent:WaitForChild("Humanoid")
hum.Died:Connect(function()
    game.ServerStorage.Give:Fire(100,hum.creator.Value)
end)

Filtering Enabled on

Script in NPC (Model)

BindableEvent in ServerStorage

BindableEvent rename to Give

I script 2 script

1.leaderboard 2.kill for money script

It not give me the Cash when I kill NPC.

I open output and click the only error one.

and it go to the box up there.

Please help.

0
Is your game filtering enabled? DatRainbowTee 49 — 5y
0
yes bentri2006 -3 — 5y
0
wait a sec im wrighting my awnser DatRainbowTee 49 — 5y

1 answer

Log in to vote
-2
Answered by 5 years ago

you might want to make a FE compatible script.

Local Script:

 local hum = script.Parent:WaitForChild("Humanoid")
hum.Died:Connect(function()
    game.ServerStorage.Give:Fire(100,hum.creator.Value)
    game.ReplicatedStorage.NameofRemoteEvent:FireServer()
end)


Server(workspace)

game.ReplicatedStorage.NameofRemoteEvent.OnServerEvent:connect(function()


    game.ServerStorage.Give:Fire(100,hum.creator.Value)

end)

just put a remote event in rs

0
What is rs. Where I put the script. Did I need to change script to local script bentri2006 -3 — 5y
0
replicated storage DatRainbowTee 49 — 5y
0
I forgot to say I script the leaderboard too, look at the leaderboard and look at your script.Is it right or wrong.if wrong you fix.if right leave there bentri2006 -3 — 5y
0
And if I do that it not work too. even I name it NameofRemoteEvent it didn't give me money bentri2006 -3 — 5y
1
This will not fix anything, this doesn't change a thing. xAtom_ik 574 — 5y
Ad

Answer this question