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: Two questions.

Previous Thread :: Next Thread 
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
10 Apr 2017 05:20 PM
First. Is it possible to create a script that will only work when it's not in the studio but in the actual game published on the website?

Second is it possible to make a script that will take effect in the studio without clicking the "Test" button? Also, it cannot be a plugin.


#code -- This is a comment in Lua. --
Report Abuse
brightstorm603 is not online. brightstorm603
Joined: 10 Apr 2010
Total Posts: 6807
10 Apr 2017 05:22 PM
1. Why exactly do you need this? Maybe you can do it with some weird voodoo lua magic, but it seems like an awful lot of effort. If you don't want a script running in studio, can't you just disable it while you're working on the place?

2. You can probably find free modeled tools that allow you to build things in-game, but I don't think this is possible.

Could you tell us exactly what these two questions are for? That might help a little.
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Apr 2017 05:23 PM
1.
http://wiki.roblox.com/index.php?title=API:Class/RunService/IsServer
http://wiki.roblox.com/index.php?title=API:Class/RunService/IsStudio

2.
You can run code in studio with the command bar.
Report Abuse
brightstorm603 is not online. brightstorm603
Joined: 10 Apr 2010
Total Posts: 6807
10 Apr 2017 05:27 PM
### #### there you go. But why do you need these? Just curious
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
10 Apr 2017 05:28 PM
1) .Chatted only works in game(as far as I know).
2) Use the command bar.
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Apr 2017 05:31 PM
You can use chat in studio tests now.
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
10 Apr 2017 05:38 PM
Did I do something wrong?


if game:GetService("RunService"):IsServer() then

print("test")

end


#code -- This is a comment in Lua. --
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
10 Apr 2017 05:39 PM
'Cause it also prints in the studio...


#code -- This is a comment in Lua. --
Report Abuse
LightFantom is online. LightFantom
Joined: 23 Sep 2014
Total Posts: 7830
10 Apr 2017 05:51 PM
Ah I see I fixed it. Thanks btw that was really helpful.


#code -- This is a comment in Lua. --
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