SHOW:
|
|
- or go back to the newest paste.
1 | p=game.Players.LocalPlayer | |
2 | c=p.Character | |
3 | m=p:GetMouse() | |
4 | Player = game:GetService("Players").LocalPlayer | |
5 | mouse=Player:GetMouse() | |
6 | Cha = Player.Character | |
7 | Character = Cha | |
8 | torso = Cha.Torso | |
9 | Mouse = mouse | |
10 | curaga = false | |
11 | equip = false | |
12 | on = false | |
13 | it=Instance.new | |
14 | vt=Vector3.new | |
15 | cf=CFrame.new | |
16 | euler=CFrame.fromEulerAnglesXYZ | |
17 | angles=CFrame.Angles | |
18 | Color1 = torso.BrickColor | |
19 | Torso = torso | |
20 | Effects = {} | |
21 | ||
22 | ---------------------------------------Clothes | |
23 | game.Players.LocalPlayer.Character["Right Arm"].BrickColor = BrickColor.new("Pastel brown") | |
24 | game.Players.LocalPlayer.Character["Left Arm"].BrickColor = BrickColor.new("Pastel brown") | |
25 | game.Players.LocalPlayer.Character["Head"].BrickColor = BrickColor.new("Pastel brown") | |
26 | game.Players.LocalPlayer.Character["Right Leg"].BrickColor = BrickColor.new("Pastel brown") | |
27 | game.Players.LocalPlayer.Character["Left Leg"].BrickColor = BrickColor.new("Pastel brown") | |
28 | game.Players.LocalPlayer.Character["Torso"].BrickColor = BrickColor.new("Pastel brown") | |
29 | Cha.Shirt:Remove() | |
30 | Cha.Pants:Remove() | |
31 | ||
32 | Shirt = Instance.new("Shirt",Character) | |
33 | Shirt.Parent = Cha | |
34 | Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=276413699" | |
35 | Pant = Instance.new("Pants",Character) | |
36 | Pant.Parent = Cha | |
37 | Pant.PantsTemplate = "http://www.roblox.com/asset/?id=276414504" | |
38 | ||
39 | ---------------------------------------Taunts n Stuff | |
40 | local Taunts = {"Come on. Ya scared?"} | |
41 | local raisechats = { "Descend, Heartless Angel!" , "I'm... the chosen one!","I will lead you to the Promised Land","The Planet and I are to be one!","That was true power","Come power!","Prepare yourself!","No mercy","No more games... show me what you've got!"} | |
42 | local final = {"Show me your strength" , "That's enough"} | |
43 | ---------------------------------------Chat Gui n stuff | |
44 | ||
45 | so = function(id,par,vol,pit) | |
46 | coroutine.resume(coroutine.create(function() | |
47 | local sou = Instance.new("Sound",par or workspace) | |
48 | sou.Volume=vol | |
49 | sou.Pitch=pit or 1 | |
50 | sou.SoundId=id | |
51 | swait() | |
52 | sou:play() | |
53 | game:GetService("Debris"):AddItem(sou,6) | |
54 | end)) | |
55 | end | |
56 | ||
57 | ||
58 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
59 | local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt()) | |
60 | prt.Anchored=true | |
61 | prt.CFrame=cframe | |
62 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
63 | game:GetService("Debris"):AddItem(prt,5) | |
64 | table.insert(Effects,{prt,"Block1",delay,x3,y3,z3}) | |
65 | end | |
66 | ||
67 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
68 | local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt()) | |
69 | prt.Anchored=true | |
70 | prt.CFrame=cframe | |
71 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
72 | game:GetService("Debris"):AddItem(prt,2) | |
73 | table.insert(Effects,{prt,"Cylinder2",delay,x3,y3,z3}) | |
74 | end | |
75 | ||
76 | function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
77 | local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt()) | |
78 | if Type~=2 then | |
79 | prt.Anchored=true | |
80 | end | |
81 | prt.CFrame=cframe | |
82 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
83 | game:GetService("Debris"):AddItem(prt,5) | |
84 | coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
85 | local wld=nil | |
86 | if dur==2 then | |
87 | wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0)) | |
88 | end | |
89 | for i=0,1,delay do | |
90 | wait() | |
91 | if dur==1 then | |
92 | Part.CFrame=Part.CFrame | |
93 | elseif dur==2 then | |
94 | wld.C0=cframe | |
95 | end | |
96 | Part.Transparency=i | |
97 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
98 | end | |
99 | Part.Parent=nil | |
100 | end),prt,msh,Type) | |
101 | end | |
102 | ||
103 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
104 | local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt()) | |
105 | prt.Anchored=true | |
106 | prt.CFrame=cframe | |
107 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
108 | game:GetService("Debris"):AddItem(prt,5) | |
109 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
110 | for i=0,1,delay do | |
111 | wait() | |
112 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
113 | Part.Transparency=i | |
114 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
115 | end | |
116 | Part.Parent=nil | |
117 | end),prt,msh) | |
118 | end | |
119 | ||
120 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,mshtype) | |
121 | local prt=part2(3,workspace,0,0,brickcolor,"Effect",vt()) | |
122 | prt.Anchored=true | |
123 | prt.CFrame=cframe | |
124 | local thetype="" | |
125 | if mshtype==1 then | |
126 | thetype="http://www.roblox.com/asset/?id=20329976" | |
127 | elseif mshtype==2 then | |
128 | thetype="http://www.roblox.com/asset/?id=1323306" | |
129 | end | |
130 | msh=mesh("SpecialMesh",prt,"FileMesh",thetype,vt(0,0,0),vt(x1,y1,z1)) | |
131 | game:GetService("Debris"):AddItem(prt,2) | |
132 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
133 | for i=0,1,delay do | |
134 | wait() | |
135 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
136 | Part.Transparency=i | |
137 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
138 | end | |
139 | Part.Parent=nil | |
140 | end),prt,msh) | |
141 | end | |
142 | ||
143 | ||
144 | function NoOutline(Part) | |
145 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
146 | end | |
147 | ||
148 | function part2(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
149 | local fp=it("Part") | |
150 | fp.formFactor=formfactor | |
151 | fp.Parent=parent | |
152 | fp.Reflectance=reflectance | |
153 | fp.Transparency=transparency | |
154 | fp.CanCollide=false | |
155 | fp.Locked=true | |
156 | fp.BrickColor=brickcolor | |
157 | fp.Name=name | |
158 | fp.Size=size | |
159 | fp.Position=Torso.Position | |
160 | NoOutline(fp) | |
161 | fp.Material="SmoothPlastic" | |
162 | fp:BreakJoints() | |
163 | return fp | |
164 | end | |
165 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock,Slash) | |
166 | if hit.Parent==nil then | |
167 | return | |
168 | end | |
169 | h=hit.Parent:FindFirstChild("Humanoid") | |
170 | for _,v in pairs(hit.Parent:children()) do | |
171 | if v:IsA("Humanoid") then | |
172 | h=v | |
173 | end | |
174 | end | |
175 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
176 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
177 | end | |
178 | if hit.Parent.className=="Hat" then | |
179 | hit=hit.Parent.Parent:findFirstChild("Head") | |
180 | end | |
181 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
182 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
183 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
184 | return | |
185 | end]] | |
186 | -- hs(hit,1.2) | |
187 | if Slash==1 then | |
188 | so("http://www.roblox.com/asset/?id=10209590",hit,1,1) | |
189 | MagicCircle(Color1,hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.2,.2,6,.2,0.1) | |
190 | end | |
191 | c=Instance.new("ObjectValue") | |
192 | c.Name="creator" | |
193 | c.Value=game:service("Players").LocalPlayer | |
194 | c.Parent=h | |
195 | game:GetService("Debris"):AddItem(c,.5) | |
196 | Damage=math.random(minim,maxim) | |
197 | -- h:TakeDamage(Damage) | |
198 | blocked=false | |
199 | block=hit.Parent:findFirstChild("Block") | |
200 | if block~=nil then | |
201 | print(block.className) | |
202 | if block.className=="NumberValue" then | |
203 | if block.Value>0 then | |
204 | blocked=true | |
205 | if decreaseblock~=nil then | |
206 | block.Value=block.Value-decreaseblock | |
207 | end | |
208 | end | |
209 | end | |
210 | if block.className=="IntValue" then | |
211 | if block.Value>0 then | |
212 | blocked=true | |
213 | if decreaseblock~=nil then | |
214 | block.Value=block.Value-decreaseblock | |
215 | end | |
216 | end | |
217 | end | |
218 | end | |
219 | if blocked==false then | |
220 | -- h:TakeDamage(Damage) | |
221 | h.Health=h.Health-Damage | |
222 | showDamage(hit.Parent,Damage,.5,BrickColor:Red()) | |
223 | else | |
224 | h.Health=h.Health-(Damage/2) | |
225 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
226 | end | |
227 | if Type=="Knockdown" then | |
228 | hum=hit.Parent.Humanoid | |
229 | hum.PlatformStand=true | |
230 | coroutine.resume(coroutine.create(function(HHumanoid) | |
231 | swait(1) | |
232 | HHumanoid.PlatformStand=false | |
233 | end),hum) | |
234 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
235 | --hit.CFrame=cf(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
236 | local bodvol=Instance.new("BodyVelocity") | |
237 | bodvol.velocity=angle*knockback | |
238 | bodvol.P=5000 | |
239 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
240 | bodvol.Parent=hit | |
241 | rl=Instance.new("BodyAngularVelocity") | |
242 | rl.P=3000 | |
243 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
244 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
245 | rl.Parent=hit | |
246 | game:GetService("Debris"):AddItem(bodvol,.5) | |
247 | game:GetService("Debris"):AddItem(rl,.5) | |
248 | elseif Type=="Normal" then | |
249 | vp=Instance.new("BodyVelocity") | |
250 | vp.P=500 | |
251 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
252 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
253 | if KnockbackType==1 then | |
254 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
255 | elseif KnockbackType==2 then | |
256 | vp.velocity=Property.CFrame.lookVector*knockback | |
257 | end | |
258 | if knockback>0 then | |
259 | vp.Parent=hit.Parent.Torso | |
260 | end | |
261 | game:GetService("Debris"):AddItem(vp,.5) | |
262 | elseif Type=="Up" then | |
263 | local bodyVelocity=Instance.new("BodyVelocity") | |
264 | bodyVelocity.velocity=vt(0,30,0) | |
265 | bodyVelocity.P=5000 | |
266 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
267 | bodyVelocity.Parent=hit | |
268 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
269 | rl=Instance.new("BodyAngularVelocity") | |
270 | rl.P=3000 | |
271 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
272 | rl.angularvelocity=Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
273 | rl.Parent=hit | |
274 | game:GetService("Debris"):AddItem(rl,.5) | |
275 | elseif Type=="Snare" then | |
276 | bp=Instance.new("BodyPosition") | |
277 | bp.P=2000 | |
278 | bp.D=100 | |
279 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
280 | bp.position=hit.Parent.Torso.Position | |
281 | bp.Parent=hit.Parent.Torso | |
282 | game:GetService("Debris"):AddItem(bp,1) | |
283 | elseif Type=="Charge" then | |
284 | Charge=Charge+1 | |
285 | coroutine.resume(coroutine.create(function(Part,Hum) | |
286 | swait(30) | |
287 | for i=1,5 do | |
288 | swait() | |
289 | so("rbxasset://sounds\\unsheath.wav",hit,1,2) | |
290 | MagicCircle(Color1,hit.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),.2,2,.1,.2,8,.1,0.05) | |
291 | newdam=math.random(1,5) | |
292 | if blocked==false then | |
293 | Hum:TakeDamage(newdam) | |
294 | showDamage(hit.Parent,newdam,.5,BrickColor:Red()) | |
295 | else | |
296 | Hum:TakeDamage(newdam/2) | |
297 | showDamage(hit.Parent,newdam,.5,BrickColor.new("Bright blue")) | |
298 | end | |
299 | end | |
300 | end),hit,h) | |
301 | end | |
302 | debounce=Instance.new("BoolValue") | |
303 | debounce.Name="DebounceHit" | |
304 | debounce.Parent=hit.Parent | |
305 | debounce.Value=true | |
306 | game:GetService("Debris"):AddItem(debounce,Delay) | |
307 | c=Instance.new("ObjectValue") | |
308 | c.Name="creator" | |
309 | c.Value=Player | |
310 | c.Parent=h | |
311 | game:GetService("Debris"):AddItem(c,.5) | |
312 | CRIT=false | |
313 | end | |
314 | end | |
315 | ||
316 | showDamage=function(Char,Dealt,du,Color) | |
317 | m=Instance.new("Model") | |
318 | m.Name=tostring(math.floor(Dealt)) | |
319 | h=Instance.new("Humanoid") | |
320 | h.Health=0 | |
321 | h.MaxHealth=0 | |
322 | h.Parent=m | |
323 | c=Instance.new("Part") | |
324 | c.Transparency=0 | |
325 | c.BrickColor=Color | |
326 | c.Name="Head" | |
327 | c.TopSurface=0 | |
328 | c.BottomSurface=0 | |
329 | c.formFactor="Plate" | |
330 | c.Size=Vector3.new(1,.4,1) | |
331 | ms=Instance.new("CylinderMesh") | |
332 | ms.Scale=Vector3.new(.8,.8,.8) | |
333 | if CRIT==true then | |
334 | ms.Scale=Vector3.new(1,1.25,1) | |
335 | end | |
336 | ms.Parent=c | |
337 | c.Reflectance=0 | |
338 | Instance.new("BodyGyro").Parent=c | |
339 | c.Parent=m | |
340 | if Char:findFirstChild("Head")~=nil then | |
341 | c.CFrame=cf(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
342 | elseif Char.Parent:findFirstChild("Head")~=nil then | |
343 | c.CFrame=cf(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
344 | end | |
345 | f=Instance.new("BodyPosition") | |
346 | f.P=2000 | |
347 | f.D=100 | |
348 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
349 | f.position=c.Position+Vector3.new(0,3,0) | |
350 | f.Parent=c | |
351 | game:GetService("Debris"):AddItem(m,.5+du) | |
352 | c.CanCollide=false | |
353 | m.Parent=workspace | |
354 | c.CanCollide=false | |
355 | end | |
356 | ||
357 | ||
358 | repeat wait() until game:getService("Players").LocalPlayer.Character ~= nil; | |
359 | ||
360 | local Services = setmetatable({}, { __index = function(Self, Request) return game:getService(Request) or nil end }) | |
361 | local Player = Services.Players.LocalPlayer | |
362 | local Mouse = Player:GetMouse() | |
363 | local Backpack = Player.Backpack | |
364 | local Character = Player.Character | |
365 | local PlayerGui = Player.PlayerGui | |
366 | local Camera = Workspace.CurrentCamera | |
367 | local RunService = Services.RunService | |
368 | local Head = Character:findFirstChild("Head") | |
369 | local Torso = Character:findFirstChild("Torso") | |
370 | local RootPart = Character:findFirstChild("HumanoidRootPart") | |
371 | local RightArm = Character:findFirstChild("Right Arm") | |
372 | local LeftArm = Character:findFirstChild("Left Arm") | |
373 | local RightLeg = Character:findFirstChild("Right Leg") | |
374 | local LeftLeg = Character:findFirstChild("Left Leg") | |
375 | local Humanoid = Character:findFirstChild("Humanoid") | |
376 | local Neck = Torso:findFirstChild("Neck") | |
377 | local RootJoint = RootPart:findFirstChild("RootJoint") | |
378 | local RightSH = Torso:findFirstChild("Right Shoulder") | |
379 | local LeftSH = Torso:findFirstChild("Left Shoulder") | |
380 | local RightHip = Torso:findFirstChild("Right Hip") | |
381 | local LeftHip = Torso:findFirstChild("Left Hip") | |
382 | local it = Instance.new | |
383 | local vt = Vector3.new | |
384 | local bc = BrickColor.new | |
385 | local c3 = Color3.new | |
386 | local UD2 = UDim2.new | |
387 | local cf = CFrame.new | |
388 | local euler = CFrame.fromEulerAnglesXYZ | |
389 | local angles = CFrame.Angles | |
390 | local bc = BrickColor.new | |
391 | local c3 = Color3.new | |
392 | local deg = math.deg | |
393 | local inf = math.huge | |
394 | local rad = math.rad | |
395 | local pi = math.pi | |
396 | local random = math.random | |
397 | ||
398 | local IDs = { | |
399 | --Meshes | |
400 | ["This"] = 0, | |
401 | ||
402 | --Textures | |
403 | ["House of Gremory"] = 198026609, | |
404 | ["House of Phenex"] = 197704664, | |
405 | ["Electric"] = 255514024, | |
406 | ||
407 | --Audio | |
408 | ["MVC3 Wesker Theme"] = 193889412, | |
409 | ["Resident Evil Movie Wesker Theme"] = 163237084, | |
410 | ||
411 | } | |
412 | ||
413 | local Tn = "New" | |
414 | local KeyDown = {} | |
415 | local KeyLastDown = {} | |
416 | local httpasset = "http://www.roblox.com/Asset/?id=" | |
417 | local rbxassetid = "rbxassetid://" | |
418 | local rbxasset = "rbxasset://" | |
419 | local IsAttacking = false | |
420 | local IsSprinting = false | |
421 | local IsEquipping = false | |
422 | local IsBlocking = false | |
423 | local IsEquipped = false | |
424 | local AttackDebounce = false | |
425 | local RootCF = euler(-1.57, 0, 3.14) | |
426 | local NeckC0 = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
427 | local NeckC1 = cf(0, -0.5, 0) | |
428 | local Combo = 0 | |
429 | local ContinueCombo = false | |
430 | local RMB = false | |
431 | local LMB = false | |
432 | local Hold = false | |
433 | local blcf = nil | |
434 | local scfr = nil | |
435 | ||
436 | function Preload(AssetID) | |
437 | Services.ContentProvider:Preload(AssetID) | |
438 | end | |
439 | ||
440 | function PreloadAssets() | |
441 | for _, Assets in pairs(IDs) do | |
442 | Preload(httpasset .. Assets) | |
443 | end | |
444 | end | |
445 | ||
446 | PreloadAssets() | |
447 | ||
448 | function newSound(Parent,ID,Pitch,Volume,Looped) | |
449 | Sound = it("Sound",Parent) | |
450 | Sound.SoundId = ID | |
451 | Sound.Pitch = Pitch | |
452 | Sound.Volume = Volume | |
453 | Sound.Looped = Looped | |
454 | ||
455 | return Sound | |
456 | end | |
457 | ||
458 | function NoOutline(Part) | |
459 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
460 | end | |
461 | ||
462 | Lerp = function(a,b,c) | |
463 | return a+(b-a)*c | |
464 | end | |
465 | ||
466 | function ctlerp(c1,c2,al) | |
467 | local com1 = {c1:components()} | |
468 | local com2 = {c2:components()} | |
469 | for i,v in pairs(com1) do | |
470 | com1[i] = lerp(v,com2[i],al) | |
471 | end | |
472 | return CFrame.new(unpack(com1)) | |
473 | end | |
474 | ||
475 | do | |
476 | local function QuaternionFromCFrame(cf) | |
477 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
478 | local trace = m00 + m11 + m22 | |
479 | if trace > 0 then | |
480 | local s = math.sqrt(1 + trace) | |
481 | local recip = 0.5/s | |
482 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
483 | else | |
484 | local i = 0 | |
485 | if m11 > m00 then | |
486 | i = 1 | |
487 | end | |
488 | if m22 > (i == 0 and m00 or m11) then | |
489 | i = 2 | |
490 | end | |
491 | if i == 0 then | |
492 | local s = math.sqrt(m00-m11-m22+1) | |
493 | local recip = 0.5/s | |
494 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
495 | elseif i == 1 then | |
496 | local s = math.sqrt(m11-m22-m00+1) | |
497 | local recip = 0.5/s | |
498 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
499 | elseif i == 2 then | |
500 | local s = math.sqrt(m22-m00-m11+1) | |
501 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
502 | end | |
503 | end | |
504 | end | |
505 | local function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
506 | local xs, ys, zs = x + x, y + y, z + z | |
507 | local wx, wy, wz = w*xs, w*ys, w*zs | |
508 | local xx = x*xs | |
509 | local xy = x*ys | |
510 | local xz = x*zs | |
511 | local yy = y*ys | |
512 | local yz = y*zs | |
513 | local zz = z*zs | |
514 | 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)) | |
515 | end | |
516 | local function QuaternionSlerp(a, b, t) | |
517 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
518 | local startInterp, finishInterp; | |
519 | if cosTheta >= 0.0001 then | |
520 | if (1 - cosTheta) > 0.0001 then | |
521 | local theta = math.acos(cosTheta) | |
522 | local invSinTheta = 1/math.sin(theta) | |
523 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
524 | finishInterp = math.sin(t*theta)*invSinTheta | |
525 | else | |
526 | startInterp = 1-t | |
527 | finishInterp = t | |
528 | end | |
529 | else | |
530 | if (1+cosTheta) > 0.0001 then | |
531 | local theta = math.acos(-cosTheta) | |
532 | local invSinTheta = 1/math.sin(theta) | |
533 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
534 | finishInterp = math.sin(t*theta)*invSinTheta | |
535 | else | |
536 | startInterp = t-1 | |
537 | finishInterp = t | |
538 | end | |
539 | end | |
540 | 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 | |
541 | end | |
542 | function clerp(a,b,t) | |
543 | local qa = {QuaternionFromCFrame(a)} | |
544 | local qb = {QuaternionFromCFrame(b)} | |
545 | local ax, ay, az = a.x, a.y, a.z | |
546 | local bx, by, bz = b.x, b.y, b.z | |
547 | local _t = 1-t | |
548 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
549 | end | |
550 | ||
551 | end | |
552 | --[[ | |
553 | local CFrameInterpolate=function(s,e,a,r,i,n,g) | |
554 | g,r=CFrame,{{s:toEulerAnglesXYZ()},{e:toEulerAnglesXYZ()}} | |
555 | for _=1,3 do | |
556 | i,n=r[1][_],r[2][_]r[1][_]=i+a*(n-i) | |
557 | end | |
558 | return(g.new(s.p:lerp(e.p,a))*g.Angles(unpack(r[1]))) | |
559 | end]] | |
560 | ||
561 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
562 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
563 | end | |
564 | ||
565 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
566 | local fp = it("Part") | |
567 | fp.formFactor = formfactor | |
568 | fp.Parent = parent | |
569 | fp.Reflectance = reflectance | |
570 | fp.Transparency = transparency | |
571 | fp.CanCollide = false | |
572 | fp.Locked=true | |
573 | fp.BrickColor = brickcolor | |
574 | fp.Name = name | |
575 | fp.Size = size | |
576 | fp.Position = Torso.Position | |
577 | fp.BottomSurface="Smooth" | |
578 | fp.TopSurface="Smooth" | |
579 | fp.Material = "SmoothPlastic" | |
580 | fp:BreakJoints() | |
581 | ||
582 | NoOutline(fp) | |
583 | return fp | |
584 | end | |
585 | ||
586 | function mesh(Mesh,part,meshtype,meshid,scale) | |
587 | local mesh = it(Mesh) | |
588 | mesh.Parent = part | |
589 | if Mesh=="SpecialMesh" then | |
590 | mesh.MeshType = meshtype | |
591 | mesh.MeshId = meshid | |
592 | end | |
593 | mesh.Scale=scale | |
594 | return mesh | |
595 | end | |
596 | ||
597 | function weld(parent,part0,part1,c0,c1) | |
598 | local weld = it("Motor") | |
599 | weld.Parent = parent | |
600 | weld.Part0 = part0 | |
601 | weld.Part1 = part1 | |
602 | weld.C0 = c0 | |
603 | if c1 ~= nil then | |
604 | weld.C1 = c1 | |
605 | end | |
606 | return weld | |
607 | end | |
608 | ||
609 | for i, v in pairs(Character:GetChildren()) do | |
610 | if v:IsA("LocalScript") and v.Name == string.lower(tostring(Tn)) then | |
611 | v:Destroy() | |
612 | end | |
613 | end | |
614 | ||
615 | for i, v in pairs(Backpack:GetChildren()) do | |
616 | if v:IsA("HopperBin") and v.Name == tostring(Tn) then | |
617 | v:Destroy() | |
618 | end | |
619 | end | |
620 | ||
621 | for i, v in pairs(Character:GetChildren()) do | |
622 | if v:IsA("Model") and v.Name == tostring(Tn) then | |
623 | v:Destroy() | |
624 | end | |
625 | end | |
626 | ||
627 | local Main = it("Model", Character) | |
628 | Main.Name = Tn | |
629 | ||
630 | local MagicBin = it("Model", Main) | |
631 | MagicBin.Name = "MagicBin" | |
632 | ||
633 | local EffectsBin = it("Model", Main) | |
634 | EffectsBin.Name = "EffectsBin" | |
635 | Hilt17=part(3,Main,0,0,bc("Medium stone grey"),"Hilt17",vt(0.200000003, 0.200000003, 0.200000003)) | |
636 | Hilt11=part(3,Main,0,0,bc("Medium stone grey"),"Hilt11",vt(0.289999992, 0.200000003, 0.200000003)) | |
637 | Hilt15=part(3,Main,0,0,bc("Medium stone grey"),"Hilt15",vt(0.200000003, 0.200000003, 0.200000003)) | |
638 | Hilt12=part(3,Main,0,0,bc("Medium stone grey"),"Hilt12",vt(0.200000003, 0.200000003, 0.200000003)) | |
639 | Hilt14=part(3,Main,0,0,bc("Medium stone grey"),"Hilt14",vt(0.200000003, 0.200000003, 0.200000003)) | |
640 | Hilt16=part(3,Main,0,0,bc("Medium stone grey"),"Hilt16",vt(0.200000003, 0.200000003, 0.200000003)) | |
641 | Hilt3=part(3,Main,0,0,bc("Medium stone grey"),"Hilt3",vt(0.200000003, 0.200000003, 0.200000003)) | |
642 | Hilt13=part(3,Main,0,0,bc("Medium stone grey"),"Hilt13",vt(0.200000003, 0.200000003, 0.200000003)) | |
643 | Blade9=part(3,Main,0.25,0,bc("White"),"Blade9",vt(0.5200001, 5.10000038, 0.200000003)) | |
644 | Hilt5=part(3,Main,0,0,bc("Medium stone grey"),"Hilt5",vt(0.289999992, 0.200000003, 0.200000003)) | |
645 | Hilt10=part(3,Main,0,0,bc("Medium stone grey"),"Hilt10",vt(0.200000003, 0.200000003, 0.200000003)) | |
646 | Hilt6=part(3,Main,0,0,bc("Medium stone grey"),"Hilt6",vt(0.200000003, 0.200000003, 0.200000003)) | |
647 | Handle15=part(3,Main,0,0,bc("White"),"Handle15",vt(0.200000003, 0.200000003, 0.200000003)) | |
648 | Handle13=part(3,Main,0,0,bc("White"),"Handle13",vt(0.200000003, 0.200000003, 0.200000003)) | |
649 | Handle8=part(3,Main,0,0,bc("Black"),"Handle8",vt(0.400000036, 2.19000006, 0.400000006)) | |
650 | Handle14=part(3,Main,0,0,bc("White"),"Handle14",vt(0.200000003, 0.200000003, 0.200000003)) | |
651 | Handle12=part(3,Main,0,0,bc("White"),"Handle12",vt(0.200000003, 0.200000003, 0.200000003)) | |
652 | Handle7=part(3,Main,0,0,bc("White"),"Handle7",vt(0.200000003, 0.200000003, 0.200000003)) | |
653 | Handle2=part(3,Main,0,0,bc("Medium stone grey"),"Handle2",vt(0.200000003, 0.280000001, 0.400000006)) | |
654 | Handle1=part(3,Main,0,0,bc("White"),"Handle1",vt(0.200000003, 0.200000003, 0.200000003)) | |
655 | Handle3=part(3,Main,0,0,bc("White"),"Handle3",vt(0.200000003, 0.200000003, 0.200000003)) | |
656 | Handle=part(3,Main,0,0,bc("Black"),"Handle",vt(0.200000003, 2.19999981, 0.400000006)) | |
657 | Handle4=part(3,Main,0,0,bc("White"),"Handle4",vt(0.200000003, 0.200000003, 0.200000003)) | |
658 | Handle11=part(3,Main,0,0,bc("White"),"Handle11",vt(0.200000003, 0.200000003, 0.200000003)) | |
659 | Handle5=part(3,Main,0,0,bc("Medium stone grey"),"Handle5",vt(0.400000036, 0.280000001, 0.400000006)) | |
660 | Handle10=part(3,Main,0,0,bc("White"),"Handle10",vt(0.200000003, 0.200000003, 0.200000003)) | |
661 | Handle6=part(3,Main,0,0,bc("Medium stone grey"),"Handle6",vt(0.400000036, 0.280000001, 0.400000006)) | |
662 | Hilt7=part(3,Main,0,0,bc("Medium stone grey"),"Hilt7",vt(0.75, 0.200000003, 0.400000006)) | |
663 | Handle9=part(3,Main,0,0,bc("Black"),"Handle9",vt(0.400000036, 2.19999981, 0.400000006)) | |
664 | Hilt2=part(3,Main,0,0,bc("Medium stone grey"),"Hilt2",vt(0.600000024, 0.200000003, 0.600000024)) | |
665 | Hilt1=part(3,Main,0,0,bc("Medium stone grey"),"Hilt1",vt(0.600000024, 0.200000003, 0.200000003)) | |
666 | Hilt9=part(3,Main,0,0,bc("Medium stone grey"),"Hilt9",vt(0.200000003, 0.200000003, 0.200000003)) | |
667 | Hilt4=part(3,Main,0,0,bc("Medium stone grey"),"Hilt4",vt(0.200000003, 0.200000003, 0.200000003)) | |
668 | Hilt8=part(3,Main,0,0,bc("Medium stone grey"),"Hilt8",vt(0.200000003, 0.200000003, 0.200000003)) | |
669 | Blade1=part(3,Main,0.25,0,bc("White"),"Blade1",vt(0.200000003, 0.579999924, 0.540000081)) | |
670 | Blade10=part(3,Main,0.25,0,bc("White"),"Blade10",vt(0.600000083, 3.81000042, 0.200000003)) | |
671 | Blade11=part(3,Main,0.25,0,bc("White"),"Blade11",vt(0.490000039, 0.469999969, 0.200000003)) | |
672 | Blade12=part(3,Main,0.25,0,bc("White"),"Blade12",vt(0.490000039, 0.469999969, 0.200000003)) | |
673 | Blade13=part(3,Main,0.25,0,bc("White"),"Blade13",vt(0.230000004, 0.200000003, 0.200000003)) | |
674 | Blade14=part(3,Main,0.25,0,bc("White"),"Blade14",vt(0.230000004, 0.200000003, 0.200000003)) | |
675 | Blade15=part(3,Main,0.25,0,bc("White"),"Blade15",vt(0.200000003, 0.200000003, 0.200000003)) | |
676 | Blade16=part(3,Main,0.25,0,bc("White"),"Blade16",vt(0.200000003, 0.219999999, 0.200000003)) | |
677 | Blade17=part(3,Main,0.25,0,bc("White"),"Blade17",vt(0.200000003, 1.18999994, 0.49000001)) | |
678 | Blade18=part(3,Main,0.25,0,bc("White"),"Blade18",vt(0.200000003, 0.200000003, 0.200000003)) | |
679 | Blade2=part(3,Main,0.25,0,bc("White"),"Blade2",vt(0.200000003, 0.200000003, 0.200000003)) | |
680 | Blade3=part(3,Main,0.25,0,bc("White"),"Blade3",vt(0.200000003, 1.66999996, 0.479999989)) | |
681 | Blade4=part(3,Main,0.25,0,bc("White"),"Blade4",vt(0.25999999, 1.69000018, 0.200000003)) | |
682 | Blade5=part(3,Main,0.25,0,bc("White"),"Blade5",vt(0.420000076, 2.75, 0.200000003)) | |
683 | Blade6=part(3,Main,0.25,0,bc("White"),"Blade6",vt(0.25999999, 1.06000018, 0.200000003)) | |
684 | Blade7=part(3,Main,0.25,0,bc("White"),"Blade7",vt(0.25999999, 1.35000014, 0.200000003)) | |
685 | Blade8=part(3,Main,0.25,0,bc("White"),"Blade8",vt(0.420000076, 2.32000017, 0.200000003)) | |
686 | Hitbox=part(3,Main,0,1,bc("Medium stone grey"),"Hitbox",vt(0.810000002, 8.5199995, 0.200000003)) | |
687 | ||
688 | Hilt17Mesh=mesh("CylinderMesh",Hilt17,nil,nil,vt(1, 0.5, 0.25)) | |
689 | Hilt11Mesh=mesh("BlockMesh",Hilt11,nil,nil,vt(1, 0.5, 0.25)) | |
690 | Hilt15Mesh=mesh("CylinderMesh",Hilt15,nil,nil,vt(1, 0.5, 0.25)) | |
691 | Hilt12Mesh=mesh("BlockMesh",Hilt12,nil,nil,vt(0.5, 0.5, 0.25)) | |
692 | Hilt14Mesh=mesh("CylinderMesh",Hilt14,nil,nil,vt(1, 0.5, 1)) | |
693 | Hilt16Mesh=mesh("BlockMesh",Hilt16,nil,nil,vt(0.5, 0.5, 0.25)) | |
694 | Hilt3Mesh=mesh("CylinderMesh",Hilt3,nil,nil,vt(1, 0.5, 1)) | |
695 | Hilt13Mesh=mesh("CylinderMesh",Hilt13,nil,nil,vt(1, 0.5, 1)) | |
696 | Blade9Mesh=mesh("BlockMesh",Blade9,nil,nil,vt(0.899999976, 1, 0.5)) | |
697 | Hilt5Mesh=mesh("BlockMesh",Hilt5,nil,nil,vt(1, 0.5, 0.25)) | |
698 | Hilt10Mesh=mesh("CylinderMesh",Hilt10,nil,nil,vt(1, 0.5, 0.25)) | |
699 | Hilt6Mesh=mesh("CylinderMesh",Hilt6,nil,nil,vt(1, 0.5, 1)) | |
700 | Handle15Mesh=mesh("SpecialMesh",Handle15,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
701 | Handle13Mesh=mesh("SpecialMesh",Handle13,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
702 | Handle8Mesh=mesh("CylinderMesh",Handle8,nil,nil,vt(1, 1, 0.600000024)) | |
703 | Handle14Mesh=mesh("SpecialMesh",Handle14,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
704 | Handle12Mesh=mesh("SpecialMesh",Handle12,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
705 | Handle7Mesh=mesh("SpecialMesh",Handle7,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
706 | Handle2Mesh=mesh("BlockMesh",Handle2,nil,nil,vt(1, 1, 0.649999976)) | |
707 | Handle1Mesh=mesh("SpecialMesh",Handle1,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
708 | Handle3Mesh=mesh("SpecialMesh",Handle3,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
709 | HandleMesh=mesh("BlockMesh",Handle,nil,nil,vt(1, 1, 0.600000024)) | |
710 | Handle4Mesh=mesh("SpecialMesh",Handle4,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
711 | Handle11Mesh=mesh("SpecialMesh",Handle11,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
712 | Handle5Mesh=mesh("CylinderMesh",Handle5,nil,nil,vt(1, 1, 0.649999976)) | |
713 | Handle10Mesh=mesh("SpecialMesh",Handle10,Enum.MeshType.FileMesh,"rbxassetid://9756362",vt(0.165000007, 0.165000007, 0.00999999978)) | |
714 | Handle6Mesh=mesh("CylinderMesh",Handle6,nil,nil,vt(1, 1, 0.649999976)) | |
715 | Hilt7Mesh=mesh("BlockMesh",Hilt7,nil,nil,vt(1, 0.5, 1)) | |
716 | Handle9Mesh=mesh("CylinderMesh",Handle9,nil,nil,vt(1, 1, 0.600000024)) | |
717 | Hilt2Mesh=mesh("BlockMesh",Hilt2,nil,nil,vt(0.899999976, 0.5, 1)) | |
718 | Hilt1Mesh=mesh("BlockMesh",Hilt1,nil,nil,vt(1, 1, 0.75)) | |
719 | Hilt9Mesh=mesh("BlockMesh",Hilt9,nil,nil,vt(0.5, 0.5, 0.25)) | |
720 | Hilt4Mesh=mesh("CylinderMesh",Hilt4,nil,nil,vt(1, 0.5, 0.25)) | |
721 | Hilt8Mesh=mesh("BlockMesh",Hilt8,nil,nil,vt(0.5, 0.5, 0.25)) | |
722 | Blade1Mesh=mesh("SpecialMesh",Blade1,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
723 | Blade10Mesh=mesh("BlockMesh",Blade10,nil,nil,vt(0.899999976, 1, 0.5)) | |
724 | Blade11Mesh=mesh("BlockMesh",Blade11,nil,nil,vt(0.899999976, 1, 0.5)) | |
725 | Blade12Mesh=mesh("BlockMesh",Blade12,nil,nil,vt(0.899999976, 1, 0.5)) | |
726 | Blade13Mesh=mesh("BlockMesh",Blade13,nil,nil,vt(0.899999976, 1, 0.5)) | |
727 | Blade14Mesh=mesh("BlockMesh",Blade14,nil,nil,vt(0.899999976, 1, 0.5)) | |
728 | Blade15Mesh=mesh("SpecialMesh",Blade15,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
729 | Blade16Mesh=mesh("BlockMesh",Blade16,nil,nil,vt(0.899999976, 1, 0.5)) | |
730 | Blade17Mesh=mesh("SpecialMesh",Blade17,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
731 | Blade18Mesh=mesh("SpecialMesh",Blade18,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
732 | Blade2Mesh=mesh("SpecialMesh",Blade2,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
733 | Blade3Mesh=mesh("SpecialMesh",Blade3,Enum.MeshType.Wedge,"",vt(0.5, 1, 1)) | |
734 | Blade4Mesh=mesh("BlockMesh",Blade4,nil,nil,vt(0.899999976, 1, 0.5)) | |
735 | Blade5Mesh=mesh("BlockMesh",Blade5,nil,nil,vt(0.899999976, 1, 0.5)) | |
736 | Blade6Mesh=mesh("BlockMesh",Blade6,nil,nil,vt(0.899999976, 1, 0.5)) | |
737 | Blade7Mesh=mesh("BlockMesh",Blade7,nil,nil,vt(0.899999976, 1, 0.5)) | |
738 | Blade8Mesh=mesh("BlockMesh",Blade8,nil,nil,vt(0.899999976, 1, 0.5)) | |
739 | Hilt1Mesh=mesh("BlockMesh",Hitbox,nil,nil,vt(1, 1, 0.75)) | |
740 | ||
741 | Hilt17Weld=weld(Hilt17,Handle,Hilt17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.457622528, -1.11945462, -0.145050049, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
742 | Hilt11Weld=weld(Hilt11,Handle,Hilt11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0037612915, -1.12150526, -0.461910248, -1.06936568e-005, 5.77834871e-005, -0.999996424, -7.43104756e-005, 1.00008583, 5.77949249e-005, 1.00007868, 7.44559511e-005, -9.76776937e-006)) | |
743 | Hilt15Weld=weld(Hilt15,Handle,Hilt15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.457572937, -1.11945891, 0.141166687, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
744 | Hilt12Weld=weld(Hilt12,Handle,Hilt12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.404922485, -1.11943936, -0.145050049, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
745 | Hilt14Weld=weld(Hilt14,Handle,Hilt14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.273647308, -1.12032151, 0.201026917, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
746 | Hilt16Weld=weld(Hilt16,Handle,Hilt16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.404937744, -1.11946464, 0.141155243, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
747 | Hilt3Weld=weld(Hilt3,Handle,Hilt3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.273616791, -1.12033963, -0.198993683, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
748 | Hilt13Weld=weld(Hilt13,Handle,Hilt13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.275409698, -1.12033486, 0.200931549, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
749 | Blade9Weld=weld(Blade9,Handle,Blade9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0333178043, 3.8683424, 0.000338554382, 1.00010002, 0.000703109195, -9.48159723e-005, 0.000706287858, -1.00008559, -4.03726153e-006, -9.35117641e-005, 3.24808389e-006, -0.999996305)) | |
750 | Hilt5Weld=weld(Hilt5,Handle,Hilt5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00389099121, 1.11949492, -0.46629715, -9.87974199e-005, 7.27375082e-005, -0.999996424, 7.42931588e-005, -1.00008583, -7.27541628e-005, -1.00007868, -7.444519e-005, 9.78631724e-005)) | |
751 | Hilt10Weld=weld(Hilt10,Handle,Hilt10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.46213913, 1.12150216, 0.14138031, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424)) | |
752 | Hilt6Weld=weld(Hilt6,Handle,Hilt6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.275440216, -1.12034822, -0.19909668, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
753 | Handle15Weld=weld(Handle15,Handle,Handle15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.67028809e-005, -0.801521063, 0.121692657, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
754 | Handle13Weld=weld(Handle13,Handle,Handle13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.28881836e-005, -0.400797606, 0.121746063, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
755 | Handle8Weld=weld(Handle8,Handle,Handle8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.100402832, -0.0031414032, -0.000217437744, 1.00007868, 6.75279625e-006, -6.48646019e-005, -6.61071726e-006, 1.00008583, -3.46608649e-005, 6.57905184e-005, 3.46802844e-005, 0.999996424)) | |
756 | Handle14Weld=weld(Handle14,Handle,Handle14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-5.7220459e-005, -0.801545382, -0.121162415, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
757 | Handle12Weld=weld(Handle12,Handle,Handle12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.52587891e-005, -0.400773525, -0.121177673, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
758 | Handle7Weld=weld(Handle7,Handle,Handle7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(4.19616699e-005, 0.400630951, 0.121704102, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
759 | Handle2Weld=weld(Handle2,Handle,Handle2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(1.90734863e-005, 1.21269119, 1.90734863e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
760 | Handle1Weld=weld(Handle1,Handle,Handle1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.10351563e-005, 0.801368952, 0.12171936, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
761 | Handle3Weld=weld(Handle3,Handle,Handle3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(7.62939453e-006, 0.400652409, -0.121212006, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
762 | Handle4Weld=weld(Handle4,Handle,Handle4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-8.01086426e-005, 0.801396608, -0.121200562, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
763 | Handle11Weld=weld(Handle11,Handle,Handle11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-3.05175781e-005, -8.48770142e-005, 0.121711731, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
764 | Handle5Weld=weld(Handle5,Handle,Handle5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.100139618, 1.21268964, -0.000148773193, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
765 | Handle10Weld=weld(Handle10,Handle,Handle10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.10351563e-005, -8.58306885e-005, -0.121185303, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
766 | Handle6Weld=weld(Handle6,Handle,Handle6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.100006104, 1.21272635, 2.67028809e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
767 | Hilt7Weld=weld(Hilt7,Handle,Hilt7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0011138916, -1.12035966, -0.000301361084, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
768 | Handle9Weld=weld(Handle9,Handle,Handle9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.100112915, -8.27312469e-005, -1.52587891e-005, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
769 | Hilt2Weld=weld(Hilt2,Handle,Hilt2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0011138916, -1.12035966, -0.000301361084, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
770 | Hilt1Weld=weld(Hilt1,Handle,Hilt1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.00114059448, -1.25527358, -0.000255584717, 1.00007868, 7.21568938e-008, 4.60386218e-007, 7.21566451e-008, 1.00008583, 7.9307938e-009, 4.6038258e-007, 7.93806976e-009, 0.999996424)) | |
771 | Hilt9Weld=weld(Hilt9,Handle,Hilt9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.409454346, 1.12153077, -0.144813538, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424)) | |
772 | Hilt4Weld=weld(Hilt4,Handle,Hilt4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.462165833, 1.12153316, -0.144828796, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424)) | |
773 | Hilt8Weld=weld(Hilt8,Handle,Hilt8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.409484863, 1.12151933, 0.141399384, -1.00007868, -4.81130833e-008, 8.74186662e-005, -1.08400428e-007, -1.00008583, -0.000138106014, 8.83466491e-005, -0.000138102478, 0.999996424)) | |
774 | Blade1Weld=weld(Blade1,Handle,Blade1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000437736511, -9.34721851, 0.827681899, 0.000351174298, -0.000148526902, 0.999995887, -0.106138475, 0.994437933, 0.000185434037, -0.99444443, -0.106136039, 0.000333891279)) | |
775 | Blade10Weld=weld(Blade10,Handle,Blade10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00660872459, 4.51431751, 8.77380371e-005, 1.00009, 0.000703894009, -9.4286981e-005, 0.000705496001, -1.00008559, -3.86945794e-006, -9.40407408e-005, 3.41546001e-006, -0.999996305)) | |
776 | Blade11Weld=weld(Blade11,Handle,Blade11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.06901801, -7.80190563, -0.000305175781, 0.989713788, 0.14376092, 3.26523987e-005, -0.143766329, 0.989699125, 1.40180964e-005, -3.16402184e-005, -1.78200462e-005, 0.999996305)) | |
777 | Blade12Weld=weld(Blade12,Handle,Blade12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.226474524, 2.80856323, -0.000195503235, 0.997143149, -0.0768536478, -9.97968309e-005, -0.0768516213, -0.997128606, 2.88784577e-007, -9.82304191e-005, 6.65828702e-006, -0.999996245)) | |
778 | Blade13Weld=weld(Blade13,Handle,Blade13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.568722963, -7.9933815, -0.000526428223, 0.998305798, 0.0599297546, 2.65152848e-005, -0.0599343963, 0.998288512, 1.29768741e-005, -2.73143451e-005, -1.37269999e-005, 0.999996006)) | |
779 | Blade14Weld=weld(Blade14,Handle,Blade14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.171463251, 2.68863964, -6.19888306e-005, 1.00007272, 0.00736879185, -9.45004576e-005, 0.00737197511, -1.00005865, -4.21920777e-006, -9.33028423e-005, 2.81876601e-006, -0.999996126)) | |
780 | Blade15Weld=weld(Blade15,Handle,Blade15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000944137573, 7.56833935, 0.275351524, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314)) | |
781 | Blade16Weld=weld(Blade16,Handle,Blade16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.864399433, -7.489645, -0.000500679016, 0.992487252, -0.12313544, 1.14010618e-005, 0.123134181, 0.992476463, 8.45576506e-006, -1.32677669e-005, -6.39483005e-006, 0.999996305)) | |
782 | Blade17Weld=weld(Blade17,Handle,Blade17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000581741333, -7.55102921, -0.13477993, -0.00034879928, 0.000129672044, -0.999996185, -0.0202675145, 0.999880493, 0.000137549418, 0.999897897, 0.0202635974, -0.000347658846)) | |
783 | Blade18Weld=weld(Blade18,Handle,Blade18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.000557899475, 7.52509022, 0.275359869, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314)) | |
784 | Blade2Weld=weld(Blade2,Handle,Blade2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00057888031, 7.48215389, 0.275330186, -0.000437307142, 0.00014346448, -0.999995887, 0.0202673767, -0.999880552, -0.000153110537, -0.99989754, -0.0202635806, 0.000435784314)) | |
785 | Blade3Weld=weld(Blade3,Handle,Blade3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000393867493, -7.04902267, 0.0776619911, 0.000349696755, -0.000144917256, 0.999996126, -0.0201287661, 0.999883413, 0.000152739129, -0.999900341, -0.0201249551, 0.000348230271)) | |
786 | Blade4Weld=weld(Blade4,Handle,Blade4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.345176935, -7.19837856, -0.00014591217, 0.999677896, 0.0291204583, 2.30636306e-005, -0.0291243587, 0.999661684, 1.2259512e-005, -2.42160258e-005, -1.21488301e-005, 0.999996483)) | |
787 | Blade5Weld=weld(Blade5,Handle,Blade5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0613408089, -6.66463852, -0.000297546387, 1.00008607, 0.00572431087, 2.27986129e-005, -0.00572792487, 1.0000695, 1.18127937e-005, -2.42688948e-005, -1.11469435e-005, 0.999996006)) | |
788 | Blade6Weld=weld(Blade6,Handle,Blade6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.830851674, -8.54523373, -0.000294685364, 0.996045947, 0.0899090096, 2.84904072e-005, -0.0899123698, 0.996036172, 1.33077137e-005, -2.80210697e-005, -1.52425491e-005, 0.999996364)) | |
789 | Blade7Weld=weld(Blade7,Handle,Blade7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.112965345, 1.97472, 0.000140190125, 0.999840677, -0.0226954129, -9.64816718e-005, -0.0226928778, -0.999828398, -2.81470602e-006, -9.53230483e-005, 4.35582297e-006, -0.999996305)) | |
790 | Blade8Weld=weld(Blade8,Handle,Blade8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.385430336, -8.07253075, -0.000302314758, 0.997883201, 0.0665779561, 2.74792801e-005, -0.0665825158, 0.997867644, 1.30069748e-005, -2.8088989e-005, -1.40299308e-005, 0.999996066)) | |
791 | HitboxWeld=weld(Hitbox,Handle,Hitbox,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.106161118, -5.41620255, -0.000254631042, 1.00046325, -6.90831803e-006, -1.75475213e-006, -3.0976953e-006, 1.00042915, 1.63710138e-006, -8.52004405e-007, 7.30804459e-007, 0.999981821)) | |
792 | --[[ | |
793 | HandleWeld=weld(Handle,Torso,Handle,euler(0,0,rad(140))*cf(0,-2.5,0.5)) | |
794 | HandleWeld.Part0 = RightArm | |
795 | HandleWeld.C0 = euler(-rad(90),rad(90),0)*cf(0.95,0,0) | |
796 | ]] | |
797 | local Wing=it("Model",Main) | |
798 | Wing.Name = "Wing" | |
799 | ||
800 | WingBase1=part(3,Wing,0.5,0,bc("Black"),"WingBase1",vt(0.419999987, 0.349999994, 0.349999994)) | |
801 | WingBase2=part(3,Wing,0.5,0,bc("Black"),"WingBase2",vt(0.409999967, 0.349999994, 0.349999994)) | |
802 | WingBase18=part(3,Wing,0.5,0,bc("Black"),"WingBase18",vt(0.349999994, 0.200000003, 0.75000006)) | |
803 | WingBase16=part(3,Wing,0.5,0,bc("Black"),"WingBase16",vt(0.350000054, 0.200000003, 0.300000012)) | |
804 | WingBase13=part(3,Wing,0.5,0,bc("Black"),"WingBase13",vt(0.200000003, 0.349999994, 0.200000003)) | |
805 | WingBase17=part(3,Wing,0.5,0,bc("Black"),"WingBase17",vt(0.349999994, 0.200000003, 0.350000054)) | |
806 | WingBase6=part(3,Wing,0.5,0,bc("Black"),"WingBase6",vt(0.639999986, 0.349999994, 0.349999994)) | |
807 | WingBase19=part(3,Wing,0.5,0,bc("Black"),"WingBase19",vt(0.349999994, 0.200000003, 0.75000006)) | |
808 | WingBase12=part(3,Wing,0.5,0,bc("Black"),"WingBase12",vt(0.349999994, 0.200000003, 0.280000001)) | |
809 | WingBase10=part(3,Wing,0.5,0,bc("Black"),"WingBase10",vt(0.300000012, 0.349999994, 0.270000011)) | |
810 | WingBase14=part(3,Wing,0.5,0,bc("Black"),"WingBase14",vt(0.350000054, 0.209999993, 0.200000003)) | |
811 | WingBase9=part(3,Wing,0.5,0,bc("Black"),"WingBase9",vt(0.289999962, 0.349999994, 0.460000008)) | |
812 | WingBase11=part(3,Wing,0.5,0,bc("Black"),"WingBase11",vt(0.350000054, 0.309999973, 0.400000006)) | |
813 | WingBase5=part(3,Wing,0.5,0,bc("Black"),"WingBase5",vt(0.409999967, 0.349999994, 0.349999994)) | |
814 | WingBase8=part(3,Wing,0.5,0,bc("Black"),"WingBase8",vt(0.879999995, 0.349999994, 0.349999994)) | |
815 | WingBase4=part(3,Wing,0.5,0,bc("Black"),"WingBase4",vt(0.419999987, 0.349999994, 0.349999994)) | |
816 | WingBase15=part(3,Wing,0.5,0,bc("Black"),"WingBase15",vt(0.349999994, 0.200000003, 0.350000054)) | |
817 | WingBase20=part(3,Wing,0.5,0,bc("Black"),"WingBase20",vt(0.350000054, 0.209999993, 0.400000006)) | |
818 | WingBase3=part(3,Wing,0.5,0,bc("Black"),"WingBase3",vt(0.399999976, 0.349999994, 0.349999994)) | |
819 | WingBase7=part(3,Wing,0.5,0,bc("Black"),"WingBase7",vt(1.04999995, 0.349999994, 0.350000024)) | |
820 | Feather1=part(3,Wing,0,0,bc("Black"),"Feather1",vt(0.419999987, 0.349999994, 1.00999999)) | |
821 | Feather2=part(3,Wing,0,0,bc("Black"),"Feather2",vt(0.419999987, 0.349999994, 1.06999993)) | |
822 | Feather3=part(3,Wing,0,0,bc("Black"),"Feather3",vt(0.419999987, 0.349999994, 1.06999993)) | |
823 | Feather4=part(3,Wing,0,0,bc("Black"),"Feather4",vt(0.419999987, 0.349999994, 1.06999993)) | |
824 | Feather5=part(3,Wing,0,0,bc("Black"),"Feather5",vt(0.419999987, 0.349999994, 0.969999969)) | |
825 | Feather6=part(3,Wing,0,0,bc("Black"),"Feather6",vt(0.419999987, 0.349999994, 0.919999957)) | |
826 | Feather7=part(3,Wing,0,0,bc("Black"),"Feather7",vt(0.419999987, 0.349999994, 0.969999969)) | |
827 | Feather8=part(3,Wing,0,0,bc("Black"),"Feather8",vt(0.419999987, 0.349999994, 0.889999986)) | |
828 | Feather9=part(3,Wing,0,0,bc("Black"),"Feather9",vt(0.419999987, 0.349999994, 1.46000004)) | |
829 | Feather10=part(3,Wing,0,0,bc("Black"),"Feather10",vt(0.419999987, 0.349999994, 1.46000004)) | |
830 | Feather11=part(3,Wing,0,0,bc("Black"),"Feather11",vt(0.419999987, 0.349999994, 1.32000005)) | |
831 | Feather12=part(3,Wing,0,0,bc("Black"),"Feather12",vt(0.419999987, 0.349999994, 1.46000004)) | |
832 | Feather13=part(3,Wing,0,0,bc("Black"),"Feather13",vt(0.419999987, 0.349999994, 1.13999999)) | |
833 | Feather14=part(3,Wing,0,0,bc("Black"),"Feather14",vt(0.419999987, 0.349999994, 1.24000001)) | |
834 | Feather15=part(3,Wing,0,0,bc("Black"),"Feather15",vt(0.419999987, 0.349999994, 1.46000004)) | |
835 | Feather16=part(3,Wing,0,0,bc("Black"),"Feather16",vt(0.419999987, 0.349999994, 1.46000004)) | |
836 | Feather17=part(3,Wing,0,0,bc("Black"),"Feather17",vt(0.419999987, 0.349999994, 1.46000004)) | |
837 | Feather18=part(3,Wing,0,0,bc("Black"),"Feather18",vt(0.419999987, 0.349999994, 1.46000004)) | |
838 | Feather19=part(3,Wing,0,0,bc("Black"),"Feather19",vt(0.419999987, 0.349999994, 1.46000004)) | |
839 | Feather20=part(3,Wing,0,0,bc("Black"),"Feather20",vt(0.419999987, 0.349999994, 1.46000004)) | |
840 | Feather21=part(3,Wing,0,0,bc("Black"),"Feather21",vt(0.419999987, 0.349999994, 1.46000004)) | |
841 | Feather22=part(3,Wing,0,0,bc("Black"),"Feather22",vt(0.419999987, 0.349999994, 1.46000004)) | |
842 | Feather23=part(3,Wing,0,0,bc("Black"),"Feather23",vt(0.419999987, 0.349999994, 1.46000004)) | |
843 | Feather24=part(3,Wing,0,0,bc("Black"),"Feather24",vt(0.419999987, 0.349999994, 1.46000004)) | |
844 | Feather25=part(3,Wing,0,0,bc("Black"),"Feather25",vt(0.419999987, 0.349999994, 1.46000004)) | |
845 | Feather26=part(3,Wing,0,0,bc("Black"),"Feather26",vt(0.419999987, 0.349999994, 1.46000004)) | |
846 | Feather27=part(3,Wing,0,0,bc("Black"),"Feather27",vt(0.419999987, 0.349999994, 1.46000004)) | |
847 | Feather28=part(3,Wing,0,0,bc("Black"),"Feather28",vt(0.419999987, 0.349999994, 1.46000004)) | |
848 | Feather29=part(3,Wing,0,0,bc("Black"),"Feather29",vt(0.419999987, 0.349999994, 1.46000004)) | |
849 | Feather30=part(3,Wing,0,0,bc("Black"),"Feather30",vt(0.419999987, 0.349999994, 1.46000004)) | |
850 | Feather31=part(3,Wing,0,0,bc("Black"),"Feather31",vt(0.419999987, 0.349999994, 1.18000007)) | |
851 | Feather32=part(3,Wing,0,0,bc("Black"),"Feather32",vt(0.419999987, 0.349999994, 1.19000006)) | |
852 | Feather33=part(3,Wing,0,0,bc("Black"),"Feather33",vt(0.419999987, 0.349999994, 1.20000005)) | |
853 | ||
854 | WingBase1Mesh=mesh("BlockMesh",WingBase1,nil,nil,vt(1, 0.75, 1)) | |
855 | WingBase2Mesh=mesh("BlockMesh",WingBase2,nil,nil,vt(1, 0.75, 1)) | |
856 | WingBase18Mesh=mesh("SpecialMesh",WingBase18,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
857 | WingBase16Mesh=mesh("SpecialMesh",WingBase16,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
858 | WingBase13Mesh=mesh("BlockMesh",WingBase13,nil,nil,vt(1, 0.75, 1)) | |
859 | WingBase17Mesh=mesh("SpecialMesh",WingBase17,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
860 | WingBase6Mesh=mesh("BlockMesh",WingBase6,nil,nil,vt(1, 0.75, 1)) | |
861 | WingBase19Mesh=mesh("SpecialMesh",WingBase19,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
862 | WingBase12Mesh=mesh("SpecialMesh",WingBase12,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
863 | WingBase10Mesh=mesh("BlockMesh",WingBase10,nil,nil,vt(1, 0.75, 1)) | |
864 | WingBase14Mesh=mesh("SpecialMesh",WingBase14,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
865 | WingBase9Mesh=mesh("BlockMesh",WingBase9,nil,nil,vt(1, 0.75, 1)) | |
866 | WingBase11Mesh=mesh("SpecialMesh",WingBase11,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
867 | WingBase5Mesh=mesh("BlockMesh",WingBase5,nil,nil,vt(1, 0.75, 1)) | |
868 | WingBase8Mesh=mesh("BlockMesh",WingBase8,nil,nil,vt(1, 0.75, 1)) | |
869 | WingBase4Mesh=mesh("BlockMesh",WingBase4,nil,nil,vt(1, 0.75, 1)) | |
870 | WingBase15Mesh=mesh("SpecialMesh",WingBase15,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
871 | WingBase20Mesh=mesh("SpecialMesh",WingBase20,Enum.MeshType.Wedge,"",vt(0.75, 1, 1)) | |
872 | WingBase3Mesh=mesh("BlockMesh",WingBase3,nil,nil,vt(1, 0.75, 1)) | |
873 | WingBase7Mesh=mesh("BlockMesh",WingBase7,nil,nil,vt(1, 0.75, 1)) | |
874 | Feather1Mesh=mesh("SpecialMesh",Feather1,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
875 | Feather2Mesh=mesh("SpecialMesh",Feather2,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
876 | Feather3Mesh=mesh("SpecialMesh",Feather3,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
877 | Feather4Mesh=mesh("SpecialMesh",Feather4,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
878 | Feather5Mesh=mesh("SpecialMesh",Feather5,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
879 | Feather6Mesh=mesh("SpecialMesh",Feather6,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
880 | Feather7Mesh=mesh("SpecialMesh",Feather7,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
881 | Feather8Mesh=mesh("SpecialMesh",Feather8,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
882 | Feather9Mesh=mesh("SpecialMesh",Feather9,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
883 | Feather10Mesh=mesh("SpecialMesh",Feather10,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
884 | Feather11Mesh=mesh("SpecialMesh",Feather11,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
885 | Feather12Mesh=mesh("SpecialMesh",Feather12,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
886 | Feather13Mesh=mesh("SpecialMesh",Feather13,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
887 | Feather14Mesh=mesh("SpecialMesh",Feather14,Enum.MeshType.Sphere,"",vt(1, 0.75, 1)) | |
888 | Feather15Mesh=mesh("SpecialMesh",Feather15,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
889 | Feather16Mesh=mesh("SpecialMesh",Feather16,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
890 | Feather17Mesh=mesh("SpecialMesh",Feather17,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
891 | Feather18Mesh=mesh("SpecialMesh",Feather18,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
892 | Feather19Mesh=mesh("SpecialMesh",Feather19,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
893 | Feather20Mesh=mesh("SpecialMesh",Feather20,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
894 | Feather21Mesh=mesh("SpecialMesh",Feather21,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
895 | Feather22Mesh=mesh("SpecialMesh",Feather22,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
896 | Feather23Mesh=mesh("SpecialMesh",Feather23,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
897 | Feather24Mesh=mesh("SpecialMesh",Feather24,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
898 | Feather25Mesh=mesh("SpecialMesh",Feather25,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
899 | Feather26Mesh=mesh("SpecialMesh",Feather26,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
900 | Feather27Mesh=mesh("SpecialMesh",Feather27,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
901 | Feather28Mesh=mesh("SpecialMesh",Feather28,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
902 | Feather29Mesh=mesh("SpecialMesh",Feather29,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
903 | Feather30Mesh=mesh("SpecialMesh",Feather30,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
904 | Feather31Mesh=mesh("SpecialMesh",Feather31,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
905 | Feather32Mesh=mesh("SpecialMesh",Feather32,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
906 | Feather33Mesh=mesh("SpecialMesh",Feather33,Enum.MeshType.Sphere,"",vt(0.75, 0.5, 1)) | |
907 | ||
908 | WingBase2Weld=weld(WingBase2,WingBase1,WingBase2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.355962753, -5.34057617e-005, -0.0460422039, 0.965922117, -6.4935989e-007, -0.258824944, 9.45273655e-007, 1.00000358, 6.96481266e-007, 0.258822531, -7.75792159e-007, 0.96592319)) | |
909 | WingBase18Weld=weld(WingBase18,WingBase1,WingBase18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-7.82012939e-005, 1.71768296, -0.0596590042, 2.14519696e-006, 1.00000286, 3.59664432e-006, -0.25884521, -2.85406827e-006, 0.965918303, 0.965916634, -2.88861565e-006, 0.258844018)) | |
910 | WingBase16Weld=weld(WingBase16,WingBase1,WingBase16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(6.48498535e-005, 1.31769586, 0.584618092, -3.92836546e-006, -1.00000286, 3.26387226e-006, -0.258847058, 4.23423035e-006, 0.965917826, -0.965916038, 2.8351908e-006, -0.258845866)) | |
911 | WingBase13Weld=weld(WingBase13,WingBase1,WingBase13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.534636021, -5.34057617e-005, 1.50768614, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044)) | |
912 | WingBase17Weld=weld(WingBase17,WingBase1,WingBase17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-9.53674316e-006, 1.31768668, -0.259648323, 2.14519696e-006, 1.00000286, 3.59664432e-006, -0.25884521, -2.85406827e-006, 0.965918303, 0.965916634, -2.88861565e-006, 0.258844018)) | |
913 | WingBase6Weld=weld(WingBase6,WingBase1,WingBase6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.45269644, -7.62939453e-005, -1.00459003, 0.258845925, -2.64582059e-006, -0.965917945, 3.66035738e-006, 1.00000358, -1.67449002e-006, 0.965915799, -2.9591165e-006, 0.258844495)) | |
914 | WingBase19Weld=weld(WingBase19,WingBase1,WingBase19,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(7.82012939e-005, -1.91767323, -0.0596580505, -2.31264426e-006, -1.00000322, -3.57980252e-006, 0.258846998, 2.78636048e-006, -0.965917766, 0.965915859, -3.03169782e-006, 0.258845687)) | |
915 | WingBase12Weld=weld(WingBase12,WingBase1,WingBase12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.86645508e-005, 1.9176805, -1.05459642, 2.20304946e-006, 1.00000322, 3.3807587e-006, -0.25884515, -2.62247454e-006, 0.965918303, 0.965916336, -2.87430998e-006, 0.258843809)) | |
916 | WingBase10Weld=weld(WingBase10,WingBase1,WingBase10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.58458424, -7.2479248e-005, 1.88266897, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044)) | |
917 | WingBase14Weld=weld(WingBase14,WingBase1,WingBase14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-6.86645508e-005, -1.52269363, 0.634617329, 4.18074433e-006, 1.00000322, -3.18485695e-006, 0.25884515, -4.23132315e-006, -0.965918303, -0.965916336, 3.08512517e-006, -0.258843809)) | |
918 | WingBase9Weld=weld(WingBase9,WingBase1,WingBase9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.33960438, -6.67572021e-005, 1.78767776, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044)) | |
919 | WingBase11Weld=weld(WingBase11,WingBase1,WingBase11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.000116348267, 1.86269534, 1.91455078, -3.92937591e-006, -1.00000322, 3.26764257e-006, -0.258847028, 4.24622749e-006, 0.965917766, -0.965915859, 2.8208849e-006, -0.258845717)) | |
920 | WingBase5Weld=weld(WingBase5,WingBase1,WingBase5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.19561648, -7.43865967e-005, -0.672100067, 0.500008821, -2.24392556e-006, -0.866019726, 3.48486537e-006, 1.00000358, -5.31528201e-007, 0.866017342, -2.5930683e-006, 0.500007927)) | |
921 | WingBase8Weld=weld(WingBase8,WingBase1,WingBase8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-2.03245592, -8.01086426e-005, 0.0426003933, 0.837390959, -1.4928147e-006, -0.54660207, 2.30550995e-006, 1.00000358, 7.36536492e-007, 0.546599805, -1.71642284e-006, 0.837391019)) | |
922 | WingBase4Weld=weld(WingBase4,WingBase1,WingBase4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.973057508, -6.29425049e-005, -0.387414217, 0.707102954, -1.74793638e-006, -0.707109332, 2.81738471e-006, 1.00000358, 3.43376826e-007, 0.707106888, -2.07064977e-006, 0.707102656)) | |
923 | WingBase15Weld=weld(WingBase15,WingBase1,WingBase15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(9.53674316e-006, -1.5176872, -0.259640694, -2.31264426e-006, -1.00000322, -3.57980252e-006, 0.258846998, 2.78636048e-006, -0.965917766, 0.965915859, -3.03169782e-006, 0.258845687)) | |
924 | WingBase20Weld=weld(WingBase20,WingBase1,WingBase20,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(6.67572021e-005, 1.91268194, 0.634614944, -3.92937591e-006, -1.00000322, 3.26764257e-006, -0.258847028, 4.24622749e-006, 0.965917766, -0.965915859, 2.8208849e-006, -0.258845717)) | |
925 | WingBase3Weld=weld(WingBase3,WingBase1,WingBase3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.683662415, -5.91278076e-005, -0.18256712, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94631831e-007, 0.50000447, -1.57662748e-006, 0.866020083)) | |
926 | WingBase7Weld=weld(WingBase7,WingBase1,WingBase7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.959616661, -6.29425049e-005, 1.73267627, 0.965918958, 5.23543804e-007, 0.258833051, -2.02715682e-007, 1.00000358, -7.13421912e-007, -0.258834541, 7.17566309e-007, 0.965921044)) | |
927 | Feather1Weld=weld(Feather1,WingBase1,Feather1,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.540187359, -7.05718994e-005, -0.598245144, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94632115e-007, 0.50000447, -1.57662771e-006, 0.866020083)) | |
928 | Feather2Weld=weld(Feather2,WingBase1,Feather2,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.718423367, -7.43865967e-005, -0.832182407, 0.707102954, -1.91576464e-006, -0.707109332, 3.02501803e-006, 1.00000358, 3.13665907e-007, 0.707106888, -2.19646176e-006, 0.707102656)) | |
929 | Feather3Weld=weld(Feather3,WingBase1,Feather3,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.740187645, -7.43865967e-005, -0.622644901, 0.866019964, -1.37188908e-006, -0.500006676, 2.09364907e-006, 1.00000358, 7.94632115e-007, 0.50000447, -1.57662771e-006, 0.866020083)) | |
930 | Feather4Weld=weld(Feather4,WingBase1,Feather4,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.00674868, -8.77380371e-005, -0.832184792, 0.707102954, -1.91576464e-006, -0.707109332, 3.02501803e-006, 1.00000358, 3.13665907e-007, 0.707106888, -2.19646176e-006, 0.707102656)) | |
931 | Feather5Weld=weld(Feather5,WingBase1,Feather5,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.474379539, -5.91278076e-005, -0.418046474, 0.965922058, -7.55705571e-007, -0.258825064, 1.06738821e-006, 1.00000358, 7.41331633e-007, 0.25882259, -8.50720994e-007, 0.965923071)) | |
932 | Feather6Weld=weld(Feather6,WingBase1,Feather6,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.198741913, -5.53131104e-005, -0.270505488, 0.999997318, -1.0920968e-007, -9.23871994e-007, 2.26462532e-007, 1.00000358, 1.83415111e-007, -1.1920929e-006, -6.82173891e-008, 0.999998987)) | |
933 | Feather7Weld=weld(Feather7,WingBase1,Feather7,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.254669189, -6.10351563e-005, -0.357559443, 0.965922058, -7.55705571e-007, -0.258825064, 1.06738821e-006, 1.00000358, 7.41331633e-007, 0.25882259, -8.50720994e-007, 0.965923071)) | |
934 | Feather8Weld=weld(Feather8,WingBase1,Feather8,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.00175094604, -3.05175781e-005, -0.255502999, 0.999997318, -1.0920968e-007, -9.23871994e-007, 2.26462532e-007, 1.00000358, 1.83415111e-007, -1.1920929e-006, -6.82173891e-008, 0.999998987)) | |
935 | Feather9Weld=weld(Feather9,WingBase1,Feather9,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.10341501, -0.000112533569, -2.11767769, 0.02479285, -2.77653771e-006, -0.999691665, 3.23537552e-006, 1.00000358, -2.58485534e-006, 0.999689817, -3.05024196e-006, 0.0247907937)) | |
936 | Feather10Weld=weld(Feather10,WingBase1,Feather10,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.20839906, -0.000104904175, -2.38045979, -0.0195948482, -2.78577659e-006, -0.999807, 3.11053736e-006, 1.00000358, -2.72977104e-006, 0.999805212, -3.04847504e-006, -0.0195969343)) | |
937 | Feather11Weld=weld(Feather11,WingBase1,Feather11,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.28466725, -9.72747803e-005, -1.48626804, 0.344489813, -2.56149156e-006, -0.938789427, 3.70431189e-006, 1.00000358, -1.29701994e-006, 0.938787222, -2.88101978e-006, 0.344488561)) | |
938 | Feather12Weld=weld(Feather12,WingBase1,Feather12,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.45404506, -0.000108718872, -1.65424347, 0.282669187, -2.62445383e-006, -0.959216833, 3.6791389e-006, 1.00000358, -1.57118575e-006, 0.959214747, -2.9399539e-006, 0.282667816)) | |
939 | Feather13Weld=weld(Feather13,WingBase1,Feather13,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.23247051, -9.53674316e-005, -0.984697342, 0.639259934, -2.0823777e-006, -0.76899004, 3.27914222e-006, 1.00000358, 3.57500198e-008, 0.768987298, -2.38069083e-006, 0.639259219)) | |
940 | Feather14Weld=weld(Feather14,WingBase1,Feather14,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.16015279, -8.77380371e-005, -1.32011509, 0.418463826, -2.47104867e-006, -0.908232927, 3.68704877e-006, 1.00000358, -9.60744728e-007, 0.908230603, -2.79198321e-006, 0.418462664)) | |
941 | Feather15Weld=weld(Feather15,WingBase1,Feather15,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.10644126, -0.000137329102, -2.78042984, -0.0195948482, -2.78577659e-006, -0.999807, 3.11053736e-006, 1.00000358, -2.72977104e-006, 0.999805212, -3.04847504e-006, -0.0195969343)) | |
942 | Feather16Weld=weld(Feather16,WingBase1,Feather16,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.18360949, -0.000131607056, -2.594666, 0.0685354769, -2.76265814e-006, -0.997647822, 3.34555079e-006, 1.00000358, -2.43218915e-006, 0.997645974, -3.04614036e-006, 0.0685334802)) | |
943 | Feather17Weld=weld(Feather17,WingBase1,Feather17,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.40957952, -0.000133514404, -2.28203964, 0.221879438, -2.67591008e-006, -0.975073338, 3.6216411e-006, 1.00000358, -1.83167879e-006, 0.975071311, -2.98508553e-006, 0.221877888)) | |
944 | Feather18Weld=weld(Feather18,WingBase1,Feather18,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.12435305, -0.00012588501, -2.29955244, 0.182672456, -2.70384044e-006, -0.983173072, 3.56828878e-006, 1.00000358, -1.99370947e-006, 0.983171165, -3.007749e-006, 0.182670817)) | |
945 | Feather19Weld=weld(Feather19,WingBase1,Feather19,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.770295978, -0.000104904175, -1.73867226, 0.344052047, -2.56197973e-006, -0.938949943, 3.70425846e-006, 1.00000358, -1.29899013e-006, 0.938947797, -2.88148544e-006, 0.344050765)) | |
946 | Feather20Weld=weld(Feather20,WingBase1,Feather20,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.729023933, -8.01086426e-005, -1.25784135, 0.612863302, -2.14008992e-006, -0.790188193, 3.35976074e-006, 1.00000358, -7.82527536e-008, 0.79018569, -2.44365083e-006, 0.612862706)) | |
947 | Feather21Weld=weld(Feather21,WingBase1,Feather21,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.30062783, -0.000102996826, -1.74829721, 0.414175808, -2.47676689e-006, -0.910196245, 3.68953033e-006, 1.00000358, -9.80394589e-007, 0.91019398, -2.79772644e-006, 0.414174676)) | |
948 | Feather22Weld=weld(Feather22,WingBase1,Feather22,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-1.15844178, -0.000110626221, -2.05048847, 0.268546164, -2.63731226e-006, -0.963266253, 3.66859877e-006, 1.00000358, -1.63260677e-006, 0.963264048, -2.95154655e-006, 0.268544674)) | |
949 | Feather23Weld=weld(Feather23,WingBase1,Feather23,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.77013582, -0.000104904175, -1.89136219, 0.260025412, -2.64480036e-006, -0.965601146, 3.66140216e-006, 1.00000358, -1.6694114e-006, 0.96559906, -2.95821246e-006, 0.260023952)) | |
950 | Feather24Weld=weld(Feather24,WingBase1,Feather24,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.884355307, -0.000112533569, -1.56190538, 0.485016644, -2.37426093e-006, -0.874504387, 3.62381297e-006, 1.00000358, -6.54962321e-007, 0.874501944, -2.69298084e-006, 0.485015661)) | |
951 | Feather25Weld=weld(Feather25,WingBase1,Feather25,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.628379941, -9.72747803e-005, -1.47733831, 0.449624032, -2.42765259e-006, -0.893217325, 3.66330869e-006, 1.00000358, -8.17663818e-007, 0.89321506, -2.74798163e-006, 0.449622989)) | |
952 | Feather26Weld=weld(Feather26,WingBase1,Feather26,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.593516827, -9.15527344e-005, -1.09148264, 0.651592493, -2.05413653e-006, -0.758568466, 3.23810764e-006, 1.00000358, 8.80448283e-008, 0.758565724, -2.34970616e-006, 0.651591718)) | |
953 | Feather27Weld=weld(Feather27,WingBase1,Feather27,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.459043741, -6.67572021e-005, -1.0271709, 0.648452342, -2.06140771e-006, -0.76125443, 3.2487651e-006, 1.00000358, 7.47939453e-008, 0.761251688, -2.35769448e-006, 0.648451626)) | |
954 | Feather28Weld=weld(Feather28,WingBase1,Feather28,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.149277449, -7.05718994e-005, -0.906393528, 0.684335113, -1.97486679e-006, -0.729166448, 3.11822487e-006, 1.00000358, 2.23289931e-007, 0.729164004, -2.26219709e-006, 0.684334636)) | |
955 | Feather29Weld=weld(Feather29,WingBase1,Feather29,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.224815845, -7.82012939e-005, -1.00763488, 0.617459416, -2.13029875e-006, -0.786601841, 3.34641459e-006, 1.00000358, -5.82169832e-008, 0.786599398, -2.4330061e-006, 0.61745894)) | |
956 | Feather30Weld=weld(Feather30,WingBase1,Feather30,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.207231283, -6.29425049e-005, -0.737761736, 0.788794637, -1.67079304e-006, -0.614655077, 2.6154537e-006, 1.00000358, 6.02931607e-007, 0.614652693, -1.92026801e-006, 0.788794756)) | |
957 | Feather31Weld=weld(Feather31,WingBase1,Feather31,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(0.0187997818, -5.7220459e-005, -0.673555136, 0.943573236, -9.38967958e-007, -0.33115828, 1.35717062e-006, 1.00000358, 8.12734413e-007, 0.331156015, -1.06879338e-006, 0.94357419)) | |
958 | Feather32Weld=weld(Feather32,WingBase1,Feather32,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.295625687, -6.10351563e-005, -0.791354895, 0.926542044, -1.05369168e-006, -0.376186669, 1.54661279e-006, 1.00000358, 8.34736738e-007, 0.376184434, -1.20439813e-006, 0.92654264)) | |
959 | Feather33Weld=weld(Feather33,WingBase1,Feather33,cf(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),cf(-0.0655574799, -5.7220459e-005, -0.770354033, 0.910740137, -1.14779505e-006, -0.412976056, 1.70568967e-006, 1.00000358, 8.38895687e-007, 0.412973911, -1.31509762e-006, 0.910740376)) | |
960 | ||
961 | WingBase1Weld=weld(WingBase1,Torso,WingBase1,euler(rad(90),0,rad(25))*cf(0.75,0.25,-0.5)) | |
962 | ||
963 | wait(1 / 60) | |
964 | ||
965 | ||
966 | ||
967 | Player = game:GetService("Players").LocalPlayer | |
968 | PlayerGui = Player.PlayerGui | |
969 | Cam = workspace.CurrentCamera | |
970 | Backpack = Player.Backpack | |
971 | Character = Player.Character | |
972 | Humanoid = Character.Humanoid | |
973 | Mouse = Player:GetMouse() | |
974 | RootPart = Character["HumanoidRootPart"] | |
975 | Torso = Character["Torso"] | |
976 | Head = Character["Head"] | |
977 | RightArm = Character["Right Arm"] | |
978 | LeftArm = Character["Left Arm"] | |
979 | RightLeg = Character["Right Leg"] | |
980 | LeftLeg = Character["Left Leg"] | |
981 | RootJoint = RootPart["RootJoint"] | |
982 | Neck = Torso["Neck"] | |
983 | RightShoulder = Torso["Right Shoulder"] | |
984 | LeftShoulder = Torso["Left Shoulder"] | |
985 | RightHip = Torso["Right Hip"] | |
986 | LeftHip = Torso["Left Hip"] | |
987 | ||
988 | IT = Instance.new | |
989 | CF = CFrame.new | |
990 | VT = Vector3.new | |
991 | RAD = math.rad | |
992 | C3 = Color3.new | |
993 | UD2 = UDim2.new | |
994 | BRICKC = BrickColor.new | |
995 | ANGLES = CFrame.Angles | |
996 | EULER = CFrame.fromEulerAnglesXYZ | |
997 | COS = math.cos | |
998 | ACOS = math.acos | |
999 | SIN = math.sin | |
1000 | ASIN = math.asin | |
1001 | ABS = math.abs | |
1002 | MRANDOM = math.random | |
1003 | FLOOR = math.floor | |
1004 | ||
1005 | ||
1006 | ||
1007 | Humanoid.MaxHealth = 1500 | |
1008 | wait() | |
1009 | Humanoid.Health = 1500 | |
1010 | print(Humanoid.Health.."/"..Humanoid.MaxHealth) | |
1011 | ||
1012 | --//=================================\\ | |
1013 | --|| CUSTOMIZATION | |
1014 | --\\=================================// | |
1015 | ||
1016 | Class_Name = "Sephiroth" | |
1017 | Weapon_Name = "Masmune" | |
1018 | ||
1019 | Custom_Colors = { | |
1020 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
1021 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
1022 | ||
1023 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
1024 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
1025 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
1026 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
1027 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
1028 | ||
1029 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
1030 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
1031 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
1032 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
1033 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
1034 | } | |
1035 | ||
1036 | Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar. | |
1037 | Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar. | |
1038 | Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar. | |
1039 | Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar. | |
1040 | Ability_Background_Transparency = 0 --Transparency for the background of the abilities. | |
1041 | Stat_Background_Transparency = 0 --Transparency for the background of the stats. | |
1042 | ||
1043 | Player_Size = 1 --Size of the player. | |
1044 | Animation_Speed = 2 * Player_Size | |
1045 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
1046 | ||
1047 | Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui. | |
1048 | Enable_Stats = false --Enables or disables stats. | |
1049 | Put_Stats_In_Character = false --Places stats in Character. | |
1050 | Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort. | |
1051 | Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort. | |
1052 | Enable_Stagger = false --Enables or disables staggering. | |
1053 | Enable_Stun = false --Enables or disables the stun mechanic. | |
1054 | Enable_Abilities = false --Enables abilites with cooldowns and mana costs. | |
1055 | Enable_Secondary_Bar = false --Enables the secondary mana bar, if true. | |
1056 | ||
1057 | Start_Equipped = false --Starts the player equipped with their weapon. | |
1058 | Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation. | |
1059 | Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon. | |
1060 | Disable_Animator = true --Disables the Animator in the humanoid. | |
1061 | Disable_Animate = true --Disables the Animate script in the character. | |
1062 | Disable_Moving_Arms = false --Keeps the arms from moving around. | |
1063 | Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms. | |
1064 | Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory. | |
1065 | Disable_Jump = false --Disables jumping. | |
1066 | Use_HopperBin = false --Uses a hopperbin to do things. | |
1067 | ||
1068 | Cooldown_1 = 0 --Cooldowns for abilites. | |
1069 | Cooldown_2 = 0 | |
1070 | Cooldown_3 = 0 | |
1071 | Cooldown_4 = 0 | |
1072 | Skill_1_Mana_Cost = 0 --How much mana is required to use the skill. | |
1073 | Skill_2_Mana_Cost = 0 | |
1074 | Skill_3_Mana_Cost = 0 | |
1075 | Skill_4_Mana_Cost = 0 | |
1076 | Max_Mana = 0 --Maximum amount of mana you can have. | |
1077 | Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have. | |
1078 | Mana_Name = "Mana" --Name for the mana bar. | |
1079 | Secondary_Mana_Name = "Block" --Name for the secondary mana bar. | |
1080 | Max_Stun = 1 --Maximum amount of stun you can have. | |
1081 | Recover_Mana = 0 --How much mana you gain. | |
1082 | Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another. | |
1083 | Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another. | |
1084 | Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another. | |
1085 | Recover_Secondary_Mana = 0 --How much secondary mana you gain. | |
1086 | Lose_Stun = 0 --How much stun you lose. | |
1087 | Stun_Wait = 0 --Delay between losing stun. | |
1088 | Mana_Wait = 0 --Delay between gaining mana. | |
1089 | Secondary_Mana_Wait = 0 --Delay between gaining secondary mana. | |
1090 | Menu_Update_Speed = 0 --How fast the Weapon Gui will update. | |
1091 | Constant_Update = false --Removes the delay between updating the Weapon GUI. | |
1092 | Show_Stats = false --Hides or shows stats. | |
1093 | Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78} | |
1094 | ||
1095 | --//=================================\\ | |
1096 | --|| END OF CUSTOMIZATION | |
1097 | --\\=================================// | |
1098 | ||
1099 | ||
1100 | local Snap = Instance.new("Sound",Character.Torso) | |
1101 | Snap.SoundId = "rbxassetid://242076158" | |
1102 | Snap.Looped = false | |
1103 | Snap.Volume = 4 | |
1104 | Snap.Pitch = 1 / Player_Size | |
1105 | ||
1106 | ||
1107 | --//=================================\\ | |
1108 | --|| USEFUL VALUES | |
1109 | --\\=================================// | |
1110 | ||
1111 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1112 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1113 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
1114 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
1115 | local CO1 = 0 | |
1116 | local CO2 = 0 | |
1117 | local CO3 = 0 | |
1118 | local CO4 = 0 | |
1119 | local CHANGEDEFENSE = 0 | |
1120 | local CHANGEDAMAGE = 0 | |
1121 | local CHANGEMOVEMENT = 0 | |
1122 | local ANIM = "Idle" | |
1123 | local ATTACK = false | |
1124 | local EQUIPPED = false | |
1125 | local HOLD = false | |
1126 | local COMBO = 1 | |
1127 | local LASTPOINT = nil | |
1128 | local BLCF = nil | |
1129 | local SCFR = nil | |
1130 | local STAGGERHITANIM = false | |
1131 | local STAGGERANIM = false | |
1132 | local STUNANIM = false | |
1133 | local CRITCHANCENUMBER = 0 | |
1134 | local IDLENUMBER = 0 | |
1135 | local DONUMBER = 0 | |
1136 | local HANDIDLE = false | |
1137 | local SINE = 0 | |
1138 | local CHANGE = 2 / Animation_Speed | |
1139 | local WALKINGANIM = false | |
1140 | local WALK = 0 | |
1141 | local DISABLEJUMPING = false | |
1142 | local HASBEENBLOCKED = false | |
1143 | local STUNDELAYNUMBER = 0 | |
1144 | local MANADELAYNUMBER = 0 | |
1145 | local SECONDARYMANADELAYNUMBER = 0 | |
1146 | local ROBLOXIDLEANIMATION = IT("Animation") | |
1147 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
1148 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1149 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
1150 | local WEAPONGUI = IT("ScreenGui", nil) | |
1151 | WEAPONGUI.Name = "Weapon GUI" | |
1152 | local WEAPONTOOL = IT("HopperBin", nil) | |
1153 | WEAPONTOOL.Name = Weapon_Name | |
1154 | local Weapon = IT("Model") | |
1155 | Weapon.Name = Weapon_Name | |
1156 | local Effects = IT("Folder", Weapon) | |
1157 | Effects.Name = "Effects" | |
1158 | local ANIMATOR = Humanoid.Animator | |
1159 | local ANIMATE = Character.Animate | |
1160 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
1161 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
1162 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
1163 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
1164 | ||
1165 | --//=================================\\ | |
1166 | --\\=================================// | |
1167 | ||
1168 | ||
1169 | ||
1170 | ||
1171 | ||
1172 | --//=================================\\ | |
1173 | --|| STATS | |
1174 | --\\=================================// | |
1175 | ||
1176 | if Character:FindFirstChild("Stats") ~= nil then | |
1177 | Character:FindFirstChild("Stats").Parent = nil | |
1178 | end | |
1179 | ||
1180 | local Stats = IT("Folder", nil) | |
1181 | Stats.Name = "Stats" | |
1182 | local ChangeStat = IT("Folder", Stats) | |
1183 | ChangeStat.Name = "ChangeStat" | |
1184 | local Defense = IT("NumberValue", Stats) | |
1185 | Defense.Name = "Defense" | |
1186 | Defense.Value = 1 | |
1187 | local Movement = IT("NumberValue", Stats) | |
1188 | Movement.Name = "Movement" | |
1189 | Movement.Value = 1 | |
1190 | local Damage = IT("NumberValue", Stats) | |
1191 | Damage.Name = "Damage" | |
1192 | Damage.Value = 1 | |
1193 | local Mana = IT("NumberValue", Stats) | |
1194 | Mana.Name = "Mana" | |
1195 | Mana.Value = 0 | |
1196 | local SecondaryMana = IT("NumberValue", Stats) | |
1197 | SecondaryMana.Name = "SecondaryMana" | |
1198 | SecondaryMana.Value = 0 | |
1199 | local CanCrit = IT("BoolValue", Stats) | |
1200 | CanCrit.Name = "CanCrit" | |
1201 | CanCrit.Value = false | |
1202 | local CritChance = IT("NumberValue", Stats) | |
1203 | CritChance.Name = "CritChance" | |
1204 | CritChance.Value = 20 | |
1205 | local CanPenetrateArmor = IT("BoolValue", Stats) | |
1206 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
1207 | CanPenetrateArmor.Value = false | |
1208 | local AntiTeamKill = IT("BoolValue", Stats) | |
1209 | AntiTeamKill.Name = "AntiTeamKill" | |
1210 | AntiTeamKill.Value = false | |
1211 | local Rooted = IT("BoolValue", Stats) | |
1212 | Rooted.Name = "Rooted" | |
1213 | Rooted.Value = false | |
1214 | local Block = IT("BoolValue", Stats) | |
1215 | Block.Name = "Block" | |
1216 | Block.Value = false | |
1217 | local RecentEnemy = IT("ObjectValue", Stats) | |
1218 | RecentEnemy.Name = "RecentEnemy" | |
1219 | RecentEnemy.Value = nil | |
1220 | local StaggerHit = IT("BoolValue", Stats) | |
1221 | StaggerHit.Name = "StaggerHit" | |
1222 | StaggerHit.Value = false | |
1223 | local Stagger = IT("BoolValue", Stats) | |
1224 | Stagger.Name = "Stagger" | |
1225 | Stagger.Value = false | |
1226 | local Stun = IT("BoolValue", Stats) | |
1227 | Stun.Name = "Stun" | |
1228 | Stun.Value = false | |
1229 | local StunValue = IT("NumberValue", Stats) | |
1230 | StunValue.Name = "StunValue" | |
1231 | StunValue.Value = 0 | |
1232 | ||
1233 | if Enable_Stats == true and Put_Stats_In_Character == true then | |
1234 | Stats.Parent = Character | |
1235 | end | |
1236 | ||
1237 | --//=================================\\ | |
1238 | --\\=================================// | |
1239 | ||
1240 | ||
1241 | ||
1242 | ||
1243 | ||
1244 | --//=================================\\ | |
1245 | --|| DEBUFFS / BUFFS | |
1246 | --\\=================================// | |
1247 | ||
1248 | local DEFENSECHANGE1 = IT("NumberValue", ChangeStat) | |
1249 | DEFENSECHANGE1.Name = "ChangeDefense" | |
1250 | DEFENSECHANGE1.Value = 0 | |
1251 | ||
1252 | local MOVEMENTCHANGE1 = IT("NumberValue", nil) | |
1253 | MOVEMENTCHANGE1.Name = "ChangeMovement" | |
1254 | MOVEMENTCHANGE1.Value = 0 | |
1255 | ||
1256 | --//=================================\\ | |
1257 | --\\=================================// | |
1258 | ||
1259 | ||
1260 | ||
1261 | ||
1262 | ||
1263 | --//=================================\\ | |
1264 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
1265 | --\\=================================// | |
1266 | ||
1267 | ArtificialHB = Instance.new("BindableEvent", script) | |
1268 | ArtificialHB.Name = "ArtificialHB" | |
1269 | ||
1270 | script:WaitForChild("ArtificialHB") | |
1271 | ||
1272 | frame = Frame_Speed | |
1273 | tf = 0 | |
1274 | allowframeloss = false | |
1275 | tossremainder = false | |
1276 | lastframe = tick() | |
1277 | script.ArtificialHB:Fire() | |
1278 | ||
1279 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1280 | tf = tf + s | |
1281 | if tf >= frame then | |
1282 | if allowframeloss then | |
1283 | script.ArtificialHB:Fire() | |
1284 | lastframe = tick() | |
1285 | else | |
1286 | for i = 1, math.floor(tf / frame) do | |
1287 | script.ArtificialHB:Fire() | |
1288 | end | |
1289 | lastframe = tick() | |
1290 | end | |
1291 | if tossremainder then | |
1292 | tf = 0 | |
1293 | else | |
1294 | tf = tf - frame * math.floor(tf / frame) | |
1295 | end | |
1296 | end | |
1297 | end) | |
1298 | ||
1299 | --//=================================\\ | |
1300 | --\\=================================// | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | --//=================================\\ | |
1307 | --|| SOME FUNCTIONS | |
1308 | --\\=================================// | |
1309 | ||
1310 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1311 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1312 | end | |
1313 | ||
1314 | function PositiveAngle(NUMBER) | |
1315 | if NUMBER >= 0 then | |
1316 | NUMBER = 0 | |
1317 | end | |
1318 | return NUMBER | |
1319 | end | |
1320 | ||
1321 | function NegativeAngle(NUMBER) | |
1322 | if NUMBER <= 0 then | |
1323 | NUMBER = 0 | |
1324 | end | |
1325 | return NUMBER | |
1326 | end | |
1327 | ||
1328 | function Swait(NUMBER) | |
1329 | if NUMBER == 0 or NUMBER == nil then | |
1330 | ArtificialHB.Event:wait() | |
1331 | else | |
1332 | for i = 1, NUMBER do | |
1333 | ArtificialHB.Event:wait() | |
1334 | end | |
1335 | end | |
1336 | end | |
1337 | ||
1338 | function QuaternionFromCFrame(cf) | |
1339 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1340 | local trace = m00 + m11 + m22 | |
1341 | if trace > 0 then | |
1342 | local s = math.sqrt(1 + trace) | |
1343 | local recip = 0.5 / s | |
1344 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1345 | else | |
1346 | local i = 0 | |
1347 | if m11 > m00 then | |
1348 | i = 1 | |
1349 | end | |
1350 | if m22 > (i == 0 and m00 or m11) then | |
1351 | i = 2 | |
1352 | end | |
1353 | if i == 0 then | |
1354 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1355 | local recip = 0.5 / s | |
1356 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1357 | elseif i == 1 then | |
1358 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1359 | local recip = 0.5 / s | |
1360 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1361 | elseif i == 2 then | |
1362 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1363 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1364 | end | |
1365 | end | |
1366 | end | |
1367 | ||
1368 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1369 | local xs, ys, zs = x + x, y + y, z + z | |
1370 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1371 | local xx = x * xs | |
1372 | local xy = x * ys | |
1373 | local xz = x * zs | |
1374 | local yy = y * ys | |
1375 | local yz = y * zs | |
1376 | local zz = z * zs | |
1377 | 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)) | |
1378 | end | |
1379 | ||
1380 | function QuaternionSlerp(a, b, t) | |
1381 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1382 | local startInterp, finishInterp; | |
1383 | if cosTheta >= 0.0001 then | |
1384 | if (1 - cosTheta) > 0.0001 then | |
1385 | local theta = ACOS(cosTheta) | |
1386 | local invSinTheta = 1 / SIN(theta) | |
1387 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1388 | finishInterp = SIN(t * theta) * invSinTheta | |
1389 | else | |
1390 | startInterp = 1 - t | |
1391 | finishInterp = t | |
1392 | end | |
1393 | else | |
1394 | if (1 + cosTheta) > 0.0001 then | |
1395 | local theta = ACOS(-cosTheta) | |
1396 | local invSinTheta = 1 / SIN(theta) | |
1397 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1398 | finishInterp = SIN(t * theta) * invSinTheta | |
1399 | else | |
1400 | startInterp = t - 1 | |
1401 | finishInterp = t | |
1402 | end | |
1403 | end | |
1404 | 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 | |
1405 | end | |
1406 | ||
1407 | function Clerp(a, b, t) | |
1408 | local qa = {QuaternionFromCFrame(a)} | |
1409 | local qb = {QuaternionFromCFrame(b)} | |
1410 | local ax, ay, az = a.x, a.y, a.z | |
1411 | local bx, by, bz = b.x, b.y, b.z | |
1412 | local _t = 1 - t | |
1413 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1414 | end | |
1415 | ||
1416 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1417 | local frame = IT("Frame") | |
1418 | frame.BackgroundTransparency = TRANSPARENCY | |
1419 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1420 | frame.Position = POSITION | |
1421 | frame.Size = SIZE | |
1422 | frame.BackgroundColor3 = COLOR | |
1423 | frame.BorderColor3 = BORDERCOLOR | |
1424 | frame.Name = NAME | |
1425 | frame.Parent = PARENT | |
1426 | return frame | |
1427 | end | |
1428 | ||
1429 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1430 | local label = IT("TextLabel") | |
1431 | label.BackgroundTransparency = 1 | |
1432 | label.Size = UD2(1, 0, 1, 0) | |
1433 | label.Position = UD2(0, 0, 0, 0) | |
1434 | label.TextColor3 = C3(255, 255, 255) | |
1435 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1436 | label.TextTransparency = TRANSPARENCY | |
1437 | label.FontSize = TEXTFONTSIZE | |
1438 | label.Font = TEXTFONT | |
1439 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1440 | label.TextScaled = true | |
1441 | label.Text = TEXT | |
1442 | label.Name = NAME | |
1443 | label.Parent = PARENT | |
1444 | return label | |
1445 | end | |
1446 | ||
1447 | function NoOutlines(PART) | |
1448 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1449 | end | |
1450 | ||
1451 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
1452 | local NEWPART = IT("Part") | |
1453 | NEWPART.formFactor = FORMFACTOR | |
1454 | NEWPART.Reflectance = REFLECTANCE | |
1455 | NEWPART.Transparency = TRANSPARENCY | |
1456 | NEWPART.CanCollide = false | |
1457 | NEWPART.Locked = true | |
1458 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1459 | NEWPART.Name = NAME | |
1460 | NEWPART.Size = SIZE | |
1461 | NEWPART.Position = Torso.Position | |
1462 | NoOutlines(NEWPART) | |
1463 | NEWPART.Material = MATERIAL | |
1464 | NEWPART:BreakJoints() | |
1465 | NEWPART.Parent = PARENT | |
1466 | return NEWPART | |
1467 | end | |
1468 | ||
1469 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1470 | local NEWMESH = IT(MESH) | |
1471 | if MESH == "SpecialMesh" then | |
1472 | NEWMESH.MeshType = MESHTYPE | |
1473 | if MESHID ~= "nil" and MESHID ~= "" then | |
1474 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1475 | end | |
1476 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1477 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1478 | end | |
1479 | end | |
1480 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1481 | NEWMESH.Scale = SCALE | |
1482 | NEWMESH.Parent = PARENT | |
1483 | return NEWMESH | |
1484 | end | |
1485 | ||
1486 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1487 | local NEWWELD = IT(TYPE) | |
1488 | NEWWELD.Part0 = PART0 | |
1489 | NEWWELD.Part1 = PART1 | |
1490 | NEWWELD.C0 = C0 | |
1491 | NEWWELD.C1 = C1 | |
1492 | NEWWELD.Parent = PARENT | |
1493 | return NEWWELD | |
1494 | end | |
1495 | ||
1496 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
1497 | coroutine.resume(coroutine.create(function() | |
1498 | local NEWSOUND = IT("Sound", PARENT) | |
1499 | NEWSOUND.Volume = VOLUME | |
1500 | NEWSOUND.Pitch = PITCH | |
1501 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1502 | Swait() | |
1503 | NEWSOUND:play() | |
1504 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
1505 | end)) | |
1506 | end | |
1507 | ||
1508 | function CFrameFromTopBack(at, top, back) | |
1509 | local right = top:Cross(back) | |
1510 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1511 | end | |
1512 | ||
1513 | function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME) | |
1514 | local MAGNITUDE = (POSITION1 - POSITION2).magnitude | |
1515 | local CURRENTPOSITION = POSITION1 | |
1516 | local LIGHTNINGOFFSET = {-OFFSET, OFFSET} | |
1517 | coroutine.resume(coroutine.create(function() | |
1518 | for i = 1, MULTIPLIERTIME do | |
1519 | local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME)) | |
1520 | LIGHTNINGPART.Anchored = true | |
1521 | local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)]) | |
1522 | local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2 | |
1523 | if MULTIPLIERTIME == i then | |
1524 | local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude | |
1525 | LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1) | |
1526 | LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2) | |
1527 | else | |
1528 | LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2) | |
1529 | end | |
1530 | CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p | |
1531 | game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME) | |
1532 | coroutine.resume(coroutine.create(function() | |
1533 | while LIGHTNINGPART.Transparency ~= 1 do | |
1534 | --local StartTransparency = tra | |
1535 | for i=0, 1, LASTINGTIME do | |
1536 | Swait() | |
1537 | LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME) | |
1538 | end | |
1539 | end | |
1540 | end)) | |
1541 | Swait(LIGHTNINGDELAY / Animation_Speed) | |
1542 | end | |
1543 | end)) | |
1544 | end | |
1545 | ||
1546 | function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1547 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1548 | EFFECTPART.Anchored = true | |
1549 | EFFECTPART.CFrame = CFRAME | |
1550 | local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1551 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1552 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1553 | for i = 0, 1, delay do | |
1554 | Swait() | |
1555 | PART.CFrame = PART.CFrame * ROTATION | |
1556 | PART.Transparency = i | |
1557 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1558 | end | |
1559 | PART.Parent = nil | |
1560 | end), EFFECTPART, EFFECTMESH) | |
1561 | end | |
1562 | ||
1563 | function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1564 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1565 | EFFECTPART.Anchored = true | |
1566 | EFFECTPART.CFrame = CFRAME | |
1567 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1568 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1569 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1570 | for i = 0, 1, delay do | |
1571 | Swait() | |
1572 | PART.CFrame = PART.CFrame * ROTATION | |
1573 | PART.Transparency = i | |
1574 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1575 | end | |
1576 | PART.Parent = nil | |
1577 | end), EFFECTPART, EFFECTMESH) | |
1578 | end | |
1579 | ||
1580 | function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1581 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1582 | EFFECTPART.Anchored = true | |
1583 | EFFECTPART.CFrame = CFRAME | |
1584 | local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1585 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1586 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1587 | for i = 0, 1, delay do | |
1588 | Swait() | |
1589 | PART.CFrame = PART.CFrame * ROTATION | |
1590 | PART.Transparency = i | |
1591 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1592 | end | |
1593 | PART.Parent = nil | |
1594 | end), EFFECTPART, EFFECTMESH) | |
1595 | end | |
1596 | ||
1597 | function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1598 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1599 | EFFECTPART.Anchored = true | |
1600 | EFFECTPART.CFrame = CFRAME | |
1601 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1602 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1603 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1604 | for i = 0, 1, delay do | |
1605 | Swait() | |
1606 | PART.CFrame = PART.CFrame * ROTATION | |
1607 | PART.Transparency = i | |
1608 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1609 | end | |
1610 | PART.Parent = nil | |
1611 | end), EFFECTPART, EFFECTMESH) | |
1612 | end | |
1613 | ||
1614 | function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1615 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1616 | EFFECTPART.Anchored = true | |
1617 | EFFECTPART.CFrame = CFRAME | |
1618 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1619 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1620 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1621 | for i = 0, 1, delay do | |
1622 | Swait() | |
1623 | PART.CFrame = PART.CFrame * ROTATION | |
1624 | PART.Transparency = i | |
1625 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1626 | end | |
1627 | PART.Parent = nil | |
1628 | end), EFFECTPART, EFFECTMESH) | |
1629 | end | |
1630 | ||
1631 | function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1632 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1633 | EFFECTPART.Anchored = true | |
1634 | EFFECTPART.CFrame = CFRAME | |
1635 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size)) | |
1636 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1637 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1638 | for i = 0, 1, delay do | |
1639 | Swait() | |
1640 | PART.CFrame = PART.CFrame * ROTATION | |
1641 | PART.Transparency = i | |
1642 | MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z)) | |
1643 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1644 | end | |
1645 | PART.Parent = nil | |
1646 | end), EFFECTPART, EFFECTMESH) | |
1647 | end | |
1648 | ||
1649 | function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1650 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1651 | EFFECTPART.Anchored = true | |
1652 | EFFECTPART.CFrame = CFRAME | |
1653 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1654 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1655 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1656 | for i = 0, 1, delay do | |
1657 | Swait() | |
1658 | PART.CFrame = PART.CFrame * ROTATION | |
1659 | PART.Transparency = i | |
1660 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1661 | end | |
1662 | PART.Parent = nil | |
1663 | end), EFFECTPART, EFFECTMESH) | |
1664 | end | |
1665 | ||
1666 | function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1667 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1668 | EFFECTPART.Anchored = true | |
1669 | EFFECTPART.CFrame = CFRAME | |
1670 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1671 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1672 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1673 | for i = 0, 1, delay do | |
1674 | Swait() | |
1675 | PART.CFrame = PART.CFrame * ROTATION | |
1676 | PART.Transparency = i | |
1677 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1678 | end | |
1679 | PART.Parent = nil | |
1680 | end), EFFECTPART, EFFECTMESH) | |
1681 | end | |
1682 | ||
1683 | function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1684 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1685 | EFFECTPART.Anchored = true | |
1686 | EFFECTPART.CFrame = CFRAME | |
1687 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1688 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1689 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1690 | for i = 0, 1, delay do | |
1691 | Swait() | |
1692 | PART.CFrame = PART.CFrame * ROTATION | |
1693 | PART.Transparency = i | |
1694 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1695 | end | |
1696 | PART.Parent = nil | |
1697 | end), EFFECTPART, EFFECTMESH) | |
1698 | end | |
1699 | ||
1700 | function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1701 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1702 | EFFECTPART.Anchored = true | |
1703 | EFFECTPART.CFrame = CFRAME | |
1704 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1705 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1706 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1707 | for i = 0, 1, delay do | |
1708 | Swait() | |
1709 | PART.CFrame = PART.CFrame * ROTATION | |
1710 | PART.Transparency = i | |
1711 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1712 | end | |
1713 | PART.Parent = nil | |
1714 | end), EFFECTPART, EFFECTMESH) | |
1715 | end | |
1716 | ||
1717 | function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1718 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1719 | EFFECTPART.Anchored = true | |
1720 | EFFECTPART.CFrame = CFRAME | |
1721 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1722 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1723 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1724 | for i = 0, 1, delay do | |
1725 | Swait() | |
1726 | PART.CFrame = PART.CFrame * ROTATION | |
1727 | PART.Transparency = i | |
1728 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1729 | end | |
1730 | PART.Parent = nil | |
1731 | end), EFFECTPART, EFFECTMESH) | |
1732 | end | |
1733 | ||
1734 | function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1735 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1736 | EFFECTPART.Anchored = true | |
1737 | EFFECTPART.CFrame = CFRAME | |
1738 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1739 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1740 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1741 | for i = 0, 1, delay do | |
1742 | Swait() | |
1743 | PART.CFrame = PART.CFrame * ROTATION | |
1744 | PART.Transparency = i | |
1745 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1746 | end | |
1747 | PART.Parent = nil | |
1748 | end), EFFECTPART, EFFECTMESH) | |
1749 | end | |
1750 | ||
1751 | function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay) | |
1752 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1753 | EFFECTPART.Anchored = true | |
1754 | EFFECTPART.CFrame = CFRAME | |
1755 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size) | |
1756 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1757 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1758 | for i = 0, 1, delay do | |
1759 | Swait() | |
1760 | PART.CFrame = PART.CFrame * ROTATION | |
1761 | PART.Transparency = i | |
1762 | MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size) | |
1763 | end | |
1764 | PART.Parent = nil | |
1765 | end), EFFECTPART, EFFECTMESH) | |
1766 | end | |
1767 | ||
1768 | function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay) | |
1769 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT()) | |
1770 | EFFECTPART.Anchored = true | |
1771 | EFFECTPART.CFrame = CFRAME | |
1772 | local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size) | |
1773 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1774 | local XVALUE = MRANDOM() | |
1775 | local YVALUE = MRANDOM() | |
1776 | local ZVALUE = MRANDOM() | |
1777 | coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE) | |
1778 | for i = 0, 1, delay do | |
1779 | Swait() | |
1780 | PART.CFrame = PART.CFrame * ROTATION | |
1781 | PART.Transparency = i | |
1782 | THEXVALUE = THEXVALUE - 0.1 * (delay * 10) | |
1783 | THEYVALUE = THEYVALUE - 0.1 * (delay * 10) | |
1784 | THEZVALUE = THEZVALUE - 0.1 * (delay * 10) | |
1785 | MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size) | |
1786 | end | |
1787 | PART.Parent = nil | |
1788 | end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE) | |
1789 | end | |
1790 | ||
1791 | function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay) | |
1792 | local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude | |
1793 | if MAGNITUDECFRAME > (1 / 100) then | |
1794 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1)) | |
1795 | EFFECTPART.Anchored = true | |
1796 | EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0) | |
1797 | local THEMESHTYPE = "BlockMesh" | |
1798 | if MESHTYPE == "Cylinder" then | |
1799 | THEMESHTYPE = "CylinderMesh" | |
1800 | end | |
1801 | local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0)) | |
1802 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1803 | coroutine.resume(coroutine.create(function(PART, MESH) | |
1804 | for i = 0, 1, delay do | |
1805 | Swait() | |
1806 | PART.CFrame = PART.CFrame * ROTATION | |
1807 | PART.Transparency = i | |
1808 | MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size) | |
1809 | end | |
1810 | PART.Parent = nil | |
1811 | end), EFFECTPART, EFFECTMESH) | |
1812 | end | |
1813 | end | |
1814 | ||
1815 | function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay) | |
1816 | local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT()) | |
1817 | EFFECTPART.Anchored = true | |
1818 | EFFECTPART.CFrame = CFRAME | |
1819 | local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0)) | |
1820 | game:GetService("Debris"):AddItem(EFFECTPART, 10) | |
1821 | local THELASTPOINT = CFRAME | |
1822 | coroutine.resume(coroutine.create(function(PART) | |
1823 | for i = 1, DURATION do | |
1824 | Swait() | |
1825 | PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0) | |
1826 | TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay) | |
1827 | THELASTPOINT = PART.CFrame | |
1828 | end | |
1829 | PART.Parent = nil | |
1830 | end), EFFECTPART) | |
1831 | end | |
1832 | ||
1833 | --local list={} | |
1834 | function Triangle(Color, Material, a, b, c, delay) | |
1835 | local edge1 = (c - a):Dot((b - a).unit) | |
1836 | local edge2 = (a - b):Dot((c - b).unit) | |
1837 | local edge3 = (b - c):Dot((a - c).unit) | |
1838 | if edge1 <= (b - a).magnitude and edge1 >= 0 then | |
1839 | a, b, c=a, b, c | |
1840 | elseif edge2 <= (c - b).magnitude and edge2 >= 0 then | |
1841 | a, b, c=b, c, a | |
1842 | elseif edge3 <= (a - c).magnitude and edge3 >= 0 then | |
1843 | a, b, c=c, a, b | |
1844 | else | |
1845 | assert(false, "unreachable") | |
1846 | end | |
1847 | local len1 = (c - a):Dot((b - a).unit) | |
1848 | local len2 = (b - a).magnitude - len1 | |
1849 | local width = (a + (b - a).unit * len1 - c).magnitude | |
1850 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit) | |
1851 | if len1 > 1 / 100 then | |
1852 | local sz = VT(0.2, width, len1) | |
1853 | local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz) | |
1854 | local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0)) | |
1855 | w1.Anchored = true | |
1856 | w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2) | |
1857 | coroutine.resume(coroutine.create(function() | |
1858 | for i = 0.5, 1, delay * (2 / Animation_Speed) do | |
1859 | Swait() | |
1860 | w1.Transparency = i | |
1861 | end | |
1862 | w1.Parent = nil | |
1863 | end)) | |
1864 | game:GetService("Debris"):AddItem(w1, 10) | |
1865 | --table.insert(list, w1) | |
1866 | end | |
1867 | if len2 > 1 / 100 then | |
1868 | local sz = VT(0.2, width, len2) | |
1869 | local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz) | |
1870 | local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0)) | |
1871 | w2.Anchored = true | |
1872 | w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2) | |
1873 | coroutine.resume(coroutine.create(function() | |
1874 | for i = 0.5, 1, delay * (2 / Animation_Speed) do | |
1875 | Swait() | |
1876 | w2.Transparency = i | |
1877 | end | |
1878 | w2.Parent = nil | |
1879 | end)) | |
1880 | game:GetService("Debris"):AddItem(w2, 10) | |
1881 | --table.insert(list, w2) | |
1882 | end | |
1883 | --return unpack(list) | |
1884 | end | |
1885 | ||
1886 | --[[Usage: | |
1887 | local Pos = Part | |
1888 | local Offset = Part.CFrame * CF(0, 0, 0) | |
1889 | local Color = "Institutional white" | |
1890 | local Material = "Neon" | |
1891 | local TheDelay = 0.01 | |
1892 | local Height = 4 | |
1893 | BLCF = Offset | |
1894 | if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then | |
1895 | local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay) | |
1896 | if a then game:GetService("Debris"):AddItem(a, 1) end | |
1897 | if b then game:GetService("Debris"):AddItem(b, 1) end | |
1898 | local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay) | |
1899 | if a then game:GetService("Debris"):AddItem(a, 1) end | |
1900 | if b then game:GetService("Debris"):AddItem(b, 1) end | |
1901 | SCFR = BLCF | |
1902 | elseif not SCFR then | |
1903 | SCFR = BLCF | |
1904 | end | |
1905 | -- | |
1906 | BLCF = nil | |
1907 | SCFR = nil | |
1908 | --]] | |
1909 | ||
1910 | --//=================================\\ | |
1911 | --\\=================================// | |
1912 | ||
1913 | ||
1914 | ||
1915 | ||
1916 | ||
1917 | --//=================================\\ | |
1918 | --|| RESIZE PLAYER | |
1919 | --\\=================================// | |
1920 | ||
1921 | if Player_Size ~= 1 then | |
1922 | RootPart.Size = RootPart.Size * Player_Size | |
1923 | Torso.Size = Torso.Size * Player_Size | |
1924 | Head.Size = Head.Size * Player_Size | |
1925 | RightArm.Size = RightArm.Size * Player_Size | |
1926 | LeftArm.Size = LeftArm.Size * Player_Size | |
1927 | RightLeg.Size = RightLeg.Size * Player_Size | |
1928 | LeftLeg.Size = LeftLeg.Size * Player_Size | |
1929 | RootJoint.Parent = RootPart | |
1930 | Neck.Parent = Torso | |
1931 | RightShoulder.Parent = Torso | |
1932 | LeftShoulder.Parent = Torso | |
1933 | RightHip.Parent = Torso | |
1934 | LeftHip.Parent = Torso | |
1935 | ||
1936 | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1937 | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1938 | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1939 | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1940 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 | |
1941 | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 | |
1942 | if Disable_Moving_Arms == false then | |
1943 | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
1944 | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
1945 | else | |
1946 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
1947 | LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
1948 | end | |
1949 | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1950 | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1951 | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1952 | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1953 | end | |
1954 | ||
1955 | ||
1956 | --//=================================\\ | |
1957 | --\\=================================// | |
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | --//=================================\\ | |
1964 | --|| WEAPON CREATION | |
1965 | --\\=================================// | |
1966 | ||
1967 | local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Handle", VT(0, 0, 0)) | |
1968 | local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0)) | |
1969 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0)) | |
1970 | ||
1971 | local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Hitbox", VT(0, 0, 0)) | |
1972 | local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0)) | |
1973 | ||
1974 | local AttachmentX = Instance.new("Attachment",HitboxPart) | |
1975 | AttachmentX.CFrame = CFrame.new(0,6 * Player_Size,0) | |
1976 | local AttachmentY = Instance.new("Attachment",HitboxPart) | |
1977 | AttachmentY.CFrame = CFrame.new(0,-3 * Player_Size,0) | |
1978 | local Trail = Instance.new("Trail",HitboxPart) | |
1979 | Trail.Attachment0 = AttachmentX | |
1980 | Trail.Attachment1 = AttachmentY | |
1981 | Trail.Lifetime = 0.5 | |
1982 | Trail.MinLength = 0 | |
1983 | Trail.LightEmission = 1 | |
1984 | Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1985 | Trail.Enabled = false | |
1986 | ||
1987 | local EffectPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Effect Part", VT(0, 0, 0)) | |
1988 | local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, Handle, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0)) | |
1989 | ||
1990 | if Player_Size ~= 1 then | |
1991 | for _, v in pairs (Weapon:GetChildren()) do | |
1992 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
1993 | local p1 = v.Part1 | |
1994 | v.Part1 = nil | |
1995 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
1996 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
1997 | v.Part1 = p1 | |
1998 | elseif v.ClassName == "Part" then | |
1999 | for _, b in pairs (v:GetChildren()) do | |
2000 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
2001 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
2002 | end | |
2003 | end | |
2004 | end | |
2005 | end | |
2006 | end | |
2007 | ||
2008 | for _, c in pairs(Weapon:GetChildren()) do | |
2009 | if c.ClassName == "Part" then | |
2010 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2011 | end | |
2012 | end | |
2013 | for _, c in pairs(Main:GetChildren()) do | |
2014 | if c.ClassName == "Part" then | |
2015 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2016 | end | |
2017 | end | |
2018 | ||
2019 | if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then | |
2020 | HandleWeld.Part0 = RightArm | |
2021 | HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2022 | end | |
2023 | ||
2024 | Weapon.Parent = Character | |
2025 | ||
2026 | Humanoid.Died:connect(function() | |
2027 | ATTACK = true | |
2028 | end) | |
2029 | ||
2030 | print(Class_Name.." loaded.") | |
2031 | ||
2032 | --//=================================\\ | |
2033 | --\\=================================// | |
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | ||
2039 | --//=================================\\ | |
2040 | --|| DAMAGE FUNCTIONS | |
2041 | --\\=================================// | |
2042 | ||
2043 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
2044 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
2045 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
2046 | local BODYGYRO = IT("BodyGyro", STATPART) | |
2047 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
2048 | BODYPOSITION.P = 2000 | |
2049 | BODYPOSITION.D = 100 | |
2050 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
2051 | if LABELTYPE == "Normal" then | |
2052 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
2053 | elseif LABELTYPE == "Debuff" then | |
2054 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
2055 | elseif LABELTYPE == "Interruption" then | |
2056 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
2057 | end | |
2058 | game:GetService("Debris"):AddItem(STATPART ,5) | |
2059 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
2060 | BILLBOARDGUI.Adornee = STATPART | |
2061 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
2062 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
2063 | BILLBOARDGUI.AlwaysOnTop = false | |
2064 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
2065 | TEXTLABEL.BackgroundTransparency = 1 | |
2066 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
2067 | TEXTLABEL.Text = TEXT | |
2068 | TEXTLABEL.Font = "SourceSans" | |
2069 | TEXTLABEL.FontSize="Size42" | |
2070 | TEXTLABEL.TextColor3 = COLOR | |
2071 | TEXTLABEL.TextStrokeTransparency = 0 | |
2072 | TEXTLABEL.TextScaled = true | |
2073 | TEXTLABEL.TextWrapped = true | |
2074 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
2075 | wait(0.2) | |
2076 | for i=1, 5 do | |
2077 | wait() | |
2078 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
2079 | end | |
2080 | wait(1.2) | |
2081 | for i=1, 5 do | |
2082 | wait() | |
2083 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
2084 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
2085 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
2086 | end | |
2087 | THEPART.Parent = nil | |
2088 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
2089 | end | |
2090 | ||
2091 | function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT) | |
2092 | if LOCATION:FindFirstChild("Stats") ~= nil then | |
2093 | if LOCATION.Stats:FindFirstChild("Block") ~= nil then | |
2094 | if LOCATION.Stats:FindFirstChild("Block").Value == true then | |
2095 | return | |
2096 | end | |
2097 | end | |
2098 | if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then | |
2099 | local NewStatChange = IT("NumberValue") | |
2100 | NewStatChange.Value = AMOUNT | |
2101 | if STAT == "Defense" then | |
2102 | NewStatChange.Name = "ChangeDefense" | |
2103 | elseif STAT == "Damage" then | |
2104 | NewStatChange.Name = "ChangeDamage" | |
2105 | elseif STAT == "Movement" then | |
2106 | NewStatChange.Name = "ChangeMovement" | |
2107 | end | |
2108 | if SHOWTHESTAT == true then | |
2109 | if AMOUNT < 0 then | |
2110 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1)) | |
2111 | elseif AMOUNT > 0 then | |
2112 | StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1)) | |
2113 | end | |
2114 | end | |
2115 | if DURATION ~= nil and DURATION ~= 0 then | |
2116 | local StatDuration = IT("NumberValue") | |
2117 | StatDuration.Name = "Duration" | |
2118 | StatDuration.Value = DURATION | |
2119 | StatDuration.Parent = NewStatChange | |
2120 | end | |
2121 | NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat") | |
2122 | end | |
2123 | end | |
2124 | end | |
2125 | ||
2126 | --Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2127 | function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
2128 | if HIT.Parent == nil then | |
2129 | return | |
2130 | end | |
2131 | local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid") | |
2132 | for _, v in pairs(HIT.Parent:GetChildren()) do | |
2133 | if v:IsA("Humanoid") then | |
2134 | HITHUMANOID = v | |
2135 | end | |
2136 | end | |
2137 | if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then | |
2138 | StaggerHit.Value = true | |
2139 | if Play_Hitbox_Hit_Sound == true then | |
2140 | if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then | |
2141 | CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH) | |
2142 | end | |
2143 | end | |
2144 | return | |
2145 | end | |
2146 | if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then | |
2147 | HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid") | |
2148 | end | |
2149 | if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then | |
2150 | HIT = HIT.Parent.Parent:FindFirstChild("Head") | |
2151 | end | |
2152 | if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then | |
2153 | if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then | |
2154 | if HIT.Parent.DebounceHit.Value == true then | |
2155 | return | |
2156 | end | |
2157 | end | |
2158 | if AntiTeamKill.Value == true then | |
2159 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then | |
2160 | if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then | |
2161 | return | |
2162 | end | |
2163 | end | |
2164 | end | |
2165 | if HITEVENWHENDEAD == false then | |
2166 | if HIT.Parent:FindFirstChild("Humanoid") ~= nil then | |
2167 | if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then | |
2168 | return | |
2169 | end | |
2170 | end | |
2171 | end | |
2172 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2173 | if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then | |
2174 | HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN | |
2175 | end | |
2176 | end | |
2177 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2178 | if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then | |
2179 | if STAGGER == true and Enable_Stagger == true then | |
2180 | HIT.Parent.Stats:FindFirstChild("Stagger").Value = true | |
2181 | end | |
2182 | end | |
2183 | end | |
2184 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2185 | if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then | |
2186 | if HIT.Parent.Stats:FindFirstChild("Block").Value == true then | |
2187 | HASBEENBLOCKED = true | |
2188 | if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then | |
2189 | StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255)) | |
2190 | if RANGED ~= true then | |
2191 | if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then | |
2192 | CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH) | |
2193 | end | |
2194 | end | |
2195 | local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block")) | |
2196 | BlockDebounce.Name = "BlockDebounce" | |
2197 | BlockDebounce.Value = true | |
2198 | if RANGED ~= true then | |
2199 | game:GetService("Debris"):AddItem(BlockDebounce, 0.5) | |
2200 | else | |
2201 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1) | |
2202 | end | |
2203 | end | |
2204 | if RANGED ~= true and Enable_Stagger == true then | |
2205 | HIT.Parent.Stats:FindFirstChild("Block").Value = false | |
2206 | Stagger.Value = true | |
2207 | end | |
2208 | return | |
2209 | end | |
2210 | end | |
2211 | end | |
2212 | if DECREASETHESTAT ~= nil then | |
2213 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2214 | IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT) | |
2215 | end | |
2216 | end | |
2217 | local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value | |
2218 | if HIT.Parent:FindFirstChild("Stats") ~= nil then | |
2219 | if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then | |
2220 | if CanPenetrateArmor.Value == true then | |
2221 | DAMAGE = DAMAGE | |
2222 | else | |
2223 | DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value | |
2224 | end | |
2225 | elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then | |
2226 | DAMAGE = DAMAGE | |
2227 | end | |
2228 | end | |
2229 | if CanCrit.Value == true then | |
2230 | CRITCHANCENUMBER = MRANDOM(1, CritChance.Value) | |
2231 | if CRITCHANCENUMBER == 1 then | |
2232 | DAMAGE = DAMAGE * 2 | |
2233 | end | |
2234 | end | |
2235 | DAMAGE = math.floor(DAMAGE) | |
2236 | if HASBEENBLOCKED == false then | |
2237 | HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE * Player_Size | |
2238 | end | |
2239 | if DAMAGE <= 3 and HASBEENBLOCKED == false then | |
2240 | if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then | |
2241 | StaggerHit.Value = true | |
2242 | end | |
2243 | if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then | |
2244 | CreateSound(HITARMORSOUND, HIT, 1, HITARMORSOUNDPITCH) | |
2245 | end | |
2246 | elseif DAMAGE > 3 and HASBEENBLOCKED == false then | |
2247 | if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then | |
2248 | CreateSound(HITPLAYERSOUND, HIT, 1, HITPLAYERSOUNDPITCH) | |
2249 | end | |
2250 | end | |
2251 | if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then | |
2252 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
2253 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0)) | |
2254 | CreateSound("296102734", HIT, 1, 1) | |
2255 | else | |
2256 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(255/255, 220/255, 0)) | |
2257 | end | |
2258 | elseif DAMAGE >= 20 and HASBEENBLOCKED == false then | |
2259 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
2260 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0)) | |
2261 | CreateSound("296102734", HIT, 1, 1) | |
2262 | else | |
2263 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(255/255, 0, 0)) | |
2264 | end | |
2265 | elseif DAMAGE <= 3 and HASBEENBLOCKED == false then | |
2266 | if CanCrit.Value == true and CRITCHANCENUMBER == 1 then | |
2267 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE * Player_Size, C3(200/255, 0, 0)) | |
2268 | CreateSound("296102734", HIT, 1, 1) | |
2269 | else | |
2270 | StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE * Player_Size, C3(225/255, 225/255, 225/255)) | |
2271 | end | |
2272 | end | |
2273 | if TYPE == "Normal" then | |
2274 | local vp = IT("BodyVelocity") | |
2275 | vp.P=500 | |
2276 | vp.maxForce = VT(math.huge, 0, math.huge) | |
2277 | if KNOCKBACKTYPE == 1 then | |
2278 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05 | |
2279 | elseif KNOCKBACKTYPE == 2 then | |
2280 | vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK | |
2281 | end | |
2282 | if KNOCKBACK > 0 and HASBEENBLOCKED == false then | |
2283 | vp.Parent = HIT--.Parent.Torso | |
2284 | end | |
2285 | game:GetService("Debris"):AddItem(vp, 0.5) | |
2286 | end | |
2287 | HASBEENBLOCKED = false | |
2288 | RecentEnemy.Value = HIT.Parent | |
2289 | local DebounceHit = IT("BoolValue", HIT.Parent) | |
2290 | DebounceHit.Name = "DebounceHit" | |
2291 | DebounceHit.Value = true | |
2292 | game:GetService("Debris"):AddItem(DebounceHit, DELAY) | |
2293 | end | |
2294 | end | |
2295 | ||
2296 | Apoc = false | |
2297 | GodSlash = false | |
2298 | ||
2299 | --Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2300 | function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
2301 | --[[if Apoc == true then | |
2302 | Explosions = Instance.new("Explosion", PART) | |
2303 | Explosions.Visible = false | |
2304 | Explosions.BlastPressure = 1000 | |
2305 | Explosions.BlastRadius = 8 | |
2306 | Explosions.Position = PART.Position | |
2307 | Explosions.DestroyJointRadiusPercent = 0 | |
2308 | Explosions.ExplosionType = "CratersAndDebris" | |
2309 | elseif GodSlash == true then | |
2310 | Explosions = Instance.new("Explosion", PART) | |
2311 | Explosions.Visible = false | |
2312 | Explosions.BlastPressure = 1000 | |
2313 | Explosions.BlastRadius = 10 | |
2314 | Explosions.Position = PART.Position | |
2315 | Explosions.DestroyJointRadiusPercent = 0 | |
2316 | Explosions.ExplosionType = "CratersAndDebris" | |
2317 | else | |
2318 | Explosions = Instance.new("Explosion", PART) | |
2319 | Explosions.Visible = false | |
2320 | Explosions.BlastPressure = 1000 | |
2321 | Explosions.BlastRadius = 5 | |
2322 | Explosions.Position = PART.Position | |
2323 | Explosions.DestroyJointRadiusPercent = 0 | |
2324 | Explosions.ExplosionType = "CratersAndDebris" | |
2325 | end]] | |
2326 | for _, c in pairs(workspace:GetChildren()) do | |
2327 | local HUMANOID = c:FindFirstChild("Humanoid") | |
2328 | local HEAD = nil | |
2329 | if HUMANOID ~= nil then | |
2330 | for _, d in pairs(c:GetChildren()) do | |
2331 | if d.ClassName == "Model" and RANGED ~= true then | |
2332 | HEAD = d:FindFirstChild("Hitbox") | |
2333 | if HEAD ~= nil then | |
2334 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
2335 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
2336 | if Play_Hitbox_Hit_Sound == true then | |
2337 | local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
2338 | HitRefpart.Anchored = true | |
2339 | HitRefpart.CFrame = CF(HEAD.Position) | |
2340 | CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH) | |
2341 | end | |
2342 | if Enable_Stagger_Hit == true then | |
2343 | StaggerHit.Value = true | |
2344 | end | |
2345 | end | |
2346 | end | |
2347 | elseif d:IsA"BasePart" then | |
2348 | HEAD = d | |
2349 | if HEAD ~= nil then | |
2350 | local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude | |
2351 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
2352 | DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT) | |
2353 | end | |
2354 | end | |
2355 | end | |
2356 | end | |
2357 | end | |
2358 | end | |
2359 | end | |
2360 | ||
2361 | --Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true) | |
2362 | function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD) | |
2363 | if Player.Neutral == true then | |
2364 | IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
2365 | end | |
2366 | for _, c in pairs(workspace:GetChildren()) do | |
2367 | local HUMANOID = c:FindFirstChild("Humanoid") | |
2368 | local THEHEAD = nil | |
2369 | if HUMANOID ~= nil then | |
2370 | if c:FindFirstChild("Torso") ~= nil then | |
2371 | THEHEAD = c:FindFirstChild("Torso") | |
2372 | elseif c:FindFirstChild("UpperTorso") ~= nil then | |
2373 | THEHEAD = c:FindFirstChild("UpperTorso") | |
2374 | end | |
2375 | if THEHEAD ~= nil then | |
2376 | local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude | |
2377 | print("yes 1") | |
2378 | if APPLYTOOTHERSINSTEAD == true then | |
2379 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then | |
2380 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
2381 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
2382 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
2383 | end | |
2384 | end | |
2385 | end | |
2386 | elseif APPLYTOOTHERSINSTEAD == false then | |
2387 | if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then | |
2388 | if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then | |
2389 | if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then | |
2390 | IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF) | |
2391 | end | |
2392 | end | |
2393 | end | |
2394 | end | |
2395 | end | |
2396 | end | |
2397 | end | |
2398 | end | |
2399 | ||
2400 | --//=================================\\ | |
2401 | --\\=================================// | |
2402 | ||
2403 | ||
2404 | ||
2405 | ||
2406 | ||
2407 | --//=================================\\ | |
2408 | --|| WEAPON GUI | |
2409 | --\\=================================// | |
2410 | ||
2411 | local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar") | |
2412 | local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover") | |
2413 | local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text") | |
2414 | ||
2415 | local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar") | |
2416 | local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover") | |
2417 | local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text") | |
2418 | ||
2419 | local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame") | |
2420 | local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar") | |
2421 | local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text") | |
2422 | ||
2423 | local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar") | |
2424 | local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover") | |
2425 | local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text") | |
2426 | ||
2427 | local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame") | |
2428 | local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text") | |
2429 | ||
2430 | local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame") | |
2431 | local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text") | |
2432 | ||
2433 | local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame") | |
2434 | local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text") | |
2435 | ||
2436 | local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame") | |
2437 | local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame") | |
2438 | local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame") | |
2439 | local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame") | |
2440 | ||
2441 | local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar") | |
2442 | local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar") | |
2443 | local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar") | |
2444 | local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar") | |
2445 | ||
2446 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1") | |
2447 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2") | |
2448 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3") | |
2449 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4") | |
2450 | ||
2451 | if Enable_Gui == true then | |
2452 | WEAPONGUI.Parent = PlayerGui | |
2453 | end | |
2454 | ||
2455 | if Enable_Stats == true and Show_Stats == true then | |
2456 | DEFENSEFRAME.Parent = WEAPONGUI | |
2457 | DAMAGEFRAME.Parent = WEAPONGUI | |
2458 | MOVEMENTFRAME.Parent = WEAPONGUI | |
2459 | end | |
2460 | ||
2461 | if Enable_Secondary_Bar == true then | |
2462 | SECONDARYMANABAR.Parent = WEAPONGUI | |
2463 | end | |
2464 | ||
2465 | if Enable_Abilities == true then | |
2466 | SKILL1FRAME.Parent = WEAPONGUI | |
2467 | SKILL2FRAME.Parent = WEAPONGUI | |
2468 | SKILL3FRAME.Parent = WEAPONGUI | |
2469 | SKILL4FRAME.Parent = WEAPONGUI | |
2470 | end | |
2471 | ||
2472 | if Enable_Stun == true then | |
2473 | STUNFRAME.Parent = WEAPONGUI | |
2474 | end | |
2475 | ||
2476 | function UpdateGUI() | |
2477 | MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2478 | MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2479 | MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]" | |
2480 | HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2481 | HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2482 | HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]" | |
2483 | if Enable_Abilities == true then | |
2484 | SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2485 | SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2486 | SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2487 | SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2488 | SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2489 | SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2490 | SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2491 | SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2492 | end | |
2493 | if Enable_Stats == true and Show_Stats == true then | |
2494 | DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2495 | DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]" | |
2496 | DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2497 | DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]" | |
2498 | MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2499 | MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]" | |
2500 | end | |
2501 | if Enable_Stun == true then | |
2502 | STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2503 | STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2504 | STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]" | |
2505 | end | |
2506 | if Enable_Secondary_Bar == true then | |
2507 | SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2508 | SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update) | |
2509 | SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]" | |
2510 | end | |
2511 | end | |
2512 | ||
2513 | if Enable_Gui == true then | |
2514 | UpdateGUI() | |
2515 | for _, v in pairs (WEAPONGUI:GetChildren()) do | |
2516 | if v.ClassName == "Frame" then | |
2517 | for _, b in pairs (v:GetChildren()) do | |
2518 | if b.ClassName == "TextLabel" then | |
2519 | coroutine.resume(coroutine.create(function(THETEXTLABEL) | |
2520 | wait(Menu_Update_Speed) | |
2521 | for i = 1, 0, -0.1 do | |
2522 | Swait() | |
2523 | THETEXTLABEL.TextTransparency = i | |
2524 | THETEXTLABEL.TextStrokeTransparency = i | |
2525 | end | |
2526 | THETEXTLABEL.TextTransparency = 0 | |
2527 | THETEXTLABEL.TextStrokeTransparency = 0 | |
2528 | end), b) | |
2529 | end | |
2530 | end | |
2531 | end | |
2532 | end | |
2533 | end | |
2534 | ||
2535 | --//=================================\\ | |
2536 | --\\=================================// | |
2537 | ||
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | --//=================================\\ | |
2543 | --|| SKILL FUNCTIONS | |
2544 | --\\=================================// | |
2545 | ||
2546 | function UpdateSkillsAndStuff() | |
2547 | if Mana_Regen_Mode == "1" then | |
2548 | if Mana.Value >= Max_Mana then | |
2549 | Mana.Value = Max_Mana | |
2550 | elseif Mana.Value < 0 then | |
2551 | Mana.Value = 0 | |
2552 | else | |
2553 | if MANADELAYNUMBER <= Mana_Wait then | |
2554 | MANADELAYNUMBER = MANADELAYNUMBER + 1 | |
2555 | else | |
2556 | MANADELAYNUMBER = 0 | |
2557 | Mana.Value = Mana.Value + Recover_Mana | |
2558 | end | |
2559 | end | |
2560 | elseif Mana_Regen_Mode == "2" then | |
2561 | if Mana.Value <= Max_Mana then | |
2562 | Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed | |
2563 | elseif Mana.Value >= Max_Mana then | |
2564 | Mana.Value = Max_Mana | |
2565 | elseif Mana.Value < 0 then | |
2566 | Mana.Value = 0 | |
2567 | end | |
2568 | end | |
2569 | if Enable_Secondary_Bar == true then | |
2570 | if Secondary_Mana_Regen_Mode == "1" then | |
2571 | if SecondaryMana.Value >= Max_Secondary_Mana then | |
2572 | SecondaryMana.Value = Max_Secondary_Mana | |
2573 | elseif SecondaryMana.Value < 0 then | |
2574 | SecondaryMana.Value = 0 | |
2575 | else | |
2576 | if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then | |
2577 | SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1 | |
2578 | else | |
2579 | SECONDARYMANADELAYNUMBER = 0 | |
2580 | SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana | |
2581 | end | |
2582 | end | |
2583 | elseif Secondary_Mana_Regen_Mode == "2" then | |
2584 | if SecondaryMana.Value <= Max_Secondary_Mana then | |
2585 | SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed | |
2586 | elseif SecondaryMana.Value >= Max_Secondary_Mana then | |
2587 | SecondaryMana.Value = Max_Secondary_Mana | |
2588 | elseif SecondaryMana.Value < 0 then | |
2589 | SecondaryMana.Value = 0 | |
2590 | end | |
2591 | end | |
2592 | else | |
2593 | SecondaryMana.Value = 0 | |
2594 | end | |
2595 | if Enable_Stun == true then | |
2596 | if Stun_Lose_Mode == "1" then | |
2597 | if StunValue.Value > Max_Stun then | |
2598 | StunValue.Value = Max_Stun | |
2599 | elseif StunValue.Value <= 0 then | |
2600 | StunValue.Value = 0 | |
2601 | else | |
2602 | if STUNDELAYNUMBER <= Stun_Wait then | |
2603 | STUNDELAYNUMBER = STUNDELAYNUMBER + 1 | |
2604 | else | |
2605 | STUNDELAYNUMBER = 0 | |
2606 | StunValue.Value = StunValue.Value - Lose_Stun | |
2607 | end | |
2608 | end | |
2609 | elseif Stun_Lose_Mode == "2" then | |
2610 | if StunValue.Value <= Max_Stun and StunValue.Value > 0 then | |
2611 | StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed | |
2612 | elseif StunValue.Value > Max_Stun then | |
2613 | StunValue.Value = Max_Stun | |
2614 | elseif StunValue.Value <= 0 then | |
2615 | StunValue.Value = 0 | |
2616 | end | |
2617 | end | |
2618 | else | |
2619 | StunValue.Value = 0 | |
2620 | end | |
2621 | if Enable_Abilities == true then | |
2622 | if CO1 <= Cooldown_1 then | |
2623 | CO1 = CO1 + (1 / 30) / Animation_Speed | |
2624 | elseif CO1 >= Cooldown_1 then | |
2625 | CO1 = Cooldown_1 | |
2626 | end | |
2627 | if CO2 <= Cooldown_2 then | |
2628 | CO2 = CO2 + (1 / 30) / Animation_Speed | |
2629 | elseif CO2 >= Cooldown_2 then | |
2630 | CO2 = Cooldown_2 | |
2631 | end | |
2632 | if CO3 <= Cooldown_3 then | |
2633 | CO3 = CO3 + (1 / 30) / Animation_Speed | |
2634 | elseif CO3 >= Cooldown_3 then | |
2635 | CO3 = Cooldown_3 | |
2636 | end | |
2637 | if CO4 <= Cooldown_4 then | |
2638 | CO4 = CO4 + (1 / 30) / Animation_Speed | |
2639 | elseif CO4 >= Cooldown_4 then | |
2640 | CO4 = Cooldown_4 | |
2641 | end | |
2642 | end | |
2643 | end | |
2644 | ||
2645 | --//=================================\\ | |
2646 | --\\=================================// | |
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | --//=================================\\ | |
2653 | --|| ATTACK FUNCTIONS AND STUFF | |
2654 | --\\=================================// | |
2655 | ||
2656 | function EquipWeapon() | |
2657 | --ATTACK = true | |
2658 | DEFENSECHANGE1.Parent = nil | |
2659 | MOVEMENTCHANGE1.Parent = ChangeStat | |
2660 | for i=0, 1, 0.5 / Animation_Speed do | |
2661 | Swait() | |
2662 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2663 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2664 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2665 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2666 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2667 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2668 | end | |
2669 | for i=0, 1, 0.08 / Animation_Speed do | |
2670 | Swait() | |
2671 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2672 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2673 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2674 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2675 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2676 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2677 | end | |
2678 | HandleWeld.Part0 = RightArm | |
2679 | HandleWeld.C0 = CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)) | |
2680 | CreateSound("174884033", HitboxPart, 1, 1.5) | |
2681 | for i=0, 1, 0.5 / Animation_Speed do | |
2682 | Swait() | |
2683 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2684 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2685 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2686 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2687 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2688 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2689 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(90), RAD(0)), 0.3 / Animation_Speed) | |
2690 | end | |
2691 | LASTPOINT = EffectPart.CFrame | |
2692 | for i=0, 1, 0.08 / Animation_Speed do | |
2693 | Swait() | |
2694 | Trail.Enabled = true | |
2695 | LASTPOINT = EffectPart.CFrame | |
2696 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2697 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
2698 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * ANGLES(RAD(-60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2699 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2700 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed) | |
2701 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
2702 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-140), RAD(90), RAD(0)), 0.3 / Animation_Speed) | |
2703 | end | |
2704 | LASTPOINT = nil | |
2705 | Trail.Enabled = false | |
2706 | --ATTACK = false | |
2707 | end | |
2708 | ||
2709 | function UnequipWeapon() | |
2710 | --ATTACK = true | |
2711 | for i=0, 1, 0.5 / Animation_Speed do | |
2712 | Swait() | |
2713 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2714 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2715 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2716 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2717 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2718 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2719 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed) | |
2720 | end | |
2721 | CreateSound("245542809", HitboxPart, 1, 1.2) | |
2722 | for i=0, 1, 0.08 / Animation_Speed do | |
2723 | Swait() | |
2724 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2725 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2726 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(210), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2727 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2728 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2729 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2730 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.05 * Player_Size, -1 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(-27), RAD(0), RAD(-19)) * ANGLES(RAD(0), RAD(110), RAD(0)), 0.3 / Animation_Speed) | |
2731 | end | |
2732 | HandleWeld.Part0 = Torso | |
2733 | HandleWeld.C0 = CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)) | |
2734 | for i=0, 1, 0.5 / Animation_Speed do | |
2735 | Swait() | |
2736 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2737 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-2.5), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2738 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(140), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2739 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2740 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(95), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.3 / Animation_Speed) | |
2741 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.3 / Animation_Speed) | |
2742 | end | |
2743 | for i=0, 1, 0.08 / Animation_Speed do | |
2744 | Swait() | |
2745 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2746 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2747 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2748 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)), 0.3 / Animation_Speed) | |
2749 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2750 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2751 | if Disable_Moving_Arms == false then | |
2752 | RightShoulder.C1 = Clerp(RightShoulder.C1, ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed) | |
2753 | LeftShoulder.C1 = Clerp(LeftShoulder.C1, ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5), 0.3 / Animation_Speed) | |
2754 | else | |
2755 | RightShoulder.C1 = Clerp(RightShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed) | |
2756 | LeftShoulder.C1 = Clerp(LeftShoulder.C1, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size), 0.3 / Animation_Speed) | |
2757 | end | |
2758 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2759 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2760 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2761 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2762 | end | |
2763 | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2764 | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2765 | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2766 | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
2767 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 | |
2768 | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 | |
2769 | if Disable_Moving_Arms == false then | |
2770 | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
2771 | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
2772 | else | |
2773 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2774 | LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
2775 | end | |
2776 | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2777 | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2778 | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2779 | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
2780 | --ATTACK = false | |
2781 | DEFENSECHANGE1.Parent = ChangeStat | |
2782 | MOVEMENTCHANGE1.Parent = nil | |
2783 | end | |
2784 | ||
2785 | function StaggerHitAnimation() | |
2786 | ATTACK = true | |
2787 | if Weapon:FindFirstChild("Hitbox") ~= nil then | |
2788 | for i = 1, MRANDOM(2, 4) do | |
2789 | ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
2790 | end | |
2791 | end | |
2792 | for i = 0, 1, 0.1 / Animation_Speed do | |
2793 | Swait() | |
2794 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed) | |
2795 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2796 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2797 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2798 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2799 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed) | |
2800 | if Stagger.Value == true or Stun.Value == true then | |
2801 | break | |
2802 | end | |
2803 | end | |
2804 | ATTACK = false | |
2805 | end | |
2806 | ||
2807 | function StaggerAnimation() | |
2808 | ATTACK = true | |
2809 | if Weapon:FindFirstChild("Hitbox") ~= nil then | |
2810 | for i = 1, MRANDOM(2, 4) do | |
2811 | ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
2812 | end | |
2813 | end | |
2814 | DISABLEJUMPING = true | |
2815 | COMBO = 1 | |
2816 | StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0)) | |
2817 | local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso) | |
2818 | STAGGERVELOCITY.P = 500 | |
2819 | STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge) | |
2820 | if Rooted.Value == false then | |
2821 | STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40 | |
2822 | end | |
2823 | for i = 0, 1, 0.35 / Animation_Speed do | |
2824 | Swait() | |
2825 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2826 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
2827 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2828 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2829 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2830 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed) | |
2831 | end | |
2832 | for i = 0, 1, 0.2 / Animation_Speed do | |
2833 | Swait() | |
2834 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed) | |
2835 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
2836 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2837 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2838 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed) | |
2839 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed) | |
2840 | end | |
2841 | STAGGERVELOCITY.Parent = nil | |
2842 | for i = 1, 50 * Animation_Speed do | |
2843 | Swait() | |
2844 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed) | |
2845 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed) | |
2846 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2847 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2848 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed) | |
2849 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed) | |
2850 | end | |
2851 | DISABLEJUMPING = false | |
2852 | ATTACK = false | |
2853 | end | |
2854 | ||
2855 | function StunAnimation() | |
2856 | ATTACK = true | |
2857 | DISABLEJUMPING = true | |
2858 | COMBO = 1 | |
2859 | StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0)) | |
2860 | for i = 0, 1, 0.3 / Animation_Speed do | |
2861 | Swait() | |
2862 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed) | |
2863 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed) | |
2864 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2865 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2866 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed) | |
2867 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed) | |
2868 | end | |
2869 | for i = 0, 1, 0.3 / Animation_Speed do | |
2870 | Swait() | |
2871 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed) | |
2872 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2873 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2874 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2875 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
2876 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed) | |
2877 | end | |
2878 | for i = 0, 1, 0.3 / Animation_Speed do | |
2879 | Swait() | |
2880 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed) | |
2881 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed) | |
2882 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2883 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2884 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed) | |
2885 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed) | |
2886 | end | |
2887 | for i = 1, 70 * Animation_Speed do | |
2888 | Swait() | |
2889 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed) | |
2890 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed) | |
2891 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
2892 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed) | |
2893 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2894 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed) | |
2895 | end | |
2896 | for i = 0, 1, 0.2 / Animation_Speed do | |
2897 | Swait() | |
2898 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed) | |
2899 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2900 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2901 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2902 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed) | |
2903 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
2904 | end | |
2905 | DISABLEJUMPING = false | |
2906 | ATTACK = false | |
2907 | end | |
2908 | ||
2909 | function EAbility() | |
2910 | ATTACK = true | |
2911 | ATTACK = false | |
2912 | end | |
2913 | ||
2914 | function SwordAttack1() | |
2915 | ATTACK = true | |
2916 | for i=0, 1, 0.1 / Animation_Speed do | |
2917 | Swait() | |
2918 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
2919 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(35)), 0.4 / Animation_Speed) | |
2920 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2921 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.25 * Player_Size, 0.5 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(160), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2922 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
2923 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
2924 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-80), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2925 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2926 | break | |
2927 | end | |
2928 | end | |
2929 | CreateSound("553461842", HitboxPart, 1.2, MRANDOM(8, 9) / 10) | |
2930 | local HASHITFLOOR = false | |
2931 | for i=0, 1, 0.1 / Animation_Speed do | |
2932 | Swait() | |
2933 | Trail.Enabled = true | |
2934 | local SWORDHIT, SWORDPOS = Raycast(EffectPart.Position, (CF(EffectPart.Position, EffectPart.Position + VT(0, -1, 0))).lookVector, 1 * Player_Size, Character) | |
2935 | if SWORDHIT ~= nil and HASHITFLOOR == false and SWORDHIT.Parent:FindFirstChild("Humanoid") == nil then | |
2936 | HASHITFLOOR = true | |
2937 | --print(SWORDHIT.Material) | |
2938 | if SWORDHIT.Material == Enum.Material.Grass or SWORDHIT.Material == Enum.Material.Ice or SWORDHIT.Material == Enum.Material.Fabric or SWORDHIT.Material == Enum.Material.SmoothPlastic or SWORDHIT.Material == Enum.Material.Sand or SWORDHIT.Material == Enum.Material.Plastic or SWORDHIT.Material == Enum.Material.Neon or SWORDHIT.Material == Enum.Material.Foil then | |
2939 | CreateSound("525717773", EffectPart, 1.2 , MRANDOM(8, 12) / 10) | |
2940 | elseif SWORDHIT.Material == Enum.Material.Metal or SWORDHIT.Material == Enum.Material.Concrete or SWORDHIT.Material == Enum.Material.Brick or SWORDHIT.Material == Enum.Material.CorrodedMetal or SWORDHIT.Material == Enum.Material.Slate or SWORDHIT.Material == Enum.Material.Marble or SWORDHIT.Material == Enum.Material.Granite or SWORDHIT.Material == Enum.Material.DiamondPlate or SWORDHIT.Material == Enum.Material.Pebble or SWORDHIT.Material == Enum.Material.Cobblestone then | |
2941 | CreateSound("470790670", EffectPart, 1 , MRANDOM(8, 12) / 10) | |
2942 | for i = 1, MRANDOM(2, 4) do | |
2943 | ClangEffect("Bright yellow", "Neon", CF(SWORDPOS) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 10, 3, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1) | |
2944 | end | |
2945 | elseif SWORDHIT.Material == Enum.Material.Wood or SWORDHIT.Material == Enum.Material.WoodPlanks then | |
2946 | CreateSound("514586161", EffectPart, 1 , MRANDOM(8, 12) / 10) | |
2947 | end | |
2948 | end | |
2949 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2950 | if HASHITFLOOR == true then | |
2951 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
2952 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed) | |
2953 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(40), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2954 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2955 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed) | |
2956 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
2957 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-132.5), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2958 | else | |
2959 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
2960 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-20)), 0.4 / Animation_Speed) | |
2961 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2962 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0 * Player_Size, 0.25 * Player_Size, -0.75 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2963 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.075 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(17.5)), 0.4 / Animation_Speed) | |
2964 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
2965 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-150), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2966 | end | |
2967 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2968 | break | |
2969 | end | |
2970 | end | |
2971 | BLCF = nil | |
2972 | SCFR = nil | |
2973 | ATTACK = false | |
2974 | Trail.Enabled = false | |
2975 | end | |
2976 | ||
2977 | function SwordAttack2() | |
2978 | ATTACK = true | |
2979 | for i=0, 1, 0.1 / Animation_Speed do | |
2980 | Swait() | |
2981 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
2982 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
2983 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
2984 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
2985 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
2986 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
2987 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
2988 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
2989 | break | |
2990 | end | |
2991 | end | |
2992 | CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10) | |
2993 | for i=0, 1, 0.1 / Animation_Speed do | |
2994 | Swait() | |
2995 | Trail.Enabled = true | |
2996 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
2997 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
2998 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
2999 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3000 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3001 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3002 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3003 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3004 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3005 | break | |
3006 | end | |
3007 | end | |
3008 | BLCF = nil | |
3009 | SCFR = nil | |
3010 | ATTACK = false | |
3011 | Trail.Enabled = false | |
3012 | end | |
3013 | function SwordAttack3() | |
3014 | ATTACK = true | |
3015 | for i=0, 1, 0.1 / Animation_Speed do | |
3016 | Swait() | |
3017 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3018 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
3019 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3020 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3021 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3022 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3023 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3024 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3025 | break | |
3026 | end | |
3027 | end | |
3028 | CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10) | |
3029 | for i=0, 1, 0.1 / Animation_Speed do | |
3030 | Swait() | |
3031 | Trail.Enabled = true | |
3032 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
3033 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
3034 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3035 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(100), RAD(0), RAD(-71)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3036 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3037 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
3038 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3039 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3040 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3041 | break | |
3042 | end | |
3043 | end | |
3044 | BLCF = nil | |
3045 | SCFR = nil | |
3046 | ATTACK = false | |
3047 | Trail.Enabled = false | |
3048 | end | |
3049 | function SwordAttack4() | |
3050 | ATTACK = true | |
3051 | for i=0, 1, 0.1 / Animation_Speed do | |
3052 | Swait() | |
3053 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3054 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
3055 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3056 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3057 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3058 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3059 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3060 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3061 | break | |
3062 | end | |
3063 | end | |
3064 | CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10) | |
3065 | for i=0, 1.5, 0.1 / Animation_Speed do | |
3066 | Swait() | |
3067 | Trail.Enabled = true | |
3068 | Humanoid.Jump = true | |
3069 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Up", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
3070 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
3071 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3072 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3073 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3074 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
3075 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3076 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3077 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3078 | break | |
3079 | end | |
3080 | end | |
3081 | BLCF = nil | |
3082 | SCFR = nil | |
3083 | ATTACK = false | |
3084 | Trail.Enabled = false | |
3085 | end | |
3086 | function SwordAttack5() | |
3087 | ATTACK = true | |
3088 | Animation_Speed = 0.8 * Player_Size | |
3089 | for i = 1,4 do | |
3090 | for i=0, 1, 0.1 / Animation_Speed do | |
3091 | Swait() | |
3092 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
3093 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3094 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3095 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3096 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
3097 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3098 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-110), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3099 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3100 | break | |
3101 | end | |
3102 | end | |
3103 | CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10) | |
3104 | for i=0, 1, 0.1 / Animation_Speed do | |
3105 | Swait() | |
3106 | Trail.Enabled = true | |
3107 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
3108 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3109 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
3110 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3111 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3112 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3113 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3114 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-130), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3115 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3116 | break | |
3117 | end | |
3118 | end | |
3119 | for i=0, 1, 0.1 / Animation_Speed do | |
3120 | Swait() | |
3121 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3122 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(30)), 0.4 / Animation_Speed) | |
3123 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(100)) * ANGLES(RAD(-30), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3124 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3125 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3126 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3127 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3128 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3129 | break | |
3130 | end | |
3131 | end | |
3132 | CreateSound("553461718", HitboxPart, 1.2, MRANDOM(7, 9) / 10) | |
3133 | for i=0, 1, 0.1 / Animation_Speed do | |
3134 | Swait() | |
3135 | Trail.Enabled = true | |
3136 | MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 10, 10, 10, 1, HitboxPart, 4, false, 5, 10, MRANDOM(5, 10), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false) | |
3137 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(20)), 0.4 / Animation_Speed) | |
3138 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-15)), 0.4 / Animation_Speed) | |
3139 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(100), RAD(0), RAD(-71)) * ANGLES(RAD(20), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3140 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3141 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(15)), 0.4 / Animation_Speed) | |
3142 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3143 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(110), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
3144 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3145 | break | |
3146 | end | |
3147 | end | |
3148 | end | |
3149 | Animation_Speed = 2 * Player_Size | |
3150 | BLCF = nil | |
3151 | SCFR = nil | |
3152 | ATTACK = false | |
3153 | Trail.Enabled = false | |
3154 | end | |
3155 | function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE) | |
3156 | local POS1 = POSITION1 | |
3157 | local POS2 = POSITION2 | |
3158 | local MOUSELOOK = CF((POS1 + POS2) / 2, POS2) | |
3159 | local FIREBALLSPEED = SPEED * Player_Size | |
3160 | local FIREBALLDURATION = DURATION | |
3161 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3162 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
3163 | coroutine.resume(coroutine.create(function() | |
3164 | repeat | |
3165 | Swait() | |
3166 | local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character) | |
3167 | POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED) | |
3168 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1) | |
3169 | if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then | |
3170 | FIREBALLDURATION = 0 | |
3171 | local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
3172 | FireballHitRefpart.Anchored = true | |
3173 | FireballHitRefpart.CFrame = CF(FIREBALLPOS) | |
3174 | game:GetService("Debris"):AddItem(FireballHitRefpart, 5) | |
3175 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10) | |
3176 | for i = 1, MRANDOM(4, 8) do | |
3177 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 10, 10, 10, 0, 0, 0, MRANDOM(3, 5) / 100) | |
3178 | end | |
3179 | MagicBlock("Bright red", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05) | |
3180 | MagicBlock("Bright orange", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05) | |
3181 | MagicBlock("Bright yellow", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05) | |
3182 | MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FireballHitRefpart, SIZE / 2, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false) | |
3183 | else | |
3184 | FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed | |
3185 | end | |
3186 | until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0 | |
3187 | end)) | |
3188 | end | |
3189 | function ShootOmegaFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE) | |
3190 | local POS1 = POSITION1 | |
3191 | local POS2 = POSITION2 | |
3192 | local MOUSELOOK = CF((POS1 + POS2) / 2, POS2) | |
3193 | local FIREBALLSPEED = SPEED * Player_Size | |
3194 | local FIREBALLDURATION = DURATION * Player_Size | |
3195 | local FIREBALLCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3196 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
3197 | coroutine.resume(coroutine.create(function() | |
3198 | repeat | |
3199 | Swait() | |
3200 | local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character) | |
3201 | POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED) | |
3202 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / -10, SIZE / -10, SIZE / -10, 0.1) | |
3203 | if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then | |
3204 | FIREBALLDURATION = 0 | |
3205 | local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
3206 | FireballHitRefpart.Anchored = true | |
3207 | FireballHitRefpart.CFrame = CF(FIREBALLPOS) | |
3208 | game:GetService("Debris"):AddItem(FireballHitRefpart, 5) | |
3209 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 1.4, MRANDOM(14, 16) / 10) | |
3210 | for i = 1, MRANDOM(4, 8) do | |
3211 | MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 10, 10, 10, 0, 0, 0, MRANDOM(3, 5) / 100) | |
3212 | end | |
3213 | for i = 1,1 do | |
3214 | MagicBlock("Bright red", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05) | |
3215 | MagicBlock("Bright orange", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 5, SIZE * 5, SIZE * 5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05) | |
3216 | MagicBlock("Bright yellow", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 5, SIZE * 5, SIZE * 5, SIZE / 5, SIZE / 5, SIZE / 5, 0.05) | |
3217 | MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FireballHitRefpart, SIZE / 2, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false) | |
3218 | end | |
3219 | else | |
3220 | FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed | |
3221 | end | |
3222 | until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0 | |
3223 | end)) | |
3224 | end | |
3225 | function FirePillar(POSITION1, POSITION2, SIZE, RISE, RANGE, LOWDAMAGE, HIGHDAMAGE, LASTINGTIME) | |
3226 | local POS1 = POSITION1 | |
3227 | local POS2 = POSITION2 | |
3228 | local MOUSELOOK = CF((POS1 + POS2) / 2, POS2) | |
3229 | local FIREPILLARHITSOUNDS = {"171378971", --[["646619365",--]] "472579737"--[[, "144140670"--]]} | |
3230 | local FIREPILLARCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3231 | local FIREPILLAR1HIT, FIREPILLAR1POS = Raycast(POS1, MOUSELOOK.lookVector, RANGE * Player_Size, Character) | |
3232 | local FirePillarRefpart1 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
3233 | FirePillarRefpart1.Anchored = true | |
3234 | FirePillarRefpart1.CFrame = CF(FIREPILLAR1POS) * CF(0, 10, 0) | |
3235 | game:GetService("Debris"):AddItem(FirePillarRefpart1, 5) | |
3236 | local FIREPILLAR2HIT, FIREPILLAR2POS = Raycast(FirePillarRefpart1.Position, CF(FirePillarRefpart1.Position, FirePillarRefpart1.Position + VT(0, -1, 0)).lookVector, 999, Character) | |
3237 | if FIREPILLAR2HIT ~= nil then | |
3238 | FirePillarRefpart1.Parent = nil | |
3239 | local FirePillarRefpart2 = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
3240 | FirePillarRefpart2.Anchored = true | |
3241 | FirePillarRefpart2.CFrame = CF(FIREPILLAR2POS) | |
3242 | game:GetService("Debris"):AddItem(FirePillarRefpart2, 5) | |
3243 | CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], FirePillarRefpart2, 1.2, MRANDOM(11, 13) / 10) | |
3244 | for i = 1, MRANDOM(5, 10) do | |
3245 | MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame * ANGLES(RAD(MRANDOM(-60, 60)), 0, RAD(MRANDOM(-60, 60))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 30, 30, 30, 0, 0, 0, MRANDOM(3, 5) / 100) | |
3246 | end | |
3247 | for i = 1, MRANDOM(15, 20) do | |
3248 | local FIREEFFECTSIZE = MRANDOM(1, 2) | |
3249 | MagicBlock(FIREPILLARCOLORS[MRANDOM(1, #FIREPILLARCOLORS)], "Neon", FirePillarRefpart2.CFrame, CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-20, 20)), 0), VT(MRANDOM(SIZE / 6, SIZE / 4), 0, 0), FIREEFFECTSIZE, FIREEFFECTSIZE, FIREEFFECTSIZE, -0.02, -0.02, -0.02, MRANDOM(1, 2) / 100) | |
3250 | end | |
3251 | MagicCylinder("Bright red", "Neon", CF(FIREPILLAR2POS), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, 0, 1.5, LASTINGTIME) | |
3252 | MagicSphere("Bright red", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, 0.1, SIZE, 1.5, RISE, 1.5, LASTINGTIME) | |
3253 | MagicSphere("Bright orange", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.5, 0.1, SIZE * 0.5, 1.5, RISE * 0.75, 1.5, LASTINGTIME) | |
3254 | MagicSphere("Bright yellow", "Neon", FirePillarRefpart2.CFrame, ANGLES(0, 0, 0), VT(0, 0, 0), SIZE * 0.25, 0.1, SIZE * 0.25, 1.5, RISE * 0.375, 1.5, LASTINGTIME) | |
3255 | MagnitudeDamage("", "", "", "", 10, 10, 10, 1, FirePillarRefpart2, SIZE / 3, false, LOWDAMAGE, HIGHDAMAGE, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, "Movement", -0.1, 3, true) | |
3256 | end | |
3257 | end | |
3258 | ||
3259 | function Attack1() | |
3260 | ATTACK = true | |
3261 | local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3262 | for i=0, 1, 0.1 / Animation_Speed do | |
3263 | Swait() | |
3264 | for i = 1, 2 do | |
3265 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3266 | end | |
3267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed) | |
3268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3271 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3272 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed) | |
3273 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3274 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3275 | break | |
3276 | end | |
3277 | end | |
3278 | Snap:Play() | |
3279 | CreateSound("154324879", LeftArm, 1.4, 1.5) | |
3280 | ShootFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 1, 100, 2.1, 5, 10) | |
3281 | MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
3282 | MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05) | |
3283 | MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05) | |
3284 | for i=0, 1, 0.1 / Animation_Speed do | |
3285 | Swait() | |
3286 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed) | |
3287 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3288 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3289 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3290 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3291 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3292 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3293 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3294 | break | |
3295 | end | |
3296 | end | |
3297 | ATTACK = false | |
3298 | end | |
3299 | ||
3300 | function Attack2() | |
3301 | ATTACK = true | |
3302 | local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3303 | for i=0, 1, 0.1 / Animation_Speed do | |
3304 | Swait() | |
3305 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3306 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3307 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3308 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3309 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3310 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3311 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
3312 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3313 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3314 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3315 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3316 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed) | |
3317 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3318 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3319 | break | |
3320 | end | |
3321 | end | |
3322 | Snap:Play() | |
3323 | CreateSound("549224856", LeftArm, 1, MRANDOM(11, 13) / 10) | |
3324 | FirePillar(RootPart.Position, mouse.Hit.p, 2500, 700.5, 1, 20, 24, 0.025) | |
3325 | MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
3326 | MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05) | |
3327 | MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05) | |
3328 | for i=0, 1, 0.1 / Animation_Speed do | |
3329 | Swait() | |
3330 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3331 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3332 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3333 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3334 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3335 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3336 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3337 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3338 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3339 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3340 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed) | |
3341 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed) | |
3342 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3343 | --[[ | |
3344 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed) | |
3345 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3346 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3347 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3348 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed) | |
3349 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3350 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3351 | --]] | |
3352 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3353 | break | |
3354 | end | |
3355 | end | |
3356 | ATTACK = false | |
3357 | end | |
3358 | FireballBarrage = false | |
3359 | function Attack3() | |
3360 | ATTACK = true | |
3361 | FireballBarrage = true | |
3362 | local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3363 | for i=0, 1, 0.1 / Animation_Speed do | |
3364 | Swait() | |
3365 | for i = 1, 2 do | |
3366 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0, MRANDOM(-10, 10) / 10 * Player_Size, 0) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, 0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3367 | end | |
3368 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-60)), 0.4 / Animation_Speed) | |
3369 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(60)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3370 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3371 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(5), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3372 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3373 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed) | |
3374 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3375 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3376 | break | |
3377 | end | |
3378 | end | |
3379 | Snap:Play() | |
3380 | CreateSound("154324879", LeftArm, 1.4, 1.5) | |
3381 | while FireballBarrage == true do | |
3382 | ShootOmegaFireball((LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Torso.Position + Vector3.new(math.random(-20,-10),math.random(0,0),math.random(-20,-10)), 5, 20, 2.1, 5, 10) | |
3383 | MagicBlock("Bright red", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05) | |
3384 | MagicBlock("Bright orange", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05) | |
3385 | MagicBlock("Bright yellow", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05) | |
3386 | wait() | |
3387 | end | |
3388 | for i=0, 1, 0.1 / Animation_Speed do | |
3389 | Swait() | |
3390 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-50)), 0.4 / Animation_Speed) | |
3391 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(50)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3392 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3393 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25 * Player_Size, 0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-55)) * ANGLES(RAD(40), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3394 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-12.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3395 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3396 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3397 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3398 | break | |
3399 | end | |
3400 | end | |
3401 | ATTACK = false | |
3402 | end | |
3403 | ||
3404 | function Attack4() | |
3405 | ATTACK = true | |
3406 | local FIREEFFECTCOLORS = {"Bright red", "Bright orange", "Bright yellow"} | |
3407 | for i=0, 1, 0.1 / Animation_Speed do | |
3408 | Swait() | |
3409 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3410 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3411 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3412 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3413 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3414 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3415 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed) | |
3416 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3419 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed) | |
3420 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed) | |
3421 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3422 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3423 | break | |
3424 | end | |
3425 | end | |
3426 | Snap:Play() | |
3427 | wait(1) | |
3428 | for i = 1,10 do | |
3429 | for i=1,15 do | |
3430 | CreateSound("549224856", LeftArm, 1, MRANDOM(11, 13) / 10) | |
3431 | FirePillar(RootPart.Position, RootPart.Position + Vector3.new(math.random(-1000,1000),math.random(-100,100),math.random(-1000,1000)), 250, math.random(70,7000), 2000, 1, 2, 0.025) | |
3432 | wait() | |
3433 | end | |
3434 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3435 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3436 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3437 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3438 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3439 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3440 | Swait() | |
3441 | end | |
3442 | for i=0, 1, 0.1 / Animation_Speed do | |
3443 | Swait() | |
3444 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3445 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3446 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3447 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", Head.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3448 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftLeg.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3449 | MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightLeg.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 10, 10, 10, -0.05, -0.05, -0.05, 0.05) | |
3450 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed) | |
3451 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3452 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3453 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3454 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed) | |
3455 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed) | |
3456 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3457 | --[[ | |
3458 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed) | |
3459 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
3460 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3462 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed) | |
3463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed) | |
3464 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
3465 | --]] | |
3466 | if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then | |
3467 | break | |
3468 | end | |
3469 | end | |
3470 | ATTACK = false | |
3471 | end | |
3472 | ||
3473 | function Move1() | |
3474 | ATTACK = true | |
3475 | ATTACK = false | |
3476 | end | |
3477 | ||
3478 | function Move2() | |
3479 | ATTACK = true | |
3480 | ATTACK = false | |
3481 | end | |
3482 | ||
3483 | function Move3() | |
3484 | ATTACK = true | |
3485 | ATTACK = false | |
3486 | end | |
3487 | ||
3488 | function Move4() | |
3489 | ATTACK = true | |
3490 | ATTACK = false | |
3491 | end | |
3492 | ||
3493 | --//=================================\\ | |
3494 | --\\=================================// | |
3495 | ||
3496 | ||
3497 | ||
3498 | ||
3499 | ||
3500 | --//=================================\\ | |
3501 | --|| SET THINGS UP | |
3502 | --\\=================================// | |
3503 | ||
3504 | if Start_Equipped == true then | |
3505 | ATTACK = true | |
3506 | EQUIPPED = true | |
3507 | if Disable_Animate == true then | |
3508 | ANIMATE.Parent = nil | |
3509 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3510 | IDLEANIMATION:Play() | |
3511 | end | |
3512 | if Disable_Animator == true then | |
3513 | ANIMATOR.Parent = nil | |
3514 | end | |
3515 | if Disable_Moving_Arms == true then | |
3516 | RSH = Torso["Right Shoulder"] | |
3517 | LSH = Torso["Left Shoulder"] | |
3518 | RSH.Parent = nil | |
3519 | LSH.Parent = nil | |
3520 | if Use_Motors_Instead_Of_Welds == true then | |
3521 | RightShoulder = IT("Motor") | |
3522 | LeftShoulder = IT("Motor") | |
3523 | else | |
3524 | RightShoulder = IT("Weld") | |
3525 | LeftShoulder = IT("Weld") | |
3526 | end | |
3527 | RightShoulder.Name = "Right Shoulder" | |
3528 | RightShoulder.Part0 = Torso | |
3529 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3530 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3531 | RightShoulder.Part1 = Character["Right Arm"] | |
3532 | RightShoulder.Parent = Torso | |
3533 | LeftShoulder.Name = "Left Shoulder" | |
3534 | LeftShoulder.Part0 = Torso | |
3535 | LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3536 | LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3537 | LeftShoulder.Part1 = Character["Left Arm"] | |
3538 | LeftShoulder.Parent = Torso | |
3539 | RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
3540 | LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
3541 | end | |
3542 | if Start_Equipped_With_Equipped_Animation == true then | |
3543 | Swait() | |
3544 | EquipWeapon() | |
3545 | end | |
3546 | ATTACK = false | |
3547 | end | |
3548 | ||
3549 | --//=================================\\ | |
3550 | --\\=================================// | |
3551 | ||
3552 | ||
3553 | ||
3554 | ||
3555 | ||
3556 | --//=================================\\ | |
3557 | --|| ASSIGN THINGS TO KEYS | |
3558 | --\\=================================// | |
3559 | ||
3560 | Humanoid.Changed:connect(function(Jump) | |
3561 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
3562 | Humanoid.Jump = false | |
3563 | end | |
3564 | end) | |
3565 | ||
3566 | function MouseDown(Mouse) | |
3567 | if ATTACK == true or EQUIPPED == false then | |
3568 | return | |
3569 | end | |
3570 | HOLD = true | |
3571 | if COMBO == 1 then | |
3572 | COMBO = 2 | |
3573 | SwordAttack1() | |
3574 | elseif COMBO == 2 then | |
3575 | COMBO = 3 | |
3576 | SwordAttack2() | |
3577 | elseif COMBO == 3 then | |
3578 | COMBO = 4 | |
3579 | SwordAttack3() | |
3580 | elseif COMBO == 4 then | |
3581 | COMBO = 5 | |
3582 | SwordAttack4() | |
3583 | elseif COMBO == 5 then | |
3584 | COMBO = 1 | |
3585 | SwordAttack5() | |
3586 | end | |
3587 | coroutine.resume(coroutine.create(function() | |
3588 | for i=1, 50 do | |
3589 | if ATTACK == false then | |
3590 | Swait() | |
3591 | end | |
3592 | end | |
3593 | if ATTACK == false then | |
3594 | COMBO = 1 | |
3595 | end | |
3596 | end)) | |
3597 | end | |
3598 | ||
3599 | function MouseUp(Mouse) | |
3600 | HOLD = false | |
3601 | end | |
3602 | ||
3603 | function KeyDown(Key) | |
3604 | if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then | |
3605 | ATTACK = true | |
3606 | COMBO = 1 | |
3607 | if EQUIPPED == false then | |
3608 | EQUIPPED = true | |
3609 | if Disable_Animate == true then | |
3610 | ANIMATE.Parent = nil | |
3611 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3612 | IDLEANIMATION:Play() | |
3613 | end | |
3614 | if Disable_Animator == true then | |
3615 | ANIMATOR.Parent = nil | |
3616 | end | |
3617 | if Disable_Moving_Arms == true then | |
3618 | RSH = Torso["Right Shoulder"] | |
3619 | LSH = Torso["Left Shoulder"] | |
3620 | RSH.Parent = nil | |
3621 | LSH.Parent = nil | |
3622 | if Use_Motors_Instead_Of_Welds == true then | |
3623 | RightShoulder = IT("Motor") | |
3624 | LeftShoulder = IT("Motor") | |
3625 | else | |
3626 | RightShoulder = IT("Weld") | |
3627 | LeftShoulder = IT("Weld") | |
3628 | end | |
3629 | RightShoulder.Name = "Right Shoulder" | |
3630 | RightShoulder.Part0 = Torso | |
3631 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3632 | RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3633 | RightShoulder.Part1 = Character["Right Arm"] | |
3634 | RightShoulder.Parent = Torso | |
3635 | LeftShoulder.Name = "Left Shoulder" | |
3636 | LeftShoulder.Part0 = Torso | |
3637 | LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3638 | LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
3639 | LeftShoulder.Part1 = Character["Left Arm"] | |
3640 | LeftShoulder.Parent = Torso | |
3641 | RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
3642 | LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
3643 | end | |
3644 | Swait() | |
3645 | EquipWeapon() | |
3646 | elseif EQUIPPED == true then | |
3647 | EQUIPPED = false | |
3648 | UnequipWeapon() | |
3649 | if Disable_Animator == true then | |
3650 | ANIMATOR.Parent = Humanoid | |
3651 | end | |
3652 | if Disable_Animate == true then | |
3653 | ANIMATE.Parent = Character | |
3654 | end | |
3655 | Swait() | |
3656 | if Disable_Moving_Arms == true then | |
3657 | RightShoulder.Parent = nil | |
3658 | LeftShoulder.Parent = nil | |
3659 | RSH.Parent = Torso | |
3660 | LSH.Parent = Torso | |
3661 | end | |
3662 | end | |
3663 | ATTACK = false | |
3664 | end | |
3665 | if Key == "e" and EQUIPPED == true and ATTACK == false then | |
3666 | GodSlash = true | |
3667 | Attack1() | |
3668 | GodSlash = false | |
3669 | end | |
3670 | if Key == "q" and EQUIPPED == true and ATTACK == false then | |
3671 | Attack2() | |
3672 | end | |
3673 | if Key == "r" and EQUIPPED == true and ATTACK == false and FireballBarrage == false then | |
3674 | Apoc = true | |
3675 | Attack3() | |
3676 | Apoc = false | |
3677 | end | |
3678 | if Key == "t" and EQUIPPED == true and ATTACK == false then | |
3679 | Apoc = true | |
3680 | Attack4() | |
3681 | Apoc = false | |
3682 | end | |
3683 | end | |
3684 | ||
3685 | function KeyUp(Key) | |
3686 | if Key == "r" and FireballBarrage == true then | |
3687 | FireballBarrage = false | |
3688 | end | |
3689 | end | |
3690 | ||
3691 | if Use_HopperBin == false then | |
3692 | ||
3693 | Mouse.Button1Down:connect(function(NEWKEY) | |
3694 | MouseDown(NEWKEY) | |
3695 | end) | |
3696 | Mouse.Button1Up:connect(function(NEWKEY) | |
3697 | MouseUp(NEWKEY) | |
3698 | end) | |
3699 | Mouse.KeyDown:connect(function(NEWKEY) | |
3700 | KeyDown(NEWKEY) | |
3701 | end) | |
3702 | Mouse.KeyUp:connect(function(NEWKEY) | |
3703 | KeyUp(NEWKEY) | |
3704 | end) | |
3705 | ||
3706 | elseif Use_HopperBin == true then | |
3707 | WEAPONTOOL.Parent = Backpack | |
3708 | script.Parent = WEAPONTOOL | |
3709 | function SelectTool(Mouse) | |
3710 | Mouse.Button1Down:connect(function() | |
3711 | MouseDown(Mouse) | |
3712 | end) | |
3713 | Mouse.Button1Up:connect(function() | |
3714 | MouseUp(Mouse) | |
3715 | end) | |
3716 | Mouse.KeyDown:connect(KeyDown) | |
3717 | Mouse.KeyUp:connect(KeyUp) | |
3718 | end | |
3719 | function DeselectTool(Mouse) | |
3720 | end | |
3721 | WEAPONTOOL.Selected:connect(SelectTool) | |
3722 | WEAPONTOOL.Deselected:connect(DeselectTool) | |
3723 | end | |
3724 | ||
3725 | --//=================================\\ | |
3726 | --\\=================================// | |
3727 | ||
3728 | ||
3729 | ||
3730 | ||
3731 | ||
3732 | --//=================================\\ | |
3733 | --|| WRAP THE WHOLE SCRIPT UP | |
3734 | --\\=================================// | |
3735 | ||
3736 | while true do | |
3737 | Swait() | |
3738 | if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then | |
3739 | HitboxPart.Name = "NilHitbox" | |
3740 | else | |
3741 | HitboxPart.Name = "Hitbox" | |
3742 | end | |
3743 | if Enable_Gui == true then | |
3744 | UpdateGUI() | |
3745 | end | |
3746 | UpdateSkillsAndStuff() | |
3747 | if Walkspeed_Depends_On_Movement_Value == true then | |
3748 | if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then | |
3749 | Humanoid.WalkSpeed = 0 | |
3750 | else | |
3751 | Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size | |
3752 | end | |
3753 | end | |
3754 | if Enable_Stun == true and StunValue.Value >= Max_Stun then | |
3755 | StunValue.Value = 0 | |
3756 | Stun.Value = true | |
3757 | end | |
3758 | if Enable_Stagger_Hit == true then | |
3759 | if StaggerHit.Value == true and STAGGERHITANIM == false then | |
3760 | coroutine.resume(coroutine.create(function() | |
3761 | STAGGERHITANIM = true | |
3762 | while ATTACK == true do | |
3763 | Swait() | |
3764 | end | |
3765 | StaggerHitAnimation() | |
3766 | StaggerHit.Value = false | |
3767 | STAGGERHITANIM = false | |
3768 | end)) | |
3769 | end | |
3770 | else | |
3771 | StaggerHit.Value = false | |
3772 | end | |
3773 | if Enable_Stagger == true then | |
3774 | if Stagger.Value == true and STAGGERANIM == false then | |
3775 | coroutine.resume(coroutine.create(function() | |
3776 | STAGGERANIM = true | |
3777 | while ATTACK == true do | |
3778 | Swait() | |
3779 | end | |
3780 | StaggerAnimation() | |
3781 | Stagger.Value = false | |
3782 | STAGGERANIM = false | |
3783 | end)) | |
3784 | end | |
3785 | else | |
3786 | Stagger.Value = false | |
3787 | end | |
3788 | if Enable_Stun == true then | |
3789 | if Stun.Value == true and STUNANIM == false then | |
3790 | coroutine.resume(coroutine.create(function() | |
3791 | StunValue.Value = 0 | |
3792 | STUNANIM = true | |
3793 | while ATTACK == true do | |
3794 | Swait() | |
3795 | end | |
3796 | StunAnimation() | |
3797 | Stun.Value = false | |
3798 | STUNANIM = false | |
3799 | end)) | |
3800 | end | |
3801 | else | |
3802 | StunValue.Value = 0 | |
3803 | Stun.Value = false | |
3804 | end | |
3805 | if DONUMBER >= .5 then | |
3806 | HANDIDLE = true | |
3807 | elseif DONUMBER <= 0 then | |
3808 | HANDIDLE = false | |
3809 | end | |
3810 | if HANDIDLE == false then | |
3811 | DONUMBER = DONUMBER + 0.003 / Animation_Speed | |
3812 | else | |
3813 | DONUMBER = DONUMBER - 0.003 / Animation_Speed | |
3814 | end | |
3815 | if ATTACK == false then | |
3816 | IDLENUMBER = IDLENUMBER + 1 | |
3817 | else | |
3818 | IDLENUMBER = 0 | |
3819 | end | |
3820 | if Enable_Stats == true then | |
3821 | for _, v in pairs (ChangeStat:GetChildren()) do | |
3822 | if v:FindFirstChild("Duration") ~= nil then | |
3823 | v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed | |
3824 | if v:FindFirstChild("Duration").Value <= 0 then | |
3825 | v.Parent = nil | |
3826 | end | |
3827 | end | |
3828 | if v.Name == "ChangeDefense" then | |
3829 | CHANGEDEFENSE = CHANGEDEFENSE + v.Value | |
3830 | elseif v.Name == "ChangeDamage" then | |
3831 | CHANGEDAMAGE = CHANGEDAMAGE + v.Value | |
3832 | elseif v.Name == "ChangeMovement" then | |
3833 | CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value | |
3834 | end | |
3835 | end | |
3836 | Defense.Value = 1 + (CHANGEDEFENSE) | |
3837 | if Defense.Value <= 0.01 then | |
3838 | Defense.Value = 0.01 | |
3839 | end | |
3840 | Damage.Value = 1 + (CHANGEDAMAGE) | |
3841 | if Damage.Value <= 0 then | |
3842 | Damage.Value = 0 | |
3843 | end | |
3844 | Movement.Value = 1 + (CHANGEMOVEMENT) | |
3845 | if Movement.Value <= 0 then | |
3846 | Movement.Value = 0 | |
3847 | end | |
3848 | CHANGEDEFENSE = 0 | |
3849 | CHANGEDAMAGE = 0 | |
3850 | CHANGEMOVEMENT = 0 | |
3851 | end | |
3852 | SINE = SINE + CHANGE | |
3853 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3854 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3855 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
3856 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
3857 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3858 | if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then | |
3859 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3860 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3861 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3862 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3863 | elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then | |
3864 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3865 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3866 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3867 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3868 | end | |
3869 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3870 | ANIM = "Jump" | |
3871 | if EQUIPPED == true and ATTACK == false then | |
3872 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3873 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3874 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3875 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3876 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3877 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3878 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
3879 | end | |
3880 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3881 | ANIM = "Fall" | |
3882 | if EQUIPPED == true and ATTACK == false then | |
3883 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3886 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3887 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3888 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3889 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed) | |
3890 | end | |
3891 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3892 | ANIM = "Idle" | |
3893 | if EQUIPPED == true and ATTACK == false then | |
3894 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
3895 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
3896 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(20 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3897 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3898 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed) | |
3899 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed) | |
3900 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed) | |
3901 | end | |
3902 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3903 | ANIM = "Walk" | |
3904 | WALK = WALK + 1 / Animation_Speed | |
3905 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
3906 | WALK = 0 | |
3907 | if WALKINGANIM == true then | |
3908 | WALKINGANIM = false | |
3909 | elseif WALKINGANIM == false then | |
3910 | WALKINGANIM = true | |
3911 | end | |
3912 | end | |
3913 | if EQUIPPED == true and ATTACK == false then | |
3914 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3915 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3916 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * RIGHTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3917 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-45 + 2.5 * SIN(SINE / (WALKSPEEDVALUE / 2)))) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3918 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3919 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3920 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3921 | end | |
3922 | end | |
3923 | ||
3924 | end | |
3925 | ||
3926 | --//=================================\\ | |
3927 | --\\=================================// | |
3928 | ||
3929 | ||
3930 | ||
3931 | ||
3932 | ||
3933 | --//====================================================\\-- | |
3934 | --|| END OF SCRIPT | |
3935 | --\\====================================================//-- |