View difference between Paste ID: DtzTnCiL and zvCNmpbh
SHOW: | | - or go back to the newest paste.
1
--void Script bbuilder fe script converter V2
2
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5
local RealPlayer = Player
6
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
7
8
--[[Pew pew gun thing by SezHu]]--
9
warn("By SezHu. I like John Wick.")
10
11
wait(1 / 60)
12
Effects = { }
13
local Player = game.Players.localPlayer
14
local Mouse = Player:GetMouse()
15
local Character = Player.Character
16
local Humanoid = Character.Humanoid
17
local Head = Character.Head
18
local RootPart = Character.HumanoidRootPart
19
local Torso = Character.Torso
20
local LeftArm = Character["Left Arm"]
21
local RightArm = Character["Right Arm"]
22
local LeftLeg = Character["Left Leg"]
23
local RightLeg = Character["Right Leg"]
24
local Camera = game.Workspace.CurrentCamera
25
local RootJoint = RootPart.RootJoint
26
local Equipped = false
27
local Attack = false
28
local Anim = 'Idle'
29
local Idle = 0
30
local Combo = 1
31
local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
32
local Velocity = RootPart.Velocity.y
33
local Sine = 0
34
local Change = 1
35
local lockcam = workspace.CurrentCamera
36
lockcam.CameraType = "Custom"
37
lockcam.CameraSubject = Head
38
39
local RbxUtility = LoadLibrary("RbxUtility")
40
local Create = RbxUtility.Create
41
42
43
Humanoid.WalkSpeed = 25
44
Humanoid.JumpPower = 100
45
Humanoid.Animator.Parent = nil
46
Character.Animate.Parent = nil
47
48
local newMotor = function(part0, part1, c0, c1)
49
	local w = Create('Motor'){
50
		Parent = part0,
51
		Part0 = part0,
52
		Part1 = part1,
53
		C0 = c0,
54
		C1 = c1,
55
	}
56
	return w
57
end
58
59
60
61
function clerp(a, b, t)
62
	return a:lerp(b, t)
63
end
64
65
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
66
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
67
68
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
69
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
70
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
71
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
72
RootJoint.C1 = CFrame.new(0, 0, 0)
73
RootJoint.C0 = CFrame.new(0, 0, 0)
74
Torso.Neck.C1 = CFrame.new(0, 0, 0)
75
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
76
77
local rarmc1 = RW.C1
78
local larmc1 = LW.C1
79
local rlegc1 = RH.C1
80
local llegc1 = LH.C1
81
82
local resetc1 = false
83
84
function PlayAnimationFromTable(table, speed, bool)
85
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
86
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
87
	RW.C0 = clerp(RW.C0, table[3], speed) 
88
	LW.C0 = clerp(LW.C0, table[4], speed) 
89
	RH.C0 = clerp(RH.C0, table[5], speed) 
90
	LH.C0 = clerp(LH.C0, table[6], speed) 
91
	if bool == true then
92
		if resetc1 == false then
93
			resetc1 = true
94
			RootJoint.C1 = RootJoint.C1
95
			Torso.Neck.C1 = Torso.Neck.C1
96
			RW.C1 = rarmc1
97
			LW.C1 = larmc1
98
			RH.C1 = rlegc1
99
			LH.C1 = llegc1
100
		end
101
	end
102
end
103
104
ArtificialHB = Create("BindableEvent"){
105
	Parent = script,
106
	Name = "Heartbeat",
107
}
108
109
script:WaitForChild("Heartbeat")
110
111
frame = 1 / 35
112
tf = 0
113
allowframeloss = false
114
tossremainder = false
115
lastframe = tick()
116
script.Heartbeat:Fire()
117
118
game:GetService("RunService").Heartbeat:connect(function(s, p)
119
	tf = tf + s
120
	if tf >= frame then
121
		if allowframeloss then
122
			script.Heartbeat:Fire()
123
			lastframe = tick()
124
		else
125
			for i = 1, math.floor(tf / frame) do
126
				script.Heartbeat:Fire()
127
			end
128
			lastframe = tick()
129
		end
130
		if tossremainder then
131
			tf = 0
132
		else
133
			tf = tf - frame * math.floor(tf / frame)
134
		end
135
	end
136
end)
137
138
function swait(num)
139
	if num == 0 or num == nil then
140
		ArtificialHB.Event:wait()
141
	else
142
		for i = 0, num do
143
			ArtificialHB.Event:wait()
144
		end
145
	end
146
end
147
148
local m = Create("Model"){
149
	Parent = Character,
150
	Name = "WeaponModel"
151
}
152
153
154
155
156
157
158
159
function RemoveOutlines(part)
160
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
161
end
162
	
163
CFuncs = {	
164
	Part = {
165
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
166
			local Part = Create("Part"){
167
				Parent = Parent,
168
				Reflectance = Reflectance,
169
				Transparency = Transparency,
170
				CanCollide = false,
171
				Locked = true,
172
				BrickColor = BrickColor.new(tostring(BColor)),
173
				Name = Name,
174
				Size = Size,
175
				Material = Material,
176
			}
177
			RemoveOutlines(Part)
178
			if Size == Vector3.new() then
179
				Part.Size = Vector3.new(0.2, 0.2, 0.2)
180
			else
181
				Part.Size = Size
182
			end
183
			return Part
184
		end;
185
	};
186
	
187
	Mesh = {
188
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
189
			local Msh = Create(Mesh){
190
				Parent = Part,
191
				Offset = OffSet,
192
				Scale = Scale,
193
			}
194
			if Mesh == "SpecialMesh" then
195
				Msh.MeshType = MeshType
196
				Msh.MeshId = MeshId
197
			end
198
			return Msh
199
		end;
200
	};
201
202
	Weld = {
203
		Create = function(Parent, Part0, Part1, C0, C1)
204
			local Weld = Create("Weld"){
205
				Parent = Parent,
206
				Part0 = Part0,
207
				Part1 = Part1,
208
				C0 = C0,
209
				C1 = C1,
210
			}
211
			return Weld
212
		end;
213
	};
214
215
	Sound = {
216
		Create = function(id, par, vol, pit) 
217
			local Sound = Create("Sound"){
218
				Volume = vol,
219
				Pitch = pit or 1,
220
				SoundId = "rbxassetid://" .. id,
221
				Parent = par or workspace,
222
			}
223
			Sound:play() 
224
			return Sound
225
		end;
226
	};
227
	
228
	Decal = {
229
		Create = function(Color, Texture, Transparency, Name, Parent)
230
			local Decal = Create("Decal"){
231
				Color3 = Color,
232
				Texture = "rbxassetid://" .. Texture,
233
				Transparency = Transparency,
234
				Name = Name,
235
				Parent = Parent,
236
			}
237
			return Decal
238
		end;
239
	};
240
	
241
	BillboardGui = {
242
		Create = function(Parent, Image, Position, Size)
243
			local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
244
			BillPar.CFrame = CFrame.new(Position)
245
			local Bill = Create("BillboardGui"){
246
				Parent = BillPar,
247
				Adornee = BillPar,
248
				Size = UDim2.new(1, 0, 1, 0),
249
				SizeOffset = Vector2.new(Size, Size),
250
			}
251
			local d = Create("ImageLabel", Bill){
252
				Parent = Bill,
253
				BackgroundTransparency = 1,
254
				Size = UDim2.new(1, 0, 1, 0),
255
				Image = "rbxassetid://" .. Image,
256
			}
257
			return BillPar
258
		end
259
	};
260
	
261
	ParticleEmitter = {
262
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
263
			local Particle = Create("ParticleEmitter"){
264
				Parent = Parent,
265
				Color = ColorSequence.new(Color1, Color2),
266
				LightEmission = LightEmission,
267
				Size = Size,
268
				Texture = Texture,
269
				Transparency = Transparency,
270
				ZOffset = ZOffset,
271
				Acceleration = Accel,
272
				Drag = Drag,
273
				LockedToPart = LockedToPart,
274
				VelocityInheritance = VelocityInheritance,
275
				EmissionDirection = EmissionDirection,
276
				Enabled = Enabled,
277
				Lifetime = LifeTime,
278
				Rate = Rate,
279
				Rotation = Rotation,
280
				RotSpeed = RotSpeed,
281
				Speed = Speed,
282
				VelocitySpread = VelocitySpread,
283
			}
284
			return Particle
285
		end;
286
	};
287
	
288
	CreateTemplate = {
289
		
290
	};
291
}
292
293
294
295
Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay)
296
	
297
	prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", reflect, 0, brickcolor, "Effect", Vector3.new(.1, 0.5, 0.1))
298
	prt.Anchored = true
299
	prt.CFrame = cframe
300
	prt.Material = "Neon"
301
	local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
302
	game:GetService("Debris"):AddItem(prt, 10)
303
	coroutine.resume(coroutine.create(function(Part, Mesh)
304
		
305
		for i = 0, 1, delay do
306
			swait()
307
			Part.Transparency = i
308
			Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
309
		end
310
		Part.Parent = nil
311
	end
312
), prt, msh)
313
end
314
315
316
317
318
319
320
New = function(Object, Parent, Name, Data)
321
	local Object = Instance.new(Object)
322
	for Index, Value in pairs(Data or {}) do
323
		Object[Index] = Value
324
	end
325
	Object.Parent = Parent
326
	Object.Name = Name
327
	return Object
328
end
329
330
Handle2=CFuncs.Part.Create(m,Enum.Material.Plastic,1,1,"Medium stone grey","Handle2",Vector3.new(0.440000921, 0.409999877, 0.450001299))
331
Handle2Weld=CFuncs.Weld.Create(m,Character["Left Arm"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.47545052, 0.0741100311, 0.0649585724, 0.030649215, 0.998502314, 0.0453163981, -0.0977259576, 0.0481139421, -0.994049668, -0.99474138, 0.0260382295, 0.099054262))
332
moter = New("Weld",Handle,"mot",{Part0 = LeftArm,Part1 = Handle2,})
333
334
335
Handle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","Handle",Vector3.new(1, 0.640000343, 0.480000138))
336
HandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0537261963, -0.229599118, 0.664536357, 0.997408867, -0.0183529984, 0.0695609897, 0.0671602935, -0.10906899, -0.991762877, 0.0257887691, 0.993864775, -0.10755378))
337
338
339
FakeHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","FakeHandle",Vector3.new(1, 0.640000343, 0.480000138))
340
FakeHandleWeld=CFuncs.Weld.Create(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0537261963, -0.229599118, 0.664536357, 0.997408867, -0.0183529984, 0.0695609897, 0.0671602935, -0.10906899, -0.991762877, 0.0257887691, 0.993864775, -0.10755378))
341
342
343
trigger=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","trigger",Vector3.new(1, 0.800000012, 1))
344
triggerWeld=CFuncs.Weld.Create(m,FakeHandle,trigger,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.151900053, 0.239495739, 0.00701904297, 0.0134571567, 0.99990958, 2.01910734e-05, 7.38943927e-05, -2.11894512e-05, 1, 0.99990952, -0.0134571418, -7.41733238e-05))
345
CFuncs.Mesh.Create("BlockMesh",trigger,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.5, 0.0700000003))
346
trigger=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","trigger",Vector3.new(1, 0.800000012, 1))
347
triggerWeld=CFuncs.Weld.Create(m,FakeHandle,trigger,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.429587066, 0.271885633, 0.00701141357, 7.24140555e-05, 4.45842743e-05, 0.99999994, -0.0134558454, -0.999909639, 4.55528498e-05, 0.99990952, -0.0134558454, -7.18068331e-05))
348
CFuncs.Mesh.Create("BlockMesh",trigger,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.300000012, 0.0700000003))
349
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
350
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704956055, -0.300316542, 0.401988506, 0.999909699, -0.0134435743, -6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, -0.0134435818, -0.999909639, 3.13222408e-05))
351
CFuncs.Mesh.Create("SpecialMesh",support,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.100000001, 0.0700000003))
352
barrel=CFuncs.Part.Create(m,Enum.Material.Plastic,0.20000000298023,0,"Medium stone grey","barrel",Vector3.new(1, 1.20000005, 1))
353
barrelWeld=CFuncs.Weld.Create(m,FakeHandle,barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.529606879, -0.5019629, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
354
CFuncs.Mesh.Create("CylinderMesh",barrel,"","",Vector3.new(0, 0.100000001, 0.0149999997),Vector3.new(1, 0.829999983, 0.119999997))
355
barrelcore=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Really black","barrelcore",Vector3.new(1, 1.20000005, 1))
356
barrelcoreWeld=CFuncs.Weld.Create(m,FakeHandle,barrelcore,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.529606879, -0.5019629, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
357
CFuncs.Mesh.Create("CylinderMesh",barrelcore,"","",Vector3.new(0, 0.101000004, 0.0149999997),Vector3.new(1, 0.829999983, 0.109999999))
358
grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
359
gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.243692428, 0.0935220718, 0.999909699, -0.0134435743, -6.93630427e-05, 0.000538915396, 0.034927085, 0.999389827, -0.0134329498, -0.999299467, 0.0349311605))
360
CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.449999988, 0.800000012))
361
grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
362
gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00705337524, -0.280295193, -0.261995792, -0.999909699, 0.0134435743, 6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
363
CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.100000001, 0.119999997))
364
grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
365
gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703430176, -0.0529338121, -0.133486509, 0.999909639, -0.0134445727, -6.94710761e-05, 0.012750335, 0.949891746, -0.312319487, 0.00426499359, 0.31229037, 0.949977219))
366
CFuncs.Mesh.Create("BlockMesh",grip,"","",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.899999976, 0.349999994))
367
grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 0.800000012, 1))
368
gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00706481934, -0.280296892, -0.291983843, -0.999909699, 0.0134435743, 6.93630427e-05, 6.9775153e-05, 3.03909183e-05, 1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
369
CFuncs.Mesh.Create("SpecialMesh",grip,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.200000003, 0.0700000003))
370
grip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip",Vector3.new(1, 1.20000005, 1))
371
gripWeld=CFuncs.Weld.Create(m,FakeHandle,grip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0203292221, -0.00703430176, -0.321979046, -6.02649525e-05, -3.16947699e-05, -1.00000012, -0.999909699, 0.0134435594, 5.98318875e-05, 0.0134435594, 0.999909699, -3.25068831e-05))
372
CFuncs.Mesh.Create("CylinderMesh",grip,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.109999999, 0.0799999982))
373
grip6=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","grip6",Vector3.new(1, 1.20000005, 1))
374
grip6Weld=CFuncs.Weld.Create(m,FakeHandle,grip6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.180281326, -0.00701904297, 0.178030491, -6.02649525e-05, -3.16947699e-05, -1.00000012, -0.999909699, 0.0134435594, 5.98318875e-05, 0.0134435594, 0.999909699, -3.25068831e-05))
375
CFuncs.Mesh.Create("CylinderMesh",grip6,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.109999999, 0.0799999982))
376
gripwood=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Grey","gripwood",Vector3.new(1, 0.800000012, 1))
377
gripwoodWeld=CFuncs.Weld.Create(m,FakeHandle,gripwood,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.0971788168, -0.126956403, 0.999909639, -0.0134445727, -6.94710761e-05, 0.012750335, 0.949891746, -0.312319487, 0.00426499359, 0.31229037, 0.949977219))
378
CFuncs.Mesh.Create("BlockMesh",gripwood,"","",Vector3.new(0, -0.0299999993, 0),Vector3.new(0.130999997, 0.899999976, 0.300000012))
379
lock=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","lock",Vector3.new(1, 1.20000005, 1))
380
lockWeld=CFuncs.Weld.Create(m,FakeHandle,lock,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.25027138, -0.00702285767, -0.481977224, -6.77844509e-05, -2.412498e-05, -1.00000012, -0.999909759, 0.0134387538, 6.74538314e-05, 0.0134387463, 0.999909759, -2.50414014e-05))
381
CFuncs.Mesh.Create("CylinderMesh",lock,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.0500000007, 0.119999997))
382
lock=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","lock",Vector3.new(1, 1.20000005, 1))
383
lockWeld=CFuncs.Weld.Create(m,FakeHandle,lock,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704574585, 0.364296615, -0.420812368, 0.999909699, -0.0134435743, -6.93630427e-05, -0.00309224986, -0.224969089, -0.974361002, 0.013083294, 0.974273205, -0.224990368))
384
CFuncs.Mesh.Create("BlockMesh",lock,"","",Vector3.new(0, 0, 0),Vector3.new(0.0599999987, 0.201000005, 0.0500000007))
385
mag=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","mag",Vector3.new(1, 0.800000012, 1))
386
magWeld=CFuncs.Weld.Create(m,FakeHandle,mag,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00701904297, -0.0528812408, -0.133502185, 0.999909878, -0.0134301931, -5.27910888e-05, 0.0127419457, 0.949895918, -0.312307149, 0.00424449332, 0.31227833, 0.949981332))
387
CFuncs.Mesh.Create("BlockMesh",mag,"","",Vector3.new(0, 0, 0),Vector3.new(0.119999997, 0.899999976, 0.200000003))
388
pull1=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull1",Vector3.new(1, 1.20000005, 1))
389
pull1Weld=CFuncs.Weld.Create(m,FakeHandle,pull1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.619629383, -0.401958704, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
390
CFuncs.Mesh.Create("CylinderMesh",pull1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.829999983, 0.109999999))
391
pull10=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull10",Vector3.new(1, 1.20000005, 1))
392
pull10Weld=CFuncs.Weld.Create(m,FakeHandle,pull10,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.32965982, -0.451967001, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
393
CFuncs.Mesh.Create("BlockMesh",pull10,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.899999976, 0.100000001))
394
pull11=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull11",Vector3.new(1, 1.20000005, 1))
395
pull11Weld=CFuncs.Weld.Create(m,FakeHandle,pull11,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0670394897, -0.189648718, -0.501974106, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
396
CFuncs.Mesh.Create("BlockMesh",pull11,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.629999995, 0.109999999))
397
pull12=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull12",Vector3.new(1, 1.20000005, 1))
398
pull12Weld=CFuncs.Weld.Create(m,FakeHandle,pull12,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0629768372, -0.189653218, -0.501966715, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
399
CFuncs.Mesh.Create("BlockMesh",pull12,"","",Vector3.new(0, 0, 0),Vector3.new(0, 0.629999995, 0.109999999))
400
pull13=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull13",Vector3.new(1, 1.20000005, 1))
401
pull13Weld=CFuncs.Weld.Create(m,FakeHandle,pull13,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00702285767, 0.150307029, -0.481988907, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
402
CFuncs.Mesh.Create("BlockMesh",pull13,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.200000003, 0.150000006))
403
pull14=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Really black","pull14",Vector3.new(1, 1.20000005, 1))
404
pull14Weld=CFuncs.Weld.Create(m,FakeHandle,pull14,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00701141357, 0.150305301, -0.481980801, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
405
CFuncs.Mesh.Create("BlockMesh",pull14,"","",Vector3.new(0, 0, 0),Vector3.new(0.0599999987, 0.201000005, 0.150000006))
406
pull15=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull15",Vector3.new(1, 0.400000006, 1))
407
pull15Weld=CFuncs.Weld.Create(m,FakeHandle,pull15,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -1.04958391, -0.561964989, 0.999909699, -0.0134400427, -6.49569556e-05, -6.52852468e-05, -2.39983201e-05, -1, 0.0134400502, 0.999909818, -2.48774886e-05))
408
CFuncs.Mesh.Create("BlockMesh",pull15,"","",Vector3.new(0, 0, 0),Vector3.new(0.00999999978, 0.129999995, 0.100000001))
409
pull16=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull16",Vector3.new(1, 0.400000006, 1))
410
pull16Weld=CFuncs.Weld.Create(m,FakeHandle,pull16,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0270347595, 0.130312085, -0.571975708, 0.999909699, -0.0134400427, -6.49569556e-05, -6.52852468e-05, -2.39983201e-05, -1, 0.0134400502, 0.999909818, -2.48774886e-05))
411
CFuncs.Mesh.Create("BlockMesh",pull16,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.129999995, 0.100000001))
412
pull17=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull17",Vector3.new(1, 0.400000006, 1))
413
pull17Weld=CFuncs.Weld.Create(m,FakeHandle,pull17,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0129585266, 0.130348355, -0.571978331, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
414
CFuncs.Mesh.Create("BlockMesh",pull17,"","",Vector3.new(0, 0, 0),Vector3.new(0.0199999996, 0.129999995, 0.100000001))
415
pull18=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull18",Vector3.new(1, 0.400000006, 1))
416
pull18Weld=CFuncs.Weld.Create(m,FakeHandle,pull18,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, 0.13034448, -0.561985254, 0.999909759, -0.0134398267, -6.6944398e-05, -6.74682669e-05, -3.82959843e-05, -1, 0.0134398341, 0.999909759, -3.92049551e-05))
417
CFuncs.Mesh.Create("BlockMesh",pull18,"","",Vector3.new(0, 0, 0),Vector3.new(0.0299999993, 0.129999995, 0.100000001))
418
pull2=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull2",Vector3.new(1, 1.20000005, 1))
419
pull2Weld=CFuncs.Weld.Create(m,FakeHandle,pull2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704574585, -0.619563699, -0.451950073, 0.999909878, -0.0134311616, -6.29704446e-05, -6.34202734e-05, -3.29688191e-05, -1, 0.0134311691, 0.999909878, -3.38107347e-05))
420
CFuncs.Mesh.Create("BlockMesh",pull2,"","",Vector3.new(0, 0, 0),Vector3.new(0.109999999, 0.829999983, 0.109999999))
421
pull3=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull3",Vector3.new(1, 0.800000012, 1))
422
pull3Weld=CFuncs.Weld.Create(m,FakeHandle,pull3,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.739553452, -0.50193429, 0.999909818, -0.0134332404, -6.21890649e-05, -6.25979155e-05, -2.99289823e-05, -1.00000012, 0.0134332553, 0.999909878, -3.07634473e-05))
423
CFuncs.Mesh.Create("BlockMesh",pull3,"","",Vector3.new(0, 0, 0),Vector3.new(0.140000001, 0.949999988, 0.109999999))
424
pull4=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull4",Vector3.new(1, 0.800000012, 1))
425
pull4Weld=CFuncs.Weld.Create(m,FakeHandle,pull4,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704956055, -0.739597261, -0.541920185, 0.999909759, -0.0134378821, -6.57103956e-05, -6.59306534e-05, -1.59516931e-05, -1.00000012, 0.0134378746, 0.999909818, -1.68383121e-05))
426
CFuncs.Mesh.Create("BlockMesh",pull4,"","",Vector3.new(0, 0, 0),Vector3.new(0.0900000036, 0.949999988, 0.109999999))
427
pull5=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull5",Vector3.new(1, 0.800000012, 1))
428
pull5Weld=CFuncs.Weld.Create(m,FakeHandle,pull5,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00704193115, 0.0703384876, -0.541975498, 0.999909759, -0.0134378821, -6.57103956e-05, -6.59306534e-05, -1.59516931e-05, -1.00000012, 0.0134378746, 0.999909818, -1.68383121e-05))
429
CFuncs.Mesh.Create("BlockMesh",pull5,"","",Vector3.new(0, 0, 0),Vector3.new(0.0900000036, 0.5, 0.109999999))
430
pull6=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull6",Vector3.new(1, 0.800000012, 1))
431
pull6Weld=CFuncs.Weld.Create(m,FakeHandle,pull6,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.46642971, -0.739624321, -0.295387268, 0.503457308, -0.864020228, -3.70740891e-05, -7.86371529e-05, -2.91317701e-06, -1.00000012, 0.864020169, 0.503457367, -6.94096088e-05))
432
CFuncs.Mesh.Create("BlockMesh",pull6,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.949999988, 0.0900000036))
433
pull7=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull7",Vector3.new(1, 0.800000012, 1))
434
pull7Weld=CFuncs.Weld.Create(m,FakeHandle,pull7,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.46647644, 0.070343256, -0.295406342, 0.503451586, -0.864023566, -4.46215272e-05, -8.28690827e-05, 3.34531069e-06, -1.00000012, 0.864023507, 0.503451586, -6.99199736e-05))
435
CFuncs.Mesh.Create("BlockMesh",pull7,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.5, 0.0900000036))
436
pull8=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull8",Vector3.new(1, 0.800000012, 1))
437
pull8Weld=CFuncs.Weld.Create(m,FakeHandle,pull8,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.459190369, -0.73966372, -0.307416916, 0.526499987, 0.850175321, -3.15755606e-05, -5.32302074e-05, -4.17232513e-06, -1.00000012, -0.850175142, 0.526500046, 4.30643559e-05))
438
CFuncs.Mesh.Create("BlockMesh",pull8,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 0.949999988, 0.0900000036))
439
pull9=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","pull9",Vector3.new(1, 0.800000012, 1))
440
pull9Weld=CFuncs.Weld.Create(m,FakeHandle,pull9,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.460895538, -0.129637823, -0.343458176, 0.526488483, 0.850182414, -2.8014183e-05, -4.84357588e-05, -2.96533108e-06, -1.00000012, -0.850182235, 0.526488543, 3.9614737e-05))
441
CFuncs.Mesh.Create("BlockMesh",pull9,"","",Vector3.new(0, 0, 0),Vector3.new(0.0500000007, 1, 0.0199999996))
442
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 1.20000005, 1))
443
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00702667236, -0.309642404, -0.451959133, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
444
CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, -0.0399999991, 0),Vector3.new(0.129999995, 0.899999976, 0.100000001))
445
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 1.20000005, 1))
446
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703048706, -0.209693551, -0.401955605, 0.99990958, -0.0134523436, -7.23442063e-05, -7.26664439e-05, -2.34618783e-05, -1.00000012, 0.0134523511, 0.99990958, -2.44379044e-05))
447
CFuncs.Mesh.Create("CylinderMesh",support,"","",Vector3.new(0, 0.0599999987, 0),Vector3.new(1, 0.899999976, 0.129999995))
448
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
449
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00706863403, 0.27032581, -0.341987371, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
450
CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.400000006, 0.0399999991))
451
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
452
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00703811646, -0.350301504, 0.382001877, 0.999909699, -0.0134444609, -7.0463866e-05, 7.08810985e-05, 3.04579735e-05, 1, -0.0134444609, -0.999909759, 3.13967466e-05))
453
CFuncs.Mesh.Create("SpecialMesh",support,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.129999995, 0.200000003, 0.0399999991))
454
support=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Black","support",Vector3.new(1, 0.800000012, 1))
455
supportWeld=CFuncs.Weld.Create(m,FakeHandle,support,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00700759888, -0.169669658, -0.381963968, 0.999909699, -0.0134435743, -6.93630427e-05, -6.9775153e-05, -3.03909183e-05, -1.00000012, 0.0134435818, 0.999909639, -3.13222408e-05))
456
CFuncs.Mesh.Create("BlockMesh",support,"","",Vector3.new(0, -0.0399999991, 0),Vector3.new(0.129999995, 1, 0.100000001))
457
bulletpart=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Black","bulletpart",Vector3.new(0.209999934, 0.170000002, 0.209999904))
458
bulletpartWeld=CFuncs.Weld.Create(m,FakeHandle,bulletpart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.496771336, -1.25435734, 0.0321578979, -0.0134708509, -0.999909401, 3.74764204e-06, -7.72606581e-05, -2.71201134e-06, -1.00000012, 0.999909341, -0.013470836, -7.72150233e-05))
459
460
461
462
463
function RayCast(Position, Direction, Range, Ignore)
464
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
465
end 
466
467
function FindNearestTorso(Position, Distance, SinglePlayer)
468
	if SinglePlayer then
469
		return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
470
	end
471
	local List = {}
472
	for i, v in pairs(workspace:GetChildren()) do
473
		if v:IsA("Model") then
474
			if v:findFirstChild("Torso") then
475
				if v ~= Character then
476
					if (v.Torso.Position - Position).magnitude <= Distance then
477
						table.insert(List, v)
478
					end 
479
				end 
480
			end 
481
		end 
482
	end
483
	return List
484
end
485
486
487
488
function FindNearestHead(Position, Distance, SinglePlayer)
489
	if SinglePlayer then
490
		return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
491
	end
492
	local List = {}
493
	for i, v in pairs(workspace:GetChildren()) do
494
		if v:IsA("Model") then
495
			if v:findFirstChild("Head") then
496
				if v ~= Character then
497
					if (v.Head.Position - Position).magnitude <= Distance then
498
						table.insert(List, v)
499
					end 
500
				end 
501
			end 
502
		end 
503
	end
504
	return List
505
end
506
507
508
509
510
511
512
513
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
514
	if hit.Parent == nil then
515
		return
516
	end
517
	local h = hit.Parent:FindFirstChild("Humanoid")
518
	for _, v in pairs(hit.Parent:children()) do
519
		if v:IsA("Humanoid") then
520
			h = v
521
		end
522
	end
523
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
524
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
525
			if hit.Parent.DebounceHit.Value == true then
526
				return
527
			end
528
		end
529
		local c = Create("ObjectValue"){
530
			Name = "creator",
531
			Value = game:service("Players").LocalPlayer,
532
			Parent = h,
533
		}
534
		game:GetService("Debris"):AddItem(c, .5)
535
		if HitSound ~= nil and HitPitch ~= nil then
536
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
537
		end
538
		local Damage = math.random(minim, maxim)
539
		local blocked = false
540
		local block = hit.Parent:findFirstChild("Block")
541
		if block ~= nil then
542
			if block.className == "IntValue" then
543
				if block.Value > 0 then
544
					blocked = true
545
					block.Value = block.Value - 1
546
					print(block.Value)
547
				end
548
			end
549
		end
550
		if blocked == false then
551
			h.Health = h.Health - Damage
552
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 6)).p + Vector3.new(0, 3, 0)), -Damage, 3, BrickColor.new(Torso.Color).Color)
553
		else
554
			h.Health = h.Health - (Damage / 2)
555
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 6)).p + Vector3.new(0, 3, 0)), -Damage, 3, BrickColor.new(Torso.Color).Color)
556
		end
557
		if Type == "Knockdown" then
558
			local hum = hit.Parent.Humanoid
559
			hum.PlatformStand = true
560
			coroutine.resume(coroutine.create(function(HHumanoid)
561
				swait(1)
562
				HHumanoid.PlatformStand = false
563
			end), hum)
564
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
565
			local bodvol = Create("BodyVelocity"){
566
				velocity = angle * knockback,
567
				P = 5000,
568
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
569
				Parent = hit,
570
			}
571
			local rl = Create("BodyAngularVelocity"){
572
				P = 3000,
573
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
574
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
575
				Parent = hit,
576
			}
577
			game:GetService("Debris"):AddItem(bodvol, .5)
578
			game:GetService("Debris"):AddItem(rl, .5)
579
		elseif Type == "Normal" then
580
			local vp = Create("BodyVelocity"){
581
				P = 500,
582
				maxForce = Vector3.new(math.huge, 0, math.huge),
583
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
584
			}
585
			if hit.Parent.Humanoid.MaxHealth > 100 then
586
                                         hit.Parent:BreakJoints()
587
                                         end
588
			if knockback > 0 then
589
				vp.Parent = hit.Parent.Torso
590
			end
591
			game:GetService("Debris"):AddItem(vp, .5)
592
		elseif Type == "Up" then
593
			local bodyVelocity = Create("BodyVelocity"){
594
				velocity = Vector3.new(0, 20, 0),
595
				P = 5000,
596
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
597
				Parent = hit,
598
			}
599
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
600
		elseif Type == "DarkUp" then
601
			coroutine.resume(coroutine.create(function()
602
				for i = 0, 1, 0.1 do
603
					swait()
604
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
605
				end
606
			end))
607
			local bodyVelocity = Create("BodyVelocity"){
608
				velocity = Vector3.new(0, 20, 0),
609
				P = 5000,
610
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
611
				Parent = hit,
612
			}
613
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
614
		elseif Type == "Snare" then
615
			local bp = Create("BodyPosition"){
616
				P = 2000,
617
				D = 100,
618
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
619
				position = hit.Parent.Torso.Position,
620
				Parent = hit.Parent.Torso,
621
			}
622
			game:GetService("Debris"):AddItem(bp, 1)
623
		elseif Type == "Freeze" then
624
			local BodPos = Create("BodyPosition"){
625
				P = 50000,
626
				D = 1000,
627
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
628
				position = hit.Parent.Torso.Position,
629
				Parent = hit.Parent.Torso,
630
			}
631
			local BodGy = Create("BodyGyro") {
632
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
633
				P = 20e+003,
634
				Parent = hit.Parent.Torso,
635
				cf = hit.Parent.Torso.CFrame,
636
			}
637
			hit.Parent.Torso.Anchored = true
638
			coroutine.resume(coroutine.create(function(Part) 
639
				swait(1.5)
640
				Part.Anchored = false
641
			end), hit.Parent.Torso)
642
			game:GetService("Debris"):AddItem(BodPos, 3)
643
			game:GetService("Debris"):AddItem(BodGy, 3)
644
		end
645
		local debounce = Create("BoolValue"){
646
			Name = "DebounceHit",
647
			Parent = hit.Parent,
648
			Value = true,
649
		}
650
		game:GetService("Debris"):AddItem(debounce, Delay)
651
		c = Create("ObjectValue"){
652
			Name = "creator",
653
			Value = Player,
654
			Parent = h,
655
		}
656
		game:GetService("Debris"):AddItem(c, .5)
657
	end
658
end
659
660
function ShowDamage(Pos, Text, Time, Color)
661
	local Rate = (1 / 30)
662
	local Pos = (Pos or Vector3.new(0, 0, 0))
663
	local Text = (Text or "")
664
	local Time = (Time or 2)
665
	local Color = (Color or Color3.new(1, 0, 1))
666
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
667
	EffectPart.Anchored = true
668
	local BillboardGui = Create("BillboardGui"){
669
		Size = UDim2.new(3, 0, 3, 0),
670
		Adornee = EffectPart,
671
		Parent = EffectPart,
672
	}
673
	local TextLabel = Create("TextLabel"){
674
		BackgroundTransparency = 1,
675
		Size = UDim2.new(1, 0, 1, 0),
676
		Text = Text,
677
		Font = "SciFi",
678
		TextColor3 = Color,
679
		TextScaled = true,
680
		Parent = BillboardGui,
681
	}
682
	game.Debris:AddItem(EffectPart, (Time))
683
	EffectPart.Parent = game:GetService("Workspace")
684
	delay(0, function()
685
		local Frames = (Time / Rate)
686
		for Frame = 1, Frames do
687
			wait(Rate)
688
			local Percent = (Frame / Frames)
689
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
690
			TextLabel.TextTransparency = Percent
691
		end
692
		if EffectPart and EffectPart.Parent then
693
			EffectPart:Destroy()
694
		end
695
	end)
696
end
697
698
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
699
	for _, c in pairs(workspace:children()) do
700
		local hum = c:findFirstChild("Humanoid")
701
		if hum ~= nil then
702
			local head = c:findFirstChild("Torso")
703
			if head ~= nil then
704
				local targ = head.Position - Part.Position
705
				local mag = targ.magnitude
706
				if mag <= Magnitude and c.Name ~= Player.Name then 
707
					Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
708
				end
709
			end
710
		end
711
	end
712
end
713
714
715
716
717
718
719
720
721
722
723
724
EffectModel = Create("Model"){
725
	Parent = Character,
726
	Name = "EffectModel",
727
}
728
729
730
mosic = Instance.new("Sound",Torso)
731
mosic.SoundId = "http://www.roblox.com/asset/?id=935752515"
732
mosic.Looped = true
733
mosic:Play()
734
mosic.Volume = 3
735
736
Effects = {
737
	Block = {
738
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part)
739
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
740
			prt.Anchored = true
741
			prt.CFrame = cframe
742
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
743
			game:GetService("Debris"):AddItem(prt, 10)
744
			if Type == 1 or Type == nil then
745
				table.insert(Effects, {
746
					prt,
747
					"Block1",
748
					delay,
749
					x3,
750
					y3,
751
					z3,
752
					msh
753
				})
754
			elseif Type == 2 then
755
				table.insert(Effects, {
756
					prt,
757
					"Block2",
758
					delay,
759
					x3,
760
					y3,
761
					z3,
762
					msh
763
				})
764
			elseif Type == 3 then
765
				table.insert(Effects, {
766
					prt,
767
					"Block3",
768
					delay,
769
					x3,
770
					y3,
771
					z3,
772
					msh,
773
					Part
774
				})
775
			elseif Type == 4 then
776
				table.insert(Effects, {
777
					prt,
778
					"Block2Fire",
779
					delay,
780
					x3,
781
					y3,
782
					z3,
783
					msh
784
				})
785
			end
786
		end
787
	};
788
789
	Sphere = {
790
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent)
791
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
792
			prt.Anchored = true
793
			prt.CFrame = cframe
794
			if parent == nil then
795
				prt.Parent = workspace
796
			else
797
				prt.Parent = parent
798
			end
799
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
800
			game:GetService("Debris"):AddItem(prt, 10)
801
			table.insert(Effects, {
802
				prt,
803
				"Cylinder",
804
				delay,
805
				x3,
806
				y3,
807
				z3,
808
				msh
809
			})
810
		end
811
	};
812
813
	Blood = {
814
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
815
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
816
			prt.Anchored = true
817
			prt.CFrame = cframe
818
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
819
			game:GetService("Debris"):AddItem(prt, 10)
820
			table.insert(Effects, {
821
				prt,
822
				"Blood",
823
				delay,
824
				x3,
825
				y3,
826
				z3,
827
				msh
828
			})
829
		end
830
	};
831
832
	Blast = {
833
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part)
834
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
835
			prt.Anchored = true
836
			prt.CFrame = cframe
837
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
838
			game:GetService("Debris"):AddItem(prt, 10)
839
			table.insert(Effects, {
840
				prt,
841
				"Block4",
842
				delay,
843
				x3,
844
				y3,
845
				z3,
846
				msh,
847
				Part
848
			})
849
		end
850
	};
851
852
	Ring = {
853
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
854
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
855
			prt.Anchored = true
856
			prt.CFrame = cframe
857
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
858
			game:GetService("Debris"):AddItem(prt, 10)
859
			table.insert(Effects, {
860
				prt,
861
				"Cylinder",
862
				delay,
863
				x3,
864
				y3,
865
				z3,
866
				msh
867
			})
868
		end
869
	};
870
871
	Cylinder = {
872
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
873
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
874
			prt.Anchored = true
875
			prt.CFrame = cframe
876
			local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
877
			game:GetService("Debris"):AddItem(prt, 10)
878
			table.insert(Effects, {
879
				prt,
880
				"Cylinder",
881
				delay,
882
				x3,
883
				y3,
884
				z3,
885
				msh
886
			})
887
		end
888
	};
889
890
	Head = {
891
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
892
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
893
			prt.Anchored = true
894
			prt.CFrame = cframe
895
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
896
			game:GetService("Debris"):AddItem(prt, 10)
897
			table.insert(Effects, {
898
				prt,
899
				"Cylinder",
900
				delay,
901
				x3,
902
				y3,
903
				z3,
904
				msh
905
			})
906
		end
907
	};
908
909
	Wave = {
910
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
911
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
912
			prt.Anchored = true
913
			prt.CFrame = cframe
914
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
915
			game:GetService("Debris"):AddItem(prt, 10)
916
			table.insert(Effects, {
917
				prt,
918
				"Cylinder",
919
				delay,
920
				x3,
921
				y3,
922
				z3,
923
				msh
924
			})
925
		end
926
	};
927
928
	Break = {
929
		Create = function(brickcolor, cframe, x1, y1, z1)
930
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
931
			prt.Anchored = true
932
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
933
			game:GetService("Debris"):AddItem(prt, 10)
934
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
935
			local num = math.random(10, 50) / 1000
936
			table.insert(Effects, {
937
				prt,
938
				"Shatter",
939
				num,
940
				prt.CFrame,
941
				math.random() - math.random(),
942
				0,
943
				math.random(50, 100) / 100
944
			})
945
		end
946
	};
947
948
	Elec = {
949
		Create = function(brickcolor, cff, x, y, z)
950
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
951
			prt.Anchored = true
952
			prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
953
			prt.CFrame = CFrame.new(prt.Position)
954
			game:GetService("Debris"):AddItem(prt, 10)
955
			xval = math.random() / 9
956
			yval = math.random() / 9
957
			zval = math.random() / 9
958
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
959
			eul1 = math.random(-50, 50)
960
			eul2 = math.random(-50, 50)
961
			eul3 = math.random(-50, 50)
962
			euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
963
			euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
964
			table.insert(Effects, {
965
				prt,
966
				"Elec",
967
				.05,
968
				x,
969
				y,
970
				z,
971
				xval,
972
				yval,
973
				zval,
974
				msh,
975
				euld,
976
				euld2
977
			})
978
		end
979
	};
980
981
	Elec2 = {
982
		Create = function(brickcolor, cff, x, y, z)
983
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1))
984
			prt.Anchored = true
985
			prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100)
986
			prt.CFrame = CFrame.new(prt.Position)
987
			game:GetService("Debris"):AddItem(prt, 10)
988
			xval = math.random() / 7
989
			yval = math.random() / 7
990
			zval = math.random() / 7
991
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
992
			eul1 = math.random(-50, 50)
993
			eul2 = math.random(-50, 50)
994
			eul3 = math.random(-50, 50)
995
			euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3)
996
			euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3)
997
			table.insert(Effects, {
998
				prt,
999
				"Elec",
1000
				.1,
1001
				x,
1002
				y,
1003
				z,
1004
				xval,
1005
				yval,
1006
				zval,
1007
				msh,
1008
				euld,
1009
				euld2
1010
			})
1011
		end
1012
	};
1013
1014
	Clone = {
1015
		Create = function() 
1016
			for _, v in pairs(Torso.Parent:children()) do
1017
				if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
1018
					local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size)
1019
					c.Anchored = true
1020
					c.CFrame = v.CFrame
1021
					game:GetService("Debris"):AddItem(c, 5)
1022
					local cmsh = nil
1023
					if v.Name == "Head" then
1024
						cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale)
1025
					else
1026
						cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
1027
					end
1028
					table.insert(Effects, {
1029
						c,
1030
						"Cylinder",
1031
						0.05,
1032
						0.1,
1033
						0.1,
1034
						0.1,
1035
						cmsh
1036
					})
1037
				end
1038
			end
1039
		end
1040
	};
1041
1042
	EffectTemplate = {
1043
1044
	};
1045
}
1046
1047
1048
shoot = function(mouse, aoe , partt, SpreadAmount, multiply)
1049
	
1050
	local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
1051
	local MainPos = partt.Position
1052
	local MainPos2 = mouse.Hit.p + SpreadVectors
1053
	local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
1054
	local speed = 100
1055
	local num = 500
1056
	coroutine.resume(coroutine.create(function()
1057
		
1058
		repeat
1059
			swait()
1060
			local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
1061
			local mag = (MainPos - pos).magnitude                                                            
1062
			Laser(BrickColor.new("Gold"), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), .2, .2, 0, .2, 0.1)
1063
			MainPos = MainPos + MouseLook.lookVector * speed
1064
			num = num - 1
1065
			MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0)
1066
			if hit ~= nil then
1067
									if hit.Name == "Torso" or hit.Name == "Right Leg" or hit.Name == "Left Leg" or hit.Name == "Right Arm" or hit.Name == "Left Arm" then
1068
				num = 0
1069
				local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
1070
				refpart.Anchored = true
1071
				refpart.CFrame = CFrame.new(pos)
1072
				CFuncs.Sound.Create("255661850", refpart, 1, 1)
1073
local smonk = Instance.new("ParticleEmitter",refpart)
1074
			smonk.LightEmission = .1
1075
			smonk.Size = NumberSequence.new(0.2)
1076
			smonk.Texture = "http://www.roblox.com/asset/?ID=256293532"
1077
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
1078
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1079
			smonk.Transparency = bbb
1080
			smonk.Size = aaa
1081
			smonk.ZOffset = 0
1082
			smonk.Acceleration = Vector3.new(0, -5, 0)
1083
			smonk.LockedToPart = false
1084
			smonk.EmissionDirection = "Back"
1085
			smonk.Lifetime = NumberRange.new(.1, .5)
1086
			smonk.Rate = 50
1087
			smonk.Rotation = NumberRange.new(-100, 100)
1088
			smonk.RotSpeed = NumberRange.new(-100, 100)
1089
			smonk.Speed = NumberRange.new(4)
1090
			smonk.VelocitySpread = 50
1091
			smonk.Enabled=true
1092
game:GetService("Debris"):AddItem(smonk, .3)
1093
							elseif hit.Name == "Head" then
1094
						num = 0
1095
				local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
1096
				refpart.Anchored = true
1097
				refpart.CFrame = CFrame.new(pos)
1098
				CFuncs.Sound.Create("296102734", refpart, 1, 1)
1099
				game:GetService("Debris"):AddItem(refpart, 2)
1100
            local smonk = Instance.new("ParticleEmitter",refpart)
1101
			smonk.LightEmission = .1
1102
			smonk.Size = NumberSequence.new(0.2)
1103
			smonk.Texture = "http://www.roblox.com/asset/?ID=256293532"
1104
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1.5)})
1105
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1106
			smonk.Transparency = bbb
1107
			smonk.Size = aaa
1108
			smonk.ZOffset = 0
1109
			smonk.Acceleration = Vector3.new(0, -5, 0)
1110
			smonk.LockedToPart = false
1111
			smonk.EmissionDirection = "Back"
1112
			smonk.Lifetime = NumberRange.new(.1, .5)
1113
			smonk.Rate = 50
1114
			smonk.Rotation = NumberRange.new(-100, 100)
1115
			smonk.RotSpeed = NumberRange.new(-100, 100)
1116
			smonk.Speed = NumberRange.new(4)
1117
			smonk.VelocitySpread = 100
1118
			smonk.Enabled=true
1119
game:GetService("Debris"):AddItem(smonk, .3)
1120
				else
1121
					num = 0
1122
				local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
1123
				refpart.Anchored = true
1124
				refpart.CFrame = CFrame.new(pos)
1125
			        CFuncs.Sound.Create("341519743", prt, 1, 1)
1126
				game:GetService("Debris"):AddItem(refpart, .2)		
1127
				end
1128
				end
1129
			do
1130
				if num <= 0 then
1131
					local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new())
1132
					refpart.Anchored = true
1133
					refpart.CFrame = CFrame.new(pos)
1134
                    Effects.Block.Create(BrickColor.new("Flame reddish orange"), refpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1135
					if hit ~= nil then
1136
						MagnitudeDamage(refpart, aoe, 2 * multiply, 2 * multiply, 0, "Normal", "233856154", 1)		
1137
					end
1138
					game:GetService("Debris"):AddItem(refpart, 0)
1139
				end
1140
			end
1141
		until num <= 0
1142
	end
1143
))
1144
end
1145
1146
1147
1148
1149
local Grabbed = false
1150
1151
1152
function smear()
1153
	Attack = true
1154
1155
	Humanoid.AutoRotate = false
1156
	Humanoid.JumpPower = 0
1157
	Humanoid.WalkSpeed = 0
1158
				local grab = nil
1159
			executing = true	
1160
		for i = 0, 1, 0.1 do
1161
		swait()
1162
		PlayAnimationFromTable({
1163
         CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1164
         CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1165
         CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1166
         CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1167
         CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1168
         CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1169
		}, .2, false)
1170
	for i, v in pairs(FindNearestHead(Head.CFrame.p, 10)) do
1171
		if v:FindFirstChild('Head') then
1172
			Grabbed = true
1173
			grab = v
1174
		end
1175
							if Grabbed == true then
1176
								targetted = nil
1177
			grab.Humanoid.PlatformStand = true
1178
			end
1179
	end
1180
		end
1181
	
1182
	local grab = nil
1183
	
1184
		for i = 0, .5, 0.1 do
1185
		swait()
1186
		PlayAnimationFromTable({
1187
         CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1188
         CFrame.new(0, 1.52020586, -0.279066354, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1189
         CFrame.new(1.70777297, 0.0838996619, 0.338782728, 0.939692616, -0.342020124, 1.00488698e-07, 0.296197832, 0.813797116, 0.500001192, -0.171010554, -0.469847381, 0.866024733) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1190
         CFrame.new(-0.786648035, 0.607858896, -1.09360671, 0.866025388, -0.500000238, 0, -0.171010032, -0.296197921, -0.939692736, 0.469846606, 0.813797772, -0.342019886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1191
         CFrame.new(0.500007629, -2.07035375, 0.196404651, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1192
         CFrame.new(-0.499992371, -1.8793813, -0.684038281, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1193
		}, .3, false)
1194
			for i, v in pairs(FindNearestHead(Head.CFrame.p, 10)) do
1195
		if v:FindFirstChild('Head') then
1196
			Grabbed = true
1197
			grab = v
1198
		end
1199
		lockcam.CameraType = "Scriptable"
1200
							if Grabbed == true then
1201
								targetted = nil
1202
			grab.Humanoid.PlatformStand = true
1203
			grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
1204
			end
1205
			end
1206
		Torso.Velocity=RootPart.CFrame.lookVector*100
1207
		end
1208
1209
				if Grabbed == true and grab ~= nil then
1210
					targetted = nil
1211
			grab.Humanoid.PlatformStand = true
1212
			grab.Head.CFrame = Handle2.CFrame 
1213
			grab.Head.CanCollide = false
1214
		local ow = CFuncs.Sound.Create("393884633", grab.Head, 2, 1)	
1215
	for i = 0, .5, 0.1 do
1216
		swait()
1217
		PlayAnimationFromTable({
1218
         CFrame.new(0, 0.0116673782, -0.230620712, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1219
         CFrame.new(0, 1.52020407, -0.279065013, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1220
         CFrame.new(1.76213956, 0.181882262, 0.169026196, 0.939693749, -0.342016995, -3.97785186e-07, 0.296195716, 0.813798964, 0.499999344, -0.171007916, -0.469846368, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1221
         CFrame.new(-0.795767486, 0.409343213, -1.44306374, 0.973481894, -0.226395503, 0.0328332447, 0.000464975834, -0.141566098, -0.989928722, 0.228763461, 0.963693023, -0.137706786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1222
         CFrame.new(0.500007629, -1.95507848, 0.396064222, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1223
         CFrame.new(-0.499992371, -1.69905818, -0.869703174, 1, 0, 0, 0, 0.766043782, -0.64278847, 0, 0.64278847, 0.766043782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1224
		}, .3, false)
1225
lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,5),grab.Head.CFrame,.1)
1226
		grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
1227
				moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1228
	end
1229
	CFuncs.Sound.Create("307379917", grab.Torso, 2, 1)
1230
	for i = 0, 4, 0.1 do
1231
		swait()
1232
		PlayAnimationFromTable({
1233
         CFrame.new(0, -0.554424644, -0.230621904, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1234
         CFrame.new(0, 1.26466095, -0.540713072, 1, 0, 0, 0, 0.866026163, 0.499998748, 0, -0.499998748, 0.866026163) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1235
         CFrame.new(1.76214743, 0.0730022341, 0.237322643, 0.939693749, -0.342016995, -3.97785186e-07, 0.342016965, 0.939693809, -1.1920929e-06, 7.74860382e-07, 9.68575478e-07, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1236
         CFrame.new(-0.848383009, 0.642179489, -1.0361222, 0.973482251, -0.194533557, -0.120370619, -0.113977194, 0.043772921, -0.992518663, 0.198347136, 0.979918718, 0.0204397887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1237
         CFrame.new(0.500007629, -1.24131715, -0.550035954, 1, 0, 0, 0, 0.939693153, 0.342018843, 0, -0.342018843, 0.939693153) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1238
         CFrame.new(-0.499992371, -0.981758952, -1.45210898, 1, 0, 0, 0, 0.64278692, -0.766045153, 0, 0.766045153, 0.64278692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1239
		}, .3, false)
1240
		lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,5),grab.Head.CFrame,.1)
1241
			local smonk = Instance.new("ParticleEmitter",grab.Head)
1242
			smonk.LightEmission = .1
1243
			smonk.Size = NumberSequence.new(0.2)
1244
			smonk.Texture = "http://www.roblox.com/asset/?ID=552389687"
1245
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .1),NumberSequenceKeypoint.new(1, .5)})
1246
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1247
			smonk.Transparency = bbb
1248
			smonk.Size = aaa
1249
			smonk.ZOffset = -1
1250
			smonk.Acceleration = Vector3.new(0, -5, 0)
1251
			smonk.LockedToPart = false
1252
			smonk.EmissionDirection = "Bottom"
1253
			smonk.Lifetime = NumberRange.new(.2, 5)
1254
			smonk.Rate = 10
1255
			smonk.Rotation = NumberRange.new(-100, 100)
1256
			smonk.RotSpeed = NumberRange.new(-100, 100)
1257
			smonk.Speed = NumberRange.new(-.3)
1258
			smonk.VelocitySpread = 10
1259
			smonk.Enabled=true
1260
            game:GetService("Debris"):AddItem(smonk, 1)
1261
	Torso.Velocity=RootPart.CFrame.lookVector*40
1262
	grab.Head.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)		
1263
	end
1264
	grab.Torso.Velocity=RootPart.CFrame.lookVector*0
1265
	Torso.Velocity=RootPart.CFrame.lookVector*0
1266
	grab.Torso.CanCollide = false
1267
	--smashy
1268
	for i = 0, .7, 0.1 do
1269
	for i = 0, .4, 0.1 do
1270
		swait()
1271
		PlayAnimationFromTable({
1272
         CFrame.new(-2.62260437e-06, -0.554422975, -0.230619952, 0.642787039, -3.83130924e-07, 0.766044974, -0.754407108, 0.173647448, 0.633021772, -0.13302201, -0.984807909, 0.111618027) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1273
         CFrame.new(0.165599957, 1.45203376, -0.1389575, 0.888377428, 0.383021414, -0.253140748, -0.249999091, 0.866026103, 0.433011889, 0.385079265, -0.321393013, 0.86511302) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1274
         CFrame.new(1.639135, 0.378064632, -0.171392277, 0.584366381, -0.700027764, 0.410459995, 0.671396554, 0.132976457, -0.729070723, 0.455788136, 0.701625764, 0.547703087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1275
         CFrame.new(-1.37148404, 0.736055136, -0.588378668, 0.84817493, -0.521483123, -0.093031399, -0.120593652, -0.019078508, -0.992518544, 0.515806735, 0.853048444, -0.0790694579) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1276
         CFrame.new(1.04601848, -1.78701377, -0.224999949, 0.642787039, -0.262003303, -0.719846725, -3.83130924e-07, 0.939692438, -0.342021108, 0.766044974, 0.219846994, 0.604021966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1277
         CFrame.new(0.479837954, -1.03251898, -1.26565886, 0.642787039, -0.586824656, -0.492404163, -3.83130924e-07, 0.642787278, -0.766044915, 0.766044974, 0.492403895, 0.413175076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1278
		}, .3, false)
1279
		lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.1)
1280
		grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
1281
	end
1282
	local smonk = Instance.new("ParticleEmitter",grab.Head)
1283
			smonk.LightEmission = .1
1284
			smonk.Size = NumberSequence.new(0.2)
1285
			smonk.Texture = "http://www.roblox.com/asset/?ID=122022304"
1286
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 3)})
1287
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1288
			smonk.Transparency = bbb
1289
			smonk.Size = aaa
1290
			smonk.ZOffset = 1
1291
			smonk.Acceleration = Vector3.new(0,.3, 0)
1292
			smonk.LockedToPart = false
1293
			smonk.EmissionDirection = "Back"
1294
			smonk.Lifetime = NumberRange.new(.2, 5)
1295
			smonk.Rate = 100
1296
			smonk.Rotation = NumberRange.new(-10, 10)
1297
			smonk.RotSpeed = NumberRange.new(-10, 10)
1298
			smonk.Speed = NumberRange.new(2)
1299
			smonk.VelocitySpread = 1000
1300
			smonk.Enabled=true
1301
            game:GetService("Debris"):AddItem(smonk, .5)
1302
	for i = 0, .4, 0.1 do
1303
		swait()
1304
		PlayAnimationFromTable({
1305
         CFrame.new(-1.78813934e-06, -0.554422975, -0.230621129, 0.766044021, -9.53147946e-07, -0.642788172, 0.633023024, 0.173646212, 0.754406333, 0.111616999, -0.984808087, 0.133021265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1306
         CFrame.new(-0.347562611, 1.26466119, -0.414210379, 0.766044021, -0.321392179, 0.556671917, -9.53147946e-07, 0.866026521, 0.499998033, -0.642788172, -0.383021086, 0.66341424) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1307
         CFrame.new(1.65797925, -0.0622069128, -0.187585682, 0.944800258, -0.261999041, 0.196745977, 0.296194345, 0.939693809, -0.17101036, -0.140076444, 0.219845727, 0.96542567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1308
         CFrame.new(-1.72933996, 0.531819761, -0.983813822, 0.873225331, 0.487284154, 0.00563029945, -0.11397732, 0.215456128, -0.969839096, -0.473800451, 0.846246302, 0.243681118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1309
         CFrame.new(-0.173988, -1.20138502, -1.24044585, 0.766044021, 0.604024172, 0.219843864, -9.53147946e-07, 0.342017144, -0.939693689, -0.642788172, 0.719846606, 0.262000799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1310
         CFrame.new(-1.31641626, -0.981757283, -0.790990889, 0.766044021, 0.111620195, 0.633022487, -9.53147946e-07, 0.98480767, -0.173648924, -0.642788172, 0.133022159, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1311
		}, .3, false)
1312
		grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
1313
lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.1)
1314
	end
1315
		CFuncs.Sound.Create("710036613", grab.Torso, 1, 1)
1316
			end		
1317
					for i = 0, 3, 0.1 do
1318
		swait()
1319
		PlayAnimationFromTable({
1320
         CFrame.new(-2.62260437e-06, -0.554422975, -0.230619952, 0.642787039, -3.83130924e-07, 0.766044974, -0.754407108, 0.173647448, 0.633021772, -0.13302201, -0.984807909, 0.111618027) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1321
         CFrame.new(0.165599957, 1.45203376, -0.1389575, 0.888377428, 0.383021414, -0.253140748, -0.249999091, 0.866026103, 0.433011889, 0.385079265, -0.321393013, 0.86511302) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1322
         CFrame.new(1.639135, 0.378064632, -0.171392277, 0.584366381, -0.700027764, 0.410459995, 0.671396554, 0.132976457, -0.729070723, 0.455788136, 0.701625764, 0.547703087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1323
         CFrame.new(-1.37148404, 0.736055136, -0.588378668, 0.84817493, -0.521483123, -0.093031399, -0.120593652, -0.019078508, -0.992518544, 0.515806735, 0.853048444, -0.0790694579) * CFrame.new(0 + 0.1 * math.cos(Sine/15), .5 + 0.1 * math.cos(Sine/30), 0) * CFrame.Angles(0 + 0.1 * math.cos(Sine/15), 0, 0), 
1324
         CFrame.new(1.04601848, -1.78701377, -0.224999949, 0.642787039, -0.262003303, -0.719846725, -3.83130924e-07, 0.939692438, -0.342021108, 0.766044974, 0.219846994, 0.604021966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1325
         CFrame.new(0.479837954, -1.03251898, -1.26565886, 0.642787039, -0.586824656, -0.492404163, -3.83130924e-07, 0.642787278, -0.766044915, 0.766044974, 0.492403895, 0.413175076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1326
		}, .3, false)
1327
		grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
1328
lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,8),grab.Head.CFrame,.8)
1329
					end
1330
					local smonk = Instance.new("ParticleEmitter",grab.Head)
1331
								smonk.LightEmission = .1
1332
			smonk.Size = NumberSequence.new(0.2)
1333
			smonk.Texture = "http://www.roblox.com/asset/?ID=122022304"
1334
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 3)})
1335
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1336
			smonk.Transparency = bbb
1337
			smonk.Size = aaa
1338
			smonk.ZOffset = 1
1339
			smonk.Acceleration = Vector3.new(0,5, 0)
1340
			smonk.LockedToPart = false
1341
			smonk.EmissionDirection = "Back"
1342
			smonk.Lifetime = NumberRange.new(.2, 5)
1343
			smonk.Rate = 1000
1344
			smonk.Rotation = NumberRange.new(-10, 10)
1345
			smonk.RotSpeed = NumberRange.new(-10, 10)
1346
			smonk.Speed = NumberRange.new(5)
1347
			smonk.VelocitySpread = 1000
1348
			smonk.Enabled=true
1349
            game:GetService("Debris"):AddItem(smonk, .8)
1350
		   CFuncs.Sound.Create("429400881", grab.Torso, 5, .8)			
1351
						for i = 0, 3, 0.1 do
1352
		swait()
1353
		PlayAnimationFromTable({
1354
         CFrame.new(-1.78813934e-06, -0.554422975, -0.230621129, 0.766044021, -9.53147946e-07, -0.642788172, 0.633023024, 0.173646212, 0.754406333, 0.111616999, -0.984808087, 0.133021265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1355
         CFrame.new(-0.347562611, 1.26466119, -0.414210379, 0.766044021, -0.321392179, 0.556671917, -9.53147946e-07, 0.866026521, 0.499998033, -0.642788172, -0.383021086, 0.66341424) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1356
         CFrame.new(1.65797925, -0.0622069128, -0.187585682, 0.944800258, -0.261999041, 0.196745977, 0.296194345, 0.939693809, -0.17101036, -0.140076444, 0.219845727, 0.96542567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1357
         CFrame.new(-1.72933996, 0.531819761, -0.983813822, 0.873225331, 0.487284154, 0.00563029945, -0.11397732, 0.215456128, -0.969839096, -0.473800451, 0.846246302, 0.243681118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1358
         CFrame.new(-0.173988, -1.20138502, -1.24044585, 0.766044021, 0.604024172, 0.219843864, -9.53147946e-07, 0.342017144, -0.939693689, -0.642788172, 0.719846606, 0.262000799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1359
         CFrame.new(-1.31641626, -0.981757283, -0.790990889, 0.766044021, 0.111620195, 0.633022487, -9.53147946e-07, 0.98480767, -0.173648924, -0.642788172, 0.133022159, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1360
		}, .3, false)
1361
		grab.Head.CFrame = LeftArm.CFrame * CFrame.new(0,-3,0) * CFrame.Angles(0,math.rad(-90),0)
1362
lockcam:Interpolate(Head.CFrame*CFrame.new(2,2,0),grab.Head.CFrame,.5)
1363
						end
1364
				grab.Head.Anchored = false
1365
						end
1366
			if grab ~= nil then
1367
				grab.Head:Destroy()
1368
			end			
1369
	grab=nil
1370
	Grabbed = false
1371
	executing = false			
1372
	Humanoid.AutoRotate = true	
1373
	Humanoid.JumpPower = 100
1374
	Humanoid.WalkSpeed = 25
1375
		Attack = false
1376
		lockcam.CameraType = "Custom"
1377
	end
1378
	
1379
1380
crosshair = Instance.new("BillboardGui",Character)
1381
crosshair.Size = UDim2.new(10,0,10,0)
1382
crosshair.Enabled = false
1383
crosshair.AlwaysOnTop = true
1384
crosshair2 = Instance.new("BillboardGui",Character)
1385
crosshair2.Size = UDim2.new(10,0,10,0)
1386
crosshair2.Enabled = false
1387
crosshair2.AlwaysOnTop = true
1388
1389
imgl = Instance.new("ImageLabel",crosshair)
1390
imgl.Position = UDim2.new(0,0,0,0)
1391
imgl.Size = UDim2.new(1,0,1,0)
1392
imgl.Image = "rbxassetid://1122662303"
1393
imgl.BackgroundTransparency = 1
1394
imgl.ImageColor3 = Color3.new(.5,0,0)
1395
1396
1397
crosshair3 = Instance.new("BillboardGui",Character)
1398
crosshair3.Size = UDim2.new(10,0,10,0)
1399
crosshair3.Enabled = false
1400
crosshair3.AlwaysOnTop = true
1401
1402
imgl3 = Instance.new("ImageLabel",crosshair3)
1403
imgl3.Position = UDim2.new(0,0,0,0)
1404
imgl3.Size = UDim2.new(1,0,1,0)
1405
imgl3.Image = "rbxassetid://18006519"
1406
imgl3.BackgroundTransparency = 1
1407
imgl3.ImageColor3 = Color3.new(0,0,0)
1408
1409
imgl2 = Instance.new("ImageLabel",crosshair)
1410
imgl2.Position = UDim2.new(0,0,0,0)
1411
imgl2.Size = UDim2.new(1,0,1,0)
1412
imgl2.Image = "rbxassetid://1122660386"
1413
imgl2.BackgroundTransparency = 1
1414
imgl2.ImageColor3 = Color3.new(0,0,0)
1415
1416
--Credit to CKBackup for his targeting system.--
1417
1418
targetted = nil
1419
1420
function TargetSelect(person)
1421
local dd=coroutine.wrap(function()
1422
if targetted ~= person then
1423
targetted = person
1424
for i = 0,8,1 do
1425
crosshair.Size = UDim2.new(0+i,0,0+i,0)
1426
crosshair2.Size = UDim2.new(.1+i,0,.1+i,0)
1427
crosshair3.Size = UDim2.new(0+i,0,0+i,0)
1428
wait(.05)
1429
end
1430
end
1431
end)
1432
dd()
1433
end
1434
1435
function LockOn()
1436
if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Head") ~= nil then
1437
TargetSelect(Mouse.Target.Parent.Head)
1438
print(Mouse.Target)
1439
CFuncs.Sound.Create("376178316", Mouse.Target.Parent.Head, 2, .8)
1440
else end
1441
  end
1442
1443
1444
1445
function pepper()
1446
	Attack = true
1447
	Humanoid.AutoRotate = false
1448
	Humanoid.JumpPower = 0
1449
	Humanoid.WalkSpeed = 0
1450
	
1451
				local grab = nil
1452
			executing = true	
1453
		for i = 0, 1, 0.1 do
1454
		swait()
1455
		PlayAnimationFromTable({
1456
         CFrame.new(0.0246932413, -0.0966757834, -0.0092370566, 0.713696778, 5.59592329e-22, 0.700454772, -9.27150216e-22, 1, 1.45779223e-22, -0.700454772, -7.53468894e-22, 0.713696778) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1457
         CFrame.new(0.098094359, 1.53651738, -0.281765848, 0.593379974, 0.280785412, -0.754360616, -0.0276839901, 0.943748772, 0.329502523, 0.804446399, -0.174636483, 0.567774832) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1458
         CFrame.new(1.58677018, 0.143787161, 0.0495693758, 0.968102753, -0.250522822, -0.00394502282, 0.250228018, 0.965921044, 0.0662006512, -0.0127741396, -0.0650762022, 0.997798622) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1459
         CFrame.new(-1.74332106, 0.446618229, -0.859300971, 0.795205951, 0.606264353, -0.0095520094, -0.0538869984, 0.0549720451, -0.997032762, -0.603940368, 0.793361068, 0.0763838589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1460
         CFrame.new(0.648194611, -1.97843742, -0.088139981, 0.954304218, -0.129303336, -0.269414723, 0.107585981, 0.989748061, -0.0939367935, 0.278798997, 0.0606590137, 0.958431959) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1461
         CFrame.new(-0.671899676, -2.02211809, 0.00866907835, 0.94230175, 0.108399026, -0.316728801, -0.108764999, 0.993929207, 0.0165804606, 0.316603303, 0.0188252106, 0.948371291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1462
		}, .2, false)
1463
		end
1464
1465
	            local grab = nil
1466
	
1467
		for i = 0, 1, 0.1 do
1468
		swait()
1469
		PlayAnimationFromTable({
1470
         CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1471
         CFrame.new(0, 1.52020586, -0.279066354, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1472
         CFrame.new(1.70777297, 0.0838996619, 0.338782728, 0.939692616, -0.342020124, 1.00488698e-07, 0.296197832, 0.813797116, 0.500001192, -0.171010554, -0.469847381, 0.866024733) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1473
         CFrame.new(-0.786648035, 0.607858896, -1.09360671, 0.866025388, -0.500000238, 0, -0.171010032, -0.296197921, -0.939692736, 0.469846606, 0.813797772, -0.342019886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1474
         CFrame.new(0.500007629, -2.07035375, 0.196404651, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1475
         CFrame.new(-0.499992371, -1.8793813, -0.684038281, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1476
		}, .3, false)
1477
			for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do
1478
		if v:FindFirstChild('Torso') and Grabbed ~= true then
1479
			Grabbed = true
1480
1481
			grab = v
1482
		end
1483
							if Grabbed == true then
1484
								targetted = nil
1485
			grab.Humanoid.PlatformStand = true
1486
			grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
1487
			end
1488
			end
1489
					Torso.Velocity=RootPart.CFrame.lookVector*100
1490
		end
1491
1492
1493
	
1494
				if Grabbed == true and grab ~= nil then
1495
					targetted = nil
1496
			grab.Humanoid.PlatformStand = true
1497
			grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
1498
			grab.Torso.CanCollide = false
1499
		--grab here		
1500
	for i = 0, .3, 0.1 do
1501
		swait()
1502
		PlayAnimationFromTable({
1503
         CFrame.new(0, 0.0116673782, -0.230620712, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1504
         CFrame.new(0, 1.52020407, -0.279065013, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1505
         CFrame.new(1.76213956, 0.181882262, 0.169026196, 0.939693749, -0.342016995, -3.97785186e-07, 0.296195716, 0.813798964, 0.499999344, -0.171007916, -0.469846368, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1506
         CFrame.new(-0.795767486, 0.409343213, -1.44306374, 0.973481894, -0.226395503, 0.0328332447, 0.000464975834, -0.141566098, -0.989928722, 0.228763461, 0.963693023, -0.137706786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1507
         CFrame.new(0.500007629, -1.95507848, 0.396064222, 1, 0, 0, 0, 0.866025746, 0.499999493, 0, -0.499999493, 0.866025746) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1508
         CFrame.new(-0.499992371, -1.69905818, -0.869703174, 1, 0, 0, 0, 0.766043782, -0.64278847, 0, 0.64278847, 0.766043782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1509
		}, .3, false)
1510
		grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)
1511
				moter.C0 = clerp(moter.C0, CFrame.new(0.0111928731, -1.63769662, -0.318741947, -0.0172089636, 8.2552433e-06, -0.999852061, 0.999852061, 7.4505806e-07, -0.0172089189, 5.66244125e-07, -1.00000012, -8.2552433e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1512
	end
1513
	
1514
	for i = 0, 1, 0.1 do
1515
		swait()
1516
		PlayAnimationFromTable({
1517
         CFrame.new(0, -0.554424644, -0.230621904, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1518
         CFrame.new(0, 1.26466095, -0.540713072, 1, 0, 0, 0, 0.866026163, 0.499998748, 0, -0.499998748, 0.866026163) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1519
         CFrame.new(1.76214743, 0.0730022341, 0.237322643, 0.939693749, -0.342016995, -3.97785186e-07, 0.342016965, 0.939693809, -1.1920929e-06, 7.74860382e-07, 9.68575478e-07, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1520
         CFrame.new(-0.848383009, 0.642179489, -1.0361222, 0.973482251, -0.194533557, -0.120370619, -0.113977194, 0.043772921, -0.992518663, 0.198347136, 0.979918718, 0.0204397887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1521
         CFrame.new(0.500007629, -1.24131715, -0.550035954, 1, 0, 0, 0, 0.939693153, 0.342018843, 0, -0.342018843, 0.939693153) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1522
         CFrame.new(-0.499992371, -0.981758952, -1.45210898, 1, 0, 0, 0, 0.64278692, -0.766045153, 0, 0.766045153, 0.64278692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1523
		}, .3, false)
1524
grab.Torso.CFrame = Handle2.CFrame * CFrame.Angles(0,math.rad(-90),0)			
1525
	end
1526
	lockcam.CameraType = "Scriptable"
1527
				--release here
1528
					for i = 0, .3, 0.1 do
1529
		swait()
1530
		PlayAnimationFromTable({
1531
         CFrame.new(-0, -0.790954828, 0.162615269, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1532
         CFrame.new(0, 1.55287015, 0.135475516, 1, 0, 0, 0, 0.939691961, -0.342022002, 0, 0.342022002, 0.939691961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1533
         CFrame.new(0.965891123, 0.600056291, -0.939134777, 0.984807968, 0.173647299, 6.93650236e-07, 1.01327896e-06, -1.7285347e-06, -1.00000012, -0.173647314, 0.984807849, -1.81794167e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1534
         CFrame.new(-0.848382771, 0.642180681, -1.03612173, 0.973482251, -0.194533288, -0.120371334, -0.113977998, 0.0437724888, -0.992518544, 0.198346853, 0.979918897, 0.0204392672) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1535
         CFrame.new(0.500007629, -0.797153175, -0.95421052, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1536
         CFrame.new(-0.499992371, -0.700443864, -1.01739883, 1, 0, 0, 0, 0.64278698, -0.766044974, 0, 0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1537
		}, .3, false)
1538
grab.Torso.Velocity= Vector3.new(0,0,0)
1539
					end
1540
					grab.Torso.Anchored = true
1541
					Humanoid.JumpPower = 100
1542
					Humanoid.Jump = true
1543
					Torso.Velocity=RootPart.CFrame.upVector*150
1544
					CFuncs.Sound.Create("158149887", Torso, 1, 1)
1545
					wait(.1)
1546
						for i = 0, .3, 0.1 do
1547
							Torso.Velocity=RootPart.CFrame.lookVector*40
1548
		swait()
1549
		PlayAnimationFromTable({
1550
         CFrame.new(-0, -0.486727536, -0.199950755, 1, 0, 0, 0, 0.64278698, 0.766044974, 0, -0.766044974, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1551
         CFrame.new(0.0483627319, 1.54976475, 0.0516630113, 1, 0, 0, 0, 0.939691961, -0.342022002, 0, 0.342022002, 0.939691961) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1552
         CFrame.new(1.38765192, 1.19624639, -0.26731497, 0.98480922, 0.0301625114, -0.171000317, 1.10268593e-05, -0.984808326, -0.173645556, -0.173640087, 0.171005875, -0.969848573) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1553
         CFrame.new(-1.319543, 1.38152361, -0.336561173, 0.973482132, -0.120370626, 0.194534108, -0.113977373, -0.992518663, -0.0437721014, 0.198347583, 0.0204388499, -0.979918599) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1554
         CFrame.new(0.500007629, -1.27044821, -0.954210758, 1, 0, 0, 0, 0.939692497, -0.34202078, 0, 0.34202078, 0.939692497) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1555
         CFrame.new(-0.499992371, -1.1737386, -1.01739967, 1, 0, 0, 0, 0.939692497, -0.34202078, 0, 0.34202078, 0.939692497) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1556
		}, .3, false)
1557
grab.Torso.Velocity= Vector3.new(0,0,0)
1558
						end
1559
						grab.Torso.Anchored = false
1560
						grab.Torso.CanCollide = true
1561
	Humanoid.JumpPower = 0
1562
	RootPart.CFrame=RootPart.CFrame*CFrame.new(0,0,5)
1563
		for i = 0, .3, 0.1 do
1564
		swait()
1565
		PlayAnimationFromTable({
1566
         CFrame.new(0.428418577, -0.671607018, -0.504335344, 0.279453993, -0.262003154, 0.923720658, -0.663414001, 0.642787337, 0.383022666, -0.694109023, -0.719846487, 0.0058129211) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1567
         CFrame.new(0.0483628362, 1.549775, 0.0516622961, 1, 5.96046448e-08, -2.98023224e-08, -2.98023224e-08, 0.939693034, -0.342019409, 4.61004674e-08, 0.342019379, 0.939692855) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1568
         CFrame.new(1.37295699, 1.17039251, -0.337434739, 0.975084543, -0.109461486, -0.192946702, -0.170998245, -0.924961448, -0.339420587, -0.141314715, 0.363957286, -0.920633197) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1569
         CFrame.new(-1.36459041, 0.411512792, -0.67284143, 0.973482847, -0.071649164, -0.21724999, -0.113974214, 0.671512127, -0.732176006, 0.198345765, 0.737521529, 0.645539343) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1570
         CFrame.new(0.499992371, -1.23907411, -0.86791718, 1, 0, 0, -2.98023224e-08, 0.939692259, 0.342021227, 4.61004674e-08, -0.342021227, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1571
         CFrame.new(-0.49999243, -1.17373872, -1.01739335, 1, 5.96046448e-08, -2.98023224e-08, -2.98023224e-08, 0.939693034, -0.342019409, 4.61004674e-08, 0.342019379, 0.939692855) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1572
		}, .3, false)
1573
grab.Torso.Velocity= Vector3.new(0,0,0)
1574
lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
1575
		RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
1576
		Torso.Velocity=RootPart.CFrame.lookVector*20
1577
	end
1578
		for i = 0, .3, 0.1 do
1579
		swait()
1580
		PlayAnimationFromTable({
1581
         CFrame.new(-0.672757447, -0.735233426, -0.293752909, -0.962360024, 0.00164131995, 0.271772951, -0.0779609978, 0.956289232, -0.281838685, -0.260356098, -0.292417973, -0.920166552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1582
         CFrame.new(0.0483631641, 1.42946541, -0.278911769, 1, -1.93715096e-07, 3.12924385e-06, -8.86619091e-07, 0.93969202, 0.342022359, -3.05473804e-06, -0.342022389, 0.939691842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1583
         CFrame.new(1.37296712, 1.17040694, -0.337452441, 0.975084305, -0.109462924, -0.192946956, -0.17099987, -0.924960554, -0.3394216, -0.141314253, 0.363958538, -0.92063278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1584
         CFrame.new(-1.36458802, 0.411512852, -0.672853589, 0.973482966, -0.0716485977, -0.217249781, -0.113973796, 0.671514273, -0.73217392, 0.198345542, 0.737519622, 0.645541549) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1585
         CFrame.new(0.499996156, -1.23906803, -0.8679353, 1, 6.51925802e-09, 2.98023224e-08, -7.4505806e-09, 0.93969214, 0.342021704, -2.98023224e-08, -0.342021674, 0.93969214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1586
         CFrame.new(-0.499984771, -1.17374265, -1.01740098, 1, 1.49011612e-08, 1.49011612e-08, -7.4505806e-09, 0.939693391, -0.342018157, -2.98023224e-08, 0.342018127, 0.939693391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1587
		}, .3, false)
1588
grab.Torso.Velocity= Vector3.new(0,0,0)
1589
lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
1590
		RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
1591
		Torso.Velocity=RootPart.CFrame.lookVector*30
1592
	end			
1593
		for i = 0, 1, 0.1 do
1594
		swait()
1595
		PlayAnimationFromTable({
1596
         CFrame.new(-0.672760248, -0.525442183, -0.31977427, -0.962360263, 0.00164178992, 0.271772176, 0.0157880038, 0.998630762, 0.0498734191, -0.271318138, 0.0522869304, -0.961068571) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1597
         CFrame.new(0.0483647995, 1.42946613, -0.278905123, 1, 9.983778e-07, 2.77161598e-06, -1.89431012e-06, 0.939691663, 0.342023015, -2.29477882e-06, -0.342023104, 0.939691663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1598
         CFrame.new(1.09112859, 0.115017235, -1.0051564, 0.975084007, 0.192946017, -0.109467886, -0.171004131, 0.339421302, -0.924959898, -0.141311631, 0.920633078, 0.363958895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1599
         CFrame.new(-0.0609193072, 0.338854641, -0.991647899, 0.297654182, -0.872375369, -0.387767076, -0.132688791, 0.364431024, -0.921728671, 0.945407808, 0.325808793, -0.00728001073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1600
         CFrame.new(0.500003815, -1.88333619, -0.430999637, 1, 7.4505806e-09, 0, 0, 0.93969208, 0.342021674, 0, -0.342021674, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1601
         CFrame.new(-0.499977082, -1.17373788, -1.01740336, 1, 0, -2.98023224e-08, 0, 0.939693451, -0.342018157, 0, 0.342018187, 0.939693511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1602
		}, .3, false)
1603
grab.Torso.Velocity= Vector3.new(0,0,0)
1604
lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
1605
		RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
1606
		Torso.Velocity=RootPart.CFrame.lookVector*40
1607
		end	
1608
		--pew here
1609
				for i = 0, 1, 0.1 do
1610
		swait()
1611
		PlayAnimationFromTable({
1612
         CFrame.new(-0.672760248, -0.525442183, -0.31977427, -0.962360263, 0.00164178992, 0.271772176, 0.0157880038, 0.998630762, 0.0498734191, -0.271318138, 0.0522869304, -0.961068571) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1613
         CFrame.new(0.0483647995, 1.42946613, -0.278905123, 1, 9.983778e-07, 2.77161598e-06, -1.89431012e-06, 0.939691663, 0.342023015, -2.29477882e-06, -0.342023104, 0.939691663) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1614
         CFrame.new(1.09112859, 0.115017235, -1.0051564, 0.975084007, 0.192946017, -0.109467886, -0.171004131, 0.339421302, -0.924959898, -0.141311631, 0.920633078, 0.363958895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1615
         CFrame.new(-0.0609193072, 0.338854641, -0.991647899, 0.297654182, -0.872375369, -0.387767076, -0.132688791, 0.364431024, -0.921728671, 0.945407808, 0.325808793, -0.00728001073) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1616
         CFrame.new(0.500003815, -1.88333619, -0.430999637, 1, 7.4505806e-09, 0, 0, 0.93969208, 0.342021674, 0, -0.342021674, 0.939692259) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1617
         CFrame.new(-0.499977082, -1.17373788, -1.01740336, 1, 0, -2.98023224e-08, 0, 0.939693451, -0.342018157, 0, 0.342018187, 0.939693511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1618
		}, .3, false)
1619
grab.Torso.Velocity= Vector3.new(0,0,0)
1620
lockcam:Interpolate(Torso.CFrame*CFrame.new(3,3,5),grab.Torso.CFrame,.03)
1621
		RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(grab.Torso.Position.X, RootPart.Position.Y, RootPart.Position.Y))
1622
			    Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1623
		        Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1624
				local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
1625
				local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
1626
				shell.Anchored = false
1627
				shell.Position = barrelcore.Position
1628
				shell.CanCollide = true
1629
				shell.Velocity=RootPart.CFrame.rightVector*10
1630
				CFuncs.Sound.Create("1456344653", shell, 1, 1)
1631
				game:GetService("Debris"):AddItem(shell, 2)
1632
				CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
1633
			local smonk2 = Instance.new("ParticleEmitter",bulletpart)
1634
			smonk2.LightEmission = .1
1635
			smonk2.Size = NumberSequence.new(0.2)
1636
			smonk2.Texture = "http://www.roblox.com/asset/?ID=476778304"
1637
			aaa2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1.1)})
1638
			bbb2 = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1639
			smonk2.Transparency = bbb2
1640
			smonk2.Size = aaa2
1641
			smonk2.ZOffset = 0
1642
			smonk2.Acceleration = Vector3.new(0, -5, 0)
1643
			smonk2.LockedToPart = false
1644
			smonk2.EmissionDirection = "Back"
1645
			smonk2.Lifetime = NumberRange.new(.1, .5)
1646
			smonk2.Rate = 1000
1647
			smonk2.Rotation = NumberRange.new(-100, 100)
1648
			smonk2.RotSpeed = NumberRange.new(-100, 100)
1649
			smonk2.Speed = NumberRange.new(4)
1650
			smonk2.VelocitySpread = 100
1651
			smonk2.Enabled=true
1652
                        game:GetService("Debris"):AddItem(smonk2, .1)
1653
		        Torso.Velocity=RootPart.CFrame.lookVector*50
1654
				end	
1655
	CFuncs.Sound.Create("521472140", grab.Torso, 5, 1)
1656
	ShowDamage((grab.Torso.CFrame * CFrame.new(0, 0, (grab.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "Crit!", 2, BrickColor.new(Torso.Color).Color)			
1657
	grab.Torso:BreakJoints()
1658
				end
1659
	lockcam.CameraType = "Custom"			
1660
	grab=nil
1661
	Grabbed = false
1662
	executing = false			
1663
	Humanoid.AutoRotate = true	
1664
	Humanoid.JumpPower = 100
1665
	Humanoid.WalkSpeed = 25
1666
		Attack = false
1667
end
1668
1669
1670
1671
1672
function righthop()
1673
				Attack = true
1674
			CFuncs.Sound.Create("158149887", Torso, 1, 1)
1675
			Humanoid.Jump = true
1676
				for i = 0, .5, 0.1 do
1677
		swait()
1678
					PlayAnimationFromTable({
1679
         CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1680
         CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1681
         CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1682
         CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1683
         CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1684
         CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1685
					}, .3, false)
1686
				end
1687
			Torso.Velocity=RootPart.CFrame.rightVector*200
1688
	for i = 0, 1, 0.1 do
1689
		swait()
1690
		PlayAnimationFromTable({
1691
         CFrame.new(0.708232701, 0.127894983, 0.246774122, 0.76604414, -0.111618884, 0.633022666, 0, 0.984807849, 0.173648044, -0.642788053, -0.13302207, 0.754406214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1692
         CFrame.new(0.0324593484, 1.43977821, -0.119624585, 0.995960355, -0.0868238062, -0.0229113102, 0.0894833133, 0.938373625, 0.333838284, -0.00748568773, -0.334539831, 0.942351937) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1693
         CFrame.new(1.69410944, 0.329396009, -0.667013586, 0.977326989, -0.133022755, 0.164733544, 0.196574897, 0.280932605, -0.939380229, 0.0786799788, 0.95046401, 0.30071193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1694
         CFrame.new(-1.50714529, 0.0157378055, -0.431941032, 0.884520769, 0.235685706, -0.402585804, -0.362369925, 0.890611291, -0.274772465, 0.29378742, 0.388926923, 0.873169541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1695
         CFrame.new(0.618915975, -1.85825384, -0.515439391, 0.98480773, 0.173648864, -1.81794167e-06, -0.17101045, 0.969846725, 0.173646331, 0.0301553011, -0.171007901, 0.984808087) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1696
         CFrame.new(-0.523646474, -1.39458823, -0.171092927, 0.939692676, 0.342020273, 3.57627869e-07, -0.262003183, 0.719847083, 0.642786682, 0.219845772, -0.604022026, 0.766045213) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1697
		}, .3, false)
1698
	end
1699
	Attack = false	
1700
end
1701
1702
1703
1704
function backhop()
1705
				Attack = true
1706
			CFuncs.Sound.Create("158149887", Torso, 1, 1)
1707
			Humanoid.Jump = true
1708
				for i = 0, .5, 0.1 do
1709
		swait()
1710
					PlayAnimationFromTable({
1711
         CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1712
         CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1713
         CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1714
         CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1715
         CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1716
         CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1717
					}, .3, false)
1718
				end
1719
			Torso.Velocity=RootPart.CFrame.lookVector*-200
1720
	for i = 0, 1, 0.1 do
1721
		swait()
1722
		PlayAnimationFromTable({
1723
         CFrame.new(-0.0724115372, 0.127895057, 0.313171744, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1724
         CFrame.new(0.0169060901, 1.6077503, -0.180746168, 0.995960236, -0.0868240073, -0.0229110774, 0.089483425, 0.938373208, 0.333839238, -0.00748612173, -0.334540784, 0.94235158) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1725
         CFrame.new(1.70837259, 0.360651702, -0.922262371, 0.97732687, -0.133022964, 0.16473335, 0.196574748, 0.280932844, -0.939380288, 0.0786801279, 0.95046401, 0.300712109) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1726
         CFrame.new(-1.48861361, 0.317329109, -0.925790071, 0.994410336, -0.000923748419, -0.105581462, -0.100659929, 0.293561995, -0.950625718, 0.0318728462, 0.955939651, 0.291828096) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1727
         CFrame.new(0.604445279, -1.94474173, -0.43701914, 0.94886601, -0.0119064255, -0.315454632, -0.0935085714, 0.943841219, -0.316891491, 0.301512092, 0.330185235, 0.894465506) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1728
         CFrame.new(-0.577895403, -1.96714401, -0.475817055, 0.982055664, -0.0277231932, 0.186542824, 0.0885364786, 0.941134036, -0.326233506, -0.166517526, 0.336895287, 0.926700354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1729
		}, .3, false)
1730
	end
1731
	Attack = false	
1732
end
1733
1734
1735
1736
1737
function lefthop()
1738
			Attack = true
1739
			Humanoid.Jump = true
1740
			CFuncs.Sound.Create("158149887", Torso, 1, 1)
1741
				for i = 0, .5, 0.1 do
1742
		swait()
1743
					PlayAnimationFromTable({
1744
         CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1745
         CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1746
         CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1747
         CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1748
         CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1749
         CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1750
					}, .3, false)
1751
				end
1752
			Torso.Velocity=RootPart.CFrame.rightVector*-200
1753
	for i = 0, 1, 0.1 do
1754
		swait()
1755
		PlayAnimationFromTable({
1756
         CFrame.new(-0.0850991905, 0.127894506, -0.50492847, 0.866025388, 0.0868241936, -0.492404073, 0, 0.98480773, 0.173648342, 0.500000238, -0.150383845, 0.852868438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1757
         CFrame.new(0.0324628651, 1.43977714, -0.119621098, 0.928060651, -0.0868241191, -0.362167478, 0.198266238, 0.938373506, 0.283100247, 0.315268338, -0.334539741, 0.888081789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1758
         CFrame.new(1.82837343, 0.425938904, -0.29435727, 0.642787039, -0.663414657, 0.383022308, 0.754407167, 0.635036588, -0.166127652, -0.133021653, 0.395739436, 0.908677995) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1759
         CFrame.new(-0.822531939, 0.843190134, -1.47252464, 0.884521008, -0.355543315, -0.30201298, -0.362369865, -0.115946069, -0.924794376, 0.293787181, 0.927440405, -0.231394917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1760
         CFrame.new(0.63746208, -1.78279781, -0.693231404, 0.984807849, -0.173648208, -1.1920929e-07, 0.171010107, 0.969846427, 0.173647493, -0.0301534832, -0.171009362, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1761
         CFrame.new(-0.471737981, -1.40906096, -0.158949912, 1.00000012, 7.15255737e-07, -5.96046448e-07, -1.56462193e-07, 0.766044557, 0.642787457, 8.64267349e-07, -0.642787457, 0.766044617) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1762
		}, .3, false)
1763
	end
1764
	Attack = false	
1765
end
1766
1767
1768
1769
focused = false
1770
1771
1772
1773
function fire()
1774
		Attack = true
1775
	Humanoid.WalkSpeed = 8
1776
	Humanoid.JumpPower = 0
1777
Humanoid.AutoRotate = false
1778
	bodygyro = Instance.new("BodyGyro",RootPart)
1779
		bodygyro.MaxTorque = Vector3.new(50000,50000,50000)
1780
			bodygyro.D = 2500
1781
				bodygyro.P = 80000
1782
		for i = 0, .5, 0.1 do
1783
		swait()
1784
		PlayAnimationFromTable({
1785
         CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1786
         CFrame.new(1.62422657e-06, 1.4772042, 0.113299504, 0.984807789, -2.16066837e-07, -0.173648417, 2.38418579e-07, 1, 2.98023224e-08, 0.173648387, -7.4505806e-08, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1787
         CFrame.new(0.934092045, 0.617779732, -0.808870494, 0.958027482, -0.264440954, -0.110700212, -0.158811927, -0.168076277, -0.972897351, 0.238667816, 0.949642777, -0.203018084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1788
         CFrame.new(-0.00781965256, 0.58910501, -0.971779227, 0.754009128, -0.616460741, 0.226818621, 0.069166556, -0.268873394, -0.960689008, 0.653212428, 0.740056396, -0.160094544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1789
         CFrame.new(0.597427905, -1.81130469, -0.378196716, 0.984808087, -1.49011612e-08, -0.173647672, 0.0301536024, 0.98480773, 0.171010017, 0.17100957, -0.173648089, 0.969846487) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1790
         CFrame.new(-0.500000119, -1.96961212, -0.0941648632, 1.00000024, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1791
		}, .3, false)
1792
		bodygyro.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
1793
		end
1794
1795
			local smonk = Instance.new("ParticleEmitter",bulletpart)
1796
			smonk.LightEmission = .1
1797
			smonk.Size = NumberSequence.new(0.2)
1798
			smonk.Texture = "http://www.roblox.com/asset/?ID=476778304"
1799
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
1800
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1801
			smonk.Transparency = bbb
1802
			smonk.Size = aaa
1803
			smonk.ZOffset = 0
1804
			smonk.Acceleration = Vector3.new(0, -5, 0)
1805
			smonk.LockedToPart = false
1806
			smonk.EmissionDirection = "Back"
1807
			smonk.Lifetime = NumberRange.new(.1, .3)
1808
			smonk.Rate = 50
1809
			smonk.Rotation = NumberRange.new(-100, 100)
1810
			smonk.RotSpeed = NumberRange.new(-100, 100)
1811
			smonk.Speed = NumberRange.new(4)
1812
			smonk.VelocitySpread = 100
1813
			smonk.Enabled=true
1814
1815
1816
		        Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1817
		        Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1818
				local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
1819
				local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
1820
				shell.Anchored = false
1821
				shell.Position = barrelcore.Position
1822
				shell.CanCollide = true
1823
				shell.Velocity=RootPart.CFrame.rightVector*10
1824
				CFuncs.Sound.Create("1456344653", shell, 1, 1)
1825
				game:GetService("Debris"):AddItem(shell, 2)
1826
shoot(Mouse,3,bulletpart,0,10)
1827
CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
1828
Torso.Velocity=RootPart.CFrame.lookVector*-5
1829
	for i = 0, 1, 0.1 do
1830
		swait()
1831
		PlayAnimationFromTable({
1832
         CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1833
         CFrame.new(-0.0369947627, 1.48165417, 0.0668118149, 0.984807968, -0.0593912825, -0.163174778, 0.0301539991, 0.983905494, -0.176127136, 0.171009004, 0.16853103, 0.970748782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1834
         CFrame.new(0.950688183, 0.676530004, -0.873103976, 0.997509122, 0.0604504608, 0.0363512188, 0.062037006, -0.506553113, -0.859974027, -0.0335720032, 0.860087097, -0.509041429) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1835
         CFrame.new(-0.151879251, 0.598398328, -1.02295005, 0.881140769, -0.420461625, 0.216339961, -0.0945639759, -0.604967773, -0.790614784, 0.463301867, 0.676184893, -0.572822273) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1836
         CFrame.new(0.612729192, -1.76533437, -0.18090108, 0.984807968, -0.0593911, -0.163174957, 0.0593909994, 0.998222888, -0.00488329167, 0.163175002, -0.00488201762, 0.98658514) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1837
         CFrame.new(-0.514649093, -2.02197218, -0.350653172, 0.984807849, 3.4669165e-07, -0.173648134, -0.0301539954, 0.984807849, -0.171009868, 0.171009988, 0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1838
		}, .3, false)
1839
bodygyro.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
1840
	end
1841
								    Attack = false
1842
									Humanoid.WalkSpeed = 25
1843
                                    smonk.Enabled=false
1844
bodygyro:Destroy()
1845
Humanoid.AutoRotate = true
1846
Humanoid.JumpPower = 100
1847
end
1848
1849
1850
1851
1852
function autofire()
1853
		Attack = true
1854
	Humanoid.WalkSpeed = 0
1855
	Humanoid.JumpPower = 0
1856
Humanoid.AutoRotate = false
1857
	    focused = true
1858
		for i = 0, .5, 0.1 do
1859
		swait()
1860
		PlayAnimationFromTable({
1861
         CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1862
         CFrame.new(1.62422657e-06, 1.4772042, 0.113299504, 0.984807789, -2.16066837e-07, -0.173648417, 2.38418579e-07, 1, 2.98023224e-08, 0.173648387, -7.4505806e-08, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1863
         CFrame.new(0.934092045, 0.617779732, -0.808870494, 0.958027482, -0.264440954, -0.110700212, -0.158811927, -0.168076277, -0.972897351, 0.238667816, 0.949642777, -0.203018084) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1864
         CFrame.new(-0.00781965256, 0.58910501, -0.971779227, 0.754009128, -0.616460741, 0.226818621, 0.069166556, -0.268873394, -0.960689008, 0.653212428, 0.740056396, -0.160094544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1865
         CFrame.new(0.597427905, -1.81130469, -0.378196716, 0.984808087, -1.49011612e-08, -0.173647672, 0.0301536024, 0.98480773, 0.171010017, 0.17100957, -0.173648089, 0.969846487) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1866
         CFrame.new(-0.500000119, -1.96961212, -0.0941648632, 1.00000024, 7.4505806e-09, 2.98023224e-08, 7.4505806e-09, 1, 0, 0, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1867
		}, .3, false)
1868
		end
1869
1870
			local smonk = Instance.new("ParticleEmitter",bulletpart)
1871
			smonk.LightEmission = .1
1872
			smonk.Size = NumberSequence.new(0.2)
1873
			smonk.Texture = "http://www.roblox.com/asset/?ID=476778304"
1874
			aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, .2),NumberSequenceKeypoint.new(1, 1)})
1875
			bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1876
			smonk.Transparency = bbb
1877
			smonk.Size = aaa
1878
			smonk.ZOffset = 0
1879
			smonk.Acceleration = Vector3.new(0, -5, 0)
1880
			smonk.LockedToPart = false
1881
			smonk.EmissionDirection = "Back"
1882
			smonk.Lifetime = NumberRange.new(.1, .3)
1883
			smonk.Rate = 50
1884
			smonk.Rotation = NumberRange.new(-100, 100)
1885
			smonk.RotSpeed = NumberRange.new(-100, 100)
1886
			smonk.Speed = NumberRange.new(4)
1887
			smonk.VelocitySpread = 100
1888
			smonk.Enabled=true
1889
1890
1891
		        Effects.Block.Create(BrickColor.new("Gold"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1892
		        Effects.Block.Create(BrickColor.new("Flame reddish orange"), bulletpart.CFrame, .5, .5, .5, .5, .5, .5, .1, 1)
1893
				local shell = CFuncs.Part.Create(EffectModel, "SmoothPlastic", .1, 0, "Gold", "Effect", Vector3.new(.5,.8,.5))
1894
				local shllmsh = CFuncs.Mesh.Create("CylinderMesh", shell, "", "", Vector3.new(0, 0, 0), Vector3.new(.3, .4, .3))
1895
				shell.Anchored = false
1896
				shell.Position = barrelcore.Position
1897
				shell.CanCollide = true
1898
				shell.Velocity=RootPart.CFrame.rightVector*10
1899
				CFuncs.Sound.Create("1456344653", shell, 1, 1)
1900
				game:GetService("Debris"):AddItem(shell, 2)
1901
				if targetted.Parent.Humanoid.Health > 100 then
1902
					targetted.Parent.Humanoid.Health = 0
1903
					ShowDamage((targetted.Parent.Torso.CFrame * CFrame.new(0, 0, (targetted.Parent.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "[Health fixed]", 2, BrickColor.new("Really red").Color)
1904
								elseif targetted.Parent.Humanoid.Health <= 100 then
1905
					targetted.Parent.Humanoid.Health = targetted.Parent.Humanoid.Health - 30
1906
					ShowDamage((targetted.Parent.Torso.CFrame * CFrame.new(0, 0, (targetted.Parent.Torso.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "-30", 2, BrickColor.new(Torso.Color).Color)
1907
													elseif targetted.Parent.Humanoid.Health <= 30 then
1908
1909
				end
1910
1911
CFuncs.Sound.Create("356911785", bulletpart, .5, 1)
1912
	for i = 0, .5, 0.1 do
1913
		swait()
1914
		PlayAnimationFromTable({
1915
         CFrame.new(-0.285053253, 0, 0.000710010529, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1916
         CFrame.new(-0.0369947627, 1.48165417, 0.0668118149, 0.984807968, -0.0593912825, -0.163174778, 0.0301539991, 0.983905494, -0.176127136, 0.171009004, 0.16853103, 0.970748782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1917
         CFrame.new(0.950688183, 0.676530004, -0.873103976, 0.997509122, 0.0604504608, 0.0363512188, 0.062037006, -0.506553113, -0.859974027, -0.0335720032, 0.860087097, -0.509041429) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1918
         CFrame.new(-0.151879251, 0.598398328, -1.02295005, 0.881140769, -0.420461625, 0.216339961, -0.0945639759, -0.604967773, -0.790614784, 0.463301867, 0.676184893, -0.572822273) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1919
         CFrame.new(0.612729192, -1.76533437, -0.18090108, 0.984807968, -0.0593911, -0.163174957, 0.0593909994, 0.998222888, -0.00488329167, 0.163175002, -0.00488201762, 0.98658514) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1920
         CFrame.new(-0.514649093, -2.02197218, -0.350653172, 0.984807849, 3.4669165e-07, -0.173648134, -0.0301539954, 0.984807849, -0.171009868, 0.171009988, 0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1921
		}, .3, false)
1922
	end
1923
								    Attack = false
1924
									focused = false	
1925
									Humanoid.WalkSpeed = 25
1926
                                    smonk.Enabled=false
1927
Humanoid.AutoRotate = true
1928
Humanoid.JumpPower = 100
1929
end
1930
1931
1932
1933
1934
1935
1936
1937
Mouse.Button1Up:connect(function()
1938
	if Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and targetted == nil then
1939
	fire()
1940
	elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and targetted ~= nil then
1941
	autofire()
1942
	end
1943
end)
1944
1945
1946
1947
1948
1949
1950
Mouse.KeyDown:connect(function(Key)
1951
	Key = Key:lower()
1952
		if Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'e' then
1953
righthop()
1954
			elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'q'  then
1955
		lefthop()
1956
			elseif Attack == false and Anim ~= "Fall" and Anim ~= "Jump" and Key == 'r'  then
1957
		     backhop()
1958
						   elseif Attack == false and Key == 'z' and Anim ~= "Fall" and Anim ~= "Jump" then
1959
							pepper()
1960
		                         elseif Attack == false and Key == 'x' and Anim ~= "Fall" and Anim ~= "Jump" then
1961
							       smear()
1962
										 elseif Attack == false and Key == 'f' and Anim ~= "Fall" and Anim ~= "Jump" and targetted == nil then
1963
							              LockOn()
1964
		                 						elseif Attack == false and Key == 'f' and targetted ~= nil then
1965
													targetted = nil
1966
													bodygyroo:Destroy()
1967
							        			
1968
	end
1969
end)
1970
1971
1972
	executing = false
1973
1974
local function OnHumanoidStateChange(oldState, newState)    --last thing humanoid was doing, current thing humanoid is doing
1975
    if newState == Enum.HumanoidStateType.Landed and oldState == Enum.HumanoidStateType.Freefall and executing ~= true then --if they were falling and just landed then
1976
       			if Attack == false then
1977
				Attack = true 
1978
				Humanoid.AutoRotate = false
1979
				Humanoid.WalkSpeed = 0
1980
				Humanoid.JumpPower = 0
1981
				Torso.Velocity=RootPart.CFrame.lookVector*0
1982
			CFuncs.Sound.Create("608350178", Torso, 3, 1)
1983
	for i = 0, 1, 0.1 do
1984
		swait()
1985
		PlayAnimationFromTable({
1986
         CFrame.new(-0, -1.01481593, 2.98023224e-08, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1987
         CFrame.new(0, 1.49999499, 1.11760201e-08, 1, 0, 0, 0, 0.999998331, -7.45067918e-09, 0, 7.45069251e-09, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
1988
         CFrame.new(1.50000763, -0.131187856, 0.26789096, 1, 0, 0, 0, 0.984807849, 0.173648536, 0, -0.173648536, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1989
         CFrame.new(-0.934591651, -0.108145729, -0.566749334, 0.984807849, 0.173647985, 0, -0.150383562, 0.852868617, -0.500000238, -0.0868240371, 0.492404163, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1990
         CFrame.new(0.5, -0.643755913, -0.994426787, 1, 0, 0, 0, 0.984807789, -0.173648715, 0, 0.173648685, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1991
         CFrame.new(-0.5, -1.78364873, 0.343712032, 1, 0, 0, 0, 0.642787695, 0.766044557, 0, -0.766044557, 0.642787695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1992
		}, .3, false)
1993
	end
1994
	
1995
			end
1996
							Humanoid.AutoRotate = true
1997
				Humanoid.WalkSpeed = 25
1998
				Humanoid.JumpPower = 100
1999
				Attack = false
2000
    end
2001
end
2002
2003
2004
Humanoid.StateChanged:connect(OnHumanoidStateChange)
2005
2006
2007
destroyable = false
2008
2009
spawn(function()
2010
	while true do
2011
if targetted ~= nil and targetted.Parent.Head ~= nil then
2012
		print("ghay")
2013
	bodygyroo = Instance.new("BodyGyro",RootPart)
2014
		bodygyroo.MaxTorque = Vector3.new(50000,50000,50000)
2015
			bodygyroo.D = 2500
2016
				bodygyroo.P = 50000
2017
				while targetted ~= nil do
2018
				bodygyroo.CFrame = CFrame.new(RootPart.Position, Vector3.new(targetted.Parent.Head.Position.X,RootPart.Position,targetted.Parent.Head.Position.Z))
2019
				wait(.01)
2020
				end
2021
  elseif targetted == nil and destroyable == true then
2022
	bodygyroo:Destroy()
2023
	wait(.01)
2024
elseif targetted ~= nil and Attack ~= true and focused ~= true then
2025
		bodygyroo:Destroy()
2026
end 
2027
wait(.001)
2028
	end
2029
end)
2030
2031
2032
2033
2034
while true do
2035
	swait()
2036
	for i, v in pairs(Character:GetChildren()) do
2037
		if v:IsA("Part") then
2038
			v.Material = "SmoothPlastic"
2039
		elseif v:IsA("Accessory") then
2040
			v:WaitForChild("Handle").Material = "SmoothPlastic"
2041
		end
2042
	end
2043
	for i, v in pairs(Character:GetChildren()) do
2044
		if v:IsA'Model' then
2045
			for _, c in pairs(v:GetChildren()) do
2046
				if c:IsA'Part' then
2047
					c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
2048
				end
2049
			end
2050
		end
2051
	end
2052
	TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
2053
	Velocity = RootPart.Velocity.y
2054
	Sine = Sine + Change
2055
	local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
2056
	if RootPart.Velocity.y > 1 and hit == nil then 
2057
		Anim = "Jump"
2058
		if Attack == false then
2059
			Change = 1
2060
		PlayAnimationFromTable({
2061
         CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2062
         CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2063
         CFrame.new(1.80887365, 0.563777864, 0.393151999, 0.642787039, -0.766044915, -1.2109125e-06, 0.754407167, 0.633021533, 0.173648313, -0.133021653, -0.111619815, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2064
         CFrame.new(-1.67181289, 0.594474256, -0.03263852, 0.499999285, 0.866025865, 1.98491279e-07, -0.750001073, 0.433012605, -0.499998599, -0.43301177, 0.249998808, 0.866026282) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2065
         CFrame.new(0.5, -1.80666828, -0.689023316, 1, 0, 0, 0, 0.984807849, 0.173648134, 0, -0.173648164, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2066
         CFrame.new(-0.5, -1.42673647, -0.144118369, 1, 0, 0, 0, 0.766044736, 0.642787457, 0, -0.642787457, 0.766044736) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2067
		}, .3, false)
2068
								FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
2069
		
2070
		end	
2071
	elseif RootPart.Velocity.y < -1 and hit == nil then 
2072
		Anim = "Fall"
2073
		if Attack == false then
2074
			Change = 1
2075
		PlayAnimationFromTable({
2076
         CFrame.new(-0, -1.01481628, -8.04662704e-07, 1, 0, 0, 0, 0.866025686, 0.499999642, -0, -0.499999642, 0.866025686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2077
         CFrame.new(0, 1.45637476, -0.213752031, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2078
         CFrame.new(1.53209591, 0.16416876, 0.0263971146, 0.98480773, -0.173648164, -1.55591565e-07, 0.171010092, 0.969846427, 0.173648164, -0.0301535316, -0.171010077, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2079
         CFrame.new(-1.64498818, 0.287739754, -0.209731221, 0.86602509, 0.500000656, 7.92254752e-07, -0.433013529, 0.750000894, -0.499998152, -0.25, 0.433010578, 0.86602664) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2080
         CFrame.new(0.5, -1.26449406, -1.10387921, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2081
         CFrame.new(-0.5, -1.24956489, -0.292783707, 1, 0, 0, 0, 0.642787695, 0.766044557, 0, -0.766044557, 0.642787695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2082
		}, .3, false)
2083
						FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
2084
		end		
2085
	elseif TorsoVelocity < 1 and hit ~= nil then
2086
		Anim = "Idle"
2087
		if Attack == false then
2088
			Change = 1
2089
		PlayAnimationFromTable({
2090
         CFrame.new(-0.00794177782, -7.4505806e-09, 0.0224991869, 0.76604414, 0.111618884, 0.633022666, 0, 0.984807849, -0.173648044, -0.642788053, 0.13302207, 0.754406214) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/30), 0) * CFrame.Angles(0, 0, 0), 
2091
         CFrame.new(-0.0413136631, 1.49691474, -0.148686588, 0.767336428, 0.138277978, -0.626158178, 0.0824353173, 0.947098911, 0.310174853, 0.635923922, -0.289626002, 0.715344429) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/15), 0) * CFrame.Angles(0, 0, 0), 
2092
         CFrame.new(0.825092554, 0.0104905069, -0.775937021, 0.866025388, 0.433013171, -0.249999434, -0.433012217, 0.399518192, -0.808013439, -0.250001132, 0.808012903, 0.533492804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2093
         CFrame.new(-0.241498172, 0.0799458325, -0.802346468, 0.866025567, -0.469846159, 0.171009794, 0.383021832, 0.40355885, -0.830923855, 0.321393847, 0.785101831, 0.529453576) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2094
         CFrame.new(0.62906158, -2.01587725, 0.0849169493, 0.939692438, 0, -0.342020959, 0.0593912601, 0.984807849, 0.163175747, 0.336824834, -0.173648044, 0.92541641) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2095
         CFrame.new(-0.43440938, -2.03143525, -0.00331869721, 0.98480773, 0, 0.173648447, -0.0301537216, 0.984807849, 0.171009928, -0.171010375, -0.173648044, 0.969846368) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2096
		}, .3, false)
2097
				FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
2098
		end
2099
	elseif TorsoVelocity > 2 and hit ~= nil then
2100
		Anim = "Walk"
2101
            if Attack == false then
2102
                            PlayAnimationFromTable({
2103
         CFrame.new(-0, -0, 0, 1, 0, 0, 0, 0.996187985, 0.0871556774, 0, -0.0871556699, 0.996194661) * CFrame.new(0, 0 + .1 * math.cos(Sine/35), 0) * CFrame.Angles(-.3 + 0.05 * math.cos(Sine/30), 0, 0),
2104
         CFrame.new(0, 1.49999499, 1.11760201e-08, 1, 0, 0, 0, 0.999998331, -7.45067918e-09, 0, 7.45069251e-09, 1) * CFrame.new(0, 0 + 0.05 * math.cos(Sine/15), 0) * CFrame.Angles(0 + 0.05 * math.cos(Sine/15), 0, 0),
2105
         CFrame.new(0.825092554, 0.0104905069, -0.775937021, 0.866025388, 0.433013171, -0.249999434, -0.433012217, 0.399518192, -0.808013439, -0.250001132, 0.808012903, 0.533492804) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2106
         CFrame.new(-0.241498172, 0.0799458325, -0.802346468, 0.866025567, -0.469846159, 0.171009794, 0.383021832, 0.40355885, -0.830923855, 0.321393847, 0.785101831, 0.529453576) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
2107
		 CFrame.new(0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, .4 + .8 * math.cos((Sine) / 2), -.1 + 1 * math.cos((Sine) / 4)) * CFrame.Angles(math.rad(1.8 - 50 * math.cos((Sine) / 4)), math.rad(0), math.rad(0)),
2108
	     CFrame.new(-0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, .4 + .8 * math.cos((Sine) / 2), .1 - 1 * math.cos((Sine) / 4)) * CFrame.Angles(math.rad(-1.8 + 50 * math.cos((Sine) / 4)), math.rad(0), math.rad(0)),
2109
}, .3, false)
2110
		FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -.1, .8) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.3)
2111
2112
end
2113
end
2114
	if #Effects > 0 then
2115
		for e = 1, #Effects do
2116
			if Effects[e] ~= nil then
2117
				local Thing = Effects[e]
2118
				if Thing ~= nil then
2119
					local Part = Thing[1]
2120
					local Mode = Thing[2]
2121
					local Delay = Thing[3]
2122
					local IncX = Thing[4]
2123
					local IncY = Thing[5]
2124
					if Thing[1].Transparency <= 1 then
2125
						if Thing[2] == "Block1" then
2126
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2127
							Mesh = Thing[7]
2128
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2129
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2130
						elseif Thing[2] == "Ice" then
2131
							if Thing[6] <= Thing[5] then
2132
								Thing[6] = Thing[6] + .05
2133
								Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0)
2134
							else
2135
								Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2136
							end
2137
						elseif Thing[2] == "Shatter" then
2138
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2139
							Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
2140
							Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
2141
							Thing[6] = Thing[6] + Thing[5]
2142
						elseif Thing[2] == "Block2" then
2143
							Thing[1].CFrame = Thing[1].CFrame
2144
							Mesh = Thing[7]
2145
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2146
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2147
						elseif Thing[2] == "Block3" then
2148
							Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2149
							Mesh = Thing[7]
2150
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2151
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2152
						elseif Thing[2] == "Block4" then
2153
							Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0)
2154
							Mesh = Thing[7]
2155
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2156
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2157
						elseif Thing[2] == "Block2Fire" then
2158
							Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2159
							Mesh = Thing[7]
2160
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2161
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2162
							if Thing[1].Transparency >= .3 then
2163
								Thing[1].BrickColor = BrickColor.new("Bright red")
2164
							else
2165
								Thing[1].BrickColor = BrickColor.new("Bright yellow")
2166
							end
2167
						elseif Thing[2] == "Cylinder" then
2168
							Mesh = Thing[7]
2169
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2170
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2171
						elseif Thing[2] == "Blood" then
2172
							Mesh = Thing[7]
2173
							Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0)
2174
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
2175
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2176
						elseif Thing[2] == "Elec" then
2177
							Mesh = Thing[10]
2178
							Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
2179
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2180
							Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2)
2181
							Thing[1].Rotation = Vector3.new(0, 0, 0)
2182
						elseif Thing[2] == "Disappear" then
2183
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
2184
						end
2185
					else
2186
						Part.Parent = nil
2187
						table.remove(Effects, e)
2188
					end
2189
				end
2190
			end
2191
		end
2192
	end	
2193
	if Humanoid.PlatformStand == true then
2194
		Humanoid.PlatformStand = false
2195
	end
2196
	if targetted ~= nil then
2197
		destroyable = true
2198
Humanoid.AutoRotate = false
2199
crosshair.Adornee = targetted.Parent.Head
2200
crosshair.Enabled = true
2201
crosshair2.Adornee = targetted.Parent.Head
2202
crosshair2.Enabled = true
2203
crosshair3.Adornee = targetted.Parent.Head
2204
crosshair3.Enabled = true
2205
lockcam.CameraType = "Scriptable"
2206
lockcam:Interpolate(RootPart.CFrame*CFrame.new(2,2,8),targetted.Parent.Head.CFrame,.1)
2207
	elseif targetted == nil and executing == false then
2208
		lockcam.CameraType = "Custom"
2209
crosshair.Adornee = nil
2210
crosshair.Enabled = false
2211
crosshair2.Adornee = nil
2212
crosshair2.Enabled = false
2213
crosshair3.Adornee = nil
2214
crosshair3.Enabled = false	
2215
Humanoid.AutoRotate = true
2216
	end	
2217
Humanoid.Health = math.huge
2218
end