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 does this not work?

Previous Thread :: Next Thread 
backuptix is not online. backuptix
Joined: 19 Jul 2010
Total Posts: 4
29 Mar 2017 01:25 PM
I have the following script in a LocalScript in the workspace and have a Value named "Thething" why is this not working...?





workspace.TheThing.Changed:connect(function()
if workspace.Thething.Value == 1 then
game.Players.LocalPlayer.PlayerGui.ScreenGui.TextButton2.Text="WARM UP"
end
end
Report Abuse
COOKCASE22 is not online. COOKCASE22
Joined: 01 Sep 2013
Total Posts: 818
29 Mar 2017 02:25 PM
Local scripts usually won't work in the workspace
Report Abuse
yankana is not online. yankana
Joined: 17 Jun 2011
Total Posts: 431
29 Mar 2017 02:26 PM
TheThing, then Thething...

Check your cases.
Report Abuse
yankana is not online. yankana
Joined: 17 Jun 2011
Total Posts: 431
29 Mar 2017 02:27 PM
########### LocalScripts do interfer with the Workspace.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
29 Mar 2017 02:29 PM
LocalScripts do not run if they're a child of Workspace.


Report Abuse
backuptix is not online. backuptix
Joined: 19 Jul 2010
Total Posts: 4
29 Mar 2017 02:36 PM
I fixed the uppercase lowercase issue, and put the script into StarterGui... Still not working, any suggestions?
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
29 Mar 2017 02:38 PM
LocalScripts don't run if they're a child of workspace?!?!?!!?!?! D;
Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
29 Mar 2017 02:40 PM
crap when did they make that change. My home is a rock :/

wiki.roblox.com/index.php?title=API:Class/LocalScript
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
29 Mar 2017 02:41 PM
What do you mean? I don't recall LocalScripts ever being able to run in Workspace and I joined in 2010.

It wouldn't make sense for them to.


Report Abuse
Atavis is not online. Atavis
Joined: 10 Apr 2012
Total Posts: 1463
29 Mar 2017 02:43 PM
crap I literally live under a rock. And why not? A player's Character model is in the workspace?

but meh. Thanks. For correcting my idiocy, slightly.
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
29 Mar 2017 02:44 PM
"A player's Character model is in the workspace?"

I said "child", not "descendant". There's a few exceptions.


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