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.
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