Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = Instance.new("Part",workspace) --tells game to make a new instance, more specifically, a part.
- part.Anchored = true --tells game that the part should be anchored so it doesnt fall
- part.CanCollide = true --tells game that the part should be collideable, so nothing can go through it
- part.Position = Vector3.new(0,2.5,0) --tells game what position the part should be moved to
- math.randomseed(tick()) --starts a randomiser
- local function cc() --function called 'cc' for 'colourChange'
- while true do --loop
- while wait(0.1) do --loop's 'wait' so the loop doesnt hang your script
- part.Color = Color3.fromRGB(math.random(0, 255), math.random(0, 255), math.random(0, 255)) --selects a random color
- end
- end
- end
- cc() --calls function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement