View difference between Paste ID: NbtVVV0C and vaLwm9T4
SHOW: | | - or go back to the newest paste.
1-
plr = game.Players.LocalPlayer
1+
plr = game.Players.timetodie23232223
2
repeat wait() until plr.Character
3
char = plr.Character
4
5
6
local ar2 = Instance.new("Part",char)
7
ar2.CanCollide = false
8
ar2.Name = "Pulse Rifle"
9
local mesh = Instance.new("FileMesh",ar2)
10
mesh.MeshId = "rbxassetid://433818517"
11
mesh.TextureId = "rbxassetid://433818528"
12
mesh.Scale = Vector3.new(0.6,0.6,0.6)
13
local weld = Instance.new("Weld",ar2)
14
weld.Part0 = ar2
15
weld.Part1 = char["Right Arm"]
16
weld.C0 = CFrame.new(-1.43735158, -0.447731018, 0.100688934, 0, -0.999999404, 0, 0, 0, -1, 1, 0, 0)
17
local tip = Instance.new("Part",ar2)
18
tip.CanCollide = false
19
tip.Size = Vector3.new(0.25, 0.26, 0.24)
20
tip.Transparency = 1
21
local weld2 = Instance.new("Weld",tip)
22
weld2.Part0 = tip
23
weld2.Part1 = ar2
24
weld2.C0 = CFrame.new(0.234327316, -0.318659782, 1.91639519, 0, 0, 1, 0.0291994382, 0.999574184, 0, -0.999573588, 0.0291994549, 0)
25
local Charge = Instance.new("Sound",ar2)
26
Charge.SoundId = "http://roblox.com/asset/?id=1268159756"
27
Charge.Volume = 5
28
Charge.PlaybackSpeed = 1
29
local Fizzle = Instance.new("Sound",ar2)
30
Fizzle.SoundId = "rbxassetid://160247625"
31
Fizzle.Volume = 4
32
local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
33
local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
34
rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
35
rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
36
rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
37
for i = 0,1 ,0.03 do
38
	rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.465548038, -0.427051544, 1, 0, 0, 0, 0, -1, 0, 1, 0),i)
39
	game:GetService("RunService").RenderStepped:wait()
40
end
41
regularco = rhandweld.C0
42
function shakehand(duration)
43
	for i = 1,duration do
44
	    for i = 0,1 ,0.07 do
45
		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)
46
		game:GetService("RunService").RenderStepped:wait()
47
	    end
48
		wait()
49
		for i = 0,1 ,0.07 do
50
			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)
51
			game:GetService("RunService").RenderStepped:wait()
52
		end
53
	end
54
	rhandweld.C0 = regularco
55
end
56
target = nil
57
maincolor = BrickColor.new("Institutional white")
58
function Eviscerate(dude)
59
    if dude.Name ~= char.Name then
60
	    Fizzle:Play()
61
        local bgf = Instance.new("BodyGyro", dude.Head)
62
        bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0)
63
        local val = Instance.new("BoolValue", dude)
64
        val.Name = "IsHit"
65
        local ds = coroutine.wrap(function()
66
            dude:WaitForChild("Head"):BreakJoints()
67
            wait(0.5)
68
            target = nil
69
            coroutine.resume(coroutine.create(function()
70
                for i, v in pairs(dude:GetChildren()) do
71
                    if v:IsA("Accessory") then
72
                        v:Destroy()
73
                    end
74
                    if v:IsA("Humanoid") then
75
                        v:Destroy()
76
                    end
77
                    if v:IsA("CharacterMesh") then
78
                        v:Destroy()
79
                    end
80
                    if v:IsA("Model") then
81
                        v:Destroy()
82
                    end
83
                    if v:IsA("Part") or v:IsA("MeshPart") then
84
                        for x, o in pairs(v:GetChildren()) do
85
                            if o:IsA("Decal") then
86
                                o:Destroy()
87
                            end
88
                        end
89
                        coroutine.resume(coroutine.create(function()
90
                            v.Material = "Neon"
91
                            v.CanCollide = false
92
                            local PartEmmit1 = Instance.new("ParticleEmitter", v)
93
                            PartEmmit1.LightEmission = 1
94
                            PartEmmit1.Texture = "rbxassetid://284205403"
95
                            PartEmmit1.Color = ColorSequence.new(maincolor.Color)
96
                            PartEmmit1.Rate = 150
97
                            PartEmmit1.Lifetime = NumberRange.new(1)
98
                            PartEmmit1.Size = NumberSequence.new({
99
                                NumberSequenceKeypoint.new(0, 0.75, 0),
100
                                NumberSequenceKeypoint.new(1, 0, 0)
101
                            })
102
                            PartEmmit1.Transparency = NumberSequence.new({
103
                                NumberSequenceKeypoint.new(0, 0, 0),
104
                                NumberSequenceKeypoint.new(1, 1, 0)
105
                            })
106
                            PartEmmit1.Speed = NumberRange.new(0, 0)
107
                            PartEmmit1.VelocitySpread = 30000
108
                            PartEmmit1.Rotation = NumberRange.new(-500, 500)
109
                            PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
110
                            local BodPoss = Instance.new("BodyPosition", v)
111
                            BodPoss.P = 3000
112
                            BodPoss.D = 1000
113
                            BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
114
                            BodPoss.position = v.Position + Vector3.new(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15))
115
                            v.Color = maincolor.Color
116
                            coroutine.resume(coroutine.create(function()
117
                                for i = 0, 49 do
118
                                    v.Transparency = v.Transparency + 0.08
119
                                    game:GetService("RunService").RenderStepped:wait()
120
                                end
121
                                wait(0.5)
122
                                PartEmmit1.Enabled = false
123
                                wait(3)
124
                                v:Destroy()
125
                                dude:Destroy()
126
                            end))
127
                        end))
128
                    end
129
                end
130
            end))
131
        end)
132
        ds()
133
    end
134
end
135
136
canuse = true
137
138
mouse = plr:GetMouse()
139
140
function Shoot()
141
	if canuse then
142
		canuse = false
143
		Charge:Play()
144
		shakehand(2)
145
		local question = Instance.new("Part",workspace)
146
	tix = question
147
	tix.CanCollide = false
148
	tix.Transparency = 1
149
	tix.Anchored = false
150
	tix.CFrame = tip.CFrame + Vector3.new(0,1,0)
151
	local vel = Instance.new("BodyVelocity",question)
152
	vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
153
	vel.Velocity = mouse.Hit.lookVector * 100
154
	local billboard = Instance.new("BillboardGui",tix)
155
	billboard.Size = UDim2.new(5, 0,5, 0)
156
	billboard.MaxDistance = "inf"
157
	billboard.Adornee = tix
158
	billboard.ZIndexBehavior = "Global"
159
	local image = Instance.new("ImageLabel",billboard)
160
	image.Size = UDim2.new(1, 3, 1, 3)
161
	image.LayoutOrder = 0
162
	image.BorderSizePixel = 0
163
	image.BackgroundTransparency = 1
164
	image.ZIndex = 1
165
	image.Image = "http://www.roblox.com/asset/?id=528280825"
166
	    question.Touched:connect(function(part)
167
		local human = part.Parent:FindFirstChildOfClass("Humanoid")
168
		if human and human.Parent.Name ~= char.Name then
169
			Eviscerate(human.Parent)
170
			question:Destroy()
171
		     end
172
		if human == nil and part.Name ~= "Pulse Rifle" then
173
			vel.Velocity = part.CFrame.upVector * 50
174
		    end
175
	    end)
176
	    game:GetService("Debris"):AddItem(question,10)
177
	    canuse = true
178
	end
179
end
180
181
mouse.Button1Down:connect(function()
182
	Shoot()
183
end)