|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 10 Apr 2017 05:27 PM |
| ### #### there you go. But why do you need these? Just curious |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 10 Apr 2017 05:31 PM |
| You can use chat in studio tests now. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 10 Apr 2017 05:39 PM |
'Cause it also prints in the studio...
#code -- This is a comment in Lua. -- |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|