How Do You Script Tools and Creations on Roblox?

TIME : 2016-01-07
How Do You Script Tools and Creations on Roblox?

Here's a basic example of scripting a tool and a brick in Roblox using Lua.

Tools:

G = Instance.new("HopperBin")
G.Parent = game.StarterPack
G.BinType = PUT A NUMBER HERE 0-7

Brick (assuming that's what "creation" meant):

b = Instance.new("Part")
b.BrickColor = BrickColor.new(42)
b.Anchored = true
b.Locked = true
b.CanCollide = true
b.Transparency = 0
b.Position = Vector3.new(1, 3, 5)
b.Size = Vector3.new(2, 2, 2)
b.Parent = Workspace

Drop these into a script in Roblox Studio to see them in action.