Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to increase size of a random player?

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

1 comment

0

pls answer i need it for the game

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.