SHOW:
|
|
- or go back to the newest paste.
1 | --Made by noobygames12 | |
2 | ||
3 | p = game.Players.LocalPlayer | |
4 | char = p.Character | |
5 | torso = char.Torso | |
6 | neck = char.Torso.Neck | |
7 | ||
8 | Player=game:GetService("Players").LocalPlayer | |
9 | Character=Player.Character | |
10 | PlayerGui=Player.PlayerGui | |
11 | Backpack=Player.Backpack | |
12 | Torso=Character.Torso | |
13 | Head=Character.Head | |
14 | Humanoid=Character.Humanoid | |
15 | LeftArm=Character["Left Arm"] | |
16 | LeftLeg=Character["Left Leg"] | |
17 | RightArm=Character["Right Arm"] | |
18 | RightLeg=Character["Right Leg"] | |
19 | cam=game.Workspace.CurrentCamera | |
20 | LS=Torso["Left Shoulder"] | |
21 | LH=Torso["Left Hip"] | |
22 | RS=Torso["Right Shoulder"] | |
23 | RH=Torso["Right Hip"] | |
24 | Face = Head.face | |
25 | Neck=Torso.Neck | |
26 | it=Instance.new | |
27 | attacktype=1 | |
28 | vt=Vector3.new | |
29 | cf=CFrame.new | |
30 | euler=CFrame.fromEulerAnglesXYZ | |
31 | angles=CFrame.Angles | |
32 | cloaked=false | |
33 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
34 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
35 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
36 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
37 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
38 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
39 | RootPart=Character.HumanoidRootPart | |
40 | RootJoint=RootPart.RootJoint | |
41 | RootCF=euler(-1.57,0,3.14) | |
42 | attack = false | |
43 | bounce=false | |
44 | cooldown=false | |
45 | deeznuts=false | |
46 | attackdebounce = false | |
47 | deb=false | |
48 | equipped=true | |
49 | hand=false | |
50 | MMouse=nil | |
51 | combo=0 | |
52 | mana=0 | |
53 | trispeed=.2 | |
54 | attackmode='none' | |
55 | local idle=0 | |
56 | local Anim="Idle" | |
57 | local Effects={} | |
58 | local gun=false | |
59 | local shoot=false | |
60 | player=nil | |
61 | mana=0 | |
62 | cam = workspace.CurrentCamera | |
63 | ZTarget = nil | |
64 | RocketTarget = nil | |
65 | local m = Instance.new("Model",Character) | |
66 | m.Name = "WeaponModel" | |
67 | ||
68 | mouse=p:GetMouse() | |
69 | --save shoulders | |
70 | RSH, LSH=nil, nil | |
71 | --welds | |
72 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
73 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
74 | LH=Torso["Left Hip"] | |
75 | RH=Torso["Right Hip"] | |
76 | TorsoColor=Torso.BrickColor | |
77 | function NoOutline(Part) | |
78 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
79 | end | |
80 | player=Player | |
81 | ch=Character | |
82 | RSH=ch.Torso["Right Shoulder"] | |
83 | LSH=ch.Torso["Left Shoulder"] | |
84 | -- | |
85 | RSH.Parent=nil | |
86 | LSH.Parent=nil | |
87 | -- | |
88 | RW.Name="Right Shoulder" | |
89 | RW.Part0=ch.Torso | |
90 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
91 | RW.C1=cf(0, 0.5, 0) | |
92 | RW.Part1=ch["Right Arm"] | |
93 | RW.Parent=ch.Torso | |
94 | -- | |
95 | LW.Name="Left Shoulder" | |
96 | LW.Part0=ch.Torso | |
97 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
98 | LW.C1=cf(0, 0.5, 0) | |
99 | LW.Part1=ch["Left Arm"] | |
100 | LW.Parent=ch.Torso | |
101 | ||
102 | function swait(num) | |
103 | if num==0 or num==nil then | |
104 | game:service'RunService'.Heartbeat:wait(0) | |
105 | else | |
106 | for i=0,num do | |
107 | game:service'RunService'.Heartbeat:wait(0) | |
108 | end | |
109 | end | |
110 | end | |
111 | ||
112 | ||
113 | local Player = game.Players.localPlayer | |
114 | local Character = Player.Character | |
115 | local red = 255 | |
116 | local green = 255 | |
117 | local blue = 255 | |
118 | local Humanoid = Character.Humanoid | |
119 | local mouse = Player:GetMouse() | |
120 | local m = Instance.new("Model", Character) | |
121 | m.Name = "WeaponModel" | |
122 | local LeftArm = Character["Left Arm"] | |
123 | local RightArm = Character["Right Arm"] | |
124 | local LeftLeg = Character["Left Leg"] | |
125 | local RightLeg = Character["Right Leg"] | |
126 | local Head = Character.Head | |
127 | local Torso = Character.Torso | |
128 | local cam = game.Workspace.CurrentCamera | |
129 | local RootPart = Character.HumanoidRootPart | |
130 | local RootJoint = RootPart.RootJoint | |
131 | local equipped = false | |
132 | local attack = false | |
133 | local Anim = "Idle" | |
134 | local idle = 0 | |
135 | local attacktype = 1 | |
136 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
137 | local velocity = RootPart.Velocity.y | |
138 | local sine = 0 | |
139 | local change = 1 | |
140 | local grabbed = false | |
141 | local cn = CFrame.new | |
142 | local mr = math.rad | |
143 | local angles = CFrame.Angles | |
144 | local ud = UDim2.new | |
145 | local c3 = Color3.new | |
146 | local lim = 0 | |
147 | local st = 0 | |
148 | local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
149 | local attacktype = 1 | |
150 | local ZTarget, RocketTarget = nil, nil | |
151 | local euler = CFrame.fromEulerAnglesXYZ | |
152 | function clerp(a,b,t) | |
153 | local qa = {QuaternionFromCFrame(a)} | |
154 | local qb = {QuaternionFromCFrame(b)} | |
155 | local ax, ay, az = a.x, a.y, a.z | |
156 | local bx, by, bz = b.x, b.y, b.z | |
157 | local _t = 1-t | |
158 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
159 | end | |
160 | ||
161 | Reaper4 = Instance.new("Model") | |
162 | Reaper4.Parent = Player.Character | |
163 | Reaper4.Name = "Reaper4" | |
164 | rh4 = Instance.new("Part") | |
165 | rh4.Parent = Reaper4 | |
166 | rh4.BrickColor = BrickColor.new("White") | |
167 | rh4.Locked = true | |
168 | rh4.CanCollide = false | |
169 | mesh4 = Instance.new("SpecialMesh") | |
170 | rh4.formFactor = "Symmetric" | |
171 | mesh4.MeshType = "FileMesh" | |
172 | mesh4.MeshId = "http://www.roblox.com/asset/?id=21057410" | |
173 | mesh4.TextureId = "http://www.roblox.com/asset/?id=31100020" | |
174 | mesh4.Scale = Vector3.new(1.1,1,1) | |
175 | mesh4.Parent = rh4 | |
176 | local weld4 = Instance.new("Weld") | |
177 | weld4.Parent = rh4 | |
178 | rh4.Transparency = 0 | |
179 | weld4.Part0 = rh4 | |
180 | weld4.Part1 = Player.Character.Head | |
181 | weld4.C0 = CFrame.new(0,0,0)*CFrame.Angles(0, 0, 0) | |
182 | ||
183 | function QuaternionFromCFrame(cf) | |
184 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
185 | local trace = m00 + m11 + m22 | |
186 | if trace > 0 then | |
187 | local s = math.sqrt(1 + trace) | |
188 | local recip = 0.5/s | |
189 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
190 | else | |
191 | local i = 0 | |
192 | if m11 > m00 then | |
193 | i = 1 | |
194 | end | |
195 | if m22 > (i == 0 and m00 or m11) then | |
196 | i = 2 | |
197 | end | |
198 | if i == 0 then | |
199 | local s = math.sqrt(m00-m11-m22+1) | |
200 | local recip = 0.5/s | |
201 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
202 | elseif i == 1 then | |
203 | local s = math.sqrt(m11-m22-m00+1) | |
204 | local recip = 0.5/s | |
205 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
206 | elseif i == 2 then | |
207 | local s = math.sqrt(m22-m00-m11+1) | |
208 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
209 | end | |
210 | end | |
211 | end | |
212 | ||
213 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
214 | local xs, ys, zs = x + x, y + y, z + z | |
215 | local wx, wy, wz = w*xs, w*ys, w*zs | |
216 | local xx = x*xs | |
217 | local xy = x*ys | |
218 | local xz = x*zs | |
219 | local yy = y*ys | |
220 | local yz = y*zs | |
221 | local zz = z*zs | |
222 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
223 | end | |
224 | ||
225 | local Player = game.Players.LocalPlayer | |
226 | ||
227 | local char = Player.Character | |
228 | Character = Player.Character | |
229 | local hed = char.Head | |
230 | ||
231 | char.Shirt:Destroy() | |
232 | char.Pants:Destroy() | |
233 | shirt = Instance.new("Shirt", char) | |
234 | shirt.Name = "Shirt" | |
235 | pants = Instance.new("Pants", char) | |
236 | pants.Name = "Pants" | |
237 | char.Shirt.ShirtTemplate = "rbxassetid://250281606" | |
238 | char.Pants.PantsTemplate = "rbxassetid://296647969" | |
239 | ||
240 | hed.face.Texture = "http://www.roblox.com/asset/?id=143939517" | |
241 | ||
242 | ||
243 | ||
244 | ||
245 | ||
246 | for i,v in pairs(Character:children()) do | |
247 | if v:IsA("Hat") then | |
248 | v:Destroy() | |
249 | end | |
250 | end | |
251 | for i,v in pairs(Character:children()) do | |
252 | if v:IsA("Accessory") then | |
253 | v:Destroy() | |
254 | end | |
255 | end | |
256 | for i,v in pairs(Character:children()) do | |
257 | if v:IsA("Hair") then | |
258 | v:Destroy() | |
259 | end | |
260 | end | |
261 | ||
262 | ||
263 | ||
264 | ||
265 | ||
266 | ||
267 | CV="Pastel blue" | |
268 | ||
269 | local txt = Instance.new("BillboardGui", Character) | |
270 | txt.Adornee = Character .Head | |
271 | txt.Name = "_status" | |
272 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
273 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
274 | local text = Instance.new("TextLabel", txt) | |
275 | text.Size = UDim2.new(10, 0, 7, 0) | |
276 | text.FontSize = "Size24" | |
277 | text.TextScaled = true | |
278 | text.TextTransparency = 0 | |
279 | text.BackgroundTransparency = 1 | |
280 | text.TextTransparency = 0 | |
281 | text.TextStrokeTransparency = 0 | |
282 | text.Font = "Antique" | |
283 | text.TextStrokeColor3 = Color3.new(0.8,0.6,0.2) | |
284 | ||
285 | v=Instance.new("Part") | |
286 | v.Name = "ColorBrick" | |
287 | v.Parent=Player.Character | |
288 | v.FormFactor="Symmetric" | |
289 | v.Anchored=true | |
290 | v.CanCollide=false | |
291 | v.BottomSurface="Smooth" | |
292 | v.TopSurface="Smooth" | |
293 | v.Size=Vector3.new(10,5,3) | |
294 | v.Transparency=1 | |
295 | v.CFrame=Character.Torso.CFrame | |
296 | v.BrickColor=BrickColor.new(CV) | |
297 | v.Transparency=1 | |
298 | text.TextColor3 = Color3.new(0.8,0.6,0.2) | |
299 | v.Shape="Block" | |
300 | text.Text = "Solar Master" | |
301 | ||
302 | ||
303 | g = Instance.new("Fire") | |
304 | g.Parent = char["Right Arm"] | |
305 | g.Color = Color3.new(1,1,1) | |
306 | g.Size = 0 | |
307 | g.Heat = 0 | |
308 | ||
309 | ||
310 | function QuaternionSlerp(a, b, t) | |
311 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
312 | local startInterp, finishInterp; | |
313 | if cosTheta >= 0.0001 then | |
314 | if (1 - cosTheta) > 0.0001 then | |
315 | local theta = math.acos(cosTheta) | |
316 | local invSinTheta = 1/math.sin(theta) | |
317 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
318 | finishInterp = math.sin(t*theta)*invSinTheta | |
319 | else | |
320 | startInterp = 1-t | |
321 | finishInterp = t | |
322 | end | |
323 | else | |
324 | if (1+cosTheta) > 0.0001 then | |
325 | local theta = math.acos(-cosTheta) | |
326 | local invSinTheta = 1/math.sin(theta) | |
327 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
328 | finishInterp = math.sin(t*theta)*invSinTheta | |
329 | else | |
330 | startInterp = t-1 | |
331 | finishInterp = t | |
332 | end | |
333 | end | |
334 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
335 | end | |
336 | rayCast = function(Position, Direction, Range, Ignore) | |
337 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
338 | end | |
339 | local v = game.Players.localPlayer | |
340 | local torso = v.Character.Torso | |
341 | ||
342 | plr = game.Players.LocalPlayer | |
343 | char = game.Players.LocalPlayer.Character | |
344 | hum = game.Players.LocalPlayer.Character.Humanoid | |
345 | t = game.Players.LocalPlayer.Character.Torso | |
346 | h = game.Players.LocalPlayer.Character.Head | |
347 | ra = game.Players.LocalPlayer.Character["Right Arm"] | |
348 | la = game.Players.LocalPlayer.Character["Left Arm"] | |
349 | rl = game.Players.LocalPlayer.Character["Right Leg"] | |
350 | ll = game.Players.LocalPlayer.Character["Left Leg"] | |
351 | tors = Character.Torso | |
352 | lleg = Character["Left Leg"] | |
353 | root = Character.HumanoidRootPart | |
354 | hed = Character.Head | |
355 | rleg = Character["Right Leg"] | |
356 | rarm = Character["Right Arm"] | |
357 | larm = Character["Left Arm"] | |
358 | bsize1 = NumberSequenceKeypoint.new(3,3,3) | |
359 | bsize2 = NumberSequenceKeypoint.new(10,10,10) | |
360 | local Effects = {} | |
361 | attack = false | |
362 | local attacking = false | |
363 | vt = Vector3.new | |
364 | bc = BrickColor.new | |
365 | br = BrickColor.random | |
366 | it = Instance.new | |
367 | cf = CFrame.new | |
368 | euler = CFrame.fromEulerAnglesXYZ | |
369 | angles = CFrame.Angles | |
370 | matr = math.random | |
371 | local colororg = BrickColor.new("Dark indigo") -- set color u like | |
372 | local meshtype = "Sphere" -- only for specialmesh | |
373 | mouse = plr:GetMouse() | |
374 | ||
375 | ||
376 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
377 | if hit.Parent==nil then | |
378 | return | |
379 | end | |
380 | h=hit.Parent:FindFirstChild("Humanoid") | |
381 | for _,v in pairs(hit.Parent:children()) do | |
382 | if v:IsA("Humanoid") then | |
383 | h=v | |
384 | end | |
385 | end | |
386 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
387 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
388 | end | |
389 | if hit.Parent.className=="Hat" then | |
390 | hit=hit.Parent.Parent:findFirstChild("Head") | |
391 | end | |
392 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
393 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
394 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
395 | return | |
396 | end]] | |
397 | -- hs(hit,1.2) | |
398 | c=Instance.new("ObjectValue") | |
399 | c.Name="creator" | |
400 | c.Value=game:service("Players").LocalPlayer | |
401 | c.Parent=h | |
402 | game:GetService("Debris"):AddItem(c,.5) | |
403 | Damage=math.random(minim,maxim) | |
404 | -- h:TakeDamage(Damage) | |
405 | blocked=false | |
406 | block=hit.Parent:findFirstChild("Block") | |
407 | if block~=nil then | |
408 | print(block.className) | |
409 | if block.className=="NumberValue" then | |
410 | if block.Value>0 then | |
411 | blocked=true | |
412 | if decreaseblock==nil then | |
413 | block.Value=block.Value-1 | |
414 | end | |
415 | end | |
416 | end | |
417 | if block.className=="IntValue" then | |
418 | if block.Value>0 then | |
419 | blocked=true | |
420 | if decreaseblock~=nil then | |
421 | block.Value=block.Value-1 | |
422 | end | |
423 | end | |
424 | end | |
425 | end | |
426 | if blocked==false then | |
427 | -- h:TakeDamage(Damage) | |
428 | h.Health=h.Health-Damage | |
429 | showDamage(hit.Parent,Damage,1e999,TorsoColor) | |
430 | else | |
431 | h.Health=h.Health-(Damage/1e999) | |
432 | showDamage(hit.Parent,Damage/1e999,1e999,BrickColor.new("Bright blue")) | |
433 | end | |
434 | if Type=="Knockdown" then | |
435 | hum=hit.Parent.Humanoid | |
436 | hum.PlatformStand=true | |
437 | coroutine.resume(coroutine.create(function(HHumanoid) | |
438 | swait(1) | |
439 | HHumanoid.PlatformStand=false | |
440 | end),hum) | |
441 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
442 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
443 | local bodvol=Instance.new("BodyVelocity") | |
444 | bodvol.velocity=angle*knockback | |
445 | bodvol.P=5000 | |
446 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
447 | bodvol.Parent=hit | |
448 | rl=Instance.new("BodyAngularVelocity") | |
449 | rl.P=3000 | |
450 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
451 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
452 | rl.Parent=hit | |
453 | game:GetService("Debris"):AddItem(bodvol,.5) | |
454 | game:GetService("Debris"):AddItem(rl,.5) | |
455 | elseif Type=="Normal" then | |
456 | vp=Instance.new("BodyVelocity") | |
457 | vp.P=500 | |
458 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
459 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
460 | if KnockbackType==1 then | |
461 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
462 | elseif KnockbackType==2 then | |
463 | vp.velocity=Property.CFrame.lookVector*knockback | |
464 | end | |
465 | if knockback>0 then | |
466 | vp.Parent=hit.Parent.Torso | |
467 | end | |
468 | game:GetService("Debris"):AddItem(vp,.5) | |
469 | elseif Type=="Up" then | |
470 | local bodyVelocity=Instance.new("BodyVelocity") | |
471 | bodyVelocity.velocity=vt(0,10,0) | |
472 | bodyVelocity.P=1000 | |
473 | bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009) | |
474 | bodyVelocity.Parent=hit | |
475 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
476 | rl=Instance.new("BodyAngularVelocity") | |
477 | rl.P=3000 | |
478 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
479 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)) | |
480 | rl.Parent=hit | |
481 | game:GetService("Debris"):AddItem(rl,.5) | |
482 | elseif Type=="Snare" then | |
483 | bp=Instance.new("BodyPosition") | |
484 | bp.P=2000 | |
485 | bp.D=100 | |
486 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
487 | bp.position=hit.Parent.Torso.Position | |
488 | bp.Parent=hit.Parent.Torso | |
489 | game:GetService("Debris"):AddItem(bp,1) | |
490 | elseif Type=="Target" then | |
491 | if Targetting==false then | |
492 | ZTarget=hit.Parent.Torso | |
493 | coroutine.resume(coroutine.create(function(Part) | |
494 | swait(5) | |
495 | end),ZTarget) | |
496 | TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
497 | targetgui=Instance.new("BillboardGui") | |
498 | targetgui.Parent=ZTarget | |
499 | targetgui.Size=UDim2.new(10,100,10,100) | |
500 | targ=Instance.new("ImageLabel") | |
501 | targ.Parent=targetgui | |
502 | targ.BackgroundTransparency=1 | |
503 | targ.Image="rbxassetid://4834067" | |
504 | targ.Size=UDim2.new(1,0,1,0) | |
505 | cam.CameraType="Scriptable" | |
506 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
507 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
508 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
509 | Targetting=true | |
510 | RocketTarget=ZTarget | |
511 | for i=1,Property do | |
512 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
513 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
514 | swait() | |
515 | end | |
516 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
517 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
518 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
519 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
520 | end | |
521 | Targetting=false | |
522 | RocketTarget=nil | |
523 | targetgui.Parent=nil | |
524 | cam.CameraType="Custom" | |
525 | end | |
526 | end | |
527 | debounce=Instance.new("BoolValue") | |
528 | debounce.Name="DebounceHit" | |
529 | debounce.Parent=hit.Parent | |
530 | debounce.Value=true | |
531 | game:GetService("Debris"):AddItem(debounce,Delay) | |
532 | c=Instance.new("ObjectValue") | |
533 | c.Name="creator" | |
534 | c.Value=Player | |
535 | c.Parent=h | |
536 | game:GetService("Debris"):AddItem(c,.5) | |
537 | CRIT=false | |
538 | hitDeb=true | |
539 | AttackPos=6 | |
540 | end | |
541 | end | |
542 | ||
543 | showDamage=function(Char,Dealt,du,Color) | |
544 | m=Instance.new("Model") | |
545 | m.Name="" | |
546 | h=Instance.new("Humanoid") | |
547 | h.Health=0 | |
548 | h.MaxHealth=0 | |
549 | h.Parent=m | |
550 | c=Instance.new("Part") | |
551 | c.Transparency=0 | |
552 | c.Material = "Neon" | |
553 | c.BrickColor=bc("Bright red") | |
554 | c.Name="Head" | |
555 | c.TopSurface=0 | |
556 | c.BottomSurface=0 | |
557 | CV="Hot pink" | |
558 | ||
559 | local txt = Instance.new("BillboardGui", c) | |
560 | txt.Adornee = c | |
561 | txt.Name = "_status" | |
562 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
563 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
564 | local text = Instance.new("TextLabel", txt) | |
565 | text.Size = UDim2.new(10, 0, 7, 0) | |
566 | text.FontSize = "Size24" | |
567 | text.TextScaled = true | |
568 | text.TextTransparency = 0 | |
569 | text.BackgroundTransparency = 1 | |
570 | text.TextTransparency = 0 | |
571 | text.TextStrokeTransparency = 0 | |
572 | if Dealt < 12 then | |
573 | text.Font = "Highway" | |
574 | elseif Dealt < 20 then | |
575 | text.Font = "SourceSansBold" | |
576 | elseif Dealt >= 20 then | |
577 | text.Font = "Fantasy" | |
578 | end | |
579 | text.TextStrokeColor3 = BrickColor.new("Crimson").Color | |
580 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
581 | v=Instance.new("Part") | |
582 | v.Name = "ColorBrick" | |
583 | v.Parent=c | |
584 | v.FormFactor="Symmetric" | |
585 | v.Anchored=true | |
586 | v.CanCollide=false | |
587 | v.BottomSurface="Smooth" | |
588 | v.TopSurface="Smooth" | |
589 | v.Size=Vector3.new(10,5,3) | |
590 | v.Transparency=1 | |
591 | v.CFrame=c.CFrame | |
592 | v.BrickColor=BrickColor.new(CV) | |
593 | v.Transparency=1 | |
594 | if Dealt < 12 then | |
595 | text.TextColor3 = BrickColor.new("White").Color | |
596 | elseif Dealt < 20 then | |
597 | text.TextColor3 = BrickColor.new("Bright yellow").Color | |
598 | elseif Dealt >= 20 then | |
599 | text.TextColor3 = BrickColor.new("Really red").Color | |
600 | end | |
601 | v.Shape="Block" | |
602 | text.Text = tostring(Dealt).. "!" | |
603 | local dam = Instance.new("Sound",c) | |
604 | local rndm=math.random(1,#hitsounds) | |
605 | local r=rndm | |
606 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
607 | dam.Volume = 1.25 | |
608 | dam.Pitch = 1 | |
609 | dam:Play() | |
610 | c.formFactor="Plate" | |
611 | c.Transparency = 1 | |
612 | c.Size=Vector3.new(1,.4,1) | |
613 | ms=Instance.new("CylinderMesh") | |
614 | ms.Scale=Vector3.new(.8,.8,.8) | |
615 | if CRIT==true then | |
616 | ms.Scale=Vector3.new(1,1.25,1) | |
617 | end | |
618 | ms.Parent=c | |
619 | c.Reflectance=0 | |
620 | Instance.new("BodyGyro").Parent=c | |
621 | c.Parent=m | |
622 | if Char:findFirstChild("Head")~=nil then | |
623 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
624 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
625 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
626 | end | |
627 | f=Instance.new("BodyPosition") | |
628 | f.P=2000 | |
629 | f.D=100 | |
630 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
631 | f.position=c.Position+Vector3.new(0,3,0) | |
632 | f.Parent=c | |
633 | game:GetService("Debris"):AddItem(m,.5+du) | |
634 | c.CanCollide=false | |
635 | m.Parent=workspace | |
636 | c.CanCollide=false | |
637 | wait(1) | |
638 | for l = 0, 9 do | |
639 | text.TextTransparency = text.TextTransparency + 0.1 | |
640 | text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1 | |
641 | wait() | |
642 | end | |
643 | end | |
644 | ||
645 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
646 | local gui = it(GuiType) | |
647 | gui.Parent = parent | |
648 | gui.Text = text | |
649 | gui.BackgroundTransparency = backtrans | |
650 | gui.BackgroundColor3 = backcol | |
651 | gui.SizeConstraint = "RelativeXY" | |
652 | gui.TextXAlignment = "Center" | |
653 | gui.TextYAlignment = "Center" | |
654 | gui.Position = pos | |
655 | gui.Size = size | |
656 | gui.Font = "SourceSans" | |
657 | gui.FontSize = "Size14" | |
658 | gui.TextWrapped = false | |
659 | gui.TextStrokeTransparency = 0 | |
660 | gui.TextColor = BrickColor.new("White") | |
661 | return gui | |
662 | end | |
663 | ||
664 | local mana = 249 | |
665 | ---- GUI set | |
666 | local basgui = it("GuiMain") | |
667 | basgui.Parent = Player.PlayerGui | |
668 | basgui.Name = "CooldownsGUI" | |
669 | local basframe = it("Frame") | |
670 | basframe.Parent = basgui | |
671 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
672 | basframe.BackgroundTransparency = 1 | |
673 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
674 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
675 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
676 | local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
677 | basicgui.ZIndex = 2 | |
678 | basicgui.Font = "Highway" | |
679 | basicgui.BackgroundTransparency = 0.5 | |
680 | basicgui.BorderSizePixel = 0.65 | |
681 | basicgui.TextScaled = true | |
682 | basicgui.Text = "(Z)\nHotshot" | |
683 | basicgui.TextSize = 24 | |
684 | local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
685 | basicgui2.ZIndex = 2 | |
686 | basicgui2.Font = "Highway" | |
687 | basicgui2.BackgroundTransparency = 0.5 | |
688 | basicgui2.BorderSizePixel = 0.65 | |
689 | basicgui2.TextScaled = true | |
690 | basicgui2.Text = "(X)\nBlazing Dash" | |
691 | basicgui2.TextSize = 24 | |
692 | local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
693 | basicgui3.ZIndex = 2 | |
694 | basicgui3.Font = "Highway" | |
695 | basicgui3.BackgroundTransparency = 0.5 | |
696 | basicgui3.BorderSizePixel = 0.65 | |
697 | basicgui3.TextScaled = true | |
698 | basicgui3.Text = "(C)\nBlazing Boomrang" | |
699 | basicgui3.TextSize = 24 | |
700 | local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0)) | |
701 | basicgui4.ZIndex = 2 | |
702 | basicgui4.Font = "Highway" | |
703 | basicgui4.BackgroundTransparency = 0.5 | |
704 | basicgui4.BorderSizePixel = 0.65 | |
705 | basicgui4.TextScaled = true | |
706 | basicgui4.Text = "(V)\nDying Star" | |
707 | basicgui4.TextSize = 24 | |
708 | ||
709 | local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Crimson").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
710 | healthg.ZIndex = 2 | |
711 | healthg.Font = "Highway" | |
712 | healthg.BackgroundTransparency = 0.5 | |
713 | healthg.BorderSizePixel = 0.65 | |
714 | healthg.TextScaled = true | |
715 | healthg.Text = "health" | |
716 | healthg.TextSize = 24 | |
717 | ||
718 | local manag = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright blue").Color, UDim2.new(-0.15, 0, -0.35, 0), UDim2.new(0.95, 0, 0.15, 0)) | |
719 | manag.ZIndex = 2 | |
720 | manag.Font = "Highway" | |
721 | manag.BackgroundTransparency = 0.5 | |
722 | manag.BorderSizePixel = 0.65 | |
723 | manag.TextScaled = true | |
724 | manag.Text = "health" | |
725 | manag.TextSize = 24 | |
726 | ||
727 | ---------------- Weapon model | |
728 | ||
729 | local handle = Instance.new("Part") | |
730 | handle.Parent = Character | |
731 | handle.Size = Vector3.new(1,1,1) | |
732 | handle.Archivable = true | |
733 | handle.Transparency = 0.99 | |
734 | handle.BrickColor = BrickColor.new("White") | |
735 | handle.Material = "Neon" | |
736 | local handlmesh = Instance.new("BlockMesh",handle) | |
737 | handlmesh.Scale = Vector3.new(1,1,1) | |
738 | local handleweld = Instance.new("Weld") | |
739 | handleweld.Parent = handle | |
740 | handleweld.Part0 = torso | |
741 | handleweld.Part1 = handle | |
742 | handleweld.C1 = CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
743 | local par = Instance.new("Part") | |
744 | par.Parent = Character | |
745 | par.Size = Vector3.new(0.2,0.2,0.2) | |
746 | par.Archivable = true | |
747 | par.Transparency = 0 | |
748 | par.BrickColor = BrickColor.new("Crimson") | |
749 | par.Material = "Metal" | |
750 | local parmesh = Instance.new("SpecialMesh",par) | |
751 | parmesh.MeshType = "FileMesh" | |
752 | parmesh.MeshId = "http://www.roblox.com/asset?id=156292343" | |
753 | parmesh.Scale = Vector3.new(5,5,5) | |
754 | local weld12 = Instance.new("Weld") | |
755 | weld12.Parent = par | |
756 | weld12.Part0 = handle | |
757 | weld12.Part1 = par | |
758 | weld12.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
759 | local par2 = Instance.new("Part") | |
760 | par2.Parent = Character | |
761 | par2.Size = Vector3.new(0.2,0.2,0.2) | |
762 | par2.Archivable = true | |
763 | par2.Transparency = 0 | |
764 | par2.BrickColor = BrickColor.new("Crimson") | |
765 | par2.Material = "Metal" | |
766 | local parmesh2 = Instance.new("SpecialMesh",par2) | |
767 | parmesh2.MeshType = "FileMesh" | |
768 | parmesh2.MeshId = "http://www.roblox.com/asset?id=156292343" | |
769 | parmesh2.Scale = Vector3.new(5.25,5.25,4.75) | |
770 | parmesh2.VertexColor = Vector3.new(1,0.5,0) | |
771 | parmesh2.TextureId = "rbxassetid://269748808" | |
772 | local weld13 = Instance.new("Weld") | |
773 | weld13.Parent = par2 | |
774 | weld13.Part0 = handle | |
775 | weld13.Part1 = par2 | |
776 | weld13.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
777 | local par3 = Instance.new("Part") | |
778 | par3.Parent = Character | |
779 | par3.Size = Vector3.new(0.2,0.2,0.2) | |
780 | par3.Archivable = true | |
781 | par3.Transparency = 0 | |
782 | par3.BrickColor = BrickColor.new("Crimson") | |
783 | par3.Material = "Metal" | |
784 | local parmesh3 = Instance.new("SpecialMesh",par3) | |
785 | parmesh3.MeshType = "FileMesh" | |
786 | parmesh3.MeshId = "http://www.roblox.com/asset?id=156292343" | |
787 | parmesh3.Scale = Vector3.new(5.65,5.65,4.25) | |
788 | parmesh2.VertexColor = Vector3.new(1,0.5,0) | |
789 | parmesh3.TextureId = "rbxassetid://269748808" | |
790 | local weld14 = Instance.new("Weld") | |
791 | weld14.Parent = par3 | |
792 | weld14.Part0 = handle | |
793 | weld14.Part1 = par3 | |
794 | weld14.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
795 | local par4 = Instance.new("Part") | |
796 | par4.Parent = Character | |
797 | par4.Size = Vector3.new(0.2,0.2,0.2) | |
798 | par4.Archivable = true | |
799 | par4.Transparency = 0 | |
800 | par4.BrickColor = BrickColor.new("Crimson") | |
801 | par4.Material = "Metal" | |
802 | local parmesh4 = Instance.new("SpecialMesh",par4) | |
803 | parmesh4.MeshType = "FileMesh" | |
804 | parmesh4.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
805 | parmesh4.Scale = Vector3.new(4.5,4.5,1.25) | |
806 | parmesh4.VertexColor = Vector3.new(1,0.75,0) | |
807 | parmesh4.TextureId = "rbxassetid://269748808" | |
808 | local weld15 = Instance.new("Weld") | |
809 | weld15.Parent = par4 | |
810 | weld15.Part0 = handle | |
811 | weld15.Part1 = par4 | |
812 | weld15.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
813 | local par4a = Instance.new("Part") | |
814 | par4a.Parent = Character | |
815 | par4a.Size = Vector3.new(0.2,0.2,0.2) | |
816 | par4a.Archivable = true | |
817 | par4a.Transparency = 0 | |
818 | par4a.BrickColor = BrickColor.new("Crimson") | |
819 | par4a.Material = "Metal" | |
820 | local parmesh4a = Instance.new("SpecialMesh",par4a) | |
821 | parmesh4a.MeshType = "FileMesh" | |
822 | parmesh4a.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
823 | parmesh4a.Scale = Vector3.new(1.25,7.5,1) | |
824 | parmesh4a.VertexColor = Vector3.new(1,0.5,0) | |
825 | parmesh4a.TextureId = "rbxassetid://269748808" | |
826 | local weld15a = Instance.new("Weld") | |
827 | weld15a.Parent = par4a | |
828 | weld15a.Part0 = par4 | |
829 | weld15a.Part1 = par4a | |
830 | weld15a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
831 | local par4b = Instance.new("Part") | |
832 | par4b.Parent = Character | |
833 | par4b.Size = Vector3.new(0.2,0.2,0.2) | |
834 | par4b.Archivable = true | |
835 | par4b.Transparency = 0 | |
836 | par4b.BrickColor = BrickColor.new("Crimson") | |
837 | par4b.Material = "Metal" | |
838 | local parmesh4b = Instance.new("SpecialMesh",par4b) | |
839 | parmesh4b.MeshType = "FileMesh" | |
840 | parmesh4b.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
841 | parmesh4b.Scale = Vector3.new(7.5,1.25,1) | |
842 | parmesh4b.VertexColor = Vector3.new(1,0.5,0) | |
843 | parmesh4b.TextureId = "rbxassetid://269748808" | |
844 | local weld15b = Instance.new("Weld") | |
845 | weld15b.Parent = par4b | |
846 | weld15b.Part0 = par4 | |
847 | weld15b.Part1 = par4b | |
848 | weld15b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
849 | local par5 = Instance.new("Part") | |
850 | par5.Parent = Character | |
851 | par5.Size = Vector3.new(0.2,0.2,0.2) | |
852 | par5.Archivable = true | |
853 | par5.Transparency = 0 | |
854 | par5.BrickColor = BrickColor.new("Crimson") | |
855 | par5.Material = "Metal" | |
856 | local parmesh5 = Instance.new("SpecialMesh",par5) | |
857 | parmesh5.MeshType = "FileMesh" | |
858 | parmesh5.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
859 | parmesh5.Scale = Vector3.new(1,1,0.75) | |
860 | parmesh5.VertexColor = Vector3.new(1,0.75,0) | |
861 | parmesh5.TextureId = "rbxassetid://269748808" | |
862 | local weld16 = Instance.new("Weld") | |
863 | weld16.Parent = par5 | |
864 | weld16.Part0 = handle | |
865 | weld16.Part1 = par5 | |
866 | weld16.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
867 | local par5a = Instance.new("Part") | |
868 | par5a.Parent = Character | |
869 | par5a.Size = Vector3.new(0.2,0.2,0.2) | |
870 | par5a.Archivable = true | |
871 | par5a.Transparency = 0 | |
872 | par5a.BrickColor = BrickColor.new("Crimson") | |
873 | par5a.Material = "Metal" | |
874 | local parmesh5a = Instance.new("SpecialMesh",par5a) | |
875 | parmesh5a.MeshType = "FileMesh" | |
876 | parmesh5a.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
877 | parmesh5a.Scale = Vector3.new(3,0.75,0.5) | |
878 | parmesh5a.VertexColor = Vector3.new(1,0.5,0) | |
879 | parmesh5a.TextureId = "rbxassetid://269748808" | |
880 | local weld16a = Instance.new("Weld") | |
881 | weld16a.Parent = par5a | |
882 | weld16a.Part0 = par5 | |
883 | weld16a.Part1 = par5a | |
884 | weld16a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
885 | local par5b = Instance.new("Part") | |
886 | par5b.Parent = Character | |
887 | par5b.Size = Vector3.new(0.2,0.2,0.2) | |
888 | par5b.Archivable = true | |
889 | par5b.Transparency = 0 | |
890 | par5b.BrickColor = BrickColor.new("Crimson") | |
891 | par5b.Material = "Metal" | |
892 | local parmesh5b = Instance.new("SpecialMesh",par5b) | |
893 | parmesh5b.MeshType = "FileMesh" | |
894 | parmesh5b.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
895 | parmesh5b.Scale = Vector3.new(0.75,3,0.5) | |
896 | parmesh5b.VertexColor = Vector3.new(1,0.5,0) | |
897 | parmesh5b.TextureId = "rbxassetid://269748808" | |
898 | local weld16b = Instance.new("Weld") | |
899 | weld16b.Parent = par5b | |
900 | weld16b.Part0 = par5 | |
901 | weld16b.Part1 = par5b | |
902 | weld16b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
903 | local par6 = Instance.new("Part") | |
904 | par6.Parent = Character | |
905 | par6.Size = Vector3.new(0.2,0.2,0.2) | |
906 | par6.Archivable = true | |
907 | par6.Transparency = 0 | |
908 | par6.BrickColor = BrickColor.new("Crimson") | |
909 | par6.Material = "Metal" | |
910 | local parmesh6 = Instance.new("SpecialMesh",par6) | |
911 | parmesh6.MeshType = "FileMesh" | |
912 | parmesh6.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
913 | parmesh6.Scale = Vector3.new(1.65,1.65,0.115) | |
914 | parmesh6.VertexColor = Vector3.new(1,0.35,0) | |
915 | parmesh6.TextureId = "rbxassetid://269748808" | |
916 | local weld17 = Instance.new("Weld") | |
917 | weld17.Parent = par6 | |
918 | weld17.Part0 = handle | |
919 | weld17.Part1 = par6 | |
920 | weld17.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
921 | local par6a = Instance.new("Part") | |
922 | par6a.Parent = Character | |
923 | par6a.Size = Vector3.new(0.2,0.2,0.2) | |
924 | par6a.Archivable = true | |
925 | par6a.Transparency = 0 | |
926 | par6a.BrickColor = BrickColor.new("Crimson") | |
927 | par6a.Material = "Metal" | |
928 | local parmesh6a = Instance.new("SpecialMesh",par6a) | |
929 | parmesh6a.MeshType = "FileMesh" | |
930 | parmesh6a.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
931 | parmesh6a.Scale = Vector3.new(7.5,0.95,0.115) | |
932 | parmesh6a.VertexColor = Vector3.new(1,0.35,0) | |
933 | parmesh6a.TextureId = "rbxassetid://269748808" | |
934 | local weld17a = Instance.new("Weld") | |
935 | weld17a.Parent = par6a | |
936 | weld17a.Part0 = par6 | |
937 | weld17a.Part1 = par6a | |
938 | weld17a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45)) | |
939 | local par6b = Instance.new("Part") | |
940 | par6b.Parent = Character | |
941 | par6b.Size = Vector3.new(0.2,0.2,0.2) | |
942 | par6b.Archivable = true | |
943 | par6b.Transparency = 0 | |
944 | par6b.BrickColor = BrickColor.new("Crimson") | |
945 | par6b.Material = "Metal" | |
946 | local parmesh6b = Instance.new("SpecialMesh",par6b) | |
947 | parmesh6b.MeshType = "FileMesh" | |
948 | parmesh6b.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
949 | parmesh6b.Scale = Vector3.new(7.5,0.95,0.115) | |
950 | parmesh6b.VertexColor = Vector3.new(1,0.35,0) | |
951 | parmesh6b.TextureId = "rbxassetid://269748808" | |
952 | local weld17b = Instance.new("Weld") | |
953 | weld17b.Parent = par6b | |
954 | weld17b.Part0 = par6 | |
955 | weld17b.Part1 = par6b | |
956 | weld17b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45)) | |
957 | local par7 = Instance.new("Part") | |
958 | par7.Parent = Character | |
959 | par7.Size = Vector3.new(0.2,0.2,0.2) | |
960 | par7.Archivable = true | |
961 | par7.Transparency = 0 | |
962 | par7.BrickColor = BrickColor.new("Crimson") | |
963 | par7.Material = "Metal" | |
964 | local parmesh7 = Instance.new("SpecialMesh",par7) | |
965 | parmesh7.MeshType = "FileMesh" | |
966 | parmesh7.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
967 | parmesh7.Scale = Vector3.new(4.375,4.375,2.15) | |
968 | local weld18 = Instance.new("Weld") | |
969 | weld18.Parent = par7 | |
970 | weld18.Part0 = handle | |
971 | weld18.Part1 = par7 | |
972 | weld18.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
973 | local par8 = Instance.new("Part") | |
974 | par8.Parent = Character | |
975 | par8.Size = Vector3.new(0.2,0.2,0.2) | |
976 | par8.Archivable = true | |
977 | par8.Transparency = 0 | |
978 | par8.BrickColor = BrickColor.new("Crimson") | |
979 | par8.Material = "Metal" | |
980 | local parmesh8 = Instance.new("SpecialMesh",par8) | |
981 | parmesh8.MeshType = "FileMesh" | |
982 | parmesh8.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
983 | parmesh8.Scale = Vector3.new(4.365,4.365,2.165) | |
984 | parmesh8.VertexColor = Vector3.new(1,0.25,0) | |
985 | parmesh8.TextureId = "rbxassetid://269748808" | |
986 | local weld19 = Instance.new("Weld") | |
987 | weld19.Parent = par8 | |
988 | weld19.Part0 = handle | |
989 | weld19.Part1 = par8 | |
990 | weld19.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
991 | ----- lol | |
992 | handle.CanCollide = false | |
993 | par.CanCollide = false | |
994 | par2.CanCollide = false | |
995 | par3.CanCollide = false | |
996 | par4.CanCollide = false | |
997 | par4a.CanCollide = false | |
998 | par4b.CanCollide = false | |
999 | par5.CanCollide = false | |
1000 | par5a.CanCollide = false | |
1001 | par5b.CanCollide = false | |
1002 | par6.CanCollide = false | |
1003 | par6a.CanCollide = false | |
1004 | par6b.CanCollide = false | |
1005 | par7.CanCollide = false | |
1006 | par8.CanCollide = false | |
1007 | ---- | |
1008 | ||
1009 | ||
1010 | ||
1011 | ||
1012 | function attackone() | |
1013 | attack = true | |
1014 | handleweld.Part0 = rarm | |
1015 | for i = 0,2,0.1 do | |
1016 | swait() | |
1017 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1018 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1019 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1020 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1021 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1022 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1023 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1024 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1025 | end | |
1026 | local slas = Instance.new("Sound",handle) | |
1027 | slas.SoundId = "rbxassetid://199145095" | |
1028 | slas.Volume = 1.75 | |
1029 | slas.Pitch = 1 | |
1030 | slas:Play() | |
1031 | local hit = handle.Touched:connect(function(hit) | |
1032 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1033 | end) | |
1034 | for i = 0,1,0.1 do | |
1035 | swait() | |
1036 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1037 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
1038 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
1039 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1040 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1041 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1042 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1043 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1044 | end | |
1045 | attack = false | |
1046 | hit:disconnect() | |
1047 | wait(3) | |
1048 | slas:Destroy() | |
1049 | end | |
1050 | ||
1051 | function attacktwo() | |
1052 | attack = true | |
1053 | handleweld.Part0 = rarm | |
1054 | for i = 0,2,0.1 do | |
1055 | swait() | |
1056 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1057 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1058 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1059 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1060 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1061 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1062 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1063 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1064 | end | |
1065 | local slas = Instance.new("Sound",handle) | |
1066 | slas.SoundId = "rbxassetid://199145095" | |
1067 | slas.Volume = 1.75 | |
1068 | slas.Pitch = 0.9 | |
1069 | slas:Play() | |
1070 | local hit = handle.Touched:connect(function(hit) | |
1071 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1072 | end) | |
1073 | for i = 0,1,0.5 do | |
1074 | swait() | |
1075 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
1076 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
1077 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
1078 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1079 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1080 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1081 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1082 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1083 | end | |
1084 | for i = 0,1,0.5 do | |
1085 | swait() | |
1086 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
1087 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
1088 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
1089 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1090 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 15, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25) | |
1091 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1092 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1093 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1094 | end | |
1095 | for i = 0,1,0.5 do | |
1096 | swait() | |
1097 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
1098 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
1099 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
1100 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1101 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 20, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25) | |
1102 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1103 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1104 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1105 | end | |
1106 | for i = 0,3,0.5 do | |
1107 | swait() | |
1108 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
1109 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
1110 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
1111 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1112 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 25, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25) | |
1113 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1114 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1115 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1116 | end | |
1117 | attack = false | |
1118 | hit:disconnect() | |
1119 | wait(3) | |
1120 | slas:Destroy() | |
1121 | end | |
1122 | ||
1123 | function attackthree() | |
1124 | attack = true | |
1125 | handleweld.Part0 = rarm | |
1126 | for i = 0,2,0.1 do | |
1127 | swait() | |
1128 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1129 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1130 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1131 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1132 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1133 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1134 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1135 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1136 | end | |
1137 | local hit = handle.Touched:connect(function(hit) | |
1138 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1139 | end) | |
1140 | local slas = Instance.new("Sound",handle) | |
1141 | slas.SoundId = "rbxassetid://199145095" | |
1142 | slas.Volume = 1.75 | |
1143 | slas.Pitch = 0.95 | |
1144 | slas:Play() | |
1145 | for i = 0,2,0.1 do | |
1146 | swait() | |
1147 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3) | |
1148 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3) | |
1149 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3) | |
1150 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1151 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3) | |
1152 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1153 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1154 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1155 | end | |
1156 | slas:Destroy() | |
1157 | attack = false | |
1158 | hit:disconnect() | |
1159 | end | |
1160 | ||
1161 | function attackfour() | |
1162 | attack = true | |
1163 | handleweld.Part0 = rarm | |
1164 | local tra = Instance.new("ParticleEmitter",handle) | |
1165 | tra.Texture = "rbxassetid://296874871" | |
1166 | tra.LightEmission = 0.95 | |
1167 | tra.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1168 | tra.Rate = 1000 | |
1169 | tra.Lifetime = NumberRange.new(0.25) | |
1170 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1171 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)}) | |
1172 | tra.Speed = NumberRange.new(0) | |
1173 | tra.Rotation = NumberRange.new(-500,500) | |
1174 | tra.VelocitySpread = 90000 | |
1175 | tra.LockedToPart = true | |
1176 | tra.RotSpeed = NumberRange.new(-500,500) | |
1177 | for i = 0,5,0.1 do | |
1178 | swait() | |
1179 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1180 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1181 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1182 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1183 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1184 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1185 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1186 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1187 | end | |
1188 | local traz = Instance.new("ParticleEmitter",handle) | |
1189 | traz.Texture = "rbxassetid://296874871" | |
1190 | traz.LightEmission = 0.95 | |
1191 | traz.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1192 | traz.Rate = 1000000 | |
1193 | traz.Lifetime = NumberRange.new(0.5) | |
1194 | traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)}) | |
1195 | traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1196 | traz.Speed = NumberRange.new(50) | |
1197 | traz.Rotation = NumberRange.new(-500,500) | |
1198 | traz.VelocitySpread = 90000 | |
1199 | traz.RotSpeed = NumberRange.new(-500,500) | |
1200 | local sa = Instance.new("Sound",handle) | |
1201 | sa.SoundId = "rbxassetid://519795084" | |
1202 | sa.Volume = 1.25 | |
1203 | sa.Pitch = 1.5 | |
1204 | sa:Play() | |
1205 | tra.Rate = 0 | |
1206 | local lb = Instance.new("Part") | |
1207 | lb.Parent = char | |
1208 | lb.Material = "Neon" | |
1209 | lb.Color = Color3.new(0,0,0) | |
1210 | lb.CanCollide = false | |
1211 | lb.Shape = "Ball" | |
1212 | lb.CFrame = handle.CFrame | |
1213 | lb.Anchored = true | |
1214 | lb.Size = vt(3,3,3) | |
1215 | local thing = Instance.new("SpecialMesh",lb) | |
1216 | thing.MeshType = meshtype | |
1217 | lb.Touched:connect(function(hit) | |
1218 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1219 | end) | |
1220 | lb.Anchored = false | |
1221 | local trail = Instance.new("ParticleEmitter",lb) | |
1222 | trail.Texture = "rbxassetid://296874871" | |
1223 | trail.LightEmission = 0.95 | |
1224 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
1225 | trail.Rate = 10000 | |
1226 | trail.Lifetime = NumberRange.new(1.5) | |
1227 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1228 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1229 | trail.Speed = NumberRange.new(0,0) | |
1230 | trail.Rotation = NumberRange.new(-500,500) | |
1231 | trail.RotSpeed = NumberRange.new(-500,500) | |
1232 | local bv = Instance.new("BodyVelocity") | |
1233 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1234 | bv.velocity = mouse.Hit.lookVector *175 | |
1235 | bv.Parent = lb | |
1236 | traz.Rate = 0 | |
1237 | for i = 0,1,0.1 do | |
1238 | swait() | |
1239 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3) | |
1240 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3) | |
1241 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3) | |
1242 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1243 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1244 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1245 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1246 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1247 | end | |
1248 | attack = false | |
1249 | wait(10) | |
1250 | traz:Destroy() | |
1251 | tra:Destroy() | |
1252 | sa:Destroy() | |
1253 | lb:Destroy() | |
1254 | end | |
1255 | hold = false | |
1256 | ||
1257 | function do1() | |
1258 | attack = true | |
1259 | handleweld.Part0 = rarm | |
1260 | local tra = Instance.new("ParticleEmitter",handle) | |
1261 | tra.Texture = "rbxassetid://296874871" | |
1262 | tra.LightEmission = 0.95 | |
1263 | tra.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1264 | tra.Rate = 1000 | |
1265 | tra.Lifetime = NumberRange.new(0.25) | |
1266 | tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1267 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)}) | |
1268 | tra.Speed = NumberRange.new(0) | |
1269 | tra.Rotation = NumberRange.new(-500,500) | |
1270 | tra.VelocitySpread = 90000 | |
1271 | tra.LockedToPart = true | |
1272 | tra.RotSpeed = NumberRange.new(-500,500) | |
1273 | while true do | |
1274 | swait() | |
1275 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1276 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1277 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1278 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50 + 2.5 * math.cos(sine / 32))), 0.3) | |
1279 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1280 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1281 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1282 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1283 | if hold == false then | |
1284 | break | |
1285 | end | |
1286 | end | |
1287 | local traz = Instance.new("ParticleEmitter",handle) | |
1288 | traz.Texture = "rbxassetid://296874871" | |
1289 | traz.LightEmission = 0.95 | |
1290 | traz.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1291 | traz.Rate = 1000000 | |
1292 | traz.Lifetime = NumberRange.new(0.5) | |
1293 | traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)}) | |
1294 | traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1295 | traz.Speed = NumberRange.new(50) | |
1296 | traz.Rotation = NumberRange.new(-500,500) | |
1297 | traz.VelocitySpread = 90000 | |
1298 | traz.RotSpeed = NumberRange.new(-500,500) | |
1299 | local sa = Instance.new("Sound",handle) | |
1300 | sa.SoundId = "rbxassetid://519795084" | |
1301 | sa.Volume = 1.25 | |
1302 | sa.Pitch = 1.15 | |
1303 | sa:Play() | |
1304 | tra.Rate = 0 | |
1305 | local lb = Instance.new("Part") | |
1306 | lb.Parent = char | |
1307 | lb.Material = "Neon" | |
1308 | lb.Color = Color3.new(0,0,0) | |
1309 | lb.CanCollide = false | |
1310 | lb.Shape = "Ball" | |
1311 | lb.CFrame = handle.CFrame | |
1312 | lb.Anchored = true | |
1313 | lb.Size = vt(7.5,7.5,7.5) | |
1314 | local thing = Instance.new("SpecialMesh",lb) | |
1315 | thing.MeshType = meshtype | |
1316 | lb.Touched:connect(function(hit) | |
1317 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1318 | end) | |
1319 | lb.Anchored = false | |
1320 | local trail = Instance.new("ParticleEmitter",lb) | |
1321 | trail.Texture = "rbxassetid://296874871" | |
1322 | trail.LightEmission = 0.95 | |
1323 | trail.Color = ColorSequence.new(lb.BrickColor.Color) | |
1324 | trail.Rate = 10000 | |
1325 | trail.Lifetime = NumberRange.new(1.5) | |
1326 | trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
1327 | trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1328 | trail.Speed = NumberRange.new(0,0) | |
1329 | trail.Rotation = NumberRange.new(-500,500) | |
1330 | trail.RotSpeed = NumberRange.new(-500,500) | |
1331 | local bv = Instance.new("BodyVelocity") | |
1332 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1333 | bv.velocity = mouse.Hit.lookVector *175 | |
1334 | bv.Parent = lb | |
1335 | traz.Rate = 0 | |
1336 | for i = 0,1,0.1 do | |
1337 | swait() | |
1338 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3) | |
1339 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3) | |
1340 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3) | |
1341 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1342 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1343 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1344 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1345 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1346 | end | |
1347 | attack = false | |
1348 | wait(10) | |
1349 | traz:Destroy() | |
1350 | tra:Destroy() | |
1351 | sa:Destroy() | |
1352 | lb:Destroy() | |
1353 | end | |
1354 | ||
1355 | function do2() | |
1356 | attack = true | |
1357 | handleweld.Part0 = rarm | |
1358 | for i = 0,2,0.1 do | |
1359 | swait() | |
1360 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1361 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3) | |
1362 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3) | |
1363 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1364 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1365 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1366 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1367 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1368 | end | |
1369 | local traz2 = Instance.new("ParticleEmitter",handle) | |
1370 | traz2.Texture = "rbxassetid://296874871" | |
1371 | traz2.LightEmission = 0.95 | |
1372 | traz2.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1373 | traz2.Rate = 1000000 | |
1374 | traz2.Lifetime = NumberRange.new(1) | |
1375 | traz2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,50,0)}) | |
1376 | traz2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1377 | traz2.Speed = NumberRange.new(25,50) | |
1378 | traz2.Rotation = NumberRange.new(-500,500) | |
1379 | traz2.VelocitySpread = 90000 | |
1380 | traz2.RotSpeed = NumberRange.new(-500,500) | |
1381 | local traz = Instance.new("ParticleEmitter",handle) | |
1382 | traz.Texture = "rbxassetid://296874871" | |
1383 | traz.LightEmission = 0.95 | |
1384 | traz.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1385 | traz.Rate = 1000000 | |
1386 | traz.Lifetime = NumberRange.new(0.5) | |
1387 | traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,15,0)}) | |
1388 | traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1389 | traz.Speed = NumberRange.new(0) | |
1390 | traz.Rotation = NumberRange.new(-500,500) | |
1391 | traz.VelocitySpread = 90000 | |
1392 | traz.RotSpeed = NumberRange.new(-500,500) | |
1393 | root.Velocity = root.CFrame.lookVector*250 | |
1394 | local hit = handle.Touched:connect(function(hit) | |
1395 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1396 | end) | |
1397 | local slas = Instance.new("Sound",handle) | |
1398 | slas.SoundId = "rbxassetid://412756170" | |
1399 | slas.Volume = 2.5 | |
1400 | slas.Pitch = 0.75 | |
1401 | slas:Play() | |
1402 | wait(0.05) | |
1403 | traz2.Rate = 0 | |
1404 | for i = 0,3.5,0.1 do | |
1405 | swait() | |
1406 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3) | |
1407 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3) | |
1408 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3) | |
1409 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3) | |
1410 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3) | |
1411 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1412 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1413 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1414 | end | |
1415 | traz.Rate = 0 | |
1416 | attack = false | |
1417 | hit:disconnect() | |
1418 | wait(10) | |
1419 | traz2:Destroy() | |
1420 | traz:Destroy() | |
1421 | slas:Destroy() | |
1422 | end | |
1423 | ||
1424 | function do3() | |
1425 | attack = true | |
1426 | local van = 1 | |
1427 | for i = 0,3,0.1 do | |
1428 | swait() | |
1429 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1430 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
1431 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1432 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1433 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1434 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1435 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1436 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1437 | end | |
1438 | local slas = Instance.new("Sound",handle) | |
1439 | slas.SoundId = "rbxassetid://412756170" | |
1440 | slas.Volume = 2.5 | |
1441 | slas.Pitch = 0.75 | |
1442 | slas:Play() | |
1443 | local traz = Instance.new("ParticleEmitter",handle) | |
1444 | traz.Texture = "rbxassetid://296874871" | |
1445 | traz.LightEmission = 0.95 | |
1446 | traz.Color = ColorSequence.new(Color3.new(255,0,0)) | |
1447 | traz.Rate = 1000000 | |
1448 | traz.Lifetime = NumberRange.new(0.5) | |
1449 | traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,10,0)}) | |
1450 | traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1451 | traz.Speed = NumberRange.new(0) | |
1452 | traz.Rotation = NumberRange.new(-500,500) | |
1453 | traz.VelocitySpread = 90000 | |
1454 | traz.RotSpeed = NumberRange.new(-500,500) | |
1455 | local hit = handle.Touched:connect(function(hit) | |
1456 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1457 | end) | |
1458 | for i = 0,3,0.1 do | |
1459 | swait() | |
1460 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1461 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1462 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1463 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1464 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(75, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1465 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1466 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1467 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1468 | end | |
1469 | for i = 0,1,0.5 do | |
1470 | swait() | |
1471 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1472 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1473 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1474 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1475 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(50, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1476 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1477 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1478 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1479 | end | |
1480 | for i = 0,1,0.5 do | |
1481 | swait() | |
1482 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1483 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1484 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1485 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1486 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(25, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1487 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1488 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1489 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1490 | end | |
1491 | for i = 0,5,0.1 do | |
1492 | swait() | |
1493 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1494 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1495 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1496 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1497 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1498 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1499 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1500 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1501 | end | |
1502 | hit:disconnect() | |
1503 | traz.Rate = 0 | |
1504 | attack = false | |
1505 | wait(5) | |
1506 | traz:Destroy() | |
1507 | slas:Destroy() | |
1508 | end | |
1509 | ||
1510 | function DeleteParent(parent) | |
1511 | for i,v in pairs(parent:children()) do | |
1512 | if v:IsA("Part") then | |
1513 | v:Destroy() | |
1514 | end | |
1515 | end | |
1516 | end | |
1517 | ||
1518 | function do4() | |
1519 | attack = true | |
1520 | hum.WalkSpeed = 0 | |
1521 | local van = 1 | |
1522 | local lba = Instance.new("Part") | |
1523 | local slas = Instance.new("Sound",lba) | |
1524 | slas.SoundId = "rbxassetid://137463716" | |
1525 | slas.Volume = 1.5 | |
1526 | slas.Pitch = 0.25 | |
1527 | slas:Play() | |
1528 | local slas2 = Instance.new("Sound",lba) | |
1529 | slas2.SoundId = "rbxassetid://342793847" | |
1530 | slas2.Volume = 1.5 | |
1531 | slas2.Pitch = 0.5 | |
1532 | slas2:Play() | |
1533 | lba.Parent = char | |
1534 | lba.Material = "Neon" | |
1535 | lba.BrickColor = BrickColor.new("Persimmon") | |
1536 | lba.CanCollide = false | |
1537 | lba.Shape = "Ball" | |
1538 | lba.CFrame = handle.CFrame | |
1539 | lba.Anchored = true | |
1540 | lba.Size = vt(1,1,1) | |
1541 | local thing = Instance.new("SpecialMesh",lba) | |
1542 | thing.MeshType = meshtype | |
1543 | for i = 0,50,0.1 do | |
1544 | swait() | |
1545 | van = van + 0.05 | |
1546 | thing.Scale = thing.Scale + vt(0.085,0.085,0.085) | |
1547 | lba.CFrame = handle.CFrame + vt(0,van,0) | |
1548 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1549 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
1550 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3) | |
1551 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3) | |
1552 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1) | |
1553 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3) | |
1554 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1555 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3) | |
1556 | end | |
1557 | for z = 0, 9 do | |
1558 | for i = 0, 24 do | |
1559 | thing.Scale = thing.Scale - vt(0.15,0.15,0.15) | |
1560 | local lb = Instance.new("Part") | |
1561 | lb.Parent = handle | |
1562 | lb.Material = "Neon" | |
1563 | lb.BrickColor = BrickColor.new("Persimmon") | |
1564 | lb.CanCollide = false | |
1565 | lb.Shape = "Ball" | |
1566 | lb.CFrame = lba.CFrame | |
1567 | lb.Anchored = false | |
1568 | lb.Size = vt(5,5,5) | |
1569 | lb.CFrame = lba.CFrame | |
1570 | local bv = Instance.new("BodyVelocity") | |
1571 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1572 | bv.velocity = vt(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1573 | bv.Parent = lb | |
1574 | local sound = it("Sound",lb) | |
1575 | sound.Volume = 0.5 | |
1576 | sound.SoundId = "rbxassetid://178452221" | |
1577 | sound.Pitch = 0.5 | |
1578 | sound:Play() | |
1579 | lb.Touched:connect(function(hit) | |
1580 | Damagefunc(hit,1e999,1e999,1e999,"Normal",root,.2,1) | |
1581 | end) | |
1582 | wait() | |
1583 | end | |
1584 | end | |
1585 | lba:Destroy() | |
1586 | hum.WalkSpeed = 16 | |
1587 | attack = false | |
1588 | wait(10) | |
1589 | DeleteParent(handle) | |
1590 | end | |
1591 | ||
1592 | attackcombo = 0 | |
1593 | ||
1594 | mouse.Button1Down:connect(function() | |
1595 | if hold == false then | |
1596 | if attack == false and attackcombo == 0 then | |
1597 | attackcombo = 1 | |
1598 | attackone() | |
1599 | elseif attack == false and attackcombo == 1 then | |
1600 | attackcombo = 2 | |
1601 | attacktwo() | |
1602 | elseif attack == false and attackcombo == 2 then | |
1603 | attackcombo = 3 | |
1604 | attackthree() | |
1605 | elseif attack == false and attackcombo == 3 then | |
1606 | attackcombo = 0 | |
1607 | attackfour() | |
1608 | end | |
1609 | end | |
1610 | if attack == true and hold == true then | |
1611 | hold = false | |
1612 | end | |
1613 | end) | |
1614 | ||
1615 | mouse.KeyDown:connect(function(key) | |
1616 | if key == "z" and attack == false and hold == false and mana >= 25 then | |
1617 | hold = true | |
1618 | mana = mana - 25 | |
1619 | do1() | |
1620 | end | |
1621 | if key == "x" and attack == false and mana >= 40 then | |
1622 | mana = mana - 40 | |
1623 | do2() | |
1624 | end | |
1625 | if key == "c" and attack == false and mana >= 60 then | |
1626 | mana = mana - 60 | |
1627 | do3() | |
1628 | end | |
1629 | if key == "v" and attack == false and mana >= 100 then | |
1630 | ||
1631 | mana = mana - 100 | |
1632 | do4() | |
1633 | end | |
1634 | end) | |
1635 | ||
1636 | local p = game.Players.LocalPlayer | |
1637 | local char = p.Character | |
1638 | local mouse = p:GetMouse() | |
1639 | local torso = char.Torso | |
1640 | ||
1641 | ||
1642 | local rot ={0} | |
1643 | ||
1644 | local pe1 = Instance.new("ParticleEmitter",torso) | |
1645 | ||
1646 | pe1.Transparency = NumberSequence.new(1,1) | |
1647 | ||
1648 | pe1.Size = NumberSequence.new(0,0,0) | |
1649 | pe1.LockedToPart = true | |
1650 | ||
1651 | pe1.Color = ColorSequence.new(Color3.new(0,0,0)) | |
1652 | ||
1653 | pe1.Texture = "rbxassetid://347913776" | |
1654 | pe1.Lifetime = NumberRange.new(0,0) | |
1655 | pe1.Rate = 6 | |
1656 | pe1.RotSpeed = NumberRange.new(0,0) | |
1657 | pe1.Rotation = NumberRange.new(rot[math.random(1,#rot)]) | |
1658 | pe1.Speed = NumberRange.new(0,0) | |
1659 | ||
1660 | Colors = {"Crimson", "Crimson"} | |
1661 | GroundBall1 = function() | |
1662 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
1663 | ||
1664 | local wave = Instance.new("Part", torso) | |
1665 | wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
1666 | wave.Anchored = true | |
1667 | wave.CanCollide = false | |
1668 | wave.Locked = true | |
1669 | wave.Size = Vector3.new(1, 1, 1) | |
1670 | wave.TopSurface = "Smooth" | |
1671 | wave.BottomSurface = "Smooth" | |
1672 | wave.Transparency = 0.35 | |
1673 | wave.CFrame = HandCF | |
1674 | wm = Instance.new("SpecialMesh", wave) | |
1675 | wm.MeshId = "rbxassetid://9982590" | |
1676 | coroutine.wrap(function() | |
1677 | for i = 1, 30, 1 do | |
1678 | wm.Scale = Vector3.new(1 + i*1.2, 1 + i*1.2, 1 + i*1.2) | |
1679 | wave.Size = wm.Scale | |
1680 | wave.CFrame = HandCF | |
1681 | wave.Orientation = Vector3.new(0, 180, 0) | |
1682 | wave.Transparency = i/30 | |
1683 | wait() | |
1684 | end | |
1685 | wait() | |
1686 | wave:Destroy() | |
1687 | end)() | |
1688 | end | |
1689 | ||
1690 | local Mus = Instance.new("Sound",Character) | |
1691 | - | Mus.SoundId = "rbxassetid://136181233" |
1691 | + | Mus.SoundId = "rbxassetid://1530757030" |
1692 | Mus.Pitch = 1 | |
1693 | - | Mus.Volume = 0.3 |
1693 | + | Mus.Volume = 10 |
1694 | Mus.Looped = true | |
1695 | ||
1696 | local Mus2 = Instance.new("Sound",Character) | |
1697 | - | Mus2.SoundId = "rbxassetid://254826701" |
1697 | + | Mus2.SoundId = "rbxassetid://423934738" |
1698 | Mus2.Pitch = 1 | |
1699 | - | Mus2.Volume = 5 |
1699 | + | Mus2.Volume = 10 |
1700 | Mus2.Looped = true | |
1701 | ||
1702 | local taunt = Instance.new("Sound",Character) | |
1703 | taunt.SoundId = "rbxassetid://907332997" | |
1704 | taunt.Pitch = 0.7 | |
1705 | taunt.Volume = 10 | |
1706 | taunt.Looped = false | |
1707 | mouse.KeyDown:connect(function(key) | |
1708 | if key == "u" then | |
1709 | ||
1710 | GroundBall1() | |
1711 | ||
1712 | rot ={0} | |
1713 | ||
1714 | ||
1715 | ||
1716 | pe1.Transparency = NumberSequence.new(1,1) | |
1717 | ||
1718 | pe1.Size = NumberSequence.new(0,0,0) | |
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | pe1.Lifetime = NumberRange.new(0,0) | |
1724 | pe1.Rate = 0 | |
1725 | pe1.RotSpeed = NumberRange.new(0,0) | |
1726 | ||
1727 | pe1.Speed = NumberRange.new(0,0) | |
1728 | ||
1729 | parmesh2.VertexColor = Vector3.new(1,0.5,0) | |
1730 | parmesh2.VertexColor = Vector3.new(1,0.5,0) | |
1731 | parmesh4.VertexColor = Vector3.new(1,0.75,0) | |
1732 | parmesh4a.VertexColor = Vector3.new(1,0.5,0) | |
1733 | parmesh4b.VertexColor = Vector3.new(1,0.5,0) | |
1734 | parmesh5.VertexColor = Vector3.new(1,0.75,0) | |
1735 | parmesh5a.VertexColor = Vector3.new(1,0.5,0) | |
1736 | parmesh5b.VertexColor = Vector3.new(1,0.5,0) | |
1737 | parmesh6.VertexColor = Vector3.new(1,0.35,0) | |
1738 | parmesh6a.VertexColor = Vector3.new(1,0.35,0) | |
1739 | parmesh6b.VertexColor = Vector3.new(1,0.35,0) | |
1740 | parmesh8.VertexColor = Vector3.new(1,0.25,0) | |
1741 | ||
1742 | par.BrickColor = BrickColor.new("Crimson") | |
1743 | par2.BrickColor = BrickColor.new("Crimson") | |
1744 | par3.BrickColor = BrickColor.new("Crimson") | |
1745 | par4.BrickColor = BrickColor.new("Crimson") | |
1746 | par4a.BrickColor = BrickColor.new("Crimson") | |
1747 | par4b.BrickColor = BrickColor.new("Crimson") | |
1748 | par5.BrickColor = BrickColor.new("Crimson") | |
1749 | par5a.BrickColor = BrickColor.new("Crimson") | |
1750 | par5b.BrickColor = BrickColor.new("Crimson") | |
1751 | par6.BrickColor = BrickColor.new("Crimson") | |
1752 | par6a.BrickColor = BrickColor.new("Crimson") | |
1753 | par6b.BrickColor = BrickColor.new("Crimson") | |
1754 | par7.BrickColor = BrickColor.new("Crimson") | |
1755 | par8.BrickColor = BrickColor.new("Crimson") | |
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | mesh4.TextureId = "http://www.roblox.com/asset/?id=31100020" | |
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | g.Size = 0 | |
1768 | g.Heat = 0 | |
1769 | ||
1770 | char.Shirt.ShirtTemplate = "rbxassetid://250281606" | |
1771 | char.Pants.PantsTemplate = "rbxassetid://296647969" | |
1772 | Humanoid.MaxHealth = 1000 | |
1773 | Humanoid.Health = 1000 | |
1774 | text.TextStrokeColor3 = Color3.new(0.8,0.6,0.2) | |
1775 | text.TextColor3 = Color3.new(0.8,0.6,0.2) | |
1776 | text.Text = "Solar Master" | |
1777 | Mus2:Stop() | |
1778 | hed.face.Texture = "http://www.roblox.com/asset/?id=143939517" | |
1779 | Mus:Play() | |
1780 | end | |
1781 | end) | |
1782 | ||
1783 | mouse.KeyDown:connect(function(key) | |
1784 | if key == "j" then | |
1785 | ||
1786 | Mus:Stop() | |
1787 | end | |
1788 | end) | |
1789 | ||
1790 | ||
1791 | mouse.KeyDown:connect(function(key) | |
1792 | if key == "k" then | |
1793 | ||
1794 | taunt:Play() | |
1795 | Mus:Stop() | |
1796 | GroundBall1() | |
1797 | wait(1) | |
1798 | GroundBall1() | |
1799 | wait(3) | |
1800 | GroundBall1() | |
1801 | GroundBall1() | |
1802 | wait(0.3) | |
1803 | GroundBall1() | |
1804 | wait(0.3) | |
1805 | GroundBall1() | |
1806 | Humanoid.MaxHealth = "inf" | |
1807 | Humanoid.Health = "inf" | |
1808 | ||
1809 | ||
1810 | rot ={4} | |
1811 | ||
1812 | ||
1813 | ||
1814 | pe1.Transparency = NumberSequence.new(0.8,0.8) | |
1815 | ||
1816 | pe1.Size = NumberSequence.new(25,25,25) | |
1817 | ||
1818 | ||
1819 | ||
1820 | ||
1821 | pe1.Lifetime = NumberRange.new(1,1) | |
1822 | pe1.Rate = 6 | |
1823 | pe1.RotSpeed = NumberRange.new(5,5) | |
1824 | ||
1825 | pe1.Speed = NumberRange.new(0,0) | |
1826 | ||
1827 | text.TextStrokeColor3 = Color3.new(1,1,1) | |
1828 | text.TextColor3 = Color3.new(1,1,1) | |
1829 | hed.face.Texture = "http://www.roblox.com/asset/?id=125723689" | |
1830 | - | text.Text = "Death Approaches" |
1830 | + | text.Text = "The Black Dominus Emilixs" |
1831 | ||
1832 | parmesh2.VertexColor = Vector3.new(0,0,0) | |
1833 | parmesh2.VertexColor = Vector3.new(0,0,0) | |
1834 | parmesh4.VertexColor = Vector3.new(0,0,0) | |
1835 | parmesh4a.VertexColor = Vector3.new(0,0,0) | |
1836 | parmesh4b.VertexColor = Vector3.new(0,0,0) | |
1837 | parmesh5.VertexColor = Vector3.new(0,0,0) | |
1838 | parmesh5a.VertexColor = Vector3.new(0,0,0) | |
1839 | parmesh5b.VertexColor = Vector3.new(0,0,0) | |
1840 | parmesh6.VertexColor = Vector3.new(0,0,0) | |
1841 | parmesh6a.VertexColor = Vector3.new(0,0,0) | |
1842 | parmesh6b.VertexColor = Vector3.new(0,0,0) | |
1843 | parmesh8.VertexColor = Vector3.new(0,0,0) | |
1844 | ||
1845 | par.BrickColor = BrickColor.new("White") | |
1846 | par2.BrickColor = BrickColor.new("White") | |
1847 | par3.BrickColor = BrickColor.new("White") | |
1848 | par4.BrickColor = BrickColor.new("White") | |
1849 | par4a.BrickColor = BrickColor.new("White") | |
1850 | par4b.BrickColor = BrickColor.new("White") | |
1851 | par5.BrickColor = BrickColor.new("White") | |
1852 | par5a.BrickColor = BrickColor.new("White") | |
1853 | par5b.BrickColor = BrickColor.new("Black") | |
1854 | par6.BrickColor = BrickColor.new("Black") | |
1855 | par6a.BrickColor = BrickColor.new("Black") | |
1856 | par6b.BrickColor = BrickColor.new("Black") | |
1857 | par7.BrickColor = BrickColor.new("Black") | |
1858 | par8.BrickColor = BrickColor.new("Black") | |
1859 | ||
1860 | ||
1861 | g.Size = 4 | |
1862 | g.Heat = 10 | |
1863 | mesh4.TextureId = "http://www.roblox.com/asset/?id=33041994" | |
1864 | ||
1865 | char.Shirt.ShirtTemplate = "rbxassetid://279388022" | |
1866 | char.Pants.PantsTemplate = "rbxassetid://279388038" | |
1867 | Mus2:Play() | |
1868 | end | |
1869 | end) | |
1870 | ||
1871 | game:GetService("RunService").Stepped:connect(function() | |
1872 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1873 | velocity = RootPart.Velocity.y | |
1874 | sine = sine + change | |
1875 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1876 | if equipped == true or equipped == false then | |
1877 | healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth) | |
1878 | manag.Text = "Mana: " ..math.floor(mana) | |
1879 | if mana <= 250 then | |
1880 | mana = mana + 0.25 | |
1881 | end | |
1882 | if RootPart.Velocity.y > 1 and hit == nil then | |
1883 | Anim = "Jump" | |
1884 | if attack == false then | |
1885 | handleweld.Part0 = torso | |
1886 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3) | |
1887 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
1888 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3) | |
1889 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3) | |
1890 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1891 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3) | |
1892 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1893 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1894 | end | |
1895 | else | |
1896 | if RootPart.Velocity.y < -1 and hit == nil then | |
1897 | Anim = "Fall" | |
1898 | if attack == false then | |
1899 | handleweld.Part0 = torso | |
1900 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
1901 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
1902 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3) | |
1903 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3) | |
1904 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1905 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3) | |
1906 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1907 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1908 | end | |
1909 | else | |
1910 | if Torsovelocity < 1 and hit ~= nil then | |
1911 | Anim = "Idle" | |
1912 | if attack == false then | |
1913 | change = 1 | |
1914 | handleweld.Part0 = torso | |
1915 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1916 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1917 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10 - 5 * math.cos(sine / 32))), 0.3) | |
1918 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 5 * math.cos(sine / 32))), 0.3) | |
1919 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1920 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3) | |
1921 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1922 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1923 | end | |
1924 | else | |
1925 | if Torsovelocity > 2 and hit ~= nil then | |
1926 | Anim = "Walk" | |
1927 | if attack == false then | |
1928 | handleweld.Part0 = torso | |
1929 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
1930 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1931 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 5)), math.rad(0), math.rad(10)), 0.3) | |
1932 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3) | |
1933 | handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1934 | weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3) | |
1935 | weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1936 | weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3) | |
1937 | end | |
1938 | end | |
1939 | end | |
1940 | end | |
1941 | end | |
1942 | end | |
1943 | end) |