Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to increase size of a random player?

Asked by 3 years ago
Edited 3 years ago

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

0
pls answer i need it for the game nakool2222 -5 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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.

Ad

Answer this question