SHOW:
|
|
- or go back to the newest paste.
1 | - | game.Workspace.Likebossfromdk.Humanoid.MaxHealth = math.huge |
1 | + | game.Workspace.XxXexe5.Humanoid.MaxHealth = math.huge |
2 | Player=game:GetService("Players").LocalPlayer | |
3 | Character=Player.Character | |
4 | PlayerGui=Player.PlayerGui | |
5 | Backpack=Player.Backpack | |
6 | Torso=Character.Torso | |
7 | Head=Character.Head | |
8 | Humanoid=Character.Humanoid | |
9 | m=Instance.new('Model',Character) | |
10 | LeftArm=Character["Left Arm"] | |
11 | LeftLeg=Character["Left Leg"] | |
12 | RightArm=Character["Right Arm"] | |
13 | RightLeg=Character["Right Leg"] | |
14 | LS=Torso["Left Shoulder"] | |
15 | LH=Torso["Left Hip"] | |
16 | RS=Torso["Right Shoulder"] | |
17 | RH=Torso["Right Hip"] | |
18 | Face = Head.face | |
19 | Neck=Torso.Neck | |
20 | it=Instance.new | |
21 | attacktype=1 | |
22 | vt=Vector3.new | |
23 | cf=CFrame.new | |
24 | euler=CFrame.fromEulerAnglesXYZ | |
25 | angles=CFrame.Angles | |
26 | cloaked=false | |
27 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
28 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
29 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
30 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
31 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
32 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
33 | RootPart=Character.HumanoidRootPart | |
34 | RootJoint=RootPart.RootJoint | |
35 | RootCF=euler(-1.57,0,3.14) | |
36 | attack = false | |
37 | attackdebounce = false | |
38 | deb=false | |
39 | equipped=true | |
40 | hand=false | |
41 | MMouse=nil | |
42 | combo=0 | |
43 | mana=0 | |
44 | trispeed=.2 | |
45 | attackmode='none' | |
46 | local idle=0 | |
47 | local Anim="Idle" | |
48 | local Effects={} | |
49 | local gun=false | |
50 | local shoot=false | |
51 | player=nil | |
52 | mana=0 | |
53 | local CurrentMode = "Unsheathed" | |
54 | ||
55 | mouse=Player:GetMouse() | |
56 | --save shoulders | |
57 | RSH, LSH=nil, nil | |
58 | --welds | |
59 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
60 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
61 | LH=Torso["Left Hip"] | |
62 | RH=Torso["Right Hip"] | |
63 | TorsoColor=Torso.BrickColor | |
64 | function NoOutline(Part) | |
65 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
66 | end | |
67 | player=Player | |
68 | ch=Character | |
69 | RSH=ch.Torso["Right Shoulder"] | |
70 | LSH=ch.Torso["Left Shoulder"] | |
71 | -- | |
72 | RSH.Parent=nil | |
73 | LSH.Parent=nil | |
74 | -- | |
75 | RW.Name="Right Shoulder" | |
76 | RW.Part0=ch.Torso | |
77 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
78 | RW.C1=cf(0, 0.5, 0) | |
79 | RW.Part1=ch["Right Arm"] | |
80 | RW.Parent=ch.Torso | |
81 | -- | |
82 | LW.Name="Left Shoulder" | |
83 | LW.Part0=ch.Torso | |
84 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
85 | LW.C1=cf(0, 0.5, 0) | |
86 | LW.Part1=ch["Left Arm"] | |
87 | LW.Parent=ch.Torso | |
88 | ||
89 | local function weldBetween(a, b) | |
90 | local weldd = Instance.new("ManualWeld") | |
91 | weldd.Part0 = a | |
92 | weldd.Part1 = b | |
93 | weldd.C0 = CFrame.new() | |
94 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
95 | weldd.Parent = a | |
96 | return weldd | |
97 | end | |
98 | ||
99 | function nooutline(part) | |
100 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
101 | end | |
102 | ||
103 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
104 | local fp=it("Part") | |
105 | fp.formFactor=formfactor | |
106 | fp.Parent=parent | |
107 | fp.Reflectance=reflectance | |
108 | fp.Transparency=transparency | |
109 | fp.CanCollide=false | |
110 | fp.Locked=true | |
111 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
112 | fp.Name=name | |
113 | fp.Size=size | |
114 | fp.Position=Character.Torso.Position | |
115 | nooutline(fp) | |
116 | fp.Material=material | |
117 | fp:BreakJoints() | |
118 | return fp | |
119 | end | |
120 | ||
121 | function swait(num) | |
122 | if num==0 or num==nil then | |
123 | game:service'RunService'.Heartbeat:wait(0) | |
124 | else | |
125 | for i=0,num do | |
126 | game:service'RunService'.Heartbeat:wait(0) | |
127 | end | |
128 | end | |
129 | end | |
130 | ||
131 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
132 | local mesh=it(Mesh) | |
133 | mesh.Parent=part | |
134 | if Mesh=="SpecialMesh" then | |
135 | mesh.MeshType=meshtype | |
136 | mesh.MeshId=meshid | |
137 | end | |
138 | mesh.Offset=offset | |
139 | mesh.Scale=scale | |
140 | return mesh | |
141 | end | |
142 | ||
143 | function weld(parent,part0,part1,c0,c1) | |
144 | local weld=it("Weld") | |
145 | weld.Parent=parent | |
146 | weld.Part0=part0 | |
147 | weld.Part1=part1 | |
148 | weld.C0=c0 | |
149 | weld.C1=c1 | |
150 | return weld | |
151 | end | |
152 | ||
153 | ||
154 | local function CFrameFromTopBack(at, top, back) | |
155 | local right = top:Cross(back) | |
156 | return CFrame.new(at.x, at.y, at.z, | |
157 | right.x, top.x, back.x, | |
158 | right.y, top.y, back.y, | |
159 | right.z, top.z, back.z) | |
160 | end | |
161 | ||
162 | function Triangle(a, b, c) | |
163 | local edg1 = (c-a):Dot((b-a).unit) | |
164 | local edg2 = (a-b):Dot((c-b).unit) | |
165 | local edg3 = (b-c):Dot((a-c).unit) | |
166 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
167 | a, b, c = a, b, c | |
168 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
169 | a, b, c = b, c, a | |
170 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
171 | a, b, c = c, a, b | |
172 | else | |
173 | assert(false, "unreachable") | |
174 | end | |
175 | ||
176 | local len1 = (c-a):Dot((b-a).unit) | |
177 | local len2 = (b-a).magnitude - len1 | |
178 | local width = (a + (b-a).unit*len1 - c).magnitude | |
179 | ||
180 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
181 | ||
182 | local list = {} | |
183 | ||
184 | if len1 > 0.01 then | |
185 | local w1 = Instance.new('WedgePart', m) | |
186 | game:GetService("Debris"):AddItem(w1,5) | |
187 | w1.Material = "SmoothPlastic" | |
188 | w1.FormFactor = 'Custom' | |
189 | w1.BrickColor = BrickColor.new("Really red") | |
190 | w1.Transparency = 0 | |
191 | w1.Reflectance = 0 | |
192 | w1.Material = "Neon" | |
193 | w1.CanCollide = false | |
194 | NoOutline(w1) | |
195 | local sz = Vector3.new(0.2, width, len1) | |
196 | w1.Size = sz | |
197 | local sp = Instance.new("SpecialMesh",w1) | |
198 | sp.MeshType = "Wedge" | |
199 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
200 | w1:BreakJoints() | |
201 | w1.Anchored = true | |
202 | w1.Parent = workspace | |
203 | w1.Transparency = 0.3 | |
204 | table.insert(Effects,{w1,"Disappear",.03}) | |
205 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
206 | table.insert(list,w1) | |
207 | end | |
208 | if len2 > 0.01 then | |
209 | local w2 = Instance.new('WedgePart', m) | |
210 | game:GetService("Debris"):AddItem(w2,5) | |
211 | w2.Material = "SmoothPlastic" | |
212 | w2.FormFactor = 'Custom' | |
213 | w2.BrickColor = BrickColor.new("Really red") | |
214 | w2.Transparency = 0 | |
215 | w2.Reflectance = 0 | |
216 | w2.Material = "Neon" | |
217 | w2.CanCollide = false | |
218 | NoOutline(w2) | |
219 | local sz = Vector3.new(0.2, width, len2) | |
220 | w2.Size = sz | |
221 | local sp = Instance.new("SpecialMesh",w2) | |
222 | sp.MeshType = "Wedge" | |
223 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
224 | w2:BreakJoints() | |
225 | w2.Anchored = true | |
226 | w2.Parent = workspace | |
227 | w2.Transparency = 0.3 | |
228 | table.insert(Effects,{w2,"Disappear",.03}) | |
229 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
230 | table.insert(list,w2) | |
231 | end | |
232 | return unpack(list) | |
233 | end | |
234 | ||
235 | ||
236 | so = function(id,par,vol,pit) | |
237 | coroutine.resume(coroutine.create(function() | |
238 | local sou = Instance.new("Sound",par or workspace) | |
239 | sou.Volume=vol | |
240 | sou.Pitch=pit or 1 | |
241 | sou.SoundId=id | |
242 | swait() | |
243 | sou:play() | |
244 | game:GetService("Debris"):AddItem(sou,6) | |
245 | end)) | |
246 | end | |
247 | ||
248 | function clerp(a,b,t) | |
249 | local qa = {QuaternionFromCFrame(a)} | |
250 | local qb = {QuaternionFromCFrame(b)} | |
251 | local ax, ay, az = a.x, a.y, a.z | |
252 | local bx, by, bz = b.x, b.y, b.z | |
253 | local _t = 1-t | |
254 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
255 | end | |
256 | ||
257 | function QuaternionFromCFrame(cf) | |
258 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
259 | local trace = m00 + m11 + m22 | |
260 | if trace > 0 then | |
261 | local s = math.sqrt(1 + trace) | |
262 | local recip = 0.5/s | |
263 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
264 | else | |
265 | local i = 0 | |
266 | if m11 > m00 then | |
267 | i = 1 | |
268 | end | |
269 | if m22 > (i == 0 and m00 or m11) then | |
270 | i = 2 | |
271 | end | |
272 | if i == 0 then | |
273 | local s = math.sqrt(m00-m11-m22+1) | |
274 | local recip = 0.5/s | |
275 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
276 | elseif i == 1 then | |
277 | local s = math.sqrt(m11-m22-m00+1) | |
278 | local recip = 0.5/s | |
279 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
280 | elseif i == 2 then | |
281 | local s = math.sqrt(m22-m00-m11+1) | |
282 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
283 | end | |
284 | end | |
285 | end | |
286 | ||
287 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
288 | local xs, ys, zs = x + x, y + y, z + z | |
289 | local wx, wy, wz = w*xs, w*ys, w*zs | |
290 | local xx = x*xs | |
291 | local xy = x*ys | |
292 | local xz = x*zs | |
293 | local yy = y*ys | |
294 | local yz = y*zs | |
295 | local zz = z*zs | |
296 | 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)) | |
297 | end | |
298 | ||
299 | function QuaternionSlerp(a, b, t) | |
300 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
301 | local startInterp, finishInterp; | |
302 | if cosTheta >= 0.0001 then | |
303 | if (1 - cosTheta) > 0.0001 then | |
304 | local theta = math.acos(cosTheta) | |
305 | local invSinTheta = 1/math.sin(theta) | |
306 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
307 | finishInterp = math.sin(t*theta)*invSinTheta | |
308 | else | |
309 | startInterp = 1-t | |
310 | finishInterp = t | |
311 | end | |
312 | else | |
313 | if (1+cosTheta) > 0.0001 then | |
314 | local theta = math.acos(-cosTheta) | |
315 | local invSinTheta = 1/math.sin(theta) | |
316 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
317 | finishInterp = math.sin(t*theta)*invSinTheta | |
318 | else | |
319 | startInterp = t-1 | |
320 | finishInterp = t | |
321 | end | |
322 | end | |
323 | 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 | |
324 | end | |
325 | ||
326 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
327 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
328 | end | |
329 | ||
330 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
331 | if hit.Parent==nil then | |
332 | return | |
333 | end | |
334 | local h=hit.Parent:FindFirstChild("Humanoid") | |
335 | for _,v in pairs(hit.Parent:children()) do | |
336 | if v:IsA("Humanoid") then | |
337 | h=v | |
338 | end | |
339 | end | |
340 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
341 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
342 | end | |
343 | if hit.Parent.className=="Hat" then | |
344 | hit=hit.Parent.Parent:findFirstChild("Head") | |
345 | end | |
346 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
347 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
348 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
349 | return | |
350 | end]] | |
351 | -- hs(hit,1.2) | |
352 | local c=Instance.new("ObjectValue") | |
353 | c.Name="creator" | |
354 | c.Value=game:service("Players").LocalPlayer | |
355 | c.Parent=h | |
356 | game:GetService("Debris"):AddItem(c,.5) | |
357 | local Damage=math.random(minim,maxim) | |
358 | -- h:TakeDamage(Damage) | |
359 | local blocked=false | |
360 | local block=hit.Parent:findFirstChild("Block") | |
361 | if block~=nil then | |
362 | print(block.className) | |
363 | if block.className=="NumberValue" then | |
364 | if block.Value>0 then | |
365 | blocked=true | |
366 | if decreaseblock==nil then | |
367 | block.Value=block.Value-1 | |
368 | end | |
369 | end | |
370 | end | |
371 | if block.className=="IntValue" then | |
372 | if block.Value>0 then | |
373 | blocked=true | |
374 | if decreaseblock~=nil then | |
375 | block.Value=block.Value-1 | |
376 | end | |
377 | end | |
378 | end | |
379 | end | |
380 | if blocked==false then | |
381 | -- h:TakeDamage(Damage) | |
382 | h.Health=h.Health-Damage | |
383 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
384 | else | |
385 | h.Health=h.Health-(Damage/2) | |
386 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
387 | end | |
388 | if Type=="Knockdown" then | |
389 | local hum=hit.Parent.Humanoid | |
390 | hum.PlatformStand=true | |
391 | coroutine.resume(coroutine.create(function(HHumanoid) | |
392 | swait(1) | |
393 | HHumanoid.PlatformStand=false | |
394 | end),hum) | |
395 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
396 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
397 | local bodvol=Instance.new("BodyVelocity") | |
398 | bodvol.velocity=angle*knockback | |
399 | bodvol.P=5000 | |
400 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
401 | bodvol.Parent=hit | |
402 | local rl=Instance.new("BodyAngularVelocity") | |
403 | rl.P=3000 | |
404 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
405 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
406 | rl.Parent=hit | |
407 | game:GetService("Debris"):AddItem(bodvol,.5) | |
408 | game:GetService("Debris"):AddItem(rl,.5) | |
409 | elseif Type=="Normal" then | |
410 | local vp=Instance.new("BodyVelocity") | |
411 | vp.P=500 | |
412 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
413 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
414 | if KnockbackType==1 then | |
415 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
416 | elseif KnockbackType==2 then | |
417 | vp.velocity=Property.CFrame.lookVector*knockback | |
418 | end | |
419 | if knockback>0 then | |
420 | vp.Parent=hit.Parent.Torso | |
421 | end | |
422 | game:GetService("Debris"):AddItem(vp,.5) | |
423 | elseif Type=="Up" then | |
424 | local bodyVelocity=Instance.new("BodyVelocity") | |
425 | bodyVelocity.velocity=vt(0,60,0) | |
426 | bodyVelocity.P=5000 | |
427 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
428 | bodyVelocity.Parent=hit | |
429 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
430 | local rl=Instance.new("BodyAngularVelocity") | |
431 | rl.P=3000 | |
432 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
433 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
434 | rl.Parent=hit | |
435 | game:GetService("Debris"):AddItem(rl,.5) | |
436 | elseif Type=="Snare" then | |
437 | local bp=Instance.new("BodyPosition") | |
438 | bp.P=2000 | |
439 | bp.D=100 | |
440 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
441 | bp.position=hit.Parent.Torso.Position | |
442 | bp.Parent=hit.Parent.Torso | |
443 | game:GetService("Debris"):AddItem(bp,1) | |
444 | elseif Type=="Target" then | |
445 | local Targetting = false | |
446 | if Targetting==false then | |
447 | ZTarget=hit.Parent.Torso | |
448 | coroutine.resume(coroutine.create(function(Part) | |
449 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
450 | swait(5) | |
451 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
452 | end),ZTarget) | |
453 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
454 | local targetgui=Instance.new("BillboardGui") | |
455 | targetgui.Parent=ZTarget | |
456 | targetgui.Size=UDim2.new(10,100,10,100) | |
457 | local targ=Instance.new("ImageLabel") | |
458 | targ.Parent=targetgui | |
459 | targ.BackgroundTransparency=1 | |
460 | targ.Image="rbxassetid://4834067" | |
461 | targ.Size=UDim2.new(1,0,1,0) | |
462 | cam.CameraType="Scriptable" | |
463 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
464 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
465 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
466 | Targetting=true | |
467 | RocketTarget=ZTarget | |
468 | for i=1,Property do | |
469 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
470 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
471 | swait() | |
472 | end | |
473 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
474 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
475 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
476 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
477 | end | |
478 | Targetting=false | |
479 | RocketTarget=nil | |
480 | targetgui.Parent=nil | |
481 | cam.CameraType="Custom" | |
482 | end | |
483 | end | |
484 | local debounce=Instance.new("BoolValue") | |
485 | debounce.Name="DebounceHit" | |
486 | debounce.Parent=hit.Parent | |
487 | debounce.Value=true | |
488 | game:GetService("Debris"):AddItem(debounce,Delay) | |
489 | c=Instance.new("ObjectValue") | |
490 | c.Name="creator" | |
491 | c.Value=Player | |
492 | c.Parent=h | |
493 | game:GetService("Debris"):AddItem(c,.5) | |
494 | end | |
495 | end | |
496 | ||
497 | ||
498 | function ShowDamage(Pos, Text, Time, Color) | |
499 | local Rate = (1 / 30) | |
500 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
501 | local Text = (Text or "") | |
502 | local Time = (Time or 2) | |
503 | local Color = (Color or Color3.new(1, 0, 0)) | |
504 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
505 | EffectPart.Anchored = true | |
506 | local BillboardGui = Instance.new("BillboardGui") | |
507 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
508 | BillboardGui.Adornee = EffectPart | |
509 | local TextLabel = Instance.new("TextLabel") | |
510 | TextLabel.BackgroundTransparency = 1 | |
511 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
512 | TextLabel.Text = Text | |
513 | TextLabel.TextColor3 = Color | |
514 | TextLabel.TextScaled = true | |
515 | TextLabel.Font = Enum.Font.ArialBold | |
516 | TextLabel.Parent = BillboardGui | |
517 | BillboardGui.Parent = EffectPart | |
518 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
519 | EffectPart.Parent = game:GetService("Workspace") | |
520 | Delay(0, function() | |
521 | local Frames = (Time / Rate) | |
522 | for Frame = 1, Frames do | |
523 | wait(Rate) | |
524 | local Percent = (Frame / Frames) | |
525 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
526 | TextLabel.TextTransparency = Percent | |
527 | end | |
528 | if EffectPart and EffectPart.Parent then | |
529 | EffectPart:Destroy() | |
530 | end | |
531 | end) | |
532 | end | |
533 | ||
534 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Handle",Vector3.new(0.34799999, 2.78399992, 0.34799999)) | |
535 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.00324273, 0.013961792, -0.00828075409, -1.38366803e-013, -0.999999881, 4.25688995e-009, 2.4656245e-007, -4.25688951e-009, -1, 1, -1.373172e-013, 2.4656245e-007)) | |
536 | mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
537 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0.5,1,"Really red","Hitbox",Vector3.new(1.04400003, 6.35600042, 0.600000024)) | |
538 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000308990479, -5.48094559, -2.00271606e-005, 1, 6.10120843e-011, -1.08637464e-014, -6.10120843e-011, 1, 7.57154339e-011, 1.08637574e-014, -7.57154339e-011, 1)) | |
539 | mesh("BlockMesh",Hitbox,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) | |
540 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
541 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -0.00242900848, 2.16260338, 1.38366803e-013, -2.4656245e-007, -1, -0.999999702, -4.25688862e-009, -1.37317173e-013, -4.25688862e-009, 0.999999702, -2.46562365e-007)) | |
542 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
543 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
544 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007)) | |
545 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
546 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.34799999, 0.812000036)) | |
547 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000484466553, -0.232157588, -1.08489037, -1.6391111e-007, -2.91180186e-007, -0.999989986, -0.999989986, 2.34624395e-007, 1.63911025e-007, 2.34622007e-007, 1, -2.91177315e-007)) | |
548 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1)) | |
549 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
550 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.1207962, -1.77352905, -1.94793994e-008, -1.96046472e-007, -1, 0.707106471, 0.707106292, -1.52399679e-007, 0.707106292, -0.707106471, 1.24851695e-007)) | |
551 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
552 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.812000036, 0.591600001)) | |
553 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000144004822, -7.46494102, -8.79764557e-005, 4.47029542e-008, 2.42425131e-007, 0.999980867, -2.50834205e-007, 1, -2.42420526e-007, -0.999980867, -2.5083898e-007, 4.47030146e-008)) | |
554 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1)) | |
555 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
556 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
557 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 0.723839939)) | |
558 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
559 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007)) | |
560 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
561 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
562 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.232713461, -1.89698601, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
563 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
564 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999)) | |
565 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.174778461, -1.66498375, 9.53674316e-006, 1, -2.34479103e-012, -1.42102626e-014, 2.34479103e-012, 1, -2.89901436e-012, 2.04982668e-014, 2.89901436e-012, 1)) | |
566 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.580000103, 1)) | |
567 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Bright red","Part",Vector3.new(1.04400003, 4.75600052, 0.200000003)) | |
568 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000287055969, -4.68094635, -3.14712524e-005, 0.999985695, 6.10369533e-011, -1.79689095e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689129e-014, -7.57438556e-011, 0.999985695)) | |
569 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) | |
570 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
571 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007)) | |
572 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.230839998, 0.200680032, 2.79675961)) | |
573 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.579999983, 0.812000036, 0.200000003)) | |
574 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642)) | |
575 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.798079908, 0.843320072, 0.58927989)) | |
576 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
577 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007)) | |
578 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
579 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
580 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11735535, -1.77697182, 5.58765407e-008, -2.23627353e-007, -1, 0.707106352, -0.707106411, 1.97639011e-007, -0.707106411, -0.707106352, 1.18617642e-007)) | |
581 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
582 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
583 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007)) | |
584 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
585 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
586 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007)) | |
587 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
588 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995)) | |
589 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00553905964, -0.620464325, 0.00238800049, 0.999994755, 4.21545732e-009, 1.69303116e-013, -4.2154511e-009, 1, -2.46550314e-007, -1.77448632e-013, 2.46551593e-007, 0.999994755)) | |
590 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
591 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
592 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.12079048, -0.461172104, -1.20904753e-008, -2.04617493e-007, -1, 0.70710665, 0.70710659, -1.53235618e-007, 0.70710659, -0.70710665, 1.36137132e-007)) | |
593 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
594 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.812000036, 0.200000003, 0.579999983)) | |
595 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58329773, -0.00251197815, 0.00270497799, 4.25687707e-009, -1, 2.46565747e-007, 1.65165096e-013, -2.46565747e-007, -1, 1, 4.25687707e-009, 1.64115493e-013)) | |
596 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.526639998, 1)) | |
597 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.812000036, 0.34799999)) | |
598 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.294445038, 1.4429245, 0.00253105164, 0.965925753, -0.258819014, 6.3815186e-008, 0.258819014, 0.965925753, -2.38160979e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
599 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
600 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
601 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.12079048, -0.461172104, -1.20904753e-008, -2.04617493e-007, -1, 0.70710665, 0.70710659, -1.53235618e-007, 0.70710659, -0.70710665, 1.36137132e-007)) | |
602 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
603 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
604 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
605 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.229680017, 0.249400035, 0.650759876)) | |
606 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
607 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.90548706, -0.270383835, 1.38366803e-013, -2.4656245e-007, -1, -0.707106292, 0.707106471, -1.74345999e-007, 0.707106471, 0.707106292, -1.74345757e-007)) | |
608 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
609 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999)) | |
610 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.28609848, -1.26961899, 0.00253105164, 0.707106709, -0.707106769, 1.74346084e-007, 0.707106769, 0.707106709, -1.74345857e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
611 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
612 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007)) | |
613 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
614 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
615 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007)) | |
616 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
617 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
618 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
619 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
620 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
621 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
622 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
623 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
624 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11734962, -0.464616776, 4.62869565e-008, -2.3199955e-007, -1, 0.707106471, -0.70710659, 1.96778231e-007, -0.70710659, -0.707106471, 1.31318558e-007)) | |
625 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
626 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.579999983, 0.200000003, 0.34799999)) | |
627 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000606894493, -1.54850197, -4.76837158e-006, 1, -2.34479103e-012, -1.42102626e-014, 2.34479103e-012, 1, -2.89901436e-012, 2.04982668e-014, 2.89901436e-012, 1)) | |
628 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
629 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
630 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
631 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.214599997, 0.428039998, 1.68895996)) | |
632 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
633 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.23126626, -1.89697075, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
634 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000222, 1, 1)) | |
635 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999)) | |
636 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.859739304, -1.87621498, 0.00253105164, 0.70710659, 0.70710659, -1.74345828e-007, -0.70710659, 0.70710659, -1.74346027e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
637 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
638 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58202362, 0.00305497646, 0.00253105164, 1.91577065e-008, -1, 2.46562593e-007, 0.999994159, 1.91577474e-008, -8.742213e-008, 4.37109904e-008, 2.46561086e-007, 0.999994159)) | |
639 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
640 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
641 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, -0.577546716, 1.38366803e-013, -2.4656245e-007, -1, -3.40592123e-008, 0.999999821, -2.46562394e-007, 0.999999821, 3.40592123e-008, 1.29969047e-013)) | |
642 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
643 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.44659999, 0.69599998, 0.371199995)) | |
644 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00555098057, -1.02645874, 0.00238800049, 0.999994278, 4.2154551e-009, 1.69303035e-013, -4.21544888e-009, 0.999999523, -2.46550201e-007, -1.77448632e-013, 2.46551593e-007, 0.999994755)) | |
645 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
646 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
647 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -0.0024292469, 2.16260338, 1.38366803e-013, -2.4656245e-007, -1, -0.999999702, -6.38615347e-008, -1.22620908e-013, -6.38615347e-008, 0.999999702, -2.46562365e-007)) | |
648 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
649 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.463999987, 0.34799999)) | |
650 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000650644302, -1.8385067, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
651 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
652 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 4.75600052, 0.200000003)) | |
653 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000156164169, -4.68094444, -0.000274658203, 0.999971211, 5.13775689e-011, -1.44165397e-014, -5.13864507e-011, 1, 6.64499566e-011, 8.34828473e-015, -6.64783784e-011, 0.999971211)) | |
654 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000401, 1, 0.69599992)) | |
655 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
656 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007)) | |
657 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
658 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
659 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007)) | |
660 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.230839998, 0.200680032, 2.79675961)) | |
661 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
662 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
663 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
664 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
665 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, -1.15753412, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
666 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
667 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.231999993, 0.200000003)) | |
668 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000268936157, -7.1749382, -0.000166773796, -2.98020346e-008, 2.42384317e-007, 0.999980867, -2.50883971e-007, 1, -2.42379713e-007, -0.999980867, -2.50888746e-007, -2.98019742e-008)) | |
669 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.698320508, 1.00999999, 0.590207934)) | |
670 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.44659999, 1.15999997, 0.371199995)) | |
671 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00572288036, 0.249307632, 0.00253105164, 0.999997973, 4.25688151e-009, 1.37316929e-013, -4.25688196e-009, 0.999998093, -2.46561967e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881)) | |
672 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
673 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995)) | |
674 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00575697422, 1.22929001, 0.00253105164, 1, 4.25689928e-009, 1.49599246e-013, -4.25689928e-009, 1, -2.46565691e-007, -1.50648848e-013, 2.46565691e-007, 1)) | |
675 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
676 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
677 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11734962, -0.464616776, 4.62869565e-008, -2.3199955e-007, -1, 0.707106471, -0.70710659, 1.96778231e-007, -0.70710659, -0.707106471, 1.31318558e-007)) | |
678 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
679 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.579999983, 0.34799999)) | |
680 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.347447634, -1.78050041, 0.000102043152, 0.999989986, 6.10373974e-011, -1.79689739e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999989986)) | |
681 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
682 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
683 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.21653748, 2.8604393, 1.38366803e-013, -2.4656245e-007, -1, 0.707106769, 0.707106709, -1.74345857e-007, 0.707106709, -0.707106769, 1.74346084e-007)) | |
684 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
685 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
686 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
687 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.229680017, 0.249400035, 0.650759876)) | |
688 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.696000099, 0.231999993, 0.34799999)) | |
689 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.872640967, -2.18717003, 0.00248718262, 1, 4.25688995e-009, 1.37317214e-013, -4.25688995e-009, 1, -2.4656245e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
690 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
691 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.91083908, -0.265031815, 1.38366803e-013, -2.4656245e-007, -1, -0.70710659, -0.707106471, 1.743458e-007, -0.707106471, 0.70710659, -1.74346027e-007)) | |
692 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
693 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
694 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -2.18717003, 1.162413, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
695 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.226199999, 0.379320025, 1.68895996)) | |
696 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Bright red","Part",Vector3.new(0.200000003, 1.50800002, 1.04400003)) | |
697 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.53131104e-005, -7.8129406, 0.00018453598, 4.47029258e-008, 2.42408902e-007, 0.999980867, -2.50858221e-007, 1, -2.42404298e-007, -0.999980867, -2.50863025e-007, 4.47029933e-008)) | |
698 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.581159949, 1, 1)) | |
699 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999)) | |
700 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000666975975, -2.18694496, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
701 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
702 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, -1.11735535, -1.77697182, 5.58765407e-008, -2.23627353e-007, -1, 0.707106352, -0.707106411, 1.97639011e-007, -0.707106411, -0.707106352, 1.18617642e-007)) | |
703 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
704 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.231999993, 0.200000003, 0.34799999)) | |
705 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.173270226, -1.66498375, 0.0001039505, 0.999997854, 6.10373974e-011, -1.7969128e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79691145e-014, -7.57154339e-011, 0.999997854)) | |
706 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.580000103, 1)) | |
707 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
708 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, 0.582428694, -3.71006301e-008, -2.2971102e-007, -1, 2.55454324e-008, 0.999999821, -2.29710963e-007, 0.999999821, -2.55454431e-008, -3.71006159e-008)) | |
709 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0522000007, 0.293480009, 0.495319903)) | |
710 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999)) | |
711 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.863862991, -1.87209129, 0.00253105164, 0.70710659, -0.70710659, 1.74346027e-007, 0.70710659, 0.70710659, -1.74345828e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
712 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
713 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, -0.577546716, 1.38366803e-013, -2.4656245e-007, -1, -3.40592123e-008, 0.999999821, -2.46562394e-007, 0.999999821, 3.40592123e-008, 1.29969047e-013)) | |
714 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
715 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.231999993, 0.34799999)) | |
716 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.21997452, 2.85700226, 1.38366803e-013, -2.4656245e-007, -1, 0.70710659, -0.70710665, 1.74346042e-007, -0.70710665, -0.70710659, 1.74345828e-007)) | |
717 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.187919989, 0.477920026, 1.68895996)) | |
718 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.580000043, 4.75600052, 0.200000003)) | |
719 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0001963377, -4.68094635, -9.53674316e-005, 0.999990404, 6.10373974e-011, -1.79689874e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57154339e-011, 0.999990404)) | |
720 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.638000011)) | |
721 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(1.04400003, 0.231999993, 0.34799999)) | |
722 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28197098, -1.27374649, 0.00253105164, 0.707106709, 0.707106769, -1.74345885e-007, -0.707106769, 0.707106709, -1.74346056e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
723 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
724 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.116648793, -1.89650726, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
725 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
726 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
727 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.58260727, 0.582428694, -3.71006301e-008, -2.2971102e-007, -1, 2.55454324e-008, 0.999999821, -2.29710963e-007, 0.999999821, -2.55454431e-008, -3.71006159e-008)) | |
728 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
729 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995)) | |
730 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00563848019, -0.388711929, 0.00253295898, 0.99999404, 4.25686464e-009, 1.37316401e-013, -4.25686508e-009, 0.999994159, -2.46561001e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881)) | |
731 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
732 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.34799999, 0.34799999, 0.200000003)) | |
733 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642)) | |
734 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.595080018, 0.683239937)) | |
735 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
736 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0605430603, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007)) | |
737 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 2.79675961)) | |
738 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.231999993, 0.34799999)) | |
739 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.347726822, -1.60689163, -9.05990601e-005, 0.99999994, 6.59379218e-011, -1.80878482e-014, -6.59667876e-011, 1, -5.95150595e-011, 2.41627922e-014, 5.94866378e-011, 0.99999994)) | |
740 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.580000103, 1, 1)) | |
741 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.34799996, 0.34799999, 0.34799999)) | |
742 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00253105164, 1.1207962, -1.77352905, -1.94793994e-008, -1.96046472e-007, -1, 0.707106471, 0.707106292, -1.52399679e-007, 0.707106292, -0.707106471, 1.24851695e-007)) | |
743 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.0649600029, 0.266800046, 0.495319903)) | |
744 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.696000099, 0.231999993, 0.34799999)) | |
745 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.870689273, -2.18681908, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
746 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Metal,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.34799999, 0.812000036)) | |
747 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000425338745, -0.231835961, -1.08489037, -4.08055101e-009, 2.02203083e-007, 0.99999994, 0.99999994, 2.42933169e-007, 4.08050749e-009, -2.42933169e-007, 1, -2.02203097e-007)) | |
748 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.628719985, 1, 1)) | |
749 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.812000036, 0.200000003, 0.812000036)) | |
750 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.58329773, -0.00251197815, 0.00270497799, 4.25687707e-009, -1, 2.46565747e-007, 1.65165096e-013, -2.46565747e-007, -1, 1, 4.25687707e-009, 1.64115493e-013)) | |
751 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.444280028, 1)) | |
752 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
753 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, -4.62282181, 0.00242900848, 1.38366803e-013, -2.4656245e-007, -1, -4.25688995e-009, 1, -2.4656245e-007, 1, 4.25688995e-009, 1.37317214e-013)) | |
754 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 0.723839939)) | |
755 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995)) | |
756 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00563395023, 0.887273788, 0.00253295898, 0.999990106, 4.25684776e-009, 1.37315859e-013, -4.25684821e-009, 0.999990225, -2.46560035e-007, -1.38366789e-013, 2.46562422e-007, 0.999999881)) | |
757 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
758 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
759 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.348541379, -1.89650154, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
760 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
761 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.579999983, 0.812000036, 0.200000003)) | |
762 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.58329582, -0.00271689892, 0.00253105164, -7.87626959e-008, 0.999999642, -2.45072926e-007, -0.999999464, 8.51500772e-008, -4.54507015e-010, 1.08588507e-008, 2.02850984e-007, 0.999999642)) | |
763 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.835199952, 0.808520079, 0.58927989)) | |
764 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.44659999, 0.200000003, 0.371199995)) | |
765 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00555217266, -1.43245697, 0.00238800049, 0.999993682, 4.21545243e-009, 1.69302926e-013, -4.21544666e-009, 0.999998927, -2.46550059e-007, -1.77448618e-013, 2.46551593e-007, 0.999994755)) | |
766 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
767 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Crimson","Part",Vector3.new(0.200000003, 0.34799999, 0.34799999)) | |
768 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.115347862, -1.89650726, 0.000104904175, 0.999990463, 6.10373974e-011, -1.79689993e-014, -6.10378414e-011, 1, 7.57154339e-011, 1.79689976e-014, -7.57438556e-011, 0.999990463)) | |
769 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
770 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.231999978, 0.231999993, 0.34799999)) | |
771 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.055480957, 0.00242888927, 4.62282181, 1.38366803e-013, -2.4656245e-007, -1, 0.999999881, 1.91580511e-008, 1.33643137e-013, 1.91580511e-008, -0.999999881, 2.46562422e-007)) | |
772 | mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(0.190239996, 0.25752002, 2.79675961)) | |
773 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Part",Vector3.new(0.200000003, 0.812000036, 0.34799999)) | |
774 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.300365448, 1.44133759, 0.00253105164, 0.965925753, 0.258819014, -6.3814916e-008, -0.258819014, 0.965925753, -2.38161064e-007, -1.38366803e-013, 2.4656245e-007, 1)) | |
775 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) | |
776 | ||
777 | local Lite = it("PointLight",Torso) | |
778 | Lite.Color = Color3.new(255, 255, 0) | |
779 | Lite.Range = 8 | |
780 | Lite.Brightness = 10 | |
781 | Lite.Shadows = true | |
782 | ||
783 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
784 | local prt=part("Custom",workspace,"Neon",0,0,"Bright red","Effect",vt(0.5,0.5,0.5)) | |
785 | prt.Anchored=true | |
786 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
787 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
788 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
789 | CF=Part.CFrame | |
790 | Numbb=0 | |
791 | randnumb=math.random()-math.random() | |
792 | for i=0,1,0.05 do | |
793 | wait() | |
794 | CF=CF*cf(0,1,0) | |
795 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
796 | Part.CFrame=CF*euler(Numbb,0,0) | |
797 | Part.Transparency=i | |
798 | Numbb=Numbb+randnumb | |
799 | end | |
800 | Part.Parent=nil | |
801 | end),prt) | |
802 | end | |
803 | --BreakEffect(BrickColor.new("New Yeller"),Hitbox.CFrame,0.5,math.random(5,20),0.5) | |
804 | ||
805 | function attackone() | |
806 | attack=true | |
807 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
808 | for i=0,1,0.1 do | |
809 | swait() | |
810 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3) | |
811 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3) | |
812 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
813 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
814 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3) | |
815 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
816 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3) | |
817 | end | |
818 | so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1) | |
819 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) | |
820 | hitconasdf = Hitbox.Touched:connect(function(hit) | |
821 | local hum12 = hit.Parent:FindFirstChild("Humanoid") | |
822 | if hum12 and not hum12:IsDescendantOf(Character) then | |
823 | so('http://roblox.com/asset/?id=154965973',Hitbox,1,1) | |
824 | for i = 1,10 do | |
825 | BreakEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5) | |
826 | end | |
827 | hitconasdf:disconnect() | |
828 | end | |
829 | end) | |
830 | for i=0,1,0.1 do | |
831 | swait() | |
832 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
833 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
834 | local h = 5 | |
835 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
836 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
837 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
838 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
839 | scfr = blcf | |
840 | elseif not scfr then | |
841 | scfr = blcf | |
842 | end | |
843 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3) | |
844 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3) | |
845 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
846 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
847 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3) | |
848 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
849 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3) | |
850 | end | |
851 | attack=false | |
852 | con:disconnect() | |
853 | scfr = nil | |
854 | pcall(function() | |
855 | hitconasdf:disconnect() | |
856 | end) | |
857 | end | |
858 | ||
859 | function attacktwo() | |
860 | attack=true | |
861 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
862 | for i=0,1,0.1 do | |
863 | swait() | |
864 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3) | |
865 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3) | |
866 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
867 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
868 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3) | |
869 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3) | |
870 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3) | |
871 | end | |
872 | so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9) | |
873 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) | |
874 | hitconasdf = Hitbox.Touched:connect(function(hit) | |
875 | local hum12 = hit.Parent:FindFirstChild("Humanoid") | |
876 | if hum12 and not hum12:IsDescendantOf(Character) then | |
877 | so('http://roblox.com/asset/?id=154965973',Hitbox,1,1) | |
878 | for i = 1,10 do | |
879 | BreakEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5) | |
880 | end | |
881 | hitconasdf:disconnect() | |
882 | end | |
883 | end) | |
884 | for i=0,1,0.1 do | |
885 | swait() | |
886 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
887 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
888 | local h = 5 | |
889 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
890 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
891 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
892 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
893 | scfr = blcf | |
894 | elseif not scfr then | |
895 | scfr = blcf | |
896 | end | |
897 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3) | |
898 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3) | |
899 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
900 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
901 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3) | |
902 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
903 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3) | |
904 | end | |
905 | attack=false | |
906 | con:disconnect() | |
907 | scfr = nil | |
908 | pcall(function() | |
909 | hitconasdf:disconnect() | |
910 | end) | |
911 | end | |
912 | ||
913 | function Stab() | |
914 | attack=true | |
915 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
916 | for i=0,1,0.1 do | |
917 | swait() | |
918 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
919 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(60)),.3) | |
920 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(20),math.rad(90)),.3) | |
921 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-90)),.3) | |
922 | LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
923 | RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
924 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
925 | end | |
926 | hitconasdf = Hitbox.Touched:connect(function(hit) | |
927 | local hum12 = hit.Parent:FindFirstChild("Humanoid") | |
928 | if hum12 and not hum12:IsDescendantOf(Character) then | |
929 | so('http://roblox.com/asset/?id=154965973',Hitbox,1,1) | |
930 | for i = 1,10 do | |
931 | BreakEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5) | |
932 | end | |
933 | hitconasdf:disconnect() | |
934 | end | |
935 | end) | |
936 | so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9) | |
937 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) | |
938 | for i=0,1,0.1 do | |
939 | swait() | |
940 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
941 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
942 | local h = 5 | |
943 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
944 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
945 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
946 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
947 | scfr = blcf | |
948 | elseif not scfr then | |
949 | scfr = blcf | |
950 | end | |
951 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
952 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-80)),.4) | |
953 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.4) | |
954 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.4) | |
955 | LH.C0=clerp(LH.C0,cf(-1,-.9,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4) | |
956 | RH.C0=clerp(RH.C0,cf(1,-.9,0)*angles(math.rad(0),math.rad(60),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.4) | |
957 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-90),math.rad(0),math.rad(0)),.4) | |
958 | end | |
959 | con:disconnect() | |
960 | attack=false | |
961 | scfr = nil | |
962 | pcall(function() | |
963 | hitconasdf:disconnect() | |
964 | end) | |
965 | end | |
966 | ||
967 | function Spin() | |
968 | attack=true | |
969 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
970 | hitconasdf = Hitbox.Touched:connect(function(hit) | |
971 | local hum12 = hit.Parent:FindFirstChild("Humanoid") | |
972 | if hum12 and not hum12:IsDescendantOf(Character) then | |
973 | so('http://roblox.com/asset/?id=154965973',Hitbox,1,1) | |
974 | for i = 1,10 do | |
975 | BreakEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5) | |
976 | end | |
977 | hitconasdf:disconnect() | |
978 | end | |
979 | end) | |
980 | for i=0,1,1 do | |
981 | so("http://roblox.com/asset/?id=154965962",Hitbox,1,1) | |
982 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) | |
983 | swait() | |
984 | for i=0,1,0.1 do | |
985 | swait() | |
986 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
987 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
988 | local h = 5 | |
989 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
990 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
991 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
992 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
993 | scfr = blcf | |
994 | elseif not scfr then | |
995 | scfr = blcf | |
996 | end | |
997 | RW.C0=clerp(RW.C0,cf(1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(-50)),.3) | |
998 | LW.C0=clerp(LW.C0,cf(-1,0.5,-.5)*angles(math.rad(90),math.rad(0),math.rad(50)),.3) | |
999 | LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3) | |
1000 | RH.C0=clerp(RH.C0,cf(1,-.5,-1)*angles(math.rad(-20),math.rad(90),math.rad(0)),.3) | |
1001 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*euler(6*i,0,0),.5) | |
1002 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(30)),1) | |
1003 | end | |
1004 | end | |
1005 | attack=false | |
1006 | con:disconnect() | |
1007 | scfr = nil | |
1008 | pcall(function() | |
1009 | hitconasdf:disconnect() | |
1010 | end) | |
1011 | end | |
1012 | ||
1013 | function ContAttack() | |
1014 | attack=true | |
1015 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,30,50,math.random(10,20),"Normal",RootPart,.2,1) end) | |
1016 | hitconasdf = Hitbox.Touched:connect(function(hit) | |
1017 | local hum12 = hit.Parent:FindFirstChild("Humanoid") | |
1018 | if hum12 and not hum12:IsDescendantOf(Character) then | |
1019 | so('http://roblox.com/asset/?id=154965973',Hitbox,1,1) | |
1020 | for i = 1,10 do | |
1021 | BreakEffect(BrickColor.new("Bright red"),hit.Parent.Torso.CFrame,0.5,math.random(5,20),0.5) | |
1022 | end | |
1023 | hitconasdf:disconnect() | |
1024 | end | |
1025 | end) | |
1026 | for i=1,4 do | |
1027 | swait() | |
1028 | for i=0,1,0.2 do | |
1029 | swait() | |
1030 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(120),math.rad(0),math.rad(20)),.3) | |
1031 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3) | |
1032 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1033 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1034 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(70),math.rad(-10),math.rad(0)),.3) | |
1035 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1036 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3) | |
1037 | end | |
1038 | so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,1) | |
1039 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,1) | |
1040 | for i=0,1,0.2 do | |
1041 | swait() | |
1042 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
1043 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1044 | local h = 5 | |
1045 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1046 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1047 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1048 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1049 | scfr = blcf | |
1050 | elseif not scfr then | |
1051 | scfr = blcf | |
1052 | end | |
1053 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(110),math.rad(-90),math.rad(20)),.3) | |
1054 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3) | |
1055 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1056 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1057 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-60),math.rad(-10),math.rad(0)),.3) | |
1058 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
1059 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3) | |
1060 | end | |
1061 | for i=0,1,0.2 do | |
1062 | swait() | |
1063 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(90)),.3) | |
1064 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-50)),.3) | |
1065 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-130),math.rad(5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1066 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1067 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-30),math.rad(-10),math.rad(0)),.3) | |
1068 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(70)),.3) | |
1069 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(-50)),.3) | |
1070 | end | |
1071 | so("http://www.roblox.com/asset/?id=154965962",Hitbox,1,.9) | |
1072 | so("http://www.roblox.com/asset/?id=231917758",Hitbox,1,.9) | |
1073 | for i=0,1,0.2 do | |
1074 | swait() | |
1075 | local blcf = Hitbox.CFrame*CFrame.new(0,.3,0) | |
1076 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1077 | local h = 5 | |
1078 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1079 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1080 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1081 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1082 | scfr = blcf | |
1083 | elseif not scfr then | |
1084 | scfr = blcf | |
1085 | end | |
1086 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-50),math.rad(90)),.3) | |
1087 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(-20),math.rad(-90)),.3) | |
1088 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1089 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(130),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1090 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(-50),math.rad(10),math.rad(0)),.3) | |
1091 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1092 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(50)),.3) | |
1093 | end | |
1094 | end | |
1095 | attack=false | |
1096 | con:disconnect() | |
1097 | scfr = nil | |
1098 | pcall(function() | |
1099 | hitconasdf:disconnect() | |
1100 | end) | |
1101 | end | |
1102 | ||
1103 | ||
1104 | function Sheathe() | |
1105 | attack = true | |
1106 | so("http://www.roblox.com/asset/?id=273797222",Hitbox,1,.9) | |
1107 | CurrentMode = "Sheathed" | |
1108 | for i = 0,1,0.1 do | |
1109 | swait() | |
1110 | handleweld.Part0 = Torso | |
1111 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1112 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.3) | |
1113 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(190),math.rad(0),math.rad(0)),.3) | |
1114 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3) | |
1115 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1116 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1117 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1118 | end | |
1119 | attack = false | |
1120 | end | |
1121 | ||
1122 | function Unsheathe() | |
1123 | attack = true | |
1124 | CurrentMode = "Unsheathed" | |
1125 | so("http://www.roblox.com/asset/?id=239169404",Hitbox,1,.9) | |
1126 | for i = 0,1,0.1 do | |
1127 | swait() | |
1128 | handleweld.Part0 = RightArm | |
1129 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
1130 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
1131 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(200),math.rad(0),math.rad(0)),.3) | |
1132 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(-30),math.rad(-30)),.3) | |
1133 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1134 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1135 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0)),.3) | |
1136 | end | |
1137 | scfr = nil | |
1138 | attack = false | |
1139 | end | |
1140 | ||
1141 | local Sit = false | |
1142 | ||
1143 | mouse.Button1Down:connect(function() | |
1144 | if attack==false then | |
1145 | if attacktype==1 and CurrentMode == "Unsheathed" then | |
1146 | attack=true | |
1147 | attacktype=2 | |
1148 | attackone() | |
1149 | elseif attacktype==2 and CurrentMode == "Unsheathed" then | |
1150 | attack=true | |
1151 | attacktype=1 | |
1152 | attacktwo() | |
1153 | end | |
1154 | end | |
1155 | end) | |
1156 | ||
1157 | ||
1158 | mouse.KeyDown:connect(function(k) | |
1159 | k=k:lower() | |
1160 | if k=='q' then | |
1161 | if attack==false and CurrentMode == "Unsheathed" then | |
1162 | Stab() | |
1163 | end | |
1164 | elseif k=='e' then | |
1165 | if attack==false and CurrentMode == "Unsheathed" then | |
1166 | Spin() | |
1167 | end | |
1168 | elseif k=='r' then | |
1169 | if attack==false and CurrentMode == "Unsheathed" then | |
1170 | ContAttack() | |
1171 | end | |
1172 | elseif k=='f' then | |
1173 | if attack==false and CurrentMode == "Unsheathed" then | |
1174 | Sheathe() | |
1175 | elseif k=='f' then | |
1176 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1177 | Unsheathe() | |
1178 | end | |
1179 | end | |
1180 | elseif k=='t' then | |
1181 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1182 | Sit = true | |
1183 | Humanoid.WalkSpeed = 0 | |
1184 | elseif k=='t' then | |
1185 | if attack==false and Sit == true and CurrentMode == "Sheathed" then | |
1186 | Sit = false | |
1187 | Humanoid.WalkSpeed = 16 | |
1188 | end | |
1189 | end | |
1190 | ||
1191 | end | |
1192 | end) | |
1193 | ||
1194 | ||
1195 | local sine = 0 | |
1196 | local change = 1 | |
1197 | local val = 0 | |
1198 | ||
1199 | while true do | |
1200 | swait() | |
1201 | sine = sine + change | |
1202 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1203 | local velderp=RootPart.Velocity.y | |
1204 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1205 | if equipped==true or equipped==false then | |
1206 | if attack==false then | |
1207 | idle=idle+1 | |
1208 | else | |
1209 | idle=0 | |
1210 | end | |
1211 | if idle>=500 then | |
1212 | if attack==false then | |
1213 | end | |
1214 | end | |
1215 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1216 | Anim="Jump" | |
1217 | if attack==false and Sit == false and CurrentMode == "Unsheathed" then | |
1218 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1219 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1220 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(50),math.rad(0),math.rad(30)),.3) | |
1221 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1222 | LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1223 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3) | |
1224 | end | |
1225 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1226 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1227 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1228 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(30)),.3) | |
1229 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-30)),.3) | |
1230 | LH.C0=clerp(LH.C0,cf(-1,-1,-.2)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1231 | RH.C0=clerp(RH.C0,cf(1,-1,-.2)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1232 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1233 | end | |
1234 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1235 | Anim="Fall" | |
1236 | if attack==false and Sit == false and CurrentMode == "Unsheathed" then | |
1237 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1238 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1239 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3) | |
1240 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-40),math.rad(5),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1241 | LH.C0=clerp(LH.C0,cf(-1,-.5,-1)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1242 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3) | |
1243 | end | |
1244 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1245 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1246 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1247 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(50)),.3) | |
1248 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-50)),.3) | |
1249 | LH.C0=clerp(LH.C0,cf(-1,-.5,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1250 | RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1251 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1252 | end | |
1253 | elseif torvel<1 and hitfloor~=nil then | |
1254 | Anim="Idle" | |
1255 | if attack==false and Sit == false and CurrentMode == "Unsheathed" then | |
1256 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
1257 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(40)),.3) | |
1258 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(40),math.rad(0),math.rad(20)),.3) | |
1259 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-10),math.rad(20),math.rad(-10)),.3) | |
1260 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1261 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1262 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,.4)*angles(math.rad(85),math.rad(-10),math.rad(0)),.3) | |
1263 | end | |
1264 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1265 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1266 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-0),math.rad(0),math.rad(0)),.3) | |
1267 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(5)),.3) | |
1268 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(0),math.rad(0),math.rad(-5)),.3) | |
1269 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1270 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1271 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1272 | end | |
1273 | if attack==false and Sit == true and CurrentMode == "Sheathed" then | |
1274 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1275 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1276 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-10),math.rad(0),math.rad(5)),.3) | |
1277 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(30)),.3) | |
1278 | LH.C0=clerp(LH.C0,cf(-1,.7,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1279 | RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(0),math.rad(90),math.rad(70))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1280 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1281 | end | |
1282 | elseif torvel>2 and hitfloor~=nil then | |
1283 | Anim="Walk" | |
1284 | if attack==false and Sit == false and CurrentMode == "Unsheathed" then | |
1285 | change=3 | |
1286 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1287 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1288 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-5),math.rad(0),math.rad(20)),.3) | |
1289 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30),math.rad(5),math.rad(-10)),.3) | |
1290 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1291 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3) | |
1292 | handleweld.C0=clerp(handleweld.C0,cf(0,-0,0)*angles(math.rad(15),math.rad(-10),math.rad(0)),.3) | |
1293 | end | |
1294 | if attack==false and Sit == false and CurrentMode == "Sheathed" then | |
1295 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1296 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1297 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(30*math.cos(sine/10)),math.rad(0),math.rad(5)),.3) | |
1298 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-30*math.cos(sine/10)),math.rad(0),math.rad(-5)),.3) | |
1299 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3) | |
1300 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(5))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3) | |
1301 | handleweld.C0=clerp(handleweld.C0,cf(3,3,0.5)*angles(math.rad(90),math.rad(150),math.rad(90)),.3) | |
1302 | end | |
1303 | end | |
1304 | end | |
1305 | if #Effects>0 then | |
1306 | for e=1,#Effects do | |
1307 | if Effects[e]~=nil then | |
1308 | local Thing=Effects[e] | |
1309 | if Thing~=nil then | |
1310 | local Part=Thing[1] | |
1311 | local Mode=Thing[2] | |
1312 | local Delay=Thing[3] | |
1313 | local IncX=Thing[4] | |
1314 | local IncY=Thing[5] | |
1315 | local IncZ=Thing[6] | |
1316 | if Thing[1].Transparency<=1 then | |
1317 | if Thing[2]=="Block1" then | |
1318 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1319 | Mesh=Thing[1].Mesh | |
1320 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1321 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1322 | elseif Thing[2]=="Cylinder" then | |
1323 | Mesh=Thing[1].Mesh | |
1324 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1325 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1326 | elseif Thing[2]=="Blood" then | |
1327 | Mesh=Thing[7] | |
1328 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
1329 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1330 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1331 | elseif Thing[2]=="Elec" then | |
1332 | Mesh=Thing[1].Mesh | |
1333 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
1334 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1335 | elseif Thing[2]=="Disappear" then | |
1336 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1337 | end | |
1338 | else | |
1339 | Part.Parent=nil | |
1340 | table.remove(Effects,e) | |
1341 | end | |
1342 | end | |
1343 | end | |
1344 | end | |
1345 | end | |
1346 | end |