Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why isn't my color script working?

Asked by 8 years ago

so when i saw roblox added shaders for games and i saw a colortint option for the colorcorrection effect i thought could i make a color changing screen so i tried making it and unfourtantly it didn't work heres the code

local colour = game.Lighting.ColorCorrection
wait(1)
while true do
    colour.TintColor = 255,7,11
    wait(0.5)
    colour.TintColor = 247,0,255
    wait(0.5)
    colour.TintColor = 18,2,255
    wait(0.5)
    colour.TintColor = 0,243,255
    wait(0.5)
    colour.TintColor = 4,255,0
    wait(0.5)
    colour.TintColor = 255,238,0
    wait(0.5)
    colour.TintColor = 255,0,0
end

1 answer

Log in to vote
1
Answered by 8 years ago

You're not assigning a new color, yes, it may seem you are, but you're not.

local colour = game.Lighting.ColorCorrection
wait(1)
while true do
    colour.TintColor = Color3.new(255,7,11)
    wait(0.5)
    colour.TintColor = Color3.new(247,0,255)
    wait(0.5)
    colour.TintColor = Color3.new(18,2,255)
    wait(0.5)
    colour.TintColor = Color3.new(0,243,255)
    wait(0.5)
    colour.TintColor = Color3.new(4,255,0)
    wait(0.5)
    colour.TintColor = Color3.new(255,238,0)
    wait(0.5)
    colour.TintColor = Color3.new(255,0,0)
end

If that doesn't work, try

local colour = game.Lighting.ColorCorrection
wait(1)
while true do
    colour.TintColor = Color3.new(255/255,7/255,11/255)
    wait(0.5)
    colour.TintColor = Color3.new(247/255,0/255,255/255)
    wait(0.5)
    colour.TintColor = Color3.new(18/255,2/255,255/255)
    wait(0.5)
    colour.TintColor = Color3.new(0/255,243/255,255/255)
    wait(0.5)
    colour.TintColor = Color3.new(4/255,255/255,0/255)
    wait(0.5)
    colour.TintColor = Color3.new(255/255,238/255,0/255)
    wait(0.5)
    colour.TintColor = Color3.new(255/255,0/255,0/255)
end
0
it works but you cant see your character so i will look into it if theres an option for the brightness wiktorwiktor12 0 — 8y
0
it works just needed to change contrast so you can still see your character! wiktorwiktor12 0 — 8y
0
and it works got it all working wiktorwiktor12 0 — 8y
Ad

Answer this question