can someone tell me why my script doesnt work? its meant to randomize the players height and width and depth when they join
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local randomsize = Instance.new("NumberValue")
randomsize.Name = "Size"
randomsize.Value = math.random() * 2.5 + 0.5
randomsize.Parent = player
local humanoid = character:WaitForChild("Humanoid")
humanoid.BodyWidthScale.Value = randomsize.Value
humanoid.BodyHeightScale.Value = randomsize.Value
humanoid.BodyDepthScale.Value = randomsize.Value
end)
end)
** You are now Level 5! **