View difference between Paste ID: Ju4cY7t9 and tJ9GFuSb
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
84
--[[i stole zappa model!11!11
85
Genocider by grgrgry21.
86
Credit to CKBackUp's Psychopath and idk..
87
             B
88
          U     R
89
         N  I N  H
90
          E     L
91
             L
92
]]--
93
wait(1 / 60)
94
Effects = { }
95
local Player = game.Players.localPlayer
96
local Character = Player.Character
97
local Humanoid = Character.Humanoid
98
local Mouse = Player:GetMouse()
99
local LeftArm = Character["Left Arm"]
100
local RightArm = Character["Right Arm"]
101
local LeftLeg = Character["Left Leg"]
102
local RightLeg = Character["Right Leg"]
103
local Head = Character.Head
104
local Torso = Character.Torso
105
local Camera = game.Workspace.CurrentCamera
106
local RootPart = Character.HumanoidRootPart
107
local RootJoint = RootPart.RootJoint
108
local attack = false
109
local Anim = 'Idle'
110
local attacktype = 1
111
local delays = false
112
local play = true
113
local targetted = nil
114
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
115
local velocity = RootPart.Velocity.y
116
local sine = 0
117
local change = 1
118
local Create = LoadLibrary("RbxUtility").Create
119
Humanoid.WalkSpeed = 8
120
local m = Create("Model"){
121
	Parent = Character,
122
	Name = "WeaponModel",
123
}
124
125
Humanoid.Animator.Parent = nil
126
Character.Animate.Parent = nil
127
128
local newMotor = function(part0, part1, c0, c1)
129
	local w = Create('Motor'){
130
		Parent = part0,
131
		Part0 = part0,
132
		Part1 = part1,
133
		C0 = c0,
134
		C1 = c1,
135
	}
136
	return w
137
end
138
139
function clerp(a, b, t)
140
	return a:lerp(b, t)
141
end
142
143
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
144
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
145
146
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
147
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
148
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
149
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
150
RootJoint.C1 = CFrame.new(0, 0, 0)
151
RootJoint.C0 = CFrame.new(0, 0, 0)
152
Torso.Neck.C1 = CFrame.new(0, 0, 0)
153
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
154
155
local rarmc1 = RW.C1
156
local larmc1 = LW.C1
157
local rlegc1 = RH.C1
158
local llegc1 = LH.C1
159
160
local resetc1 = false
161
162
function PlayAnimationFromTable(table, speed, bool)
163
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
164
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
165
	RW.C0 = clerp(RW.C0, table[3], speed) 
166
	LW.C0 = clerp(LW.C0, table[4], speed) 
167
	RH.C0 = clerp(RH.C0, table[5], speed) 
168
	LH.C0 = clerp(LH.C0, table[6], speed) 
169
	if bool == true then
170
		if resetc1 == false then
171
			resetc1 = true
172
			RootJoint.C1 = RootJoint.C1
173
			Torso.Neck.C1 = Torso.Neck.C1
174
			RW.C1 = rarmc1
175
			LW.C1 = larmc1
176
			RH.C1 = rlegc1
177
			LH.C1 = llegc1
178
		end
179
	end
180
end
181
182
ArtificialHB = Create("BindableEvent", script){
183
	Parent = script,
184
	Name = "Heartbeat",
185
}
186
187
script:WaitForChild("Heartbeat")
188
189
frame = 1 / 30
190
tf = 0
191
allowframeloss = false
192
tossremainder = false
193
lastframe = tick()
194
script.Heartbeat:Fire()
195
196
game:GetService("RunService").Heartbeat:connect(function(s, p)
197
	tf = tf + s
198
	if tf >= frame then
199
		if allowframeloss then
200
			script.Heartbeat:Fire()
201
			lastframe = tick()
202
		else
203
			for i = 1, math.floor(tf / frame) do
204
				script.Heartbeat:Fire()
205
			end
206
			lastframe = tick()
207
		end
208
		if tossremainder then
209
			tf = 0
210
		else
211
			tf = tf - frame * math.floor(tf / frame)
212
		end
213
	end
214
end)
215
216
function swait(num)
217
	if num == 0 or num == nil then
218
		ArtificialHB.Event:wait()
219
	else
220
		for i = 0, num do
221
			ArtificialHB.Event:wait()
222
		end
223
	end
224
end
225
226
function RemoveOutlines(part)
227
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
228
end
229
	
230
CFuncs = {	
231
	["Part"] = {
232
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
233
			local Part = Create("Part"){
234
				Parent = Parent,
235
				Reflectance = Reflectance,
236
				Transparency = Transparency,
237
				CanCollide = false,
238
				Locked = true,
239
				BrickColor = BrickColor.new(tostring(BColor)),
240
				Name = Name,
241
				Size = Size,
242
				Material = Material,
243
			}
244
			RemoveOutlines(Part)
245
			return Part
246
		end;
247
	};
248
	
249
	["Mesh"] = {
250
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
251
			local Msh = Create(Mesh){
252
				Parent = Part,
253
				Offset = OffSet,
254
				Scale = Scale,
255
			}
256
			if Mesh == "SpecialMesh" then
257
				Msh.MeshType = MeshType
258
				Msh.MeshId = MeshId
259
			end
260
			return Msh
261
		end;
262
	};
263
	
264
	["Mesh"] = {
265
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
266
			local Msh = Create(Mesh){
267
				Parent = Part,
268
				Offset = OffSet,
269
				Scale = Scale,
270
			}
271
			if Mesh == "SpecialMesh" then
272
				Msh.MeshType = MeshType
273
				Msh.MeshId = MeshId
274
			end
275
			return Msh
276
		end;
277
	};
278
	
279
	["Weld"] = {
280
		Create = function(Parent, Part0, Part1, C0, C1)
281
			local Weld = Create("Weld"){
282
				Parent = Parent,
283
				Part0 = Part0,
284
				Part1 = Part1,
285
				C0 = C0,
286
				C1 = C1,
287
			}
288
			return Weld
289
		end;
290
	};
291
292
	["Sound"] = {
293
		Create = function(id, par, vol, pit) 
294
			coroutine.resume(coroutine.create(function()
295
				local S = Create("Sound"){
296
					Volume = vol,
297
					Pitch = pit or 1,
298
					SoundId = id,
299
					Parent = par or workspace,
300
				}
301
				wait() 
302
				S:play() 
303
				game:GetService("Debris"):AddItem(S, 6)
304
			end))
305
		end;
306
	};
307
	
308
	["ParticleEmitter"] = {
309
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
310
			local fp = Create("ParticleEmitter"){
311
				Parent = Parent,
312
				Color = ColorSequence.new(Color1, Color2),
313
				LightEmission = LightEmission,
314
				Size = Size,
315
				Texture = Texture,
316
				Transparency = Transparency,
317
				ZOffset = ZOffset,
318
				Acceleration = Accel,
319
				Drag = Drag,
320
				LockedToPart = LockedToPart,
321
				VelocityInheritance = VelocityInheritance,
322
				EmissionDirection = EmissionDirection,
323
				Enabled = Enabled,
324
				Lifetime = LifeTime,
325
				Rate = Rate,
326
				Rotation = Rotation,
327
				RotSpeed = RotSpeed,
328
				Speed = Speed,
329
				VelocitySpread = VelocitySpread,
330
			}
331
			return fp
332
		end;
333
	};
334
335
	CreateTemplate = {
336
	
337
	};
338
}
339
340
341
342
New = function(Object, Parent, Name, Data)
343
	local Object = Instance.new(Object)
344
	for Index, Value in pairs(Data or {}) do
345
		Object[Index] = Value
346
	end
347
	Object.Parent = Parent
348
	Object.Name = Name
349
	return Object
350
end
351
	
352
353
ShadowHead = New("Part",Character,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
354
Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
355
Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = Character.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
356
357
Handle = New("Part",m,"Handle",{Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(1.78105354, 1.21267569, 0.446083069),CFrame = CFrame.new(3.48884702, 1.89424598, -23.6011944, 0.0172098875, -7.30156898e-07, 0.999851942, 0.999853492, 1.19907781e-08, -0.0172098596, -1.80598714e-09, 1.00000083, 1.4975667e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
358
moter = New("Weld",Handle,"mot",{Part0 = RightArm,Part1 = Handle,})
359
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.46324158, 2.55061626, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
360
Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.24608025, 0.123040132),})
361
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655831456, 0.501588821, -0.0368974209, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
362
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.270688266, 0.270688266),CFrame = CFrame.new(3.47537327, 1.11045444, -23.2953625, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
363
Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,})
364
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.783906102, 0.305831909, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
365
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.221472263, 0.344512314),CFrame = CFrame.new(3.48828244, 1.86040294, -23.3093491, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
366
Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.00999999, 1),})
367
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(-0.0338476896, 0.291845322, 1.8119812e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
368
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.98432076, 0.200000003, 0.24608022),CFrame = CFrame.new(3.48404813, 1.61474013, -23.4433804, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
369
Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.246080264, 1),})
370
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279546618, 0.157814026, 1.21593475e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
371
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.36101127, 1.61687815, -23.4187717, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
372
Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,})
373
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279526353, 0.182422638, -0.123043299, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
374
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.53706741, 2.54934502, -23.0996056, 0.0172099378, 1.26508749e-05, 0.999852061, 0.999856234, 0.000737910799, -0.0172098614, -0.000738026109, 1.00000215, 2.29468287e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
375
Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.492160469, 0.246080235, 0.123040132),})
376
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098838, 0.999853015, -0.000738022442, 1.18836761e-05, 0.000737924012, 1.00000048, 0.999851942, -0.0172098614, 1.52736902e-06),C1 = CFrame.new(0.655830979, 0.501588821, 0.0369393826, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
377
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.48828554, 1.86097884, -23.1606178, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
378
Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.7382406),})
379
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.0332717896, 0.440576553, 1.14440918e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
380
Partss = New("Part",m,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.200000003, 0.221472204, 0.221472189),CFrame = CFrame.new(3.47526526, 1.10428262, -23.2953568, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
381
Mesh = New("SpecialMesh",Partss,"Mesh",{Scale = Vector3.new(0.123040125, 1, 1),MeshType = Enum.MeshType.Cylinder,})
382
mot = New("Weld",Partss,"mot",{Part0 = Partss,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.790078878, 0.305837631, 1.57356262e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
383
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.49040294, 1.9837563, -23.5174713, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
384
Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.615200579, 0.36912033, 0.24608025),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
385
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(0.0895236731, 0.0837230682, 1.52587891e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
386
Part = New("Part",m,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.295296252, 0.738240778, 0.369120389),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
387
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
388
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512314, 0.78745681, 0.344512314),CFrame = CFrame.new(3.49802279, 2.42631888, -23.8138046, 0.0172099452, 3.70001203e-08, 0.999852061, 0.99985671, -3.59708352e-09, -0.0172098596, -4.18887769e-09, 1.0000025, 2.26488032e-06),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
389
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),C1 = CFrame.new(0.532151103, -0.212610245, 1.74045563e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
390
Part = New("Part",m,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.984321058, 0.200000003, 0.200000003),CFrame = CFrame.new(3.60706425, 1.61264217, -23.4187698, 0.0172099359, 1.26359728e-05, 0.999851942, 0.999856234, 0.000738034665, -0.0172098596, -0.000738148578, 1.00000226, 2.36918868e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
391
Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 0.492160618, 0.492160439),MeshType = Enum.MeshType.Cylinder,})
392
mot = New("Weld",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098819, 0.999853015, -0.00073814491, 1.18687749e-05, 0.000738047936, 1.0000006, 0.999851882, -0.0172098596, 1.60187483e-06),C1 = CFrame.new(-0.279527187, 0.182424545, 0.12304616, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
393
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.47672749, 1.18911982, -23.1232109, 0.999851942, 0.00638213893, 0.0159827713, -0.0172098316, 0.37065956, 0.928613782, 4.44045327e-06, -0.928749561, 0.370713741),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
394
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.246080264, 0.615200639),MeshType = Enum.MeshType.Wedge,})
395
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098316, 3.67313623e-06, 0.00638283044, 0.370658338, -0.928748012, 0.0159824342, 0.928610861, 0.370713145),C1 = CFrame.new(-0.705229163, 0.477983475, 1.76429749e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
396
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.50247502, 2.68478155, -23.8132839, 0.999851942, 1.0713723e-05, -0.0172099732, -0.0172098912, 0.000738376984, -0.999856234, 4.21693585e-06, 1.00000226, 0.000738456321),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
397
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,})
398
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098912, 3.44961882e-06, 9.9465251e-06, 0.000738390256, 1.0000006, -0.0172099192, -0.999853015, 0.000738452654),C1 = CFrame.new(0.790651679, -0.212089539, 2.07424164e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
399
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(3.4904809, 1.98827124, -23.5162678, -0.999852061, -0.0148990965, 0.00861407723, 0.0172099397, -0.865535975, 0.500560343, -4.36594746e-06, 0.500633478, 0.865662456),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
400
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(0.24608025, 0.369120389, 0.861280918),MeshType = Enum.MeshType.Wedge,})
401
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.999851942, 0.0172099397, -3.59863043e-06, -0.0148994327, -0.865533173, 0.500632644, 0.00861338526, 0.500558794, 0.865661025),C1 = CFrame.new(0.0940393209, 0.0849266052, 1.54972076e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
402
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.442944348, 0.200000003, 0.200000003),CFrame = CFrame.new(3.37415838, 2.37982368, -23.1609974, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
403
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
404
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(0.483531356, 0.440196991, -0.12302804, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
405
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.61520052, 0.200000003, 0.200000003),CFrame = CFrame.new(3.35783243, 1.43252242, -23.1602993, 0.0172098633, 1.48413446e-05, 0.999851882, 0.999856234, 0.0007376945, -0.0172097869, -0.000737846654, 1.00000215, 7.44058752e-08),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
406
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
407
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.0172098093, 0.999853015, -0.000737842987, 1.40741467e-05, 0.000737707771, 1.00000048, 0.999851823, -0.0172097888, -6.92903996e-07),C1 = CFrame.new(-0.463909149, 0.440895081, -0.123048544, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
408
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.47648132, 0.200000003, 0.200000003),CFrame = CFrame.new(3.61130548, 1.85886192, -23.160614, -0.0172098689, 1.04156998e-05, -0.99985218, -0.999856234, 0.000738191127, 0.0172097925, 0.000738266157, 1.00000238, -4.55221243e-06),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
409
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 0.369120389, 0.492160529),MeshType = Enum.MeshType.Wedge,})
410
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -0.0172098149, -0.999853075, 0.00073826249, 9.64850187e-06, 0.00073820434, 1.00000072, -0.999852121, 0.0172097944, -3.78489494e-06),C1 = CFrame.new(-0.0332713127, 0.440580368, 0.123049498, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
411
Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240778, 0.200000003),CFrame = CFrame.new(3.50183868, 2.64789343, -23.8132629, 0.999851942, 1.0818032e-05, -0.017209895, -0.0172098186, 0.000737608876, -0.999856234, 4.13497901e-06, 1.00000238, 0.000737691764),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
412
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,})
413
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851882, -0.0172098186, 3.36766243e-06, 1.00508332e-05, 0.000737622147, 1.00000072, -0.0172098409, -0.999853015, 0.000737688097),C1 = CFrame.new(0.753758311, -0.212068558, 1.93119049e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
414
Wedge = New("WedgePart",m,"Wedge",{Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.344512254, 0.787456751, 0.200000003),CFrame = CFrame.new(3.49357963, 2.16808391, -23.8129005, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
415
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.861280859),MeshType = Enum.MeshType.Wedge,})
416
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.273878455, -0.211706161, 1.90734863e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
417
Wedge = New("WedgePart",m,"Wedge",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.36912033, 0.738240659, 0.200000003),CFrame = CFrame.new(3.49420977, 2.20497489, -23.8129292, 0.999852061, -1.05647114e-05, 0.0172100067, -0.0172099303, -0.000737611321, 0.999856114, 4.36594746e-06, -1.00000226, -0.000737689785),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
418
Mesh = New("SpecialMesh",Wedge,"Mesh",{Scale = Vector3.new(1, 1, 0.738240719),MeshType = Enum.MeshType.Wedge,})
419
mot = New("Weld",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.999851942, -0.0172099303, 3.59863043e-06, -9.79751348e-06, -0.000737624592, -1.0000006, 0.0172099527, 0.999852955, -0.000737686118),C1 = CFrame.new(0.310774684, -0.211734772, 1.43051147e-05, 0.0172098875, 0.999853492, -1.80598714e-09, -7.30156898e-07, 1.19907781e-08, 1.00000083, 0.999851942, -0.0172098596, 1.4975667e-06),})
420
421
for _,v in pairs(m:children()) do
422
if v:IsA("Part") then
423
v.CanCollide = false
424
end
425
end
426
if Character.Name == "grgrgry21" or Character.Name == "Player1" then
427
for _,v in pairs(Character:children()) do
428
if v:IsA("Accessory") then
429
v:Remove()
430
end
431
end	
432
Handle = New("Part",Head,"Handle",{CanCollide = false,BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
433
Mesh = New("SpecialMesh",Handle,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,})
434
Decal = New("Decal",Handle,"Decal",{Face = Enum.NormalId.Top,Texture = "http://www.roblox.com/asset/?id=146022204",})
435
mot = New("Motor",Handle,"mot",{Part0 = Handle,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),})
436
Handle1 = New("Part",Head,"Handle1",{CanCollide = false,BrickColor = BrickColor.new("Bright red"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-27.3000507, 4.79990387, 28.10005, 4.49431016e-21, -6.79974523e-22, -1, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, 4.49431016e-21),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.768628, 0.156863, 0.109804),})
437
Mesh = New("SpecialMesh",Handle1,"Mesh",{Offset = Vector3.new(0, 0.100000001, 0),Scale = Vector3.new(0.949999988, 0.949999988, 0.949999988),MeshId = "http://www.roblox.com/asset/?id=62246019",MeshType = Enum.MeshType.FileMesh,})
438
mot = New("Motor",Handle1,"mot",{Part0 = Handle1,Part1 = Head,C0 = CFrame.new(0, 0, 0, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),C1 = CFrame.new(-0.100000381, 0.0999999046, 0.200000763, 4.49431016e-21, 4.72251821e-22, 1, -6.79974523e-22, 1, -4.72251821e-22, -1, -6.79974523e-22, 4.49431016e-21),})
439
end
440
441
442
function rayCast(Position, Direction, Range, Ignore)
443
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
444
end 
445
446
--[[FindNearestTorso = function(pos)
447
	local list = (game.Workspace:children())
448
	local torso = nil
449
	local dist = 1000
450
	local temp, human, temp2 = nil, nil, nil
451
	for x = 1, #list do
452
		temp2 = list[x]
453
		if temp2.className == "Model" and temp2.Name ~= Character.Name then
454
			temp = temp2:findFirstChild("Torso")
455
			human = temp2:findFirstChild("Humanoid")
456
			if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
457
				local dohit = true
458
				if dohit == true then
459
					torso = temp
460
					dist = (temp.Position - pos).magnitude
461
				end
462
			end
463
		end
464
	end
465
	return torso, dist
466
end]]
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
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
486
	if hit.Parent == nil then
487
		return
488
	end
489
	local h = hit.Parent:FindFirstChild("Humanoid")
490
	for _, v in pairs(hit.Parent:children()) do
491
		if v:IsA("Humanoid") then
492
			h = v
493
		end
494
	end
495
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
496
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
497
			if hit.Parent.DebounceHit.Value == true then
498
				return
499
			end
500
		end
501
		local c = Create("ObjectValue"){
502
			Name = "creator",
503
			Value = game:service("Players").LocalPlayer,
504
			Parent = h,
505
		}
506
		game:GetService("Debris"):AddItem(c, .5)
507
		if HitSound ~= nil and HitPitch ~= nil then
508
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
509
		end
510
		local Damage = math.random(minim, maxim)
511
		local blocked = false
512
		local block = hit.Parent:findFirstChild("Block")
513
		if block ~= nil then
514
			if block.className == "IntValue" then
515
				if block.Value > 0 then
516
					blocked = true
517
					block.Value = block.Value - 1
518
					print(block.Value)
519
				end
520
			end
521
		end
522
		if blocked == false then
523
			h.Health = h.Health - Damage
524
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
525
		else
526
			h.Health = h.Health - (Damage / 2)
527
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
528
		end
529
		if Type == "Knockdown" then
530
			local hum = hit.Parent.Humanoid
531
			hum.PlatformStand = true
532
			coroutine.resume(coroutine.create(function(HHumanoid)
533
				swait(1)
534
				HHumanoid.PlatformStand = false
535
			end), hum)
536
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
537
			local bodvol = Create("BodyVelocity"){
538
				velocity = angle * knockback,
539
				P = 5000,
540
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
541
				Parent = hit,
542
			}
543
			local rl = Create("BodyAngularVelocity"){
544
				P = 3000,
545
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
546
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
547
				Parent = hit,
548
			}
549
			game:GetService("Debris"):AddItem(bodvol, .5)
550
			game:GetService("Debris"):AddItem(rl, .5)
551
		elseif Type == "Normal" then
552
			local vp = Create("BodyVelocity"){
553
				P = 500,
554
				maxForce = Vector3.new(math.huge, 0, math.huge),
555
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
556
			}
557
			if knockback > 0 then
558
				vp.Parent = hit.Parent.Torso
559
			end
560
			game:GetService("Debris"):AddItem(vp, .5)
561
		elseif Type == "Up" then
562
			local bodyVelocity = Create("BodyVelocity"){
563
				velocity = Vector3.new(0, 20, 0),
564
				P = 5000,
565
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
566
				Parent = hit,
567
			}
568
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
569
		elseif Type == "DarkUp" then
570
			coroutine.resume(coroutine.create(function()
571
				for i = 0, 1, 0.1 do
572
					swait()
573
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
574
				end
575
			end))
576
			local bodyVelocity = Create("BodyVelocity"){
577
				velocity = Vector3.new(0, 20, 0),
578
				P = 5000,
579
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
580
				Parent = hit,
581
			}
582
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
583
		elseif Type == "Snare" then
584
			local bp = Create("BodyPosition"){
585
				P = 2000,
586
				D = 100,
587
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
588
				position = hit.Parent.Torso.Position,
589
				Parent = hit.Parent.Torso,
590
			}
591
			game:GetService("Debris"):AddItem(bp, 1)
592
		elseif Type == "Freeze" then
593
			local BodPos = Create("BodyPosition"){
594
				P = 50000,
595
				D = 1000,
596
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
597
				position = hit.Parent.Torso.Position,
598
				Parent = hit.Parent.Torso,
599
			}
600
			local BodGy = Create("BodyGyro") {
601
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
602
				P = 20e+003,
603
				Parent = hit.Parent.Torso,
604
				cframe = hit.Parent.Torso.CFrame,
605
			}
606
			hit.Parent.Torso.Anchored = true
607
			coroutine.resume(coroutine.create(function(Part) 
608
				swait(1.5)
609
				Part.Anchored = false
610
			end), hit.Parent.Torso)
611
			game:GetService("Debris"):AddItem(BodPos, 3)
612
			game:GetService("Debris"):AddItem(BodGy, 3)
613
		end
614
		local debounce = Create("BoolValue"){
615
			Name = "DebounceHit",
616
			Parent = hit.Parent,
617
			Value = true,
618
		}
619
		game:GetService("Debris"):AddItem(debounce, Delay)
620
		c = Create("ObjectValue"){
621
			Name = "creator",
622
			Value = Player,
623
			Parent = h,
624
		}
625
		game:GetService("Debris"):AddItem(c, .5)
626
	end
627
end
628
629
function ShowDamage(Pos, Text, Time, Color)
630
	local Rate = (1 / 30)
631
	local Pos = (Pos or Vector3.new(0, 0, 0))
632
	local Text = (Text or "")
633
	local Time = (Time or 2)
634
	local Color = (Color or Color3.new(1, 0, 1))
635
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
636
	EffectPart.Anchored = true
637
	local BillboardGui = Create("BillboardGui"){
638
		Size = UDim2.new(3, 0, 3, 0),
639
		Adornee = EffectPart,
640
		Parent = EffectPart,
641
	}
642
	local TextLabel = Create("TextLabel"){
643
		BackgroundTransparency = 1,
644
		Size = UDim2.new(1, 0, 1, 0),
645
		Text = Text,
646
		Font = "SciFi",
647
		TextColor3 = Color,
648
		TextScaled = true,
649
		Parent = BillboardGui,
650
	}
651
	game.Debris:AddItem(EffectPart, (Time))
652
	EffectPart.Parent = game:GetService("Workspace")
653
	delay(0, function()
654
		local Frames = (Time / Rate)
655
		for Frame = 1, Frames do
656
			wait(Rate)
657
			local Percent = (Frame / Frames)
658
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
659
			TextLabel.TextTransparency = Percent
660
		end
661
		if EffectPart and EffectPart.Parent then
662
			EffectPart:Destroy()
663
		end
664
	end)
665
end
666
667
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
668
	for _, c in pairs(workspace:children()) do
669
		local hum = c:findFirstChild("Humanoid")
670
		if hum ~= nil then
671
			local head = c:findFirstChild("Torso")
672
			if head ~= nil then
673
				local targ = head.Position - Part.Position
674
				local mag = targ.magnitude
675
				if mag <= Magnitude and c.Name ~= Player.Name then 
676
					Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
677
				end
678
			end
679
		end
680
	end
681
end
682
683
EffectModel = Create("Model"){
684
	Parent = Character,
685
	Name = "Effects",
686
}
687
688
Effects = {
689
	Block = {
690
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
691
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
692
			prt.Anchored = true
693
			prt.CFrame = cframe
694
			local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
695
			game:GetService("Debris"):AddItem(prt, 10)
696
			if Type == 1 or Type == nil then
697
				table.insert(Effects, {
698
					prt,
699
					"Block1",
700
					delay,
701
					x3,
702
					y3,
703
					z3,
704
					msh
705
				})
706
			elseif Type == 2 then
707
				table.insert(Effects, {
708
					prt,
709
					"Block2",
710
					delay,
711
					x3,
712
					y3,
713
					z3,
714
					msh
715
				})
716
			end
717
		end;
718
	};
719
720
		Cylinder = {
721
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
722
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
723
			prt.Anchored = true
724
			prt.CFrame = cframe
725
			local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
726
			game:GetService("Debris"):AddItem(prt, 10)
727
			table.insert(Effects, {
728
				prt,
729
				"Cylinder",
730
				delay,
731
				x3,
732
				y3,
733
				z3,
734
				msh
735
			})
736
		end;
737
	};
738
	Head = {
739
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
740
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
741
			prt.Anchored = true
742
			prt.CFrame = cframe
743
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
744
			game:GetService("Debris"):AddItem(prt, 10)
745
			table.insert(Effects, {
746
				prt,
747
				"Cylinder",
748
				delay,
749
				x3,
750
				y3,
751
				z3,
752
				msh
753
			})
754
		end;
755
	};
756
	
757
	Sphere = {
758
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
759
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
760
			prt.Anchored = true
761
			prt.CFrame = cframe
762
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
763
			game:GetService("Debris"):AddItem(prt, 10)
764
			table.insert(Effects, {
765
				prt,
766
				"Cylinder",
767
				delay,
768
				x3,
769
				y3,
770
				z3,
771
				msh
772
			})
773
		end;
774
	};
775
	
776
	Elect = {
777
		Create = function(cff, x, y, z)
778
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
779
			prt.Anchored = true
780
			prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
781
			prt.CFrame = CFrame.new(prt.Position)
782
			game:GetService("Debris"):AddItem(prt, 2)
783
			local xval = math.random() / 2
784
			local yval = math.random() / 2
785
			local zval = math.random() / 2
786
			local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
787
			table.insert(Effects, {
788
				prt,
789
				"Elec",
790
				0.1,
791
				x,
792
				y,
793
				z,
794
				xval,
795
				yval,
796
				zval
797
			})
798
		end;
799
800
	};
801
	
802
	Ring = {
803
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
804
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
805
			prt.Anchored = true
806
			prt.CFrame = cframe
807
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
808
			game:GetService("Debris"):AddItem(prt, 10)
809
			table.insert(Effects, {
810
				prt,
811
				"Cylinder",
812
				delay,
813
				x3,
814
				y3,
815
				z3,
816
				msh
817
			})
818
		end;
819
	};
820
821
822
	Wave = {
823
		Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
824
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
825
			prt.Anchored = true
826
			prt.CFrame = cframe
827
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
828
			game:GetService("Debris"):AddItem(prt, 10)
829
			table.insert(Effects, {
830
				prt,
831
				"Cylinder",
832
				delay,
833
				x3,
834
				y3,
835
				z3,
836
				msh
837
			})
838
		end;
839
	};
840
841
	Break = {
842
		Create = function(brickcolor, cframe, x1, y1, z1)
843
			local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
844
			prt.Anchored = true
845
			prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
846
			local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
847
			local num = math.random(10, 50) / 1000
848
			game:GetService("Debris"):AddItem(prt, 10)
849
			table.insert(Effects, {
850
				prt,
851
				"Shatter",
852
				num,
853
				prt.CFrame,
854
				math.random() - math.random(),
855
				0,
856
				math.random(50, 100) / 100
857
			})
858
		end;
859
	};
860
	
861
	Fire = {
862
		Create = function(brickcolor, cframe, x1, y1, z1, delay)
863
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
864
			prt.Anchored = true
865
			prt.CFrame = cframe
866
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
867
			game:GetService("Debris"):AddItem(prt, 10)
868
			table.insert(Effects, {
869
				prt,
870
				"Fire",
871
				delay,
872
				1,
873
				1,
874
				1,
875
				msh
876
			})
877
		end;
878
	};
879
	
880
	FireWave = {
881
		Create = function(brickcolor, cframe, x1, y1, z1)
882
			local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
883
			prt.Anchored = true
884
			prt.CFrame = cframe
885
			msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
886
			local d = Create("Decal"){
887
				Parent = prt,
888
				Texture = "rbxassetid://26356434",
889
				Face = "Top",
890
			}
891
			local d = Create("Decal"){
892
				Parent = prt,
893
				Texture = "rbxassetid://26356434",
894
				Face = "Bottom",
895
			}
896
			game:GetService("Debris"):AddItem(prt, 10)
897
			table.insert(Effects, {
898
				prt,
899
				"FireWave",
900
				1,
901
				30,
902
				math.random(400, 600) / 100,
903
				msh
904
			})
905
		end;
906
	};
907
	
908
	Lightning = {
909
		Create = function(p0, p1, tym, ofs, col, th, tra, last)
910
			local magz = (p0 - p1).magnitude
911
			local curpos = p0
912
			local trz = {
913
				-ofs,
914
				ofs
915
			}
916
			for i = 1, tym do
917
				local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
918
				local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
919
				local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
920
				li.Material = "Neon"
921
				if tym == i then
922
					local magz2 = (curpos - p1).magnitude
923
					li.Size = Vector3.new(th, th, magz2)
924
					li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
925
					table.insert(Effects, {
926
						li,
927
						"Disappear",
928
						last
929
					})
930
				else
931
					do
932
						do
933
							li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
934
							curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
935
							game.Debris:AddItem(li, 10)
936
							table.insert(Effects, {
937
								li,
938
								"Disappear",
939
								last
940
							})
941
						end
942
					end
943
				end
944
			end
945
		end
946
	};
947
948
	EffectTemplate = {
949
950
	};
951
}
952
953
abss = Instance.new("BillboardGui",Character)
954
abss.Size = UDim2.new(10,0,10,0)
955
abss.Enabled = false
956
imgl = Instance.new("ImageLabel",abss)
957
imgl.Position = UDim2.new(0,0,0,0)
958
imgl.Size = UDim2.new(1,0,1,0)
959
imgl.Image = "rbxassetid://711463989"
960
imgl.BackgroundTransparency = 1
961
imgl.ImageColor3 = Color3.new(.9,0,0)
962
img2 = Instance.new("ImageLabel",abss)
963
img2.Position = UDim2.new(0,0,0,0)
964
img2.Size = UDim2.new(1,0,1,0)
965
img2.Image = "rbxassetid://711463989"
966
img2.BackgroundTransparency = 1
967
img2.ImageColor3 = Color3.new(.9,0,0)
968
969
function dmg(dude)
970
dude.Humanoid.PlatformStand = true
971
972
local partasdeff = Instance.new("ParticleEmitter",dude.Torso)
973
partasdeff.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
974
partasdeff.LightEmission = .1
975
partasdeff.Size = NumberSequence.new(0.2)
976
partasdeff.Texture = "http://www.roblox.com/asset/?ID=771221224"
977
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
978
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
979
partasdeff.Transparency = bbb
980
partasdeff.Size = aaa
981
partasdeff.ZOffset = .9
982
partasdeff.Acceleration = Vector3.new(0, -2, 0)
983
partasdeff.LockedToPart = false
984
partasdeff.EmissionDirection = "Back"
985
partasdeff.Lifetime = NumberRange.new(1, 2)
986
partasdeff.Rate = 1000
987
partasdeff.Rotation = NumberRange.new(-100, 100)
988
partasdeff.RotSpeed = NumberRange.new(-100, 100)
989
partasdeff.Speed = NumberRange.new(10)
990
partasdeff.VelocitySpread = 20
991
partasdeff.Enabled=true
992
local bgf = Instance.new("BodyGyro",dude.Head)
993
bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
994
local val = Instance.new("BoolValue",dude)
995
val.Name = "IsHit"
996
for i = 1, 6 do
997
local blo = Instance.new("Part",game.Workspace)
998
blo.Size = Vector3.new(.6,.2,.6)
999
blo.Material = "SmoothPlastic"
1000
blo.BrickColor = BrickColor.new("Crimson")
1001
blo.Position = dude.Head.Position
1002
blo.CFrame = dude.Head.CFrame
1003
game:GetService("Debris"):AddItem(blo,30)
1004
end
1005
local ds = coroutine.wrap(function()
1006
wait(.2)
1007
dude.Torso:BreakJoints()
1008
partasdeff.Enabled=false
1009
wait(2)
1010
partasdeff:Remove()
1011
end)
1012
ds()
1013
end
1014
1015
function attackone()
1016
	attack = true
1017
	Humanoid.WalkSpeed = 0
1018
	for i = 0, 3, 0.1 do
1019
		swait()
1020
		PlayAnimationFromTable({
1021
         CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1022
         CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1023
         CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1024
         CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1025
         CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1026
         CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1027
		}, .1, false)
1028
		moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1029
	end
1030
    Effects.Block.Create(BrickColor.new("New Yeller"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05)
1031
    CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5)
1032
    dmg(targetted)
1033
	for i = 0, 1, 0.1 do
1034
		swait()
1035
		PlayAnimationFromTable({
1036
         CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1037
         CFrame.new(-0.0879677385, 1.49240708, -0.127746791, 0.0201510563, -0.100440688, -0.994740784, 0.0566197298, 0.99346137, -0.0991647467, 0.998197258, -0.0543235913, 0.0257058665) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1038
         CFrame.new(2.03539443, 0.729742587, 0.0108130341, -0.00389442407, -0.967803538, 0.251676887, 0.0148300035, -0.251707017, -0.967689872, 0.999882519, -3.62247229e-05, 0.0153327845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1039
         CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1040
         CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1041
         CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1042
		}, .3, false)
1043
		moter.C0 = clerp(moter.C0, CFrame.new(0.0112083517, -1.63770616, -0.318746239, -0.0172079317, -2.87033617e-06, -0.999851942, 0.999852002, 8.28504562e-06, -0.0172079336, 8.27014446e-06, -1.00000012, 2.72750913e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1044
	end
1045
	for i = 0, 2, 0.1 do
1046
		swait()
1047
		PlayAnimationFromTable({
1048
         CFrame.new(0.0150662307, -4.88092428e-06, 0.0148906102, -0.01982099, -1.08002496e-12, 0.999803543, -4.46946984e-07, 1, -8.86181084e-09, -0.999803782, 3.27825546e-07, -0.0198209975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1049
         CFrame.new(-0.00189219415, 1.50098944, -0.129972562, 0.0201512501, 0.0765038878, -0.996864021, 0.0566192083, 0.995383799, 0.0775336027, 0.998202145, -0.0580037907, 0.0157258138) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1050
         CFrame.new(2.01696348, 0.389823437, -0.060955409, -0.000397110358, -0.999624014, -0.0274192169, 0.00981300231, 0.0274140034, -0.999576092, 0.999951839, -0.0006660074, 0.00979842618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1051
         CFrame.new(-1.64040112, 0.216884568, 1.93210121e-06, 0.962137103, 0.272578239, -7.02217221e-07, -0.272574633, 0.962141275, -9.83368591e-06, -2.00979412e-06, 9.69739631e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1052
         CFrame.new(0.64369607, -1.98395038, 0.206737444, 0.19058302, -0.152998164, -0.969677031, 0.0664296299, 0.987527609, -0.142758414, 0.979424179, -0.0372077115, 0.198368743) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1053
         CFrame.new(-0.641120076, -1.92643452, -0.0258421432, 0.848103583, 0.133398816, -0.51276207, -0.0662644878, 0.986892581, 0.147146463, 0.52567035, -0.0908175632, 0.845826566) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1054
		}, .3, false)
1055
		moter.C0 = clerp(moter.C0, CFrame.new(0.011209704, -1.63770795, -0.318749219, -0.0172089972, -4.19956632e-06, -0.999852002, 0.999852061, 8.99471343e-06, -0.0172089972, 9.06549394e-06, -1.00000012, 4.04558159e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1056
	end
1057
	Humanoid.WalkSpeed = 8
1058
	attack = false
1059
end
1060
local Grabbed = false
1061
1062
function hedshoot()
1063
	attack = true
1064
1065
	local GGyro = Instance.new("BodyPosition")
1066
	local WhoTfDidYouGrab = nil
1067
	for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 10)) do
1068
		if v:FindFirstChild('Torso') then
1069
			Grabbed = true
1070
			    CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=260430060", v.Torso, 1, .8)
1071
			WhoTfDidYouGrab = v
1072
		end
1073
	end
1074
    Effects.Wave.Create(BrickColor.new("White"), RootPart.CFrame * CFrame.Angles(0,math.rad(90),math.rad(90)), .5, .5, .5, 1, .2, 1, 0.07)
1075
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=200632211", RootPart, 1.5, .5)
1076
		for i = 0, 1, 0.1 do
1077
		swait()
1078
		if Grabbed == true then
1079
			WhoTfDidYouGrab.Humanoid.PlatformStand = true
1080
			GGyro.position = Partss.Position
1081
			GGyro.Parent = WhoTfDidYouGrab.Head
1082
			WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
1083
		end
1084
		PlayAnimationFromTable({
1085
         CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1086
         CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1087
         CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1088
         CFrame.new(-1.66092706, 0.266950369, 2.51774691e-06, 0.876968205, 0.480548859, -2.5331974e-06, -0.480548888, 0.876968026, -7.03267551e-06, -1.13248825e-06, 7.38352537e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1089
         CFrame.new(0.146832585, -1.7542398, 0.105335698, 0.266426086, 0.491796821, -0.828946948, 0.0135936746, 0.8580302, 0.513420045, 0.96375972, -0.148056909, 0.221916124) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1090
         CFrame.new(-1.09110987, -1.74702656, 0.342675447, 0.765578806, 0.632523358, 0.117487431, -0.642276406, 0.740949869, 0.196148768, 0.0370163769, -0.225626737, 0.973510265) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1091
		}, .3, false)
1092
		RootPart.Velocity = RootPart.CFrame.lookVector * 90
1093
		
1094
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1095
		end
1096
		if Grabbed == true then
1097
		Humanoid.WalkSpeed = 0
1098
		for i = 0, 2, 0.1 do
1099
		swait()
1100
		if Grabbed == true then
1101
			WhoTfDidYouGrab.Humanoid.PlatformStand = true
1102
			GGyro.position = Partss.Position
1103
			GGyro.Parent = WhoTfDidYouGrab.Head
1104
			WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
1105
		end
1106
		PlayAnimationFromTable({
1107
         CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1108
         CFrame.new(0.0029296279, 1.47845411, -0.120581962, 0.0750327855, 0.428286105, -0.900522709, 0.166523039, 0.885005891, 0.434781253, 0.983178616, -0.18258062, -0.00491504371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1109
         CFrame.new(1.96751118, 0.433084905, -0.278422326, 0.305184275, -0.951701581, -0.033564698, 0.012345003, 0.0391969904, -0.999155343, 0.952213347, 0.304512084, 0.0237110667) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1110
         CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1111
         CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1112
         CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1113
		}, .3, false)
1114
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111932121, -1.63769805, -0.318755955, -0.0172044784, -1.3951445e-05, -0.999852121, 0.999852002, 3.55020165e-06, -0.0172044784, 3.78862023e-06, -1.00000012, 1.38879986e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1115
	    end
1116
1117
1118
	for i = 0, 2, 0.1 do
1119
		swait()
1120
				if Grabbed == true then
1121
			WhoTfDidYouGrab.Humanoid.PlatformStand = true
1122
			GGyro.position = Partss.Position
1123
			GGyro.Parent = WhoTfDidYouGrab.Head
1124
			WhoTfDidYouGrab.Torso.CFrame = Partss.CFrame * CFrame.Angles(0,math.rad(90),0)
1125
		end
1126
		PlayAnimationFromTable({
1127
         CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1128
         CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1129
         CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1130
         CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1131
         CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1132
         CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1133
		}, .1, false)
1134
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1135
	end
1136
    Effects.Block.Create(BrickColor.new("New Yeller"), Partss.CFrame, 2, 2, 2, 0.5, 0.5, 0.5, 0.05)
1137
    CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=136523485", Character, 1, .5)
1138
    dmg(WhoTfDidYouGrab)
1139
		WhoTfDidYouGrab.Head.Velocity = WhoTfDidYouGrab.Head.CFrame.lookVector * -60
1140
		
1141
	for i = 0, 1, 0.1 do
1142
		swait()
1143
		PlayAnimationFromTable({
1144
         CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1145
         CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1146
         CFrame.new(1.95760894, 1.20200562, -0.275867403, 0.278526366, -0.669772983, 0.688351095, 0.0506580099, -0.705469668, -0.706927419, 0.959091723, 0.23176837, -0.162562534) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1147
         CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1148
         CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1149
         CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1150
		}, .3, false)
1151
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111932531, -1.63769579, -0.318755656, -0.0172050633, -1.61863863e-05, -0.999852121, 0.999851882, 5.15580177e-06, -0.017205067, 5.453825e-06, -1, 1.60960481e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1152
	end
1153
	for i = 0, 2.5, 0.1 do
1154
		swait()	
1155
		PlayAnimationFromTable({
1156
         CFrame.new(0.104281992, -1.37529127e-22, -0.179345995, 0.249840975, 5.92156003e-22, 0.968286872, -5.57068883e-22, 1, -4.67813147e-22, -0.968286872, -4.22523594e-22, 0.249840975) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1157
         CFrame.new(-0.0791492164, 1.44711375, -0.0994036943, 0.0100336075, -0.292051941, -0.95634979, -0.000366999942, 0.956396878, -0.29207015, 0.999949574, 0.00328149647, 0.00948894024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1158
         CFrame.new(1.94523025, 1.02494264, -0.272673488, 0.287940055, -0.795002162, 0.533912063, 0.0434400104, -0.546107173, -0.836588264, 0.956662774, 0.264080375, -0.122711219) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1159
         CFrame.new(-1.58139038, 0.176945746, 5.27966768e-06, 0.939729631, 0.341920435, -3.69548798e-06, -0.341920793, 0.93972975, -6.50105221e-06, -5.81145287e-07, 6.40749931e-06, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1160
         CFrame.new(0.569345832, -1.89868093, -0.00942828506, 0.266425997, -0.0769406706, -0.960779786, 0.0135936281, 0.997010291, -0.0760724545, 0.963760078, 0.00720720552, 0.266675085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1161
         CFrame.new(-0.849354744, -2.01616573, 0.241646215, 0.948664129, 0.308412433, 0.0701368451, -0.312046438, 0.948832989, 0.0484089628, -0.0516182035, -0.0678096861, 0.996362925) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1162
		}, .1, false)
1163
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111939851, -1.63769794, -0.31875661, -0.0172049776, -1.39437616e-05, -0.999852121, 0.999852002, 5.96046448e-06, -0.0172049757, 6.16908073e-06, -1, 1.38394535e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1164
	end
1165
	end
1166
	GGyro.Parent = nil
1167
	attack = false
1168
	Grabbed = false
1169
		Humanoid.WalkSpeed = 8
1170
end
1171
function TargetSelect(person)
1172
local dd=coroutine.wrap(function()
1173
if targetted ~= person then
1174
targetted = person
1175
img2.Size = UDim2.new(1,0,1,0)
1176
img2.ImageTransparency = 0
1177
img2.Position = UDim2.new(0,0,0,0)
1178
for i = 0, 2, 0.1 do
1179
swait()
1180
img2.Size = img2.Size + UDim2.new(.05,0,.05,0)
1181
img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0)
1182
img2.ImageTransparency = img2.ImageTransparency + 0.05
1183
end
1184
end
1185
end)
1186
dd()
1187
end
1188
1189
function LockOn()
1190
if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
1191
TargetSelect(Mouse.Target.Parent)
1192
CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, .8)
1193
end
1194
end
1195
1196
1197
function ofmoosic() -- 2 lazi hoh
1198
delays = true
1199
while wait() and kkk and kkk.Volume >= 0.02 do
1200
	kkk.Volume = kkk.Volume - 0.05
1201
end
1202
wait(0.1)
1203
kkk.Pitch = 0
1204
kkk.PlaybackSpeed = 0
1205
play = false
1206
delays = false
1207
end
1208
function onmoosic()
1209
delays = true
1210
kkk.Pitch = .6
1211
kkk.PlaybackSpeed = .6
1212
while wait() and kkk and kkk.Volume <= 1.5 do
1213
	kkk.Volume = kkk.Volume + 0.05
1214
end
1215
wait(0.1)
1216
play = true
1217
delays = false
1218
end
1219
Mouse.Button1Down:connect(function()
1220
	if attack == false and targetted ~= nil then
1221
		attackone()
1222
	end
1223
end)
1224
1225
Mouse.KeyDown:connect(function(k)
1226
	k = k:lower()
1227
	if attack == false and k == 'q' then
1228
	LockOn()
1229
	end
1230
	if k == 'z' and attack == false then	
1231
	hedshoot()
1232
elseif k == 'm' and play == true and delays == false then
1233
	ofmoosic()
1234
	elseif k == 'm' and play == false and delays == false then
1235
	onmoosic()
1236
	end
1237
end)
1238
1239
kkk = Instance.new("Sound",Character)
1240
kkk.Volume = 1.5
1241
kkk.PlaybackSpeed = 1
1242
kkk.Pitch = .6
1243
kkk.SoundId = "rbxassetid://583415095"
1244
kkk:Play()
1245
kkk.Name = "a"
1246
kkk.Looped = true
1247
1248
1249
1250
while true do
1251
	swait()
1252
	for i, v in pairs(Character:GetChildren()) do
1253
		if v:IsA("Part") then
1254
			v.Material = "SmoothPlastic"
1255
		elseif v:IsA("Accessory") then
1256
			v:WaitForChild("Handle").Material = "SmoothPlastic"
1257
		end
1258
	end
1259
while true do
1260
swait()
1261
Character.Humanoid.MaxHealth = math.huge
1262
Character.Humanoid.Health = math.huge
1263
imgl.Rotation = imgl.Rotation + 3
1264
img2.Rotation = img2.Rotation + 3
1265
if targetted ~= nil then
1266
abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
1267
abss.Enabled = true
1268
elseif targetted == nil then
1269
abss.Adornee = nil
1270
abss.Enabled = false
1271
end
1272
while true and imgl.Rotation >= 360 do
1273
imgl.Rotation = 0	
1274
img2.Rotation = 0
1275
end
1276
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1277
	velocity = RootPart.Velocity.y
1278
	sine = sine + change
1279
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1280
		if RootPart.Velocity.y > 1 and hit == nil then 
1281
			Anim = "Jump"
1282
			if attack == false then
1283
		PlayAnimationFromTable({
1284
         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1285
         CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1286
         CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1287
         CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1288
         CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1289
         CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1290
		}, .3, false)
1291
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111988392, -1.63769972, -0.318750381, -0.0172117054, 0, -0.999851942, 0.999851942, 0, -0.0172116756, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1292
					end
1293
		elseif RootPart.Velocity.y < -1 and hit == nil then 
1294
			Anim = "Fall"
1295
			if attack == false then
1296
		PlayAnimationFromTable({
1297
         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1298
         CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1299
         CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1300
         CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1301
         CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1302
         CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1303
		}, .3, false)
1304
		moter.C0 = clerp(moter.C0, CFrame.new(0.0112015437, -1.63769758, -0.318750381, -0.0172110498, 0, -0.999851942, 0.999851942, 0, -0.0172110498, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1305
					end
1306
		elseif Torsovelocity < 1 and hit ~= nil then
1307
			Anim = "Idle"
1308
			if attack == false then
1309
				change = 1
1310
		PlayAnimationFromTable({
1311
         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1312
         CFrame.new(-0.0575585738, 1.52553558, -0.218724757, 0.985934377, -0.143356442, -0.0859283879, 0.166522771, 0.886584163, 0.431554198, 0.0143168001, -0.439792335, 0.897985697) * CFrame.new(0, -.05- .05 * math.cos((sine) / 55), 0- .05 * math.cos((sine) / 55)) * CFrame.Angles(math.rad(0 - 5 * math.cos((sine) / 55)), 0, 0), 
1313
         CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0- 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0- 0.05 * math.cos((sine) / 45)), 
1314
         CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0+ 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0+ 0.05 * math.cos((sine) / 45)), 
1315
         CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1316
         CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1317
		}, .3, false)
1318
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1319
			end
1320
		elseif Torsovelocity > 2 and hit ~= nil then
1321
			Anim = "Walk"
1322
			if attack == false then
1323
		PlayAnimationFromTable({		
1324
         CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), 
1325
         CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1326
         CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), 
1327
         CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), 
1328
         CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), 
1329
         CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), 
1330
		}, .3, false)
1331
		moter.C0 = clerp(moter.C0, CFrame.new(0.0111980997, -1.6377027, -0.318750381, -0.0172109306, 0, -0.999851882, 0.999851882, 0, -0.0172109306, 0, -1, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
1332
			end
1333
		end
1334
	if 0 < #Effects then
1335
		for e = 1, #Effects do
1336
			if Effects[e] ~= nil then
1337
				local Thing = Effects[e]
1338
				if Thing ~= nil then
1339
					local Part = Thing[1]
1340
					local Mode = Thing[2]
1341
					local Delay = Thing[3]
1342
					local IncX = Thing[4]
1343
					local IncY = Thing[5]
1344
					local IncZ = Thing[6]
1345
					if Thing[2] == "Shoot" then
1346
						local Look = Thing[1]
1347
						local move = 30
1348
						if Thing[8] == 3 then
1349
							move = 10
1350
						end
1351
						local hit, pos = rayCast(Thing[4], Thing[1], move, m)
1352
						if Thing[10] ~= nil then
1353
							da = pos
1354
							cf2 = CFrame.new(Thing[4], Thing[10].Position)
1355
							cfa = CFrame.new(Thing[4], pos)
1356
							tehCF = cfa:lerp(cf2, 0.2)
1357
							Thing[1] = tehCF.lookVector
1358
						end
1359
						local mag = (Thing[4] - pos).magnitude
1360
						Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
1361
						if Thing[8] == 2 then
1362
							Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
1363
						end
1364
						Thing[4] = Thing[4] + Look * move
1365
						Thing[3] = Thing[3] - 1
1366
						if 2 < Thing[5] then
1367
							Thing[5] = Thing[5] - 0.3
1368
							Thing[6] = Thing[6] - 0.3
1369
						end
1370
						if hit ~= nil then
1371
							Thing[3] = 0
1372
							if Thing[8] == 1 or Thing[8] == 3 then
1373
								Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1374
							else
1375
								if Thing[8] == 2 then
1376
									Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
1377
									if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
1378
										ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1379
										ref.Anchored = true
1380
										ref.CFrame = CFrame.new(pos)
1381
										CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
1382
										game:GetService("Debris"):AddItem(ref, 0.2)
1383
										Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
1384
										Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
1385
										MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
1386
									end
1387
								end
1388
							end
1389
							ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
1390
							ref.Anchored = true
1391
							ref.CFrame = CFrame.new(pos)
1392
							Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
1393
							game:GetService("Debris"):AddItem(ref, 1)
1394
						end
1395
						if Thing[3] <= 0 then
1396
							table.remove(Effects, e)
1397
						end
1398
					end
1399
					do
1400
						do
1401
							if Thing[2] == "FireWave" then
1402
								if Thing[3] <= Thing[4] then
1403
									Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
1404
									Thing[3] = Thing[3] + 1
1405
									Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
1406
								else
1407
									Part.Parent = nil
1408
									table.remove(Effects, e)
1409
								end
1410
							end
1411
							if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
1412
								if Thing[1].Transparency <= 1 then
1413
									if Thing[2] == "Block1" then
1414
										Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1415
										Mesh = Thing[7]
1416
										Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1417
										Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1418
									else
1419
										if Thing[2] == "Block2" then
1420
											Thing[1].CFrame = Thing[1].CFrame
1421
											Mesh = Thing[7]
1422
											Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1423
											Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1424
										else
1425
											if Thing[2] == "Fire" then
1426
												Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
1427
												Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1428
												Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1429
											else
1430
												if Thing[2] == "Cylinder" then
1431
													Mesh = Thing[7]
1432
													Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1433
													Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1434
												else
1435
													if Thing[2] == "Blood" then
1436
														Mesh = Thing[7]
1437
														Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
1438
														Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1439
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1440
													else
1441
														if Thing[2] == "Elec" then
1442
															Mesh = Thing[10]
1443
															Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1444
															Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1445
														else
1446
															if Thing[2] == "Disappear" then
1447
																Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1448
															else
1449
																if Thing[2] == "Shatter" then
1450
														Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1451
														Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1452
														Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1453
														Thing[6] = Thing[6] + Thing[5]
1454
																end
1455
															end
1456
														end
1457
													end
1458
												end
1459
											end
1460
										end
1461
									end
1462
								else
1463
									Part.Parent = nil
1464
									table.remove(Effects, e)
1465
								end
1466
							end
1467
						end
1468
					end
1469
				end
1470
			end
1471
		end
1472
	end
1473
end
1474
end