Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debris = game:GetService("Debris")
- NLS([[
- mouse = owner:GetMouse()
- local E = owner.Character:WaitForChild("The")
- mouse.Button1Down:Connect(function()
- E:FireServer(mouse.Hit.Position)
- end)
- ]], owner.Character)
- function isplatformstand(PC)
- coroutine.wrap(function()
- PC.Character.Humanoid.PlatformStand = true
- wait(3)
- for i,v in pairs(PC.Character:GetDescendants()) do
- if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
- v.Enabled = true
- end
- end
- PC.Character.Humanoid.PlatformStand = false
- end)()
- end
- function killfunction(part)
- local Model = part:FindFirstAncestorOfClass("Model")
- if Model then
- local PC = game:GetService("Players"):GetPlayerFromCharacter(Model)
- if PC then
- if PC ~= owner then
- local limbcollider = Instance.new("Part", PC.Character:findFirstChild("Right Arm"))
- limbcollider.Size = Vector3.new(1.4,1,1)
- limbcollider.Shape = "Cylinder"
- limbcollider.Transparency = 1
- limbcollider.Name = "LimbCollider"
- local limbcolliderweld = Instance.new("Weld", limbcollider)
- limbcolliderweld.Part0 = PC.Character:findFirstChild("Right Arm")
- limbcolliderweld.Part1 = limbcollider
- limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider2 = Instance.new("Part", PC.Character:findFirstChild("Left Arm"))
- limbcollider2.Size = Vector3.new(1.4,1,1)
- limbcollider2.Shape = "Cylinder"
- limbcollider2.Transparency = 1
- limbcollider2.Name = "LimbCollider"
- local limbcolliderweld2 = Instance.new("Weld", limbcollider)
- limbcolliderweld2.Part0 = PC.Character:findFirstChild("Left Arm")
- limbcolliderweld2.Part1 = limbcollider2
- limbcolliderweld2.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider3 = Instance.new("Part", PC.Character:findFirstChild("Right Leg"))
- limbcollider3.Size = Vector3.new(1.3,1,1)
- limbcollider3.Shape = "Cylinder"
- limbcollider3.Transparency = 1
- limbcollider3.Name = "LimbCollider"
- local limbcolliderweld3 = Instance.new("Weld", limbcollider)
- limbcolliderweld3.Part0 = PC.Character:findFirstChild("Right Leg")
- limbcolliderweld3.Part1 = limbcollider3
- limbcolliderweld3.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- local limbcollider4 = Instance.new("Part", PC.Character:findFirstChild("Left Leg"))
- limbcollider4.Size = Vector3.new(1.3,1,1)
- limbcollider4.Shape = "Cylinder"
- limbcollider4.Transparency = 1
- limbcollider4.Name = "LimbCollider"
- local limbcolliderweld4 = Instance.new("Weld", limbcollider)
- limbcolliderweld4.Part0 = PC.Character:findFirstChild("Left Leg")
- limbcolliderweld4.Part1 = limbcollider4
- limbcolliderweld4.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
- debris:AddItem(limbcollider, 3)
- debris:AddItem(limbcollider2, 3)
- debris:AddItem(limbcollider3, 3)
- debris:AddItem(limbcollider4, 3)
- isplatformstand(PC)
- for i,v in pairs(PC.Character:GetDescendants()) do
- if v:IsA("Motor6D") and v.Parent.Name ~= "HumanoidRootPart" then
- local Socket = Instance.new("BallSocketConstraint")
- local a1 = Instance.new("Attachment")
- local a2 = Instance.new("Attachment")
- a1.Parent = v.Part0
- a2.Parent = v.Part1
- Socket.Parent = v.Parent
- Socket.Attachment0 = a1
- Socket.Attachment1 = a2
- a1.CFrame = v.C0
- a2.CFrame = v.C1
- Socket.LimitsEnabled = true
- Socket.TwistLimitsEnabled = true
- v.Enabled = false
- debris:AddItem(a1, 3)
- debris:AddItem(a2, 3)
- debris:AddItem(Socket, 3)
- end
- end
- end
- end
- end
- end
- out = false
- Bullet = Instance.new("Part", owner.Character)
- Bullet.Position = Vector3.new(1000000,1000000,1000000)
- Bullet.Anchored = true
- Bullet.CanCollide = false
- Bullet2 = Instance.new("Part", owner.Character)
- Bullet2.Position = Vector3.new(1000000,1000000,1000000)
- Bullet2.Anchored = true
- Bullet2.CanCollide = false
- Bullet2.Shape = Enum.PartType.Ball
- Tool = Instance.new("Tool")
- Part = Instance.new("Part")
- Part.Name = "Handle"
- Part.Parent = Tool
- Part.Size = Vector3.new(1,1,3.75)
- Part.Color = Color3.fromRGB(25, 25, 25)
- Part.Massless = true
- Part2 = Instance.new("Part")
- Part2.Parent = Part
- Part2.Size = Vector3.new(0.85,0.85,0.85)
- Part2.Color = Color3.fromRGB(91, 91, 91)
- Part2.Massless = true
- Part2.CanCollide = false
- Tool.GripPos = Vector3.new(0,-1,0.8125)
- Tool.Parent = owner.Character
- local E = Instance.new("RemoteEvent", owner.Character)
- E.Name = "The"
- Bullet.Color = Color3.fromRGB(184, 65, 65)
- Bullet.Material = Enum.Material.Neon
- Bullet2.Color = Color3.fromRGB(184, 65, 65)
- Bullet2.Material = Enum.Material.Neon
- ShootWeld = Instance.new("Weld", Part)
- ShootWeld.Part0 = Part2
- ShootWeld.Part1 = Part
- ShootWeld.C0 = CFrame.new(0,0,1.475)
- Part.Material = Enum.Material.SmoothPlastic
- Part2.Material = Enum.Material.SmoothPlastic
- local Pow = Instance.new("Sound", owner.Character.Head)
- Pow.SoundId = "rbxassetid://130113322"
- Pow.Volume = 1
- Pow.PlaybackSpeed = 0.85
- local fade = Instance.new("Sound", owner.Character.Head)
- fade.SoundId = "rbxassetid://130113370"
- fade.Volume = 1
- fade.PlaybackSpeed = 0.85
- Tool.Equipped:Connect(function()
- out = true
- end)
- Tool.Unequipped:Connect(function()
- out = false
- end)
- E.OnServerEvent:Connect(function(plr, position)
- if out then
- Pow:Play()
- local origin = Part2.Position
- local direction = (position - origin).Unit*300
- local params = RaycastParams.new()
- params.FilterDescendantsInstances = {owner.Character}
- params.FilterType = Enum.RaycastFilterType.Blacklist
- local result = game.Workspace:Raycast(origin, direction, params)
- local intersection = result and result.Position or origin + direction
- local distance = (origin - intersection).Magnitude
- local bullet_clone = Bullet:Clone()
- bullet_clone.Size = Vector3.new(0.75, 0.75, distance * 0.95)
- bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2 * 0.95)
- bullet_clone.Parent = owner.Character
- local bullet_clone2 = Bullet2:Clone()
- bullet_clone2.Size = Vector3.new(2.75, 2.75, 2.75)
- bullet_clone2.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance)
- bullet_clone2.Parent = owner.Character
- if result then
- local part = result.Instance
- wait(0.1)
- killfunction(part)
- local velocity = Instance.new("BodyVelocity", part)
- velocity.Velocity = bullet_clone.CFrame.lookVector * 50
- velocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- debris:AddItem(velocity,0.125)
- local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
- if humanoid then
- if humanoid ~= owner.Character.Humanoid then
- wait(0.1)
- humanoid.Health = humanoid.Health - 45
- end
- end
- end
- wait(0.25)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.25
- local object = bullet_clone
- local tweenInfo = TweenInfo.new(timeToFade)
- local goal = {}
- goal.Transparency = 1
- local tween = tweenService:Create(object, tweenInfo, goal)
- local object2 = bullet_clone2
- local tween2 = tweenService:Create(object2, tweenInfo, goal)
- local timeToFade2 = 0.25
- local object3 = bullet_clone
- local tweenInfo2 = TweenInfo.new(timeToFade2)
- local goal2 = {}
- goal2.Size = Vector3.new(1,1,1)
- local tween3 = tweenService:Create(object3, tweenInfo2, goal2)
- local object4 = bullet_clone2
- local goal3 = {}
- goal3.Size = Vector3.new(3.5,3.5,3.5)
- local tween4 = tweenService:Create(object4, tweenInfo2, goal3)
- tween:Play()
- tween2:Play()
- tween3:Play()
- tween4:Play()
- fade:Play()
- wait(0.25)
- bullet_clone:Destroy()
- bullet_clone2:Destroy()
- tween:Destroy()
- tween2:Destroy()
- tween3:Destroy()
- tween4:Destroy()
- end
- end)
- warn([["''Why do you need lasers that shoot out of your eyes,
- When you can have a laser gun?''"]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement