|
Heres my baseplate plugin if you know how to use plugins:
loaded = false
self = PluginManager():CreatePlugin()
toolbar = self:CreateToolbar("CloneTrooper1019")
button = toolbar:CreateButton("","BaseplateCreator","Baseplate_Adder.png")
function on()
if game.Workspace:findFirstChild("BasePlate") then return end
local part = Instance.new("Part")
part.FormFactor = "Plate"
part.Size = Vector3.new(1,0.4,1)
part.Transparency = 1
part.Anchored = true
part.Locked = true
part.BrickColor = BrickColor.new("Dark green")
part.Name = "BasePlate"
part.Parent = game.Workspace
part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0,-13.6533333333333,0) -- Gets the rotation set up.
on = true
wait()
local gui = Instance.new("ScreenGui")
gui.Parent = game.CoreGui
gui.Name = "BaseGui"
local frame = Instance.new("Frame")
frame.Parent = gui
frame.Size = UDim2.new(0,0,0,0)
frame.Position = UDim2.new(0.5,0,0.625,0)
frame.Style = "RobloxRound"
local BarFrame = Instance.new("Frame")
BarFrame.Position = UDim2.new(0,0,0.5,0)
BarFrame.Size = UDim2.new(1,0,0.325,0)
BarFrame.Style = "RobloxRound"
BarFrame.Visible = false
BarFrame.Parent = frame
local Bar = Instance.new("Frame")
Bar.Parent = BarFrame
Bar.Size = UDim2.new(0,0,1,0)
Bar.Style = "ChatRed"
Bar.Visible = false
local Text = Instance.new("TextLabel")
Text.Parent = frame
Text.Text = "Building Baseplate"
Text.Visible = false
Text.Position = UDim2.new(0.5,0,0.175,0)
Text.Font = "ArialBold"
Text.FontSize = "Size24"
Text.TextStrokeTransparency = 0
Text.TextStrokeColor3 = Color3.new(0,0,0)
Text.TextColor3 = Color3.new(1,1,1)
frame:TweenSizeAndPosition(UDim2.new(0.5,0,0.375,0),UDim2.new(0.25,0,0.3125,0),"Out","Quad",1,true)
wait(1)
Bar.Visible = true
BarFrame.Visible = true
Text.Visible = true
for i = 1,612 do
if part.Parent == game.Workspace then
part.Size = Vector3.new(i*4,0.2,i*4)
part.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(0,0.03,0)
part.Transparency = 1-i/612
Bar.Size = UDim2.new(i/612,0,1,0)
wait()
elseif part.Parent ~= game.Workspace then
game:GetService("GuiService"):SendNotification("Baseplate removed!", "Baseplate was removed.", "rbxasset://textures/ui/DeleteButton.png", 10, function() print("Fatal Error Detected") end)
gui:Destroy()
error("Baseplate Destroyed")
end
end
gui:Destroy()
end
loaded = true
print("Baseplate Builder Loaded")
button.Click:connect(on) |