When the text gets tweened it has a weird stuttery or twitching effect to it (if you look very closely)
Is there any possible way to fix this?
Script:
while true do if game.Workspace.severethunderstormwatch.Value == true then local pos = script.Parent.alert.Position script.Parent.TextLabel.Text = " " script.Parent.randomtext.Disabled = true script.Parent.alert.Text = "SEVERE THUNDERSTORM WATCH IN EFFECT AT " ..game.Workspace.time.Value.. "FOR THE FOLLOWING COUNTIES: Dallas County" script.Parent.alert:TweenPosition(UDim2.new(-1.6,0,0,0), "In", "Linear", 16) wait(16) script.Parent.alert:TweenPosition(pos, "In", "Linear", 0) script.Parent.randomtext.Disabled = false wait(0.1) end
Hi, instead of using a loop you should use this event .Changed
It fires then the Value got changed. That also should fix your error, it stutters because you use a loop and it keeps Tweening every 0.1 seconds
function Alert() if game.Workspace.severethunderstormwatch.Value == true then local pos = script.Parent.alert.Position script.Parent.TextLabel.Text = " " script.Parent.randomtext.Disabled = true script.Parent.alert.Text = "SEVERE THUNDERSTORM WATCH IN EFFECT AT " ..game.Workspace.time.Value.. "FOR THE FOLLOWING COUNTIES: Dallas County" script.Parent.alert:TweenPosition(UDim2.new(-1.6,0,0,0), "In", "Linear", 16) wait(16) script.Parent.alert:TweenPosition(pos, "In", "Linear", 0) script.Parent.randomtext.Disabled = false end end game.Workspace.severethunderstormwatch.Changed:Connect(Alert)
I am not a good scripter but I try to help
You have put the end in the wrong place and the wait you should put it like this
while true do if game.Workspace.severethunderstormwatch.Value == true then local pos = script.Parent.alert.Position script.Parent.TextLabel.Text = " " script.Parent.randomtext.Disabled = true script.Parent.alert.Text = "SEVERE THUNDERSTORM WATCH IN EFFECT AT " ..game.Workspace.time.Value.. "FOR THE FOLLOWING COUNTIES: Dallas County" script.Parent.alert:TweenPosition(UDim2.new(-1.6,0,0,0), "In", "Linear", 16) wait(16) script.Parent.alert:TweenPosition(pos, "In", "Linear", 0) script.Parent.randomtext.Disabled = false end wait(0.1) end