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
 

Creating a script from within a script

Previous Thread :: Next Thread 
Huminoidjoe is not online. Huminoidjoe
Joined: 25 May 2011
Total Posts: 10748
21 Oct 2015 02:24 PM
local s=Instance.new("Script")
s.Source=[[while true do
script.Parent.BrickColor = BrickColor.new (math.random (), math.random (), math.random () )
wait(0.01)
end]]
s.Parent=game.Workspace.BasePlate

This doesn't work, can someone fix it?
Report Abuse
nomer888 is not online. nomer888
Joined: 13 Feb 2010
Total Posts: 551
21 Oct 2015 02:32 PM
Unfortunately, the Source property of scripts is locked. Only the command bar and plugins can use it.
Report Abuse
121bytes is not online. 121bytes
Joined: 20 Aug 2014
Total Posts: 250
21 Oct 2015 02:35 PM
loadstring?


yudodis
Report Abuse
Huminoidjoe is not online. Huminoidjoe
Joined: 25 May 2011
Total Posts: 10748
21 Oct 2015 02:36 PM
Person299 did it in his admin commands though, didn't he?
Report Abuse
121bytes is not online. 121bytes
Joined: 20 Aug 2014
Total Posts: 250
21 Oct 2015 02:40 PM
wat, uve never been able to edit the source using a script, core script sure but u cant in game



yudodis
Report Abuse
nomer888 is not online. nomer888
Joined: 13 Feb 2010
Total Posts: 551
21 Oct 2015 02:44 PM
@121bytes
If I recall correctly, you used to be able to edit the source of a script via a regular script, but that functionality was removed. You can still edit the source of a script via a script, but it must be a plugin.
Report Abuse
Huminoidjoe is not online. Huminoidjoe
Joined: 25 May 2011
Total Posts: 10748
21 Oct 2015 02:44 PM
How would I do it with a loadstring then?
Report Abuse
121bytes is not online. 121bytes
Joined: 20 Aug 2014
Total Posts: 250
21 Oct 2015 02:45 PM
loadstring(code)()

idk only been on since 010 and dun remember being able to besides in core scripts


yudodis
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