Issue
For some odd reason, no matter what I try the brightness will not tween to the designated Number which I've set through a remoteevent to be changeable. No matter what, it never changes the brightness... what could I do to fix this?
Module Script
--Made By Karlo_TR10
--Edited By MillerrIAm
---------------Variables---------------
local TweenService = game:GetService("TweenService")
---------------Main Code---------------
local tween = {
Tween = function(Light,BrightnessF)
if Light and BrightnessF then
local tweenInfo = TweenInfo.new(
0.5,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out,
0,
false,
0
);
local tween = TweenService:Create(Light, tweenInfo, {Brightness = BrightnessF});
tween:Play()
end
end
}
return tween
ServerScript
local function VenueLighting(plr,Lighting,Name,Color,LightBrightness)
local TweenLight = require(game.ServerScriptService["Module Scripts | Lighting"].FadeModule)
local BrightnessLight = require(game.ServerScriptService["Module Scripts | Lighting"].BrightnessModule)
if Lighting == "Instant" then --//Instant Color Change
for i, v in pairs(game.Workspace.VenueLights[Name]:GetChildren()) do
if v:FindFirstChild("PointLight") ~= nil then
v.PointLight.Color = Color
v.PointLight.Brightness = LightBrightness
end
end
elseif Lighting == "Fade" then --//Fading Color Change
for i, v in pairs(game.Workspace.VenueLights[Name]:GetChildren()) do
if v:FindFirstChild("PointLight") ~= nil then
TweenLight.Tween(v.PointLight,Color,nil)
BrightnessLight.Tween(v.PointLight,BrightnessLight,nil)
--Color3.fromRGB(unpack(string.split(Color,",")))
end
end
end
end
