Im trying to make a block that, when touched, will change the colorshift. But when I test it out in game, instead of setting the colorshift to 255,0,0 it sets the colorshift to 65025, 0, 0. Here’s the script.
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
game.Lighting.Ambient = Color3.new(0,0,0)
game.Lighting.ColorShift_Bottom = Color3.new(255, 0, 0)
game.Lighting.ColorShift_Top = Color3.new(255, 0, 0)
end
end
script.Parent.Touched:connect(onTouch)
is there any solution to this? What did I do wrong? Any help is appreciated.