Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Error: creator is not a valid member of Humanoid?

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.

3 comments

0

Is your game filtering enabled?

0

yes

0

wait a sec im wrighting my awnser

1 answer

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

5 comments

0

What is rs. Where I put the script. Did I need to change script to local script

0

replicated storage

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

0

And if I do that it not work too. even I name it NameofRemoteEvent it didn't give me money

1

This will not fix anything, this doesn't change a thing.

This discussion is preserved as it was. New answers, comments, and votes are closed.