Hey, So I have a lightsaber, which I want its transparency to fade to 0 using a tween. But when I equip it, the part does not change what so ever, it remains at 1 Transparency. I don’t get any errors either so I’m unsure what I’m doing wrong. Any help to fix this will be very appreciated.
Code:
local saber = script.Parent.Parent
local SaberBeam = game.StarterPack.Saber.Handle:WaitForChild("Beam")
local TweenService = game:GetService("TweenService")
local BeamInfo = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
local BeamGoal =
{
Transparency = 0;
}
local BeamFadeTween = TweenService:Create(SaberBeam, BeamInfo, BeamGoal)
saber.Equipped:Connect(function()
local Unseath = script.Parent.Parent.Unseath
Unseath:Play()
BeamFadeTween:Play()
end)
saber.Unequipped:Connect(function()
local Unequip = script.Parent.Parent.Unequip
Unequip:Play()
end)