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