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: easy script doesnt work?

Previous Thread :: Next Thread 
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:29 PM
x = script.Parent.Value.Value
while true do
wait(10)

script.Parent.Text = "hello " .. x .. " you will die"

end





Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:43 PM
b1
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:48 PM
b2
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
31 Aug 2014 09:49 PM
You'll need to provide more info than what you have now, since that script could work under the right circumstances.

The best thing you could do is to provide the output. This would let me know if "Value" exists, and if it has a property named "Value" as well, and if it's a string.

Also don't use "X" as a variable. It's a bad practice, since it doesn't indicate at all what it represents. It would be a bigger deal if you were doing it in a 200 lined program/script that you hadn't looked at for a while, because then you would have to try to find out what X is.
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:53 PM
x = script.Parent.StringValue.Value
while true do
wait(10)

script.Parent.Text = "hello " .. x .. " you will die"

end



There are four buttons, clicking one gives StringValue a different Value. Here is a part of the script.


so it's like

onclick(blach blah)

script.Parent.Parent.Parent.sub.s.StringValue.Value = "pox"


funtion clicked blah
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:55 PM
b4
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 09:58 PM
b5
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 10:00 PM
b6
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 10:05 PM
b7
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 10:06 PM
b8
Report Abuse
K7Q is not online. K7Q
Joined: 23 Mar 2013
Total Posts: 5546
31 Aug 2014 10:24 PM
b9
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