Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpotLight2 = Instance.new("SpotLight")
- PointLight3 = Instance.new("PointLight")
- SpecialMesh4 = Instance.new("SpecialMesh")
- LocalScript5 = Instance.new("LocalScript")
- NumberValue6 = Instance.new("NumberValue")
- StringValue7 = Instance.new("StringValue")
- BoolValue8 = Instance.new("BoolValue")
- ScreenGui9 = Instance.new("ScreenGui")
- TextButton10 = Instance.new("TextButton")
- TextButton11 = Instance.new("TextButton")
- Tool0.Name = "Multitool"
- Tool0.Parent = mas
- Tool0.GripForward = Vector3.new(-0, 0.99999994, -0)
- Tool0.GripPos = Vector3.new(0, -0.5, 0)
- Tool0.GripRight = Vector3.new(0, 0, 1)
- Tool0.GripUp = Vector3.new(-1, 0, 0)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Gold")
- Part1.Rotation = Vector3.new(0, 0, -90)
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.CFrame = CFrame.new(1.50000048, 0.499999762, -3.49999976, -9.2081666e-07, 1, 0, -1, -9.19381023e-07, -4.16625085e-07, -4.16830659e-07, -2.98023224e-08, 1)
- Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
- Part1.Position = Vector3.new(1.50000048, 0.499999762, -3.49999976)
- Part1.Orientation = Vector3.new(0, 0, -90)
- Part1.Color = Color3.new(0.937255, 0.721569, 0.219608)
- SpotLight2.Parent = Part1
- SpotLight2.Enabled = false
- SpotLight2.Brightness = 5
- SpotLight2.Range = 60
- SpotLight2.Angle = 120
- SpotLight2.Face = Enum.NormalId.Top
- PointLight3.Parent = Part1
- PointLight3.Enabled = false
- PointLight3.Brightness = 5
- PointLight3.Range = 12
- SpecialMesh4.Parent = Part1
- SpecialMesh4.MeshId = "rbxassetid://477898249"
- SpecialMesh4.Offset = Vector3.new(0, -1.79999995, 0)
- SpecialMesh4.Scale = Vector3.new(0.00200000009, 0.00150000001, 0.00499999989)
- SpecialMesh4.MeshType = Enum.MeshType.FileMesh
- SpecialMesh4.Scale = Vector3.new(0.00200000009, 0.00150000001, 0.00499999989)
- LocalScript5.Parent = Tool0
- table.insert(cors,sandbox(LocalScript5,function()
- local Player = game.Players.LocalPlayer
- local Mouse = Player:GetMouse()
- local Tool = script.Parent
- local Gui = script.Parent.MultiToolGui
- local Cooldown = 0
- local Active = 0
- local Equipped = 0
- local Dragger = Instance.new("Dragger")
- Gui.ModeSwitch.MouseButton1Click:connect(function()
- if script.Parent.Mode.Value == "Mine" then
- script.Parent.Mode.Value = "Shield"
- Gui.ModeSwitch.Text = "MODE: SHIELD"
- elseif script.Parent.Mode.Value == "Shield" then
- script.Parent.Mode.Value = "Blade"
- Gui.ModeSwitch.Text = "MODE: BLADE"
- elseif script.Parent.Mode.Value == "Blade" then
- script.Parent.Mode.Value = "Move"
- Gui.ModeSwitch.Text = "MODE: MOVE"
- elseif script.Parent.Mode.Value == "Move" then
- script.Parent.Mode.Value = "Duplicate"
- Gui.ModeSwitch.Text = "MODE: CLONE"
- elseif script.Parent.Mode.Value == "Duplicate" then
- script.Parent.Mode.Value = "Delete"
- Gui.ModeSwitch.Text = "MODE: ERASE"
- elseif script.Parent.Mode.Value == "Delete" then
- script.Parent.Mode.Value = "Mine"
- Gui.ModeSwitch.Text = "MODE: MINE"
- end
- end)
- Gui.FlashlightToggle.MouseButton1Click:connect(function()
- if Tool.Flashlight.Value == true then
- Tool.Flashlight.Value = false
- Tool.Handle.SpotLight.Enabled = false
- Tool.Handle.PointLight.Enabled = false
- Gui.FlashlightToggle.Text = "FLASHLIGHT: OFF"
- else
- Tool.Flashlight.Value = true
- Tool.Handle.SpotLight.Enabled = true
- Tool.Handle.PointLight.Enabled = true
- Gui.FlashlightToggle.Text = "FLASHLIGHT: ON"
- end
- end)
- script.Parent.Equipped:connect(function()
- if Player.Character.Humanoid.Health > 0 then
- Gui.Parent = Player.PlayerGui
- Equipped = 1
- while Equipped == 1 do
- if Player.Character.Humanoid.Health <= 0 then
- Gui.Parent = script.Parent
- Equipped = 0
- Active = 0
- end
- wait()
- end
- end
- end)
- script.Parent.Unequipped:connect(function()
- if Equipped == 1 then
- Gui.Parent = script.Parent
- Equipped = 0
- Active = 0
- end
- end)
- script.Parent.Activated:connect(function()
- if Cooldown == 0 then
- Cooldown = 1
- Active = 1
- local selectednonlocked = 0
- if script.Parent.Mode.Value == "Move" then
- if Mouse.Target.Locked == false then
- selectednonlocked = 1
- Dragger:MouseDown(Mouse.Target,Mouse.Target.Position - Mouse.Hit.p,{Mouse.Target})
- end
- end
- while Active == 1 do
- local ray = Ray.new(Tool.Handle.CFrame.p, (Mouse.Hit.p - Tool.Handle.CFrame.p).unit * Tool.Range.Value)
- local part, endPoint = workspace:FindPartOnRay(ray, Tool.Parent)
- local beam = Instance.new("Part")
- beam.Parent = workspace
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Anchored = true
- beam.Locked = true
- if script.Parent.Mode.Value == "Mine" then
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("Teal")
- local distance = (Tool.Handle.CFrame.p - endPoint).magnitude
- beam.Size = Vector3.new(0.3, 0.3, distance)
- beam.CFrame = CFrame.new(Tool.Handle.CFrame.p, endPoint) * CFrame.new(0, 0, -distance / 2)
- workspace.Terrain:FillBall(Vector3.new(endPoint.X,endPoint.Y,endPoint.Z), 4 ,"Air")
- elseif script.Parent.Mode.Value == "Shield" then
- beam.CanCollide = true
- beam.BrickColor = BrickColor.new("Gold")
- local distance = (Tool.Handle.CFrame.p - endPoint).magnitude
- beam.Size = Vector3.new(5, 5, 0.2)
- beam.CFrame = CFrame.new(Tool.Handle.CFrame.p, endPoint) * CFrame.new(0, 0, -distance / 2)
- elseif script.Parent.Mode.Value == "Blade" then
- beam.CanCollide = false
- beam.BrickColor = BrickColor.new("Really red")
- beam.Size = Vector3.new(1, 3, 0.2)
- beam.CFrame = script.Parent.Handle.CFrame:toWorldSpace(CFrame.new(0,2,0))
- beam.Touched:connect(function(part)
- if part.Parent ~= Tool.Parent then
- if part.Parent:FindFirstChild("Humanoid") ~= nil then
- part.Parent.Humanoid:Destroy()
- end
- end
- end)
- elseif script.Parent.Mode.Value == "Move" then
- beam:Remove()
- if selectednonlocked == 1 then
- Dragger:MouseMove(Mouse.UnitRay)
- end
- elseif script.Parent.Mode.Value == "Duplicate" then
- beam:Remove()
- if Mouse.Target.Locked == false then
- local copy = Mouse.Target:Clone()
- copy.Parent = workspace
- copy.Position = Mouse.Target.Position+Vector3.new(0,copy.Size.Y,0)
- end
- Active = 0
- elseif script.Parent.Mode.Value == "Delete" then
- beam:Remove()
- if Mouse.Target.Locked == false then
- Mouse.Target:Remove()
- end
- Active = 0
- end
- wait()
- if beam ~= nil then
- beam:Remove()
- end
- end
- if selectednonlocked == 1 then
- Dragger:MouseUp()
- end
- wait()
- Cooldown = 0
- end
- end)
- script.Parent.Deactivated:connect(function()
- Active = 0
- end)
- Mouse.KeyDown:connect(function(Key)
- if Active == 1 and script.Parent.Mode.Value == "Move" then
- if Key == "r" then
- Dragger:AxisRotate("Z")
- elseif Key == "t" then
- Dragger:AxisRotate("X")
- elseif Key == "y" then
- Dragger:AxisRotate("Y")
- end
- end
- end)
- end))
- NumberValue6.Name = "Range"
- NumberValue6.Parent = Tool0
- NumberValue6.Value = 10
- StringValue7.Name = "Mode"
- StringValue7.Parent = Tool0
- StringValue7.Value = "Mine"
- BoolValue8.Name = "Flashlight"
- BoolValue8.Parent = Tool0
- ScreenGui9.Name = "MultiToolGui"
- ScreenGui9.Parent = Tool0
- TextButton10.Name = "ModeSwitch"
- TextButton10.Parent = ScreenGui9
- TextButton10.Size = UDim2.new(0.200000003, 0, 0.0500000007, 0)
- TextButton10.Text = "MODE: MINING"
- TextButton10.Position = UDim2.new(0, 0, 0.600000024, 0)
- TextButton10.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton10.Font = Enum.Font.Arcade
- TextButton10.FontSize = Enum.FontSize.Size14
- TextButton10.TextScaled = true
- TextButton10.TextWrapped = true
- TextButton11.Name = "FlashlightToggle"
- TextButton11.Parent = ScreenGui9
- TextButton11.Size = UDim2.new(0.200000003, 0, 0.0500000007, 0)
- TextButton11.Text = "FLASHLIGHT: OFF"
- TextButton11.Position = UDim2.new(0, 0, 0.649999976, 0)
- TextButton11.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton11.Font = Enum.Font.Arcade
- TextButton11.FontSize = Enum.FontSize.Size14
- TextButton11.TextScaled = true
- TextButton11.TextWrapped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment