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: MouseButtonClick1()

Previous Thread :: Next Thread 
NoobsAreTheWorld is not online. NoobsAreTheWorld
Joined: 04 Nov 2013
Total Posts: 2044
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
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
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
NoobsAreTheWorld is not online. NoobsAreTheWorld
Joined: 04 Nov 2013
Total Posts: 2044
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
29 Sep 2014 06:44 PM
Did you add the "ends" correctly?
Report Abuse
NoobsAreTheWorld is not online. NoobsAreTheWorld
Joined: 04 Nov 2013
Total Posts: 2044
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
29 Sep 2014 06:47 PM
Add an "end)"
Report Abuse
NoobsAreTheWorld is not online. NoobsAreTheWorld
Joined: 04 Nov 2013
Total Posts: 2044
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
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
NoobsAreTheWorld is not online. NoobsAreTheWorld
Joined: 04 Nov 2013
Total Posts: 2044
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
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
29 Sep 2014 06:58 PM
This link might help you:
http://wiki.roblox.com/index.php/Lua_errors
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