Our subreddit's suggested list of places you should visit.We cannot moderate users, content, or account security. The rules are explained more in depth here. Use the pinned thread for any non-scripting support questions.It's okay to tag questionable items as NSFW. Don't post provocative/callouts for other devs or users.Don't post any trading posts and any 'help wanted' posts looking for scripters/builders/etc.Don't post anything from our 'Repeated Submissions' list.Follow our self-promotion rules if you wish to post your own content.Only post content relevant to Roblox or this subreddit.Submissions that do not fit within the above threads can be posted by themselves. Roblox Creator Challenge (Three free hats) That's why we create megathreads to help keep everything organized and tidy. When Roblox events come around, the threads about it tend to get out of hand. Our current header image is from this game here! Hope this helps.Roblox is a game creation platform/game engine that allows users to design their own games and play a wide variety of different types of games created by other users. Under the hood, this is just doing some simple linear algebra to convert the 3 values from the starting point to the end. by now the color should be close to the target color, ensure it is done TestBrick.Color = startingColor:lerp(targetColor, i) Local stepAmt = 1.0 / (timeToComplete * framesPerSecond) make a loop to change the color, lerp() expects a number between 0 - 1. Local testBrick = Instance.new("Part", game.workspace) Local targetColor = omRGB(100, 255, 100) - bright green local startingColor = omRGB(50, 0, 0) - dark red So if you want to get from Dark Red (50, 0, 0) to Bright Green (100, 255, 100) over 5 seconds you can use Color3:lerp(Color3 targetColor, number alpha). There is a constructor to easily convert an RGB color into a Color3 with omRGB(number r, number g, number b). You can construct a color in Roblox by using a Color3. The first number represents "how much" red is in the color, second for green, and the third for blue. These values represent a color's RGB value. This is what i got so far: local part script.Parent. Colors can be represented by a combination of 3 values, each ranging from 0-255. i have some parts that i would like to add then subtract a omRGB value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |