I’m trying to make a lightsaber come on in a smooth way but using tweenservice it lags behind here is my script inside of the tool how can I fix this?
script.Parent.Equipped:Connect(function()
wait(1.5)
local tweenService = game:GetService("TweenService")
local Blade = script.Parent.Blade
local PlaceHolderBlade = script.Parent.PlaceBlade
local tweenInfo = TweenInfo.new(
1, --seconds to complete
Enum.EasingStyle.Quint, --easing style
Enum.EasingDirection.Out, --easing direction
0, --repeat count
false, --reverses?
0 --delay before starting
)
local properties = {
Size = PlaceHolderBlade.Size,
Position = PlaceHolderBlade.Position
}
local tween = tweenService:Create(Blade, tweenInfo, properties)
tween:Play()
end)