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 » Scripting Helpers
Home Search
 

Re: Instance.new("Script")

Previous Thread :: Next Thread 
Catpwnszer is not online. Catpwnszer
Joined: 26 Nov 2010
Total Posts: 631
15 Sep 2011 08:18 PM
So local s = Instance.new("Script") How would I edit this script? So I have created it nao how do I edit it?

So it would be s. --?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
15 Sep 2011 08:22 PM
You cannot edit a scipt's source.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
15 Sep 2011 08:23 PM
local s = Instance.new("Script")
s.Name = "mizisboss"
s.Parent = Workspace

Do you mean that?
Report Abuse
MrSmurfsAlt is not online. MrSmurfsAlt
Joined: 22 Feb 2011
Total Posts: 265
15 Sep 2011 08:23 PM
loadstring
?
Report Abuse
Catpwnszer is not online. Catpwnszer
Joined: 26 Nov 2010
Total Posts: 631
15 Sep 2011 08:26 PM
Well I have a machine that makes bricks. I need that machine to delete the brick it made after 5 seconds. How?
Report Abuse
MrSmurfsAlt is not online. MrSmurfsAlt
Joined: 22 Feb 2011
Total Posts: 265
15 Sep 2011 08:30 PM
function CreateBrick()
local Part = Instance.new("Part", Workspace)
Part.CFrame = CFrame.new(2,2,2)
Part.Size = Vector3.new(5, 5, 5)
Part.Anchored = true
wait(5)
Part:remove()
end

while true do
CreateBrick()
end
Report Abuse
MrSmurfsAlt is not online. MrSmurfsAlt
Joined: 22 Feb 2011
Total Posts: 265
15 Sep 2011 08:31 PM
I didn't really need to use a function for that. . . Oh well
Report Abuse
Catpwnszer is not online. Catpwnszer
Joined: 26 Nov 2010
Total Posts: 631
15 Sep 2011 08:31 PM
Thanks.
Report Abuse
PompeyTheGreat is not online. PompeyTheGreat
Joined: 10 Apr 2011
Total Posts: 5615
15 Sep 2011 08:39 PM
@MRSMURFS

functions give you more smarticles
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
15 Sep 2011 08:47 PM
You can hold the script in Lighting and just clone it to the part.

------------------------------------------------------------------------------------------------------------ROBLOX >>>>>>>> MC
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
15 Sep 2011 08:48 PM
@Block

Scripts don't run in lighting.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
15 Sep 2011 08:50 PM
@miz
You didn't read correctly...I was saying he could store a copy in Lighting, and clone it to an active service when he needed it.

------------------------------------------------------------------------------------------------------------ROBLOX >>>>>>>> MC
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
15 Sep 2011 09:38 PM
Oh, then your correct
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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