FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:28 PM |
I want it to make the Text Fade in and Out, but when I run the script it only waits the seconds?
--Made by FoggedOut wait(0.001) plr = game.Players.LocalPlayer sp = script.Parent tt = sp.Instructions.Info.TextTransparency IBT = sp.Instructions.BackgroundTransparency FBT = sp.Instructions.Frame.BackgroundTransparency
function Introduction() local tt = 1 while tt > 0 do wait(0.3) tt = tt - 0.1 end sp.Instructions.Info.Text = "So... you think you can kill us?" while tt < 1 do wait(0.3) tt = tt + 0.1 end while tt > 0 do wait(0.3) tt = tt - 0.1 end sp.Instructions.Info.Text = "Well, then you'll have to try hard to find us..." while tt < 1 do wait(0.3) tt = tt + 0.1 end while tt > 0 do wait(0.3) tt = tt - 0.1 end sp.Instructions.Info.Text = "We stay in the shadows, and seek you..." while tt < 1 do wait(0.3) tt = tt + 0.1 end while tt > 0 do wait(0.3) tt = tt - 0.1 end sp.Instructions.Info.Text = "We are..." while tt < 1 do wait(0.3) tt = tt + 0.1 end sp.Instructions.Info.TextColor3 = Color3.new(185, 6, 255) while tt > 0 do wait(0.3) tt = tt - 0.1 end sp.Instructions.Info.Text = "THE INFECTED!" wait(1) while tt < 1 do wait(0.3) tt = tt + 0.1 end wait(4) sp.Instructions.Info.TextColor3 = Color3.new(0, 0, 0) while IBT < 0 and FBT < 0 do wait(0.3) IBT = IBT + 0.1 FBT = FBT + 0.1 end end
Introduction() |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 05:29 PM |
| The property doesn't update with the variable. You have to set it each time. |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:31 PM |
| Really? Ok, I can do that. Time to make an even messier code! :D |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:44 PM |
This wont work either. qq
--Made by FoggedOut wait(0.001) local plr = game.Players.LocalPlayer sp = script.Parent sp.Instructions.Info.TextTransparency = tt sp.Instructions.BackgroundTransparency = IBT sp.Instructions.Frame.BackgroundTransparency = FBT
function trans1() tt = 1 wait(0.1) tt = 0.9 wait(0.1) tt = 0.8 wait(0.1) tt = 0.7 wait(0.1) tt = 0.6 wait(0.1) tt = 0.5 wait(0.1) tt = 0.4 wait(0.1) tt = 0.3 wait(0.1) tt = 0.2 wait(0.1) tt = 0.1 wait(0.1) tt = 0 wait(0.1) end function trans2() tt = 0 wait(0.1) tt = 0.1 wait(0.1) tt = 0.2 wait(0.1) tt = 0.3 wait(0.1) tt = 0.4 wait(0.1) tt = 0.5 wait(0.1) tt = 0.6 wait(0.1) tt = 0.7 wait(0.1) tt = 0.8 wait(0.1) tt = 0.9 wait(0.1) tt = 1 wait(0.1) end
function Introduction() trans1() sp.Instructions.Info.Text = "So... you think you can kill us?" wait(1) trans2() trans1() sp.Instructions.Info.Text = "Well, then you'll have to try hard to find us..." wait(1) trans2() trans1() sp.Instructions.Info.Text = "We stay in the shadows, and seek you..." wait(1) trans2() trans1() sp.Instructions.Info.Text = "We are..." wait(1) trans2() sp.Instructions.Info.TextColor3 = Color3.new(185, 6, 255) trans1() sp.Instructions.Info.Text = "THE INFECTED!" wait(3) trans2() wait(1) sp.Instructions.Info.TextColor3 = Color3.new(0, 0, 0)
end
Introduction() |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 05:46 PM |
| What is the purpose of the code |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:47 PM |
| Purpose: Fade Text and Change at same time |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 05:47 PM |
Why did you unroll the loop...
I said that changing 'tt' doesn't affect the property, they don't work like that. |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 05:49 PM |
Lol.
I think he means you can't change tt into a variable after adding a local variable. |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:50 PM |
| I really don't know. qq I dumbo (wumbo) |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 05:52 PM |
OK find a new variable each time.
pp=tt-0.1
don't use the same one. |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:53 PM |
.-. Like:
pp=tt-0.1 pq=tt-0.1337 pg=tt-0.9001 |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 05:55 PM |
| No woops. What yoru doing is adding a new variable to the property. You cant do that. :c |
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 05:56 PM |
Do tt=instructions blah blah without the property on the end.
then add it after so.
tt.Transparency(orwatever it was)=tt.Transparency-0.1 |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 05:57 PM |
exwrctv Ok, Ok, what about dis:
tt = 1
repeat tt - 1 until tt = 0
|
|
|
| Report Abuse |
|
|
Lapwn
|
  |
| Joined: 03 Jun 2012 |
| Total Posts: 5975 |
|
|
| 29 Sep 2013 06:00 PM |
OR pp=tt-0.1 tt=pp
lol I said pp |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 06:00 PM |
Ok, cool and Lol
Thanks for helping and actually staying to help btw. |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 06:03 PM |
SO LIK DIS BOI?
function trans1() tt = 1 repeat ttb = tt - 0.1 wait(0.1) until ttb == 0 end |
|
|
| Report Abuse |
|
|
FoggedOut
|
  |
| Joined: 09 Dec 2011 |
| Total Posts: 3021 |
|
|
| 29 Sep 2013 06:06 PM |
| Woops, I wrote ttb by accident. xD I men't tt |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2013 06:07 PM |
No, like this.
for tt=0.1,1,0.1 do TextLabel.TextTransparency=tt wait(0.3) end |
|
|
| Report Abuse |
|
|