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 » Scripters
Home Search
 

Re: why wont my script work?

Previous Thread :: Next Thread 
penguinfly5 is not online. penguinfly5
Joined: 24 Apr 2009
Total Posts: 51
21 Jan 2015 03:07 PM
i tried making a timer for my game but i am having trouble changing the value of the display.

first i made a StringValue in workspace called "Time"
then inside of that i made an IntValue called "Minute"
also inside of "Time" i made another IntValue called "Second"
i set the minute value to 10 and then i made a script inside of "Time":

minute = script.parent.Minute
second = script.parent.Second
script.parent.Value = (minute .. ":" .. second)

then i test it in solo mode, and i checked the value of "Time" but it is blank. i tried adding a delay to my script but it doesnt work. me trying to make a timer really isnt the point. its about me not being able to change values with a script. can anyone please help me.
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
21 Jan 2015 03:09 PM
minute = script.parent.Minute
second = script.parent.Second
script.parent.Value = (minute.Value .. ":" .. second.Value)
Report Abuse
penguinfly5 is not online. penguinfly5
Joined: 24 Apr 2009
Total Posts: 51
21 Jan 2015 03:10 PM
i know i forgot to put the tostring function but i also tried this without the minute and second variables and it still didnt work
Report Abuse
soEPIC123TNT is not online. soEPIC123TNT
Joined: 16 Jun 2013
Total Posts: 46
21 Jan 2015 03:11 PM
try this: minute = local script.Parent.Minute
local second = script.Parent.Second
script.Parent.Value = (minute .. ":" .. second)

Report Abuse
Hibobb is not online. Hibobb
Joined: 18 Apr 2010
Total Posts: 2146
21 Jan 2015 03:12 PM
Is Value an IntValue or something in the script's parent? Not a good idea to name things like that Value since Value is also a property.

Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740
Report Abuse
penguinfly5 is not online. penguinfly5
Joined: 24 Apr 2009
Total Posts: 51
21 Jan 2015 03:14 PM
ok thanks it worked
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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