Hello there,
i know, its been a long time dealing with these errors. but yet again…another issue. The Tween doesnt play. Its a local script. Didnt work.
local newTween = game:GetService("TweenService")
local Client = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
Client.PlayerGui.UI.Dashboard.Cases.Visible = false
wait(0.5)
Client.PlayerGui.UI.Dashboard.CaseOpening.Visible = true
wait(0.1)
local Chance = math.random(1, 20)
if Chance <= 1 and not 20 and not 10 then
--------------
if Chance == 1 then
local nt1 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(450, 0)})
nt1:Play()
elseif Chance == 2 then
local nt2 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(1050, 0)})
nt2:Play()
elseif Chance == 3 then
local nt3 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(1500, 0)})
nt3:Play()
elseif Chance == 4 then
local nt4 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(2400, 0)})
nt4:Play()
elseif Chance == not 1 and 2 and 3 and 4 and 5 and 6 and 7 and 8 and 9 and 10 and 11 and 12 and 13 and 14 and 15 and 16 and 17 and 18 and 19 and 20 then
local nt5 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(1500, 0)})
nt5:Play()
end
--------------------
if Chance <= 10 and not 19 and not 13 and not 14 and not 15 and not 16 and not 17 and not 18 and not 19 and not 20 then
local nt6 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(2130, 0)})
nt6:Play()
elseif Chance <11 and not 20 then
local nt7 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(2580, 0)})
nt7:Play()
end
--------------------
if Chance == 20 then
local nt8 = newTween:Create(Client.PlayerGui.UI.Dashboard.CaseOpening.MainOpenBLUE.ScrollingFrame, TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out, 1, false, 0.01), {CanvasPosition = UDim.new(850, 0)})
nt8:Play()
end
if not newTween then
error("error code while fetching effects, please contact an admin and tell them this code: "..math.random(1, 99999).."ZFLIPHASH2946999HASH992")
end
end
end)