How To Slowly Turn The Screen Red?

  1. What do you want to achieve? Slowly turn the screen red.

  2. What is the issue? I dont know how to do the script correctly.

  3. What solutions have you tried so far? I tried to look at youtube and Dev Hub but i din’t find nothing.

My script:

wait(9)

game.Lighting.kills10.Enabled = true
for e = 255, 0.1, 1 do
	game.Lighting.kills10.TintColor.R = e
	
end

Whats wrong on this script?

first of all the for loop is wrong

for {start}, {end}, {increment} do

end

so in your case it would be

local killCC = game.Lighting.kills10

wait(9)

killCC .Enabled = true

for e = 0, 255, 0.1 do
     killCC.TintColor = Color3.new(e / 255, 0, 0)
end

A better way of doing this is using TweenService like this

local TweenService = game:GetService("TweenService")
local twInfo = TweenInfo.new(1)
local killCC = game.Lighting.kills10

wait(9)

killCC .Enabled = true

local tw= TweenService:Create(killCC , twInfo, {
    TintColor = Color3.new(1, 0, 0)
})

tw:Play()
2 Likes