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
 

Re: Attempting to make a spawner using LoadAsset

Previous Thread :: Next Thread 
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:06 AM
Everything in the script works, but I want the item to spawn in a specific location.
How would I be able to achieve that by using the location of an existing part to place the item there?
Report Abuse
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:14 AM
b1
Report Abuse
AlreadyPro is not online. AlreadyPro
Joined: 24 Feb 2012
Total Posts: 2463
01 May 2017 08:15 AM
MoveTo


Report Abuse
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:20 AM
@already How would I achieve that? local assetId = ######### ########################################################## = game.Workspace.SpawnPart
Report Abuse
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:21 AM
local assetId = id
game:GetService("InsertService"):LoadAsset(assetId).Parent = game.Workspace.SpawnPart
Report Abuse
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:28 AM
b2
Report Abuse
VirtualHat is not online. VirtualHat
Joined: 21 Feb 2011
Total Posts: 717
01 May 2017 08:39 AM
b3 I need help
Report Abuse
brokenVectors is not online. brokenVectors
Joined: 10 Feb 2016
Total Posts: 966
01 May 2017 08:43 AM
local assetId = id
game:GetService("InsertService"):LoadAsset(assetId).Parent = game.Workspace.SpawnPart
You didn't declare what the loaded asset was, so obviously you can't move to.
game:GetService("InsertService")
local assetId = id
local asset = game:GetService("InsertService"):LoadAsset(assetId)
asset.Parent = game.Workspace.SpawnPart
asset:MoveTo(Vector3.new(x,y,z))


#code print("This is a siggy.")
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