Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = script.Parent
- -- Color Randomizer --
- function getRandomColor()
- local red = math.random()
- local green = math.random()
- local blue = math.random()
- return Vector3.new(red, green, blue)
- end
- function changePartColor()
- local color = getRandomColor()
- part.Color = Color3.new(color.x, color.y, color.z)
- end
- changePartColor()
- -- Size Randomizer --
- function getRandomSize()
- local sizeValue = math.random(300, 550) / 100
- return Vector3.new(sizeValue, sizeValue, sizeValue)
- end
- function changePartSize()
- local size = getRandomSize()
- part.Size = size
- end
- changePartSize()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement