#Help with body size script

1 messages · Page 1 of 1 (latest)

winter swallow
#

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)

#

why doesnt it work though? im regular size when i join

atomic prism
#

randomsize.Value = math.random(0.5, 2.5)

#

change it

green plinth
tardy sand
atomic prism
green plinth
tardy sand
tardy sand
atomic prism
green plinth
tardy sand
#

it would be humanoidDescription.BodyWidthScale = (your number here)

winter swallow
atomic prism
winter swallow
tardy sand
#

i wouldn't touch datastores with a 10 foot pole at your current stage honestly

winter swallow
#

is ith ard

#

hard

atomic prism
#

it is not hard

winter swallow
#

its my first day learning to scrpt thats why

tardy sand
#

yes

atomic prism
#

i believe in you

#

you can learn anything

tardy sand
#

learn more about other services

#

datastores can be

#

finicky

winter swallow
atomic prism
#

@winter swallow yo how abt learn the service Motor6D

winter swallow
#

i try a script and send it and ask for hints on why it doesnt work and try and figure it out

winter swallow
atomic prism
#

tutorials

winter swallow
#

animatable weld is waht it says it is

atomic prism
#

yeah small games have it

winter swallow
#

r u being fr like i should learn it or is it some advanced thing and ur trolling

atomic prism
#

good luck with the scripts

winter swallow
tardy sand
#

show script

winter swallow
west plinthBOT
#

studio** You are now Level 5! **studio

drowsy stone
drowsy stone
#

looks way better imo