The goal of the script is to get 1/4th of all players in the game, and round the numbers to a valid one.
The error occurs on line 6 and reads, Expected identifier, got '='
players = game:GetService('Players')
function ChosePlayer()
local playerList = players:GetPlayers()
local plrCount = #playerList % 4
round(plrCount) = plrCount + 0.5 - (plrCount + 0.5) % 1
return(playerList[math.random(round,#playerList)])
end
print(ChosePlayer())
What i need is, the error solved, so that i can make sure the number is being rounded properly!
Thank You

4 comments
Unless this a snippet of the actually code, then "round" doesn't exist; it isn't defined, thus your error. lol
i changed it to be plrCount, but it still gives the error
Is this all the code or do you have a round function somewhere?
You are trying to assign a value to a function returned value?