What do you mean player object?
%obj?
isObject(%player)?I tried to rename it to speedkartS
No.
Change this from
function randomizer(%var, %player)
{
%var1 = getRandom(0,15);
if (%var1 <= 15);
%player.addItem(gun);
}
randomizer(isObject(%player));
To
function randomizer(%player)
{
if (getRandom(0, 15) <= 1)
%player.addItem(gun);
}
Never put a ; at the end of an if statement. It causes a syntax error and syntax errors make it so that your entire script breaks. Call randomizer(%player); whenever you want the person to have a chance of getting a gun.
Change the line at the bottom of the server.cs from
exec("./karts/speedKartS.cs");
to
exec("./karts/speedKart.cs");
Remember that if nothing is working, check the console to see if your script has a syntax error.