Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:27 PM |
Here's my code: game:GetService("InsertService").Insert(Instance.new("Part"))
The Error I get is: The function Insert is not a member of "Part"
What am I doing wrong? |
|
|
| Report Abuse |
|
|
asimo3089
|
  |
| Joined: 19 Apr 2009 |
| Total Posts: 1184 |
|
|
| 21 Oct 2012 06:28 PM |
local part = Instance.new("Part") part.Parent = workspace part.Anchored = true
etc etc |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:29 PM |
>>asimo3089
If the Workspace's name were changed, that wouldn't work. That's why I want to use the Insert Service. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 06:31 PM |
No, it would still work.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
woot3
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3599 |
|
|
| 21 Oct 2012 06:31 PM |
| No matter what it's name is, game.Workspace will always point toward the Workspace. |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:32 PM |
>>KnightmareXD
game.Workspace.Name = "Amalgam"
object.Parent = game.Workspace
That wouldn't work because it would have to go to.
object.Parent = game.Amalgam |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 06:33 PM |
Besides, that's not what InsertService does.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:33 PM |
Sorry, I just tested it and that's right.
Doesn't make to sense to me, but I guess it works. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 06:34 PM |
No, it would work.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:34 PM |
>>KnightmareXD
That's what the InsertService used to do.
I guess it's just that my knowledge is outdated. |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:35 PM |
>>KnightmareXD
That's what I said. It worked game.Workspace even when the Workspace's name was Amalgam. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 06:35 PM |
Oh, wait you mean:
game:GetService("InsertService"):Insert(Instance.new("Part"))
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
Amalgam
|
  |
| Joined: 08 Oct 2012 |
| Total Posts: 54 |
|
|
| 21 Oct 2012 06:53 PM |
>>KnightmareXD
Yeah, but it looked like it wasn't working.
I'm just using game.Workspace like a lot of people said since it is working. |
|
|
| Report Abuse |
|
|
|
| 21 Oct 2012 07:53 PM |
"If the Workspace's name were changed, that wouldn't work."
The only people who would change it, are looking to destroy a game. |
|
|
| Report Abuse |
|
|