Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = game.Players.timetodie23232223
- repeat wait() until plr.Character
- char = plr.Character
- local ar2 = Instance.new("Part",char)
- ar2.CanCollide = false
- ar2.Name = "Pulse Rifle"
- local mesh = Instance.new("FileMesh",ar2)
- mesh.MeshId = "rbxassetid://433818517"
- mesh.TextureId = "rbxassetid://433818528"
- mesh.Scale = Vector3.new(0.6,0.6,0.6)
- local weld = Instance.new("Weld",ar2)
- weld.Part0 = ar2
- weld.Part1 = char["Right Arm"]
- weld.C0 = CFrame.new(-1.43735158, -0.447731018, 0.100688934, 0, -0.999999404, 0, 0, 0, -1, 1, 0, 0)
- local tip = Instance.new("Part",ar2)
- tip.CanCollide = false
- tip.Size = Vector3.new(0.25, 0.26, 0.24)
- tip.Transparency = 1
- local weld2 = Instance.new("Weld",tip)
- weld2.Part0 = tip
- weld2.Part1 = ar2
- weld2.C0 = CFrame.new(0.234327316, -0.318659782, 1.91639519, 0, 0, 1, 0.0291994382, 0.999574184, 0, -0.999573588, 0.0291994549, 0)
- local Charge = Instance.new("Sound",ar2)
- Charge.SoundId = "http://roblox.com/asset/?id=1268159756"
- Charge.Volume = 5
- Charge.PlaybackSpeed = 1
- local Fizzle = Instance.new("Sound",ar2)
- Fizzle.SoundId = "rbxassetid://160247625"
- Fizzle.Volume = 4
- local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
- for i = 0,1 ,0.03 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.465548038, -0.427051544, 1, 0, 0, 0, 0, -1, 0, 1, 0),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- regularco = rhandweld.C0
- function shakehand(duration)
- for i = 1,duration do
- for i = 0,1 ,0.07 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.465548038, -0.427051544, 0.707106829, 0, -0.707106829, -0.707106829, 0, -0.707106829, 0, 1, 0),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- wait()
- for i = 0,1 ,0.07 do
- rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.465548038, -0.427051544, 0.707106829, 0, 0.707106829, 0.707106829, 0, -0.707106829, 0, 1, 0),i)
- game:GetService("RunService").RenderStepped:wait()
- end
- end
- rhandweld.C0 = regularco
- end
- target = nil
- maincolor = BrickColor.new("Institutional white")
- function Eviscerate(dude)
- if dude.Name ~= char.Name then
- Fizzle:Play()
- local bgf = Instance.new("BodyGyro", dude.Head)
- bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
- local val = Instance.new("BoolValue", dude)
- val.Name = "IsHit"
- local ds = coroutine.wrap(function()
- dude:WaitForChild("Head"):BreakJoints()
- wait(0.5)
- target = nil
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- if v:IsA("Humanoid") then
- v:Destroy()
- end
- if v:IsA("CharacterMesh") then
- v:Destroy()
- end
- if v:IsA("Model") then
- v:Destroy()
- end
- if v:IsA("Part") or v:IsA("MeshPart") then
- for x, o in pairs(v:GetChildren()) do
- if o:IsA("Decal") then
- o:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- v.Material = "Neon"
- v.CanCollide = false
- local PartEmmit1 = Instance.new("ParticleEmitter", v)
- PartEmmit1.LightEmission = 1
- PartEmmit1.Texture = "rbxassetid://284205403"
- PartEmmit1.Color = ColorSequence.new(maincolor.Color)
- PartEmmit1.Rate = 150
- PartEmmit1.Lifetime = NumberRange.new(1)
- PartEmmit1.Size = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0.75, 0),
- NumberSequenceKeypoint.new(1, 0, 0)
- })
- PartEmmit1.Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 0, 0),
- NumberSequenceKeypoint.new(1, 1, 0)
- })
- PartEmmit1.Speed = NumberRange.new(0, 0)
- PartEmmit1.VelocitySpread = 30000
- PartEmmit1.Rotation = NumberRange.new(-500, 500)
- PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
- local BodPoss = Instance.new("BodyPosition", v)
- BodPoss.P = 3000
- BodPoss.D = 1000
- BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- BodPoss.position = v.Position + Vector3.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
- v.Color = maincolor.Color
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- v.Transparency = v.Transparency + 0.08
- game:GetService("RunService").RenderStepped:wait()
- end
- wait(0.5)
- PartEmmit1.Enabled = false
- wait(3)
- v:Destroy()
- dude:Destroy()
- end))
- end))
- end
- end
- end))
- end)
- ds()
- end
- end
- canuse = true
- mouse = plr:GetMouse()
- function Shoot()
- if canuse then
- canuse = false
- Charge:Play()
- shakehand(2)
- local question = Instance.new("Part",workspace)
- tix = question
- tix.CanCollide = false
- tix.Transparency = 1
- tix.Anchored = false
- tix.CFrame = tip.CFrame + Vector3.new(0,1,0)
- local vel = Instance.new("BodyVelocity",question)
- vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- vel.Velocity = mouse.Hit.lookVector * 100
- local billboard = Instance.new("BillboardGui",tix)
- billboard.Size = UDim2.new(5, 0,5, 0)
- billboard.MaxDistance = "inf"
- billboard.Adornee = tix
- billboard.ZIndexBehavior = "Global"
- local image = Instance.new("ImageLabel",billboard)
- image.Size = UDim2.new(1, 3, 1, 3)
- image.LayoutOrder = 0
- image.BorderSizePixel = 0
- image.BackgroundTransparency = 1
- image.ZIndex = 1
- image.Image = "http://www.roblox.com/asset/?id=528280825"
- question.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name then
- Eviscerate(human.Parent)
- question:Destroy()
- end
- if human == nil and part.Name ~= "Pulse Rifle" then
- vel.Velocity = part.CFrame.upVector * 50
- end
- end)
- game:GetService("Debris"):AddItem(question,10)
- canuse = true
- end
- end
- mouse.Button1Down:connect(function()
- Shoot()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement