|
| 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 |
|
|
|
| 15 Sep 2011 08:22 PM |
| You cannot edit a scipt's source. |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 15 Sep 2011 08:31 PM |
| I didn't really need to use a function for that. . . Oh well |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Sep 2011 08:39 PM |
@MRSMURFS
functions give you more smarticles |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 15 Sep 2011 08:48 PM |
@Block
Scripts don't run in lighting. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|