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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 14 Jan 2017 01:39 PM |
| wow... sorry guys pastebin #### /chjZkSyu |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|
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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 14 Jan 2017 02:44 PM |
@time
Can you add that into my script??
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
| |
|
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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|