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: Delete save gui help

Previous Thread :: Next Thread 
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 06:09 PM
local xp = script.Parent.Parent.Parent.Parent.Parent.MainStats.XP
local gold = script.Parent.Parent.Parent.Parent.Parent.MainStats.Gold
local level = script.Parent.Parent.Parent.Parent.Parent.MainStats.Level

function erase()
script.Parent.TextTransparency = 0.1
script.Parent.Parent.No.TextTransparency = 0.1
script.Parent.Parent.ButtonLabel.TextTransparency = 0.1
wait(0.1)
script.Parent.TextTransparency = 0.2
script.Parent.Parent.No.TextTransparency = 0.2
script.Parent.Parent.ButtonLabel.TextTransparency = 0.2
wait(0.1)
script.Parent.TextTransparency = 0.3
script.Parent.Parent.No.TextTransparency = 0.3
script.Parent.Parent.ButtonLabel.TextTransparency = 0.3
wait(0.1)
script.Parent.TextTransparency = 0.4
script.Parent.Parent.No.TextTransparency = 0.4
script.Parent.Parent.ButtonLabel.TextTransparency = 0.4
wait(0.1)
script.Parent.TextTransparency = 0.5
script.Parent.Parent.No.TextTransparency = 0.5
script.Parent.Parent.ButtonLabel.TextTransparency = 0.5
wait(0.1)
script.Parent.TextTransparency = 0.6
script.Parent.Parent.No.TextTransparency = 0.6
script.Parent.Parent.ButtonLabel.TextTransparency = 0.6
wait(0.1)
script.Parent.TextTransparency = 0.7
script.Parent.Parent.No.TextTransparency = 0.7
script.Parent.Parent.ButtonLabel.TextTransparency = 0.7
wait(0.1)
script.Parent.TextTransparency = 0.8
script.Parent.Parent.No.TextTransparency = 0.8
script.Parent.Parent.ButtonLabel.TextTransparency = 0.8
wait(0.1)
script.Parent.TextTransparency = 0.9
script.Parent.Parent.No.TextTransparency = 0.9
script.Parent.Parent.ButtonLabel.TextTransparency = 0.9
wait(0.1)
script.Parent.Visible = false
script.Parent.Parent.No.Visible = false
script.Parent.Parent.ButtonLabel.Visible = false
wait(1)
script.Parent.Parent.Warn.Text = "Erasing XP, Level and Gold..."
wait(2)
xp.Value = 0
lvl.Value = 0
gold.Value = 0
wait(0.5)
script.Parent.Parent.Warn.Text = "Clearing StarterGear..."
wait(2)
script.Parent.Parent.Parent.Parent.Parent.StarterGear:ClearAllChildren()
wait(1)
script.Parent.Parent.Warn.Text = "Data erased. Killing player..."
wait(3)
script.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end

script.Parent.MouseButton1Click:connect(erase)

Won't work after Erasing XP, Level, and Gold.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
29 Oct 2012 06:10 PM
I have a headache,
so many problems.

I don't even want to fix them.
Report Abuse
Taniss99 is not online. Taniss99
Joined: 15 Dec 2007
Total Posts: 1707
29 Oct 2012 06:13 PM
Just make a for loop instead of having sixteen bijillion lines of code D:
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 06:13 PM
Don't post if not going to help.
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 06:14 PM
The transparency isn't the problem.
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 06:15 PM
No answers. Inactive SH. Bump.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:09 PM
Why are you not using a for loop? I am seriously doubting you know the Lua syntax gametastic100...

~thedestroyer115, check out my sets!~
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:11 PM
Stop F5ing too pl0x.

~thedestroyer115, check out my sets!~
Report Abuse
RoScripts is not online. RoScripts
Joined: 27 Oct 2012
Total Posts: 1824
29 Oct 2012 07:12 PM
Any output?
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:13 PM
the destroyer, if I wanted to do this, " for i = 1/10 do
script.Parent.BackGroundTransparency = i/10
wait(0.5)
end"

I would have. Stop saying, "I am seriously doubting you know the lua syntax..."

I know the fugging syntax. Stop trying to say I free model. If I did I wouldn't even know how to even write the code.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:13 PM
Lol and this is the guy who accused my of fail scripts and fail games. :3
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
29 Oct 2012 07:15 PM
Change it into a localscript and then come back. I can't even read it with so many parents.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:16 PM
That is not how you do a for loop... you don't know the syntax.


for i = 1, 10, 1 do
script.Parent.BackGroundTransparency = i/10
wait(0.5)
end


Thats how you do it.

~thedestroyer115, check out my sets!~
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:19 PM
thedestroyer, stop trying to be cocky. You just looked like a idiot. First that's the same as my script except that it might make the transparency fade smoother. Second, stop stalking my threads. Third, I know the syntax if I can script my own leaderboard,y own playerlist, and my own AI.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:19 PM
Whoops!

for i = 1, 10, 1 do
script.Parent.BackGroundTransparency = i
wait(0.5)
end
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:22 PM
Plus I need to make all of them fade at the same time. If you weren't acting so ignorant you would have known that. I need corountines for this to run them at the same time. I bet you can't even do those yet to, so please, get off my threads insulting me.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:22 PM
@Quan
I am done with you. I tested your code: fail. That would also have no difference in how fast or smoothly it comes in, because... 1 = transparent. 0 = visible.


for i = 0, 1, 0.1 do
script.Parent.BackGroundTransparency = i
wait(0.5)
end


That makes it fade... and you say you can make a custom leaderboard? But you don't know simple Gui properties? Am I alone or does this guy look like a lier?

~thedestroyer115, check out my sets!~
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:23 PM
Dude. This is exactly why no one likes you but the buttkissers that play your game.
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:23 PM
Acting like you're the king of scripting just because I didn't use a for loop inside a corountine. Leave. Me. Be.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:26 PM
Why would you ever need coroutines? Just make a simple for loop...


for i = 0, 1, 0.1 do
script.Parent.TextTransparency = i
script.Parent.Parent.No.TextTransparency = i
script.Parent.Parent.ButtonLabel.TextTransparency = i
wait(0.5)
end


~thedestroyer115, check out my sets!~
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:36 PM
Idiot. Proved you wrong and say," oh. but yu didn't do it dat wey lololululul."

I did it exactly as I did in this forum.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:37 PM
Quan, you saw you showed me up on a script builder. Yet you changed the code that you posted. >:3


for i = 1/10 do
script.Parent.BackGroundTransparency = i/10
wait(0.5)
end"


You posted this, yet you changed it in the script builder.
Report Abuse
QuanW is not online. QuanW
Joined: 09 Feb 2012
Total Posts: 162
29 Oct 2012 07:39 PM
Are you a idiot? Read that post where I posted that for loop for you really cearly. And just because it's in quotations doesn't mean it's a part of the script.
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:40 PM
Heres your code Quan:

http://www.roblox.com/Forum/ShowPost.aspx?PostID=81109852
Report Abuse
thedestroyer115 is not online. thedestroyer115
Joined: 19 Dec 2010
Total Posts: 11546
29 Oct 2012 07:41 PM
OMG QUAN!

"the destroyer, if I wanted to do this, " for i = 1/10 do
script.Parent.BackGroundTransparency = i/10
wait(0.5)
end"

I would have. Stop saying, "I am seriously doubting you know the lua syntax..."

I know the fugging syntax. Stop trying to say I free model. If I did I wouldn't even know how to even write the code."

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