i've done everything correctly as far as i know but it is still not working!!!!!
Heres The Script:
game.StarterGui.ScreenGui.VirusContinues.Noob.Text = "1%"
wait(2) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "2%"
wait(2) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "3%"
wait(2) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "4%"
wait(4) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "25%"
wait(3) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "50%"
wait(3) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "75%"
wait(5) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "100%"
wait(1) game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "Virus Injected!"
Please Help Me If You Know How To Help Me Fix It!
you can't edit startergui with a localscript; starter gui inserts into > game.Players.LocalPlayer:WaitForChild("PlayerGui") if you want to edit it better, insert a localscript into the textlabel named noob and just do ~~~~~~~~~~~~~~~~~ script.Parent.Text = "1%"
wait(2) script.Parent.Text = "2%"
wait(2) script.Parent.Text = "3%"
wait(2)script.Parent.Text = "4%"
wait(4) script.Parent.Text= "25%"
wait(3) script.Parent.Text = "50%"
wait(3) script.Parent.Text = "75%"
wait(5) script.Parent.Text = "100%"
wait(1) script.Parent.Text = "Virus Injected!" ~~~~~~~~~~~~~~~~~
01 | game.StarterGui.ScreenGui.VirusContinues.Noob.Text = "1%" |
02 |
03 | wait( 2 ) |
04 |
05 | game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "2%" |
06 |
07 | wait( 2 ) |
08 |
09 | game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "3%" |
10 |
11 | wait( 2 ) |
12 |
13 | game.StarterGui.ScreenGui.VirusContinues.Frame.Noob.Text = "4%" |
14 |
15 | wait( 4 ) |
as the other answers answered the main problem, you can use numeric for loop to make your code more compact and easier to read.
ex
1 | local label = script.Parent |
2 |
3 | for i = 1 , 4 do |
4 | label.Text = i.. "%" |
5 | end |
6 | for i = 25 , 100 , 25 do -- increment it by 25 |
7 | label.Text = i.. "%" |
8 | end |
Oh, well the problem here is that you are editing the StarterGui. You need to edit the PlayerGui.
Change game.StarterGui to
~~~~~~~~~~~~~~~~~ game.Players.LocalPlayer.Playergui ~~~~~~~~~~~~~~~~~