Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool = Instance.new("Tool")
- Tool.Name = "Gun"
- Gun = Instance.new("Part")
- Gun.Name = "Handle"
- Gun.Parent = Tool
- Gun2 = Instance.new("Part")
- Gun2.Parent = Gun
- Gun3 = Instance.new("Part")
- Gun3.Parent = Gun
- Gun4 = Instance.new("Part")
- Gun4.Parent = Gun
- Gun3.Shape = Enum.PartType.Cylinder
- Tool.Parent = owner.Character
- Gun.Size = Vector3.new(0.7,0.7,0.7)
- Gun.Massless = true
- Gun4.Massless = true
- Gun.Color = Color3.fromRGB(14, 143, 23)
- Gun2.Size = Vector3.new(0.7,0.7,0.7)
- Gun2.Massless = true
- Gun2.CanCollide = false
- Gun2.Massless = true
- Gun3.Size = Vector3.new(0.7,0.5,0.7)
- Gun3.Massless = true
- Gun3.CanCollide = false
- Gun3.Massless = true
- Gun2.Color = Gun.Color
- Gun3.Color = Gun.Color
- Gun3.Material = Enum.Material.SmoothPlastic
- Gun4.Size = Vector3.new(0.25,4,0.25)
- Gun4.Massless = true
- Gun4.CanCollide = false
- Gun4.Massless = true
- Gun4.Color = Color3.fromRGB(133, 56, 8)
- Gun4.Material = Enum.Material.SmoothPlastic
- local weld = Instance.new("Weld", Gun)
- weld.Part0 = Gun2
- weld.Part1 = Gun
- weld.C0 = CFrame.new(0, -0.7, 0) * CFrame.Angles(math.rad(180),0,0)
- local weld2 = Instance.new("Weld", Gun)
- weld2.Part0 = Gun3
- weld2.Part1 = Gun
- weld2.C0 = CFrame.new(-0.75, 0, 0) * CFrame.Angles(0,0,math.rad(90))
- local weld3 = Instance.new("Weld", Gun)
- weld3.Part0 = Gun4
- weld3.Part1 = Gun
- weld3.C0 = CFrame.new(0, 2.75, 0)
- local Pow = Instance.new("Sound", owner.character.Head)
- Pow.SoundId = "rbxassetid://12222084"
- Pow.Volume = 1
- islunging = false
- toolout = false
- local mesh = Instance.new("SpecialMesh", Gun)
- mesh.MeshId = "http://www.roblox.com/asset/?id=6622587136"
- mesh.Scale = Vector3.new(0.35,0.35,0.35)
- local mesh2 = Instance.new("SpecialMesh", Gun2)
- mesh2.MeshId = "http://www.roblox.com/asset/?id=6622587136"
- mesh2.Scale = Vector3.new(0.35,0.35,0.35)
- Tool.Equipped:Connect(function()
- toolout = true
- end)
- Tool.Unequipped:Connect(function()
- toolout = false
- end)
- Tool.Activated:connect(function()
- islunging = true
- Pow:Play()
- wait(0.65)
- islunging = false
- end)
- local isTouched = false
- function thinghere(plr,action,hit)
- if islunging then
- local explosion = Instance.new("Explosion")
- explosion.BlastRadius = 17.5
- explosion.ExplosionType = Enum.ExplosionType.Craters
- explosion.Position = hit.Position
- explosion.Parent = game.Workspace
- explosion.Visible = false
- for i = 1, 10 do
- wait(0.0885)
- local part1 = Instance.new("Part", script)
- part1.Size = Vector3.new(17.5, 17.5, 17.5)
- part1.Position = hit.Position
- part1.CanCollide = false
- part1.Anchored = true
- part1.CFrame = part1.CFrame * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- part1.Material = "Neon"
- part1.BrickColor = BrickColor.new("New Yeller")
- part1.Transparency = 0.5
- game:GetService("Debris"):AddItem(part1,0.15)
- end
- end
- end
- local E = Instance.new("RemoteEvent",NLS([[local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = owner:GetMouse()
- function ButtonDown()
- if Mouse.Hit ~= nil then
- E:FireServer("Down",Mouse.Hit)
- end
- end
- Mouse.Button1Down:Connect(ButtonDown)
- ]],owner.PlayerGui))
- E.OnServerEvent:Connect(thinghere)
- Tool.Grip = CFrame.Angles(math.rad(90),0,0)
- Tool.GripPos = Vector3.new(0,-5,0)
Add Comment
Please, Sign In to add comment