of     1   

PraetorianTheGod
#183539975Saturday, February 13, 2016 11:14 PM GMT

So my attempt at balanced picking is a bit buggy, with the Function IncreaseWeights it doesn't really work, it doesn't spit out any errors it adds 2 weight to one person and none to others, weird bug, any help would mean a lot! function PickPlayer() HighestWeight = 0 for _,player in pairs(game.Players:GetChildren()) do local weight = player.Stuff.Weight if weight and weight.Value > HighestWeight then HighestWeight = weight.Value Pick = weight ChosenPlayer = Pick.Parent.Parent IncreaseWeights(Pick.Parent.Parent) end end return ChosenPlayer end function IncreaseWeights(Chosen) for _,v in pairs(game.Players:GetChildren()) do if v.Name ~= Chosen.Name then if v.Stuff:findFirstChild("Weight") then if v.Stuff.x2Weight.Value == false then v.Stuff.Weight.Value = v.Stuff.Weight.Value + 1 elseif v.Stuff.x2Weight.Value == true then v.Stuff.Weight.Value = v.Stuff.Weight.Value + 1.5 end end elseif v.Name == Chosen.Name then if v.Stuff:findFirstChild("Weight") then v.Stuff.Weight.Value = 0 end end end end
AxonMega
#183543930Sunday, February 14, 2016 12:07 AM GMT

If what your trying to do is increase the weight of a player, then just add a body force forcing the player downward.
Threatboy101
#183544234Sunday, February 14, 2016 12:11 AM GMT

Take into account that the weight of each player differs so it's best that you create a get weight function which loops through the entire character and if a particular object is a part get it's mass by :GetMass() add it to a variable mass and then return mass * 196.2 which should give you the weight.
PraetorianTheGod
#183544553Sunday, February 14, 2016 12:15 AM GMT

Whoops should've been more clear. Hehe. :/

    of     1