So, the Tweening works on my other computer and the computers of others. However, it doesn’t work on this laptop (Pavilion dv5 running Windows 7)…?
Problem: The first tween works as expected. It appears that the second tween never happens and the GUI then disappears. No errors (it works properly on other computers)
local Waiting = false
local Frame = script.Parent
local Notify = Frame.Notify
local Prompt = Frame.ChangePrompt
local function tweenCallback(state)
repeat task.wait()
until state == Enum.PlaybackState.Completed
return
end
Notify.Event:Connect(function(Length, Message, Color)
task.wait(1)
local newPrompt = Prompt:Clone()
newPrompt.Parent = Frame
newPrompt.TextColor3 = Color
newPrompt.Text = Message
newPrompt:TweenPosition(UDim2.fromScale(0.4, 0.8), "Out", "Quad", (2 * Length)/3, false, tweenCallback)
task.wait((2 * Length)/3)
newPrompt:TweenPosition(UDim2.fromScale(0.4, 1), "In", "Quad", Length/3, false, tweenCallback)
task.wait(Length/3)
newPrompt:Destroy()
end)
I’m going to assume this was likely caused by the dimensions of the native screen’s window, as such you should opt to use scale when tweening, I’ve also added a callback function to prevent tweens from playing over one another.