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: Brick Spawner

Previous Thread :: Next Thread 
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
11 Feb 2014 09:35 PM
wait(5)
while true do
wait(.1)
local pos = script.Parent
local b = Instance.new("Part")

b.Position = pos.Position + pos.CFrame.lookVector
b.Size = Vector3.new(2, 2, 2)
b.Shape = 0
b.BrickColor=BrickColor.new("Bright blue")
b.Transparency = 0.3
b.TopSurface = "Smooth"
b.BottomSurface = "Smooth"
b.CanCollide = true
b.Parent = game.Workspace
b.Velocity = Vector3.new(1, 75, 1)
end


I need this script to spawn it in a different place than the workspace, like in a group.
Report Abuse
Laedere is not online. Laedere
Joined: 17 Jun 2013
Total Posts: 23601
11 Feb 2014 09:36 PM
what do you mean in a group
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
11 Feb 2014 09:37 PM
What I want is a spawner something like
script.Parent.Parent(SpawnBlock)
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
11 Feb 2014 09:43 PM
Watch my video it will tell you what you need: http://www.youtube.com/watch?v=RGmYlLOe-Sc
Report Abuse
SecondaryZero is not online. SecondaryZero
Joined: 22 Nov 2013
Total Posts: 162
11 Feb 2014 09:43 PM
If that not what you ment use Torso.CFrame = CFrame.new()
or MoveTo(Vector3.new())
Report Abuse
DevDerp is not online. DevDerp
Joined: 25 Jan 2009
Total Posts: 1000
11 Feb 2014 09:44 PM
wait(5)
while true do
wait(.1)
local pos = script.Parent
local b = Instance.new("Part",Instance.new('Model',workspace))

b.Position = pos.Position + pos.CFrame.lookVector
b.Size = Vector3.new(2, 2, 2)
b.Shape = 0
b.BrickColor=BrickColor.new("Bright blue")
b.Transparency = 0.3
b.TopSurface = "Smooth"
b.BottomSurface = "Smooth"
b.CanCollide = true
b.Velocity = Vector3.new(1, 75, 1)
end
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
11 Feb 2014 09:44 PM
You guys dont understand. I dont need a teleporter. I need to set where the brick spawns.
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
11 Feb 2014 09:46 PM
I'll test this.
Report Abuse
jd678 is not online. jd678
Joined: 18 Apr 2008
Total Posts: 11529
11 Feb 2014 10:44 PM
theBrick = Workspace.Brick
theLocation = Vector3.new(0,0,0) --Define an actual position.. or something like Node.Position?

function SpawnAt(Brick, Location)
Brick.Position = Location
end

SpawnAt(theBrick, theLocation)
Report Abuse
usfirepilot is not online. usfirepilot
Joined: 17 Jan 2013
Total Posts: 684
12 Feb 2014 08:56 AM
---------------------------------------------------------------------------------
C A S E C L O S E D
---------------------------------------------------------------------------------
I figured it out. Its this
wait(5)
while true do
wait(.1)
local pos = script.Parent
local b = Instance.new("Part",script.Parent.Parent.Apple)--Change apple to the name of your brick or group

b.Position = pos.Position + pos.CFrame.lookVector
b.Size = Vector3.new(2, 2, 2)
b.Shape = 0
b.BrickColor=BrickColor.new("Bright blue")
b.Transparency = 0.3
b.TopSurface = "Smooth"
b.BottomSurface = "Smooth"
b.CanCollide = true
b.Velocity = Vector3.new(1, 75, 1)
end
Report Abuse
DevDerp is not online. DevDerp
Joined: 25 Jan 2009
Total Posts: 1000
12 Feb 2014 03:43 PM
usfirepilot, please this would be considered spam. Its exactly what i made.
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