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