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: My "check for studio" script isn't working.

Previous Thread :: Next Thread 
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 01:38 PM
I'm trying to make a "debug" type of thing. Basically, if the player is in studio, then they get 10,000 cash. If not, then they have 0. This is on the wiki: http://wiki.roblox.com/index.phptitle=API:Class/UserGameSettings/InStudioMode MODULESCRIPT: local module = {} function module.CheckForDebug(arg) if UserSettings().GameSettings.InStudioMode then return true else return false end end return module SCRIPT: local module = require(script.TestModule) game.Players.PlayerAdded:connect(function(player) local leaderstatsFolder = Instance.new("Folder", player) leaderstatsFolder.Name = "leaderstats" local money = Instance.new("NumberValue", ################## ########## = "Money" if module.CheckForDebug() then money.Value = 500 else print("Not in studio") money.Value = 0 end end)
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 01:39 PM
wow... sorry guys pastebin #### /chjZkSyu
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 01:41 PM
what's up with the format on the forums? q.q

/chjZkSyu on pastebin


Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 01:52 PM
b


Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 02:10 PM
b


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Jan 2017 02:42 PM
http://wiki.roblox.com/index.php?title=API:Class/RunService/IsStudio


Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 02:44 PM
@time

Can you add that into my script??


Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
14 Jan 2017 02:45 PM
No. Do it yourself


Report Abuse
badfitz67 is not online. badfitz67
Joined: 03 Jun 2010
Total Posts: 13165
14 Jan 2017 02:46 PM
/85G0xuG5

pastebin


Walking the world is so empty you know. In the land of the beautiful, beauty is cold.
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
14 Jan 2017 02:49 PM
@Bad

Thanks!


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