Remote event Not working

The title explains it all

image
SERVER IMAGE

Local

local Player = game.Players.LocalPlayer
local char = Player.Character or Player.CharacterAdded:wait()
repeat wait() until char:FindFirstChild("Humanoid")
local human = char.Humanoid


local remoteEvent = game.ReplicatedStorage:WaitForChild("TakeDown")


human.Died:Connect(function()
	remoteEvent:FireServer(Player)
end)

replace that with
game.ReplicatedStorage:WaitForChild(“TakeDown”)
local remoteEvent = game.ReplicatedStorage.TakeDown

You don’t need to use Player argument here because the server will detect the script where the remote event is fired from.

you dont need the pass the player parameter so change this

human.Died:Connect(function()
	remoteEvent:FireServer(Player)
end)

to this

human.Died:Connect(function()
	remoteEvent:FireServer()
end)

The problem is from the server OnServerEvent is not a valid member of BindableEvent “ReplicatedStorage.TakeDown” -

Did you accidentally make a BindableEvent instead of a RemoteEvent?

He did, he now just needs to replace the bidnable evetn with a remoteevent.

1 Like

OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO they have the same image :confused:

Oh, that’s the issue then. You are using a BindableEvent.

Bindable events don’t replicate the server and client. They are used to provide communication between the scripts which are the same kind.

Replace it with a RemoteEvent and include what I said before.

local Player = game.Players.LocalPlayer
local char = Player.Character or Player.CharacterAdded:Wait()
repeat wait() until char:FindFirstChild("Humanoid")
local human = char.Humanoid


local remoteEvent = game.ReplicatedStorage:WaitForChild("TakeDown")


human.Died:Connect(function()
    remoteEvent:FireServer()
end)

Ah, also you forgot to capitalize the first letter of the wait function.