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")
- SpecialMesh2 = Instance.new("SpecialMesh")
- LocalScript3 = Instance.new("LocalScript")
- Animation4 = Instance.new("Animation")
- Script5 = Instance.new("Script")
- Folder6 = Instance.new("Folder")
- RemoteEvent7 = Instance.new("RemoteEvent")
- Tool0.Name = "Distroyer Cannon"
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(3, 2.5, 24, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(3, 2.5, 24)
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=94690054"
- SpecialMesh2.Offset = Vector3.new(0, 0.5, 2)
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- SpecialMesh2.TextureId = "rbxassetid://2334529951"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- LocalScript3.Name = "Client"
- LocalScript3.Parent = Tool0
- table.insert(cors,sandbox(LocalScript3,function()
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local anim1 = script.Parent.Parent.Humanoid:LoadAnimation(script.Hold)
- script.Parent.Equipped:Connect(function()
- anim1:Play()
- end)
- script.Parent.Unequipped:Connect(function()
- anim1:Stop()
- end)
- end))
- Animation4.Name = "Hold"
- Animation4.Parent = LocalScript3
- Animation4.AnimationId = "rbxassetid://2161330213"
- Script5.Name = "Server"
- Script5.Parent = Tool0
- table.insert(cors,sandbox(Script5,function()
- local handle = script.Parent.Handle
- local shooting = false
- local canshoot = true
- script.Parent.Equipped:Connect(function()
- local character = script.Parent.Parent
- end)
- script.Parent.Equipped:Connect(function()
- local character = nil
- end)
- script.Parent.Activated:Connect(function()
- if canshoot == true then
- shooting = true
- local missile = game:GetService('ServerStorage'):FindFirstChild('Missile'):Clone()
- missile.Parent = workspace
- missile.Position = handle.Position
- end
- end)
- end))
- Folder6.Name = "Events"
- Folder6.Parent = Tool0
- RemoteEvent7.Name = "MousePass"
- RemoteEvent7.Parent = Folder6
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- 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