The error: Players.Player1.PlayerGui.ScreenGui.TextButton.LocalScript:9: attempt to index global 'chr' (a nil value)
The script:
button = script.Parent
chr = game.Players.LocalPlayer.Character
function monster()
local n1 = math.random(100)
local n2 = math.random(100)
local n3 = math.random(100)
local av = n1 + n2 + n3 / 3
chr.Humanoid.JumpPower = av * 2
chr.Humanoid.WalkSpeed = av
chr.Humanoid.BodyDepthScale.Value = n1
chr.Humanoid.BodyHeightScale.Value = n2
chr.Humanoid.BodyWidthScale.Value = n3
end
button.MouseButton1Click:connect(monster)

1 comment
An error is for a reason, not just to troll you.