game.ReplicatedStorage.MainEvent.OnServerEvent:Connect(function()
local playerService = game:GetService("Players")
--nothing runs after this point
playerService.PlayerAdded:Connect(function (plr)
plr.CharacterAdded:Connect(function (char)
local head = char:WaitForChild("Head")
--source code I dont want to give away but nothing is wrong I tested it
im so confused

1 comment
thank you kind sir