This is my code - >
~~~~~~~~~~~~~~~~~
game.Players.PlayerAdded:connect(function(p)
p.CharacterAdded:connect(function(c)
local hum = p.Character:WaitForChild("Humanoid")
local bHeight = hum:WaitForChild('BodyHeightScale')
local bDepth = hum:WaitForChild('BodyDepthScale')
local bWidth = hum:WaitForChild('BodyWidthScale')
local hsize = hum:WaitForChild('HeadScale')
bHeight.Value = script.Height.Value
bDepth.Value = script.Depth.Value
bWidth.Value = script.Width.Value
hsize.Value = script.Headsize.Value
end)
end)
~~~~~~~~~~~~~~~~~
not sure how to select random player. plss help
You could possibly use the getplayers function to get a table of all the players, and use math.random to select one of the indexes randomly.