creator is not a valid member of Humanoid
1 | local hum = script.Parent:WaitForChild( "Humanoid" ) |
2 | hum.Died:Connect( function () |
3 | game.ServerStorage.Give:Fire( 100 ,hum.creator.Value) |
4 | 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.
you might want to make a FE compatible script.
Local Script:
1 | local hum = script.Parent:WaitForChild( "Humanoid" ) |
2 | hum.Died:Connect( function () |
3 | game.ServerStorage.Give:Fire( 100 ,hum.creator.Value) |
4 | game.ReplicatedStorage.NameofRemoteEvent:FireServer() |
5 | end ) |
Server(workspace)
1 | game.ReplicatedStorage.NameofRemoteEvent.OnServerEvent:connect( function () |
2 |
3 |
4 | game.ServerStorage.Give:Fire( 100 ,hum.creator.Value) |
5 |
6 | end ) |
just put a remote event in rs