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: How do I spawn a brick in front of me?

Previous Thread :: Next Thread 
luta123 is not online. luta123
Joined: 22 Nov 2012
Total Posts: 13
18 May 2013 01:05 PM
I did
brick = Instance.new("Part", Workspace)
but nothing happens.

~Learning Lua Diary~
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
18 May 2013 01:07 PM
brick = Instance.new("Part", Workspace)
brick.Position = game.Workspace.luta123.Head.Position
Report Abuse
luta123 is not online. luta123
Joined: 22 Nov 2012
Total Posts: 13
18 May 2013 01:11 PM
Thanks.

~Learning Lua Diary~
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
18 May 2013 01:14 PM
Well, that's not _ in front_ of him, it's above.

Instance.new("Part",Workspace).Position = game.Workspace.luta123.Head.CFrame.lookVector * 5
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
18 May 2013 01:16 PM
He didn't know how to set the position, so I doubt he knows what you just said.
Make it simple
Report Abuse
lombardo2 is not online. lombardo2
Joined: 30 Nov 2008
Total Posts: 1604
18 May 2013 01:20 PM
Yeah, but that's answering the literal question. Forgot to add the vector to the position

Instance.new("Part",Workspace).Position = game.Workspace.luta123.Head.CFrame.lookVector * 5 + game.Workspace.luta123.Head.Position
Report Abuse
johnhugh is not online. johnhugh
Joined: 26 Mar 2009
Total Posts: 1971
18 May 2013 01:22 PM
Ok, that seams reasonable
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