function endRound() for _,v in pairs(game.Players:GetChildren()) do -- for everything in players if v.Character ~= nil then -- if ther person is existing v.Character:BreakJoints -- kills end --this is the end that is underlined in red end -- ends function game.Workspace.Model:Remove() end
This is the code, the error I'm getting is that function arguments expected near end
Problem
you forgot to put paranthese over :BreakJoints. this breaks the script as break joints is a function and it needs paranthese
Solution
function endRound() for _,v in pairs(game.Players:GetChildren()) do -- for everything in players if v.Character ~= nil then -- if ther person is existing v.Character:BreakJoints() -- kills end --this is the end that is underlined in red end -- ends function game.Workspace.Model:Remove() end