This server script is not working for me and i dontknow why, i need the player data and the player here
local rep = game.ReplicatedStorage
local events = rep.Events
local event = events.event
--Event calling
event.OnServerEvent:connect(function(player.data)
if data.reason=="changeTeam" then
player.Team=data.team
end
end)
