generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Why wont this work?

Previous Thread :: Next Thread 
FoggedOut is not online. 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
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
29 Sep 2013 05:29 PM
The property doesn't update with the variable. You have to set it each time.
Report Abuse
FoggedOut is not online. 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 is not online. 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 is not online. Lapwn
Joined: 03 Jun 2012
Total Posts: 5975
29 Sep 2013 05:46 PM
What is the purpose of the code
Report Abuse
FoggedOut is not online. FoggedOut
Joined: 09 Dec 2011
Total Posts: 3021
29 Sep 2013 05:47 PM
Purpose: Fade Text and Change at same time
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image