I couldn't figure out why this error occurs: 16:47:19.225 - OnCilentEvent is not a valid member of RemoteEvent
This function is listed on the Roblox Wiki and it doesn't work for me. I'm new to RemoteEvents. Am I doing a easy mistake?
-- Server Script
game.Players.PlayerAdded:connect(function(player)
local event = Instance.new('RemoteEvent',player)
local playerName = player.Name
-- more stuff
event.Name = 'Dead'
event:FireCilent(playerName,1,"asmiundyuay",99999999999)
end)
-- Cilent Script
local event = game.Players.LocalPlayer:WaitForChild('Dead')
event.OnCilentEvent:connect(function(typeOfPower,Profile,XP)
print(Profile,XP)
end)

1 comment
You spelled Client wrong? Not sure if that was on purpose.