Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Cant change colour of tint screen?

Trying to make an input change the colour of the screenstint, nothing to difficult though this is my first time doing this and i cant figure it out

local ui = game.StarterGui.HUD
local screen = game.Lighting.Screen

local Open = true

local UserInputService = game:GetService("UserInputService")

UserInputService.InputBegan:Connect(function(keyCode)
	if keyCode.keyCode == Enum.KeyCode.V then
		if Open then
			Open = false
			ui.Enabled = false
			wait(0.5)
			screen.TintColor = "0, 0, 0"
		else
			Open = true
			screen.TintColor = "212, 235, 255"
			wait(0.5)
			ui.Enabled = true
		end
	end
end)

1 answer

✓ Accepted answer

You have to create a new Color3 and 0-255 is fromRGB, and also you have to change the color and not get the instance.

screen.TintColor.BackgroundColor3 = Color3.fromRGB(0,0,0)
--
screen.TintColor.BackgroundColor3 = Color3.fromRGB(212, 235, 255)

2 comments

1

Works but now the HUD wont disable

1

nvm got it

This discussion is preserved as it was. New answers, comments, and votes are closed.