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: how come the +1 value doent work

Previous Thread :: Next Thread 
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
20 May 2014 10:26 PM
TimesClicked = game.Workspace.Clicks.Value

script.Parent.ClickDetector.MouseClick:connect(function()
TimesClicked + 1
end)

the Clicks is a number value
Report Abuse
Jdad is not online. Jdad
Joined: 12 Jan 2009
Total Posts: 5143
20 May 2014 10:28 PM
You cant set a property as a variable

TimesClicked = game.Workspace.Clicks

script.Parent.ClickDetector.MouseClick:connect(function()
TimesClicked.Value = TImesClicked.Value + 1
end)
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
20 May 2014 10:29 PM
oh I see
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
20 May 2014 10:30 PM
it says theres a error at script.Parent.ClickDetector.MouseClick:connect(function()
Report Abuse
Zero2308 is not online. Zero2308
Joined: 26 Dec 2012
Total Posts: 131
20 May 2014 10:35 PM
did u putted a ClickDetector?
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
20 May 2014 10:38 PM
Just post the script please
Report Abuse
Zero2308 is not online. Zero2308
Joined: 26 Dec 2012
Total Posts: 131
20 May 2014 10:39 PM
Correct Line 4 : TimesClicked.Value = TimesClicked.Value + 1

It was "TImesClicked"
Report Abuse
Zero2308 is not online. Zero2308
Joined: 26 Dec 2012
Total Posts: 131
20 May 2014 10:41 PM
Use IntValue on "Clicks"
Put the ClickDetector on the Part
Put this script on the Part:

TimesClicked = game.Workspace.Clicks

script.Parent.ClickDetector.MouseClick:connect(function()
TimesClicked.Value = TimesClicked.Value + 1
end)
Report Abuse
tekkr is not online. tekkr
Joined: 30 Dec 2013
Total Posts: 3570
21 May 2014 08:29 AM
the script is in a click detector
Report Abuse
uyoyalt is not online. uyoyalt
Joined: 16 Apr 2013
Total Posts: 2860
21 May 2014 08:35 AM
Part > ClickDetector > Script

Add a part
Report Abuse
Zero2308 is not online. Zero2308
Joined: 26 Dec 2012
Total Posts: 131
23 May 2014 11:33 PM
if the script is in the Click Detector





TimesClicked = game.Workspace.Clicks

script.Parent.MouseClick:connect(function()
TimesClicked.Value = TimesClicked.Value + 1
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