Problox plugin [Simple instance inserter]
2 posters
Page 1 of 1
Problox plugin [Simple instance inserter]
Problox Instance Inserter Version 1.0
Installation:
- Code:
//1. Create a new folder in the ROBLOX plugins folder titled "Problox"
//2. Create a text file in that folder, and post the script found in the other code below.
//3. Save that text file as a .Lua file in the same folder.
//4. Remove the normal text document.
//5. Run roblox, and insert whatever instances you may want to.
//(Note: Services do NOT work.. Just instances.)
Here is the script to put into Lua format:
- Code:
print("Problox Tool system loading")
--Main Part Tags:
pbgui = Instance.new("ScreenGui", game.CoreGui)
MF = Instance.new("Frame", pbgui)
IT = Instance.new("Frame", MF)
Fld = Instance.new("TextBox", IT)
Cpy = Instance.new("TextButton", MF)
insrt = Instance.new("TextButton", MF)
insel = Instance.new("TextButton", MF)
inwrk = Instance.new("TextButton", MF)
itw = Instance.new("BoolValue", pbgui)
hsf = Instance.new("Frame", pbgui)
hsb = Instance.new("TextButton", hsf)
achr = Instance.new("TextButton", MF)
tind1 = Instance.new("TextLabel", MF)
tind2 = Instance.new("TextLabel", MF)
--Main Part Attributes:
tind1.Name = "iss"
tind1.Text = "X"
tind1.FontSize = "Size12"
tind1.TextColor = BrickColor.new("Really red")
tind1.Visible = false
tind1.Position = UDim2.new(0, 160, 0, 60)
--
tind2.Name = "isw"
tind2.Text = "X"
tind2.FontSize = "Size12"
tind2.TextColor = BrickColor.new("Really red")
tind2.Visible = true
tind2.Position = UDim2.new(0, 185, 0, 80)
--
hsf.Size = UDim2.new(0, 25, 0, 25)
hsf.Style = 2
hsf.Name = "HSF"
hsf.Position = UDim2.new(1, -25, 0, 105)
--
hsb.Size = UDim2.new(3, 0, 3, 0)
hsb.BackgroundTransparency = 1
hsb.Position = UDim2.new(-1, 0, -1, 0)
hsb.Text = "H"
hsb.FontSize = "Size12"
hsb.TextColor = BrickColor.new("Institutional white")
--
itw.Name = "Itw"
itw.Value = true
--
pbgui.Name = "ProbloxGui"
--
MF.Size = UDim2.new(0, 250, 0, 100)
MF.Position = UDim2.new(1, -250, 0, 0)
MF.Style = 3
MF.Name = "MFrame"
--
IT.Size = UDim2.new(1, 0, 0, 25)
IT.Style = 3
IT.Name = "Instancetext"
--
Fld.Size = UDim2.new(1, 0, 2, 0)
Fld.Position = UDim2.new(0, 0, -0.5, 0)
Fld.FontSize = "Size10"
Fld.Text = "Name of Instance here."
Fld.TextColor = BrickColor.new("Institutional white")
Fld.BackgroundTransparency = 1
Fld.Name = "Field"
--
Cpy.Size = UDim2.new(0, 50, 0, 20)
Cpy.Position = UDim2.new(0, 0, 0, 30)
Cpy.FontSize = "Size12"
Cpy.Text = "Clone"
Cpy.TextColor = BrickColor.new("Institutional white")
Cpy.Style = 1
Cpy.Name = "Copy"
--
insrt.Size = UDim2.new(0, 50, 0, 20)
insrt.Position = UDim2.new(0, 50, 0, 30)
insrt.FontSize = "Size12"
insrt.Text = "Insert"
insrt.TextColor = BrickColor.new("Institutional white")
insrt.Style = 1
insrt.Name = "Insert"
--
achr.Size = UDim2.new(0, 125, 0, 20)
achr.Position = UDim2.new(0, 100, 0, 30)
achr.FontSize = "Size12"
achr.Text = "Anchored: On"
achr.TextColor = BrickColor.new("Institutional white")
achr.Style = 1
achr.Name = "tganchor"
--
insel.Size = UDim2.new(0, 150, 0, 20)
insel.Position = UDim2.new(0, 0, 0, 50)
insel.FontSize = "Size12"
insel.Text = "Insert into selection"
insel.TextColor = BrickColor.new("Institutional white")
insel.Style = 1
insel.Name = "IntoSel"
--
inwrk.Size = UDim2.new(0, 175, 0, 20)
inwrk.Position = UDim2.new(0, 0, 0, 70)
inwrk.FontSize = "Size12"
inwrk.Text = "Insert into Workspace"
inwrk.TextColor = BrickColor.new("Institutional white")
inwrk.Style = 1
inwrk.Name = "IntoWork"
--SCRIPT:
anchor = true
function Copy()
for i = 1,#game.Selection:Get()
do sel = game.Selection:Get()[i]:Clone()
sel.Parent = game.Workspace
end
end
function intowork()
itw.Value = true
tind2.Visible = true
tind1.Visible = false
end
function intosel()
itw.Value = false
tind2.Visible = false
tind1.Visible = true
end
function newobject()
if itw.Value == false then
for i = 1,#game.Selection:Get()
do selection = game.Selection:Get()[i]
obj = Instance.new(Fld.Text)
obj.Parent = selection
end
if obj.ClassName == "Part" or obj.ClassName == "WedgePart" or obj.ClassName == "TrussPart" or obj.ClassName == "CornerWedgePart" then
if anchor == true then
obj.Anchored = true
end
end
if obj.ClassName == "Part" or obj.ClassName == "WedgePart" then
obj.FormFactor = 0
end
elseif itw.Value == true then
objc = Instance.new(Fld.Text)
objc.Parent = game.Workspace
if objc.ClassName == "Part" or objc.ClassName == "WedgePart" or objc.ClassName == "TrussPart" or objc.ClassName == "CornerWedgePart" then
if anchor == true then
objc.Anchored = true
end
end
if objc.ClassName == "Part" or objc.ClassName == "WedgePart" then
objc.FormFactor = 0
end
end
end
hoc = true
Debo = false
function hocl()
if hoc == false and Debo == false then
Debo = true
MF:TweenPosition(UDim2.new(1, -250, 0, 0))
hsf:TweenPosition(UDim2.new(1, -25, 0, 105))
hsb.Text = "H"
Wait(1)
hoc = true
Debo = false
elseif hoc == true and Debo == false then
Debo = true
MF:TweenPosition(UDim2.new(1, 255, 0, 0))
hsf:TweenPosition(UDim2.new(1, -25, 0, 0))
hsb.Text = "S"
Wait(1)
hoc = false
Debo = false
end
end
function tanchor()
if anchor == false then
achr.Text = "Anchored: On"
anchor = true
elseif anchor == true then
achr.Text = "Anchored: Off"
anchor = false
end
end
achr.MouseButton1Click:connect(tanchor)
hsb.MouseButton1Click:connect(hocl)
Cpy.MouseButton1Click:connect(Copy)
inwrk.MouseButton1Click:connect(intowork)
insel.MouseButton1Click:connect(intosel)
insrt.MouseButton1Click:connect(newobject)
--
print("Problox (By TerrainCrypt) Has Loaded. Have fun!")
Have fun with Problox, I hope it helps you out!
How to use:
Type in the exact name of whatever instance you wish to insert, then choose whether you want to insert it directly into workspace, or into your current selection. Some objects can't be inserted into selections.
Re: Problox plugin [Simple instance inserter]
I'm gonna go ahead and use this.
theopfor- Admin
- Posts : 84
Join date : 2012-01-03
Age : 105
Location : Look Behind You!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|