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
 

I need help with something very simple

Previous Thread :: Next Thread 
nomorehacks is not online. nomorehacks
Joined: 27 Jan 2010
Total Posts: 2380
01 Dec 2013 03:31 AM
So I Am on script builder.

I have this script which creates a block:

local brick = Instance.new("Part", game.Workspace)
brick.Name = "NewBrick"
brick.Size = Vector3.new(10, 10, 10)

However, I have another script which does something and I want it to be Inside of the brick. Is their a way to make it go inside the brick (Keep in mind Im in a game on script builder)
Report Abuse
KEVEKEV77 is not online. KEVEKEV77
Joined: 12 Mar 2009
Total Posts: 6961
01 Dec 2013 03:38 AM
local brick = Instance.new("Part", game.Workspace)
brick.Name = "NewBrick"
brick.Size = Vector3.new(10, 10, 10)
brick.CFrame = CFrame.new (game.Workspace.brickuwantittogoinsideof)
Report Abuse
TheRobloxGuyAlt2 is not online. TheRobloxGuyAlt2
Joined: 24 Nov 2013
Total Posts: 5
01 Dec 2013 07:14 AM
local brick = Instance.new("Part",game.Workspace)
brick.Name = "NewBrick"
brick.Size = Vector3.new(10, 10, 10)
-- That's the first...
-- Let's say you want another part to go inside the brick.
-- So...
local part = Instance.new("Part",game.Workspace)
part.Name = "Insidebrick"
part.Position = brick.Position
Report Abuse
donovanisawesome is not online. donovanisawesome
Joined: 18 Aug 2010
Total Posts: 548
01 Dec 2013 10:04 AM
Simple.


local brick = Instance.new("Part", game.Workspace)
brick.Name = "NewBrick"
brick.Size = Vector3.new(10, 10, 10

So, now you want a script to be put inside a brick; copy and paste this into a new script, and we-write the original code in your new script, which this creates:

LEL = Instance.new("Script", game.Workspace.YOURBRICKNAMEHERE)
LEL.Name = "MehInsideScript"

That is literally all. Not the complicated. XD

(there is a 999999% chance this wont work)
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