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: InsertService isn't letting me insert stuff.

Previous Thread :: Next Thread 
Amalgam is not online. 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 is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Oct 2012 06:31 PM
No, it would still work.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
woot3 is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Oct 2012 06:33 PM
Besides, that's not what InsertService does.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
Amalgam is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Oct 2012 06:34 PM
No, it would work.

¤ ¤ † K M X D † ¤ ¤
Report Abuse
Amalgam is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Oct 2012 06:35 PM
Oh, wait you mean:

game:GetService("InsertService"):Insert(Instance.new("Part"))


¤ ¤ † K M X D † ¤ ¤
Report Abuse
Amalgam is not online. 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
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
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
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