So my script is…
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Type.Text == "69372" then ---Tryna make it so if this is entered
script.Parent.Parent.Result.Text = "Task Completed!" --- and it says this then
wait(1)
script.Parent.Parent:TweenPosition(UDim2.new(1,0,0,0)) -- It moves off my screen
wait(2)
script.Parent.Parent.Parent.TaskBarBackground.TaskBar:TweenSize(UDim2.new(0,351,0,24), "Out", "Linear", 5, false) --- then make these two work so the task bar goes up.
wait(00.1)
script.Parent.Parent.Parent.TaskBarBackground.TaskBar:TweenSize(UDim2.new(0,395,0,24), "Out", "Linear", 5, false)
else
script.Parent.Parent.Result.Text = "Task Failed!"
wait(1)
script.Parent.Parent:TweenPosition(UDim2.new(1,0,0,0))
end
end)
I tested my game and looked through the scripts many times.
And I think that
script.Parent.Parent:TweenPosition(UDim2.new(1,0,0,0)) -- It moves off my screen
is still running so it wont play this tween here
script.Parent.Parent.Parent.TaskBarBackground.TaskBar:TweenSize(UDim2.new(0,351,0,24), "Out", "Linear", 5, false) --- then make these two work so the task bar goes up.
wait(00.1)
script.Parent.Parent.Parent.TaskBarBackground.TaskBar:TweenSize(UDim2.new(0,395,0,24), "Out", "Linear", 5, false)
any fixes?
Note: there aren’t any errors, the only problem is that two Tweens that look the same above aren’t working. but there aren’t any errors.