The code it meant to return the player’s character, but for some reason after being passed down to the server, it returns the player from Players.
--localscript
local character = game.Players.LocalPlayer.Character
local remoteevent = game.ReplicatedStorage.RemoteEvent
print(character)
print(character.Parent)
remoteevent:FireServer(character)
--serverscript
local remoteevent = game.ReplicatedStorage.RemoteEvent
local function sendcharacter(character)
print(character)
print(character.Parent)
end
remoteevent.OnServerEvent:Connect(sendcharacter)