|
| 29 Sep 2014 06:20 PM |
This script is not working really not at all. Please do not judge i am not a pro at scripting but this script is suppost to when you click it it changed the color of the text to red and then changed the text like a loading thing.
I know it looks long but its really short when you come to look at it!
MouseButtonClick1() then script.Parent.TextColor3 = 255, 0, 0
script.Parent.Text = '10%' wait(1) script.Parent.Text = '20%' wait(1) script.Parent.Text = '30%' wait(1) script.Parent.Text = '40%' wait(1) script.Parent.Text = '50%' wait(1) script.Parent.Text = '60%' wait(1) script.Parent.Text = '70%' wait(1) script.Parent.Text = '80%' wait(1) script.Parent.Text = '90%' wait(1) script.Parent.Text = '100%'
script.Parent.Parent:destroy()
Yo mama so fat she sat on an iPhone and turned it into an iPad |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:26 PM |
How about I fix it and make it even shorter:
script.Parent.MouseButton1Click:connect(function() script.Parent.TextColor3 = Vector3.new(255,0,0) for i = 10,100,10 do script.Parent.Text = i.."%" end end)
-Vanilla |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:42 PM |
I cannot use your method vanilla cause i plan on things to happen threw the load so i did your fix and the way i did it but its still doing an error.
script.Parent.MouseButton1Click:connect(function() script.Parent.TextColor3 = Vector3.new(255,0,0) script.Parent.Text = "10%" wait(1) script.Parent.Text = "10%" wait(1) script.Parent.Text = "20%" wait(1) script.Parent.Text = "30%" wait(1) script.Parent.Text = "40%" wait(1) script.Parent.Text = "50%" wait(1) script.Parent.Text = "60%" wait(1) script.Parent.Text = "70%" wait(1) script.Parent.Text = "80%" wait(1) script.Parent.Text = "90%" wait(1) script.Parent.Text = "100%" wait(0.001) script.Parent.Parent:Destroy()
Yo mama so fat she sat on an iPhone and turned it into an iPad |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:44 PM |
| Did you add the "ends" correctly? |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:45 PM |
How many ends? I am a beginner sorry..
Yo mama so fat she sat on an iPhone and turned it into an iPad |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2014 06:48 PM |
Still an error.
In output it says:
"19:48:18.939 - Disconnected event because of exception"
Yo mama so fat she sat on an iPhone and turned it into an iPad |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:53 PM |
Oops,
"script.Parent.TextColor3 = Vector3.new(255,0,0)"
Replace that line with something such as,
"script.Parent.TextColor3 = Color3.new(255,0,0)"
|
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:55 PM |
Thanks! Also can you give me a link of the ends?
Yo mama so fat she sat on an iPhone and turned it into an iPad |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2014 06:58 PM |
This link might help you: http://wiki.roblox.com/index.php/Lua_errors |
|
|
| Report Abuse |
|
|