SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | ||
172 | --//Paste script below this line. | |
173 | ||
174 | Player=game:GetService("Players").LocalPlayer | |
175 | Character=Player.Character | |
176 | PlayerGui=Player.PlayerGui | |
177 | Backpack=Player.Backpack | |
178 | Torso=Character.Torso | |
179 | Head=Character.Head | |
180 | Humanoid=Character.Humanoid | |
181 | m=Instance.new('Model',Character) | |
182 | LeftArm=Character["Left Arm"] | |
183 | LeftLeg=Character["Left Leg"] | |
184 | RightArm=Character["Right Arm"] | |
185 | RightLeg=Character["Right Leg"] | |
186 | LS=Torso["Left Shoulder"] | |
187 | LH=Torso["Left Hip"] | |
188 | RS=Torso["Right Shoulder"] | |
189 | RH=Torso["Right Hip"] | |
190 | Face = Head.face | |
191 | Neck=Torso.Neck | |
192 | it=Instance.new | |
193 | attacktype=1 | |
194 | vt=Vector3.new | |
195 | cf=CFrame.new | |
196 | euler=CFrame.fromEulerAnglesXYZ | |
197 | angles=CFrame.Angles | |
198 | cloaked=false | |
199 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
200 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
201 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
202 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
203 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
204 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
205 | RootPart=Character.HumanoidRootPart | |
206 | RootJoint=RootPart.RootJoint | |
207 | RootCF=euler(-1.57,0,3.14) | |
208 | attack = false | |
209 | attackdebounce = false | |
210 | deb=false | |
211 | equipped=true | |
212 | hand=false | |
213 | MMouse=nil | |
214 | combo=0 | |
215 | mana=0 | |
216 | trispeed=.2 | |
217 | attackmode='none' | |
218 | local idle=0 | |
219 | local Anim="Idle" | |
220 | local Effects={} | |
221 | local gun=false | |
222 | local shoot=false | |
223 | player=nil | |
224 | mana=0 | |
225 | local Mode="Gun" | |
226 | ||
227 | mouse=Player:GetMouse() | |
228 | --save shoulders | |
229 | RSH, LSH=nil, nil | |
230 | --welds | |
231 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
232 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
233 | LH=Torso["Left Hip"] | |
234 | RH=Torso["Right Hip"] | |
235 | TorsoColor=Torso.BrickColor | |
236 | function NoOutline(Part) | |
237 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
238 | end | |
239 | player=Player | |
240 | ch=Character | |
241 | RSH=ch.Torso["Right Shoulder"] | |
242 | LSH=ch.Torso["Left Shoulder"] | |
243 | -- | |
244 | RSH.Parent=nil | |
245 | LSH.Parent=nil | |
246 | -- | |
247 | RW.Name="Right Shoulder" | |
248 | RW.Part0=ch.Torso | |
249 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
250 | RW.C1=cf(0, 0.5, 0) | |
251 | RW.Part1=ch["Right Arm"] | |
252 | RW.Parent=ch.Torso | |
253 | -- | |
254 | LW.Name="Left Shoulder" | |
255 | LW.Part0=ch.Torso | |
256 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
257 | LW.C1=cf(0, 0.5, 0) | |
258 | LW.Part1=ch["Left Arm"] | |
259 | LW.Parent=ch.Torso | |
260 | ||
261 | Player=game:GetService('Players').LocalPlayer | |
262 | Character=Player.Character | |
263 | Mouse=Player:GetMouse() | |
264 | ||
265 | ||
266 | local function weldBetween(a, b) | |
267 | local weldd = Instance.new("ManualWeld") | |
268 | weldd.Part0 = a | |
269 | weldd.Part1 = b | |
270 | weldd.C0 = CFrame.new() | |
271 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
272 | weldd.Parent = a | |
273 | return weldd | |
274 | end | |
275 | ||
276 | function swait(num) | |
277 | if num==0 or num==nil then | |
278 | game:service'RunService'.Heartbeat:wait(0) | |
279 | else | |
280 | for i=0,num do | |
281 | game:service'RunService'.Heartbeat:wait(0) | |
282 | end | |
283 | end | |
284 | end | |
285 | ||
286 | function nooutline(part) | |
287 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
288 | end | |
289 | ||
290 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
291 | local fp=it("Part") | |
292 | fp.formFactor=formfactor | |
293 | fp.Parent=parent | |
294 | fp.Reflectance=reflectance | |
295 | fp.Transparency=transparency | |
296 | fp.CanCollide=false | |
297 | fp.Locked=true | |
298 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
299 | fp.Name=name | |
300 | fp.Size=size | |
301 | fp.Position=Character.Torso.Position | |
302 | nooutline(fp) | |
303 | fp.Material=material | |
304 | fp:BreakJoints() | |
305 | return fp | |
306 | end | |
307 | ||
308 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
309 | local mesh=it(Mesh) | |
310 | mesh.Parent=part | |
311 | if Mesh=="SpecialMesh" then | |
312 | mesh.MeshType=meshtype | |
313 | mesh.MeshId=meshid | |
314 | end | |
315 | mesh.Offset=offset | |
316 | mesh.Scale=scale | |
317 | return mesh | |
318 | end | |
319 | ||
320 | function weld(parent,part0,part1,c0,c1) | |
321 | local weld=it("Weld") | |
322 | weld.Parent=parent | |
323 | weld.Part0=part0 | |
324 | weld.Part1=part1 | |
325 | weld.C0=c0 | |
326 | weld.C1=c1 | |
327 | return weld | |
328 | end | |
329 | ||
330 | ||
331 | local function CFrameFromTopBack(at, top, back) | |
332 | local right = top:Cross(back) | |
333 | return CFrame.new(at.x, at.y, at.z, | |
334 | right.x, top.x, back.x, | |
335 | right.y, top.y, back.y, | |
336 | right.z, top.z, back.z) | |
337 | end | |
338 | ||
339 | function Triangle(a, b, c) | |
340 | local edg1 = (c-a):Dot((b-a).unit) | |
341 | local edg2 = (a-b):Dot((c-b).unit) | |
342 | local edg3 = (b-c):Dot((a-c).unit) | |
343 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
344 | a, b, c = a, b, c | |
345 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
346 | a, b, c = b, c, a | |
347 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
348 | a, b, c = c, a, b | |
349 | else | |
350 | assert(false, "unreachable") | |
351 | end | |
352 | ||
353 | local len1 = (c-a):Dot((b-a).unit) | |
354 | local len2 = (b-a).magnitude - len1 | |
355 | local width = (a + (b-a).unit*len1 - c).magnitude | |
356 | ||
357 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
358 | ||
359 | local list = {} | |
360 | ||
361 | local TrailColor = ("Lime green") | |
362 | ||
363 | if len1 > 0.01 then | |
364 | local w1 = Instance.new('WedgePart', m) | |
365 | game:GetService("Debris"):AddItem(w1,5) | |
366 | w1.Material = "SmoothPlastic" | |
367 | w1.FormFactor = 'Custom' | |
368 | w1.BrickColor = BrickColor.new(TrailColor) | |
369 | w1.Transparency = 0 | |
370 | w1.Reflectance = 0 | |
371 | w1.Material = "SmoothPlastic" | |
372 | w1.CanCollide = false | |
373 | NoOutline(w1) | |
374 | local sz = Vector3.new(0.2, width, len1) | |
375 | w1.Size = sz | |
376 | local sp = Instance.new("SpecialMesh",w1) | |
377 | sp.MeshType = "Wedge" | |
378 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
379 | w1:BreakJoints() | |
380 | w1.Anchored = true | |
381 | w1.Parent = workspace | |
382 | w1.Transparency = 0.7 | |
383 | table.insert(Effects,{w1,"Disappear",.01}) | |
384 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
385 | table.insert(list,w1) | |
386 | end | |
387 | ||
388 | if len2 > 0.01 then | |
389 | local w2 = Instance.new('WedgePart', m) | |
390 | game:GetService("Debris"):AddItem(w2,5) | |
391 | w2.Material = "SmoothPlastic" | |
392 | w2.FormFactor = 'Custom' | |
393 | w2.BrickColor = BrickColor.new(TrailColor) | |
394 | w2.Transparency = 0 | |
395 | w2.Reflectance = 0 | |
396 | w2.Material = "SmoothPlastic" | |
397 | w2.CanCollide = false | |
398 | NoOutline(w2) | |
399 | local sz = Vector3.new(0.2, width, len2) | |
400 | w2.Size = sz | |
401 | local sp = Instance.new("SpecialMesh",w2) | |
402 | sp.MeshType = "Wedge" | |
403 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
404 | w2:BreakJoints() | |
405 | w2.Anchored = true | |
406 | w2.Parent = workspace | |
407 | w2.Transparency = 0.7 | |
408 | table.insert(Effects,{w2,"Disappear",.01}) | |
409 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
410 | table.insert(list,w2) | |
411 | end | |
412 | return unpack(list) | |
413 | end | |
414 | ||
415 | ||
416 | so = function(id,par,vol,pit) | |
417 | coroutine.resume(coroutine.create(function() | |
418 | local sou = Instance.new("Sound",par or workspace) | |
419 | sou.Volume=vol | |
420 | sou.Pitch=pit or 1 | |
421 | sou.SoundId=id | |
422 | swait() | |
423 | sou:play() | |
424 | game:GetService("Debris"):AddItem(sou,6) | |
425 | end)) | |
426 | end | |
427 | ||
428 | function clerp(a,b,t) | |
429 | local qa = {QuaternionFromCFrame(a)} | |
430 | local qb = {QuaternionFromCFrame(b)} | |
431 | local ax, ay, az = a.x, a.y, a.z | |
432 | local bx, by, bz = b.x, b.y, b.z | |
433 | local _t = 1-t | |
434 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
435 | end | |
436 | ||
437 | function QuaternionFromCFrame(cf) | |
438 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
439 | local trace = m00 + m11 + m22 | |
440 | if trace > 0 then | |
441 | local s = math.sqrt(1 + trace) | |
442 | local recip = 0.5/s | |
443 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
444 | else | |
445 | local i = 0 | |
446 | if m11 > m00 then | |
447 | i = 1 | |
448 | end | |
449 | if m22 > (i == 0 and m00 or m11) then | |
450 | i = 2 | |
451 | end | |
452 | if i == 0 then | |
453 | local s = math.sqrt(m00-m11-m22+1) | |
454 | local recip = 0.5/s | |
455 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
456 | elseif i == 1 then | |
457 | local s = math.sqrt(m11-m22-m00+1) | |
458 | local recip = 0.5/s | |
459 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
460 | elseif i == 2 then | |
461 | local s = math.sqrt(m22-m00-m11+1) | |
462 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
463 | end | |
464 | end | |
465 | end | |
466 | ||
467 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
468 | local xs, ys, zs = x + x, y + y, z + z | |
469 | local wx, wy, wz = w*xs, w*ys, w*zs | |
470 | local xx = x*xs | |
471 | local xy = x*ys | |
472 | local xz = x*zs | |
473 | local yy = y*ys | |
474 | local yz = y*zs | |
475 | local zz = z*zs | |
476 | 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)) | |
477 | end | |
478 | ||
479 | function QuaternionSlerp(a, b, t) | |
480 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
481 | local startInterp, finishInterp; | |
482 | if cosTheta >= 0.0001 then | |
483 | if (1 - cosTheta) > 0.0001 then | |
484 | local theta = math.acos(cosTheta) | |
485 | local invSinTheta = 1/math.sin(theta) | |
486 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
487 | finishInterp = math.sin(t*theta)*invSinTheta | |
488 | else | |
489 | startInterp = 1-t | |
490 | finishInterp = t | |
491 | end | |
492 | else | |
493 | if (1+cosTheta) > 0.0001 then | |
494 | local theta = math.acos(-cosTheta) | |
495 | local invSinTheta = 1/math.sin(theta) | |
496 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
497 | finishInterp = math.sin(t*theta)*invSinTheta | |
498 | else | |
499 | startInterp = t-1 | |
500 | finishInterp = t | |
501 | end | |
502 | end | |
503 | 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 | |
504 | end | |
505 | ||
506 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
507 | ||
508 | ||
509 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
510 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
511 | end | |
512 | ||
513 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
514 | if hit.Parent==nil then | |
515 | return | |
516 | end | |
517 | local h=hit.Parent:FindFirstChild("Humanoid") | |
518 | for _,v in pairs(hit.Parent:children()) do | |
519 | if v:IsA("Humanoid") then | |
520 | h=v | |
521 | end | |
522 | end | |
523 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
524 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
525 | end | |
526 | if hit.Parent.className=="Hat" then | |
527 | hit=hit.Parent.Parent:findFirstChild("Head") | |
528 | end | |
529 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
530 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
531 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
532 | return | |
533 | end]] | |
534 | -- hs(hit,1.2) | |
535 | local c=Instance.new("ObjectValue") | |
536 | c.Name="creator" | |
537 | c.Value=game:service("Players").LocalPlayer | |
538 | c.Parent=h | |
539 | game:GetService("Debris"):AddItem(c,.5) | |
540 | local Damage=math.random(minim,maxim) | |
541 | -- h:TakeDamage(Damage) | |
542 | local blocked=false | |
543 | local block=hit.Parent:findFirstChild("Block") | |
544 | if block~=nil then | |
545 | print(block.className) | |
546 | if block.className=="NumberValue" then | |
547 | if block.Value>0 then | |
548 | blocked=true | |
549 | if decreaseblock==nil then | |
550 | block.Value=block.Value-1 | |
551 | end | |
552 | end | |
553 | end | |
554 | if block.className=="IntValue" then | |
555 | if block.Value>0 then | |
556 | blocked=true | |
557 | if decreaseblock~=nil then | |
558 | block.Value=block.Value-1 | |
559 | end | |
560 | end | |
561 | end | |
562 | end | |
563 | if blocked==false then | |
564 | -- h:TakeDamage(Damage) | |
565 | h.Health=h.Health-Damage | |
566 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
567 | else | |
568 | h.Health=h.Health-(Damage/2) | |
569 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
570 | end | |
571 | if Type=="Knockdown" then | |
572 | local hum=hit.Parent.Humanoid | |
573 | hum.PlatformStand=true | |
574 | coroutine.resume(coroutine.create(function(HHumanoid) | |
575 | swait(1) | |
576 | HHumanoid.PlatformStand=false | |
577 | end),hum) | |
578 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
579 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
580 | local bodvol=Instance.new("BodyVelocity") | |
581 | bodvol.velocity=angle*knockback | |
582 | bodvol.P=5000 | |
583 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
584 | bodvol.Parent=hit | |
585 | local rl=Instance.new("BodyAngularVelocity") | |
586 | rl.P=3000 | |
587 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
588 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
589 | rl.Parent=hit | |
590 | game:GetService("Debris"):AddItem(bodvol,.5) | |
591 | game:GetService("Debris"):AddItem(rl,.5) | |
592 | elseif Type=="Normal" then | |
593 | local vp=Instance.new("BodyVelocity") | |
594 | vp.P=500 | |
595 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
596 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
597 | if KnockbackType==1 then | |
598 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
599 | elseif KnockbackType==2 then | |
600 | vp.velocity=Property.CFrame.lookVector*knockback | |
601 | end | |
602 | if knockback>0 then | |
603 | vp.Parent=hit.Parent.Torso | |
604 | end | |
605 | game:GetService("Debris"):AddItem(vp,.5) | |
606 | elseif Type=="Up" then | |
607 | local bodyVelocity=Instance.new("BodyVelocity") | |
608 | bodyVelocity.velocity=vt(0,60,0) | |
609 | bodyVelocity.P=5000 | |
610 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
611 | bodyVelocity.Parent=hit | |
612 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
613 | local rl=Instance.new("BodyAngularVelocity") | |
614 | rl.P=3000 | |
615 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
616 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
617 | rl.Parent=hit | |
618 | game:GetService("Debris"):AddItem(rl,.5) | |
619 | elseif Type=="Snare" then | |
620 | local bp=Instance.new("BodyPosition") | |
621 | bp.P=2000 | |
622 | bp.D=100 | |
623 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
624 | bp.position=hit.Parent.Torso.Position | |
625 | bp.Parent=hit.Parent.Torso | |
626 | game:GetService("Debris"):AddItem(bp,1) | |
627 | elseif Type=="Target" then | |
628 | local Targetting = false | |
629 | if Targetting==false then | |
630 | ZTarget=hit.Parent.Torso | |
631 | coroutine.resume(coroutine.create(function(Part) | |
632 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
633 | swait(5) | |
634 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
635 | end),ZTarget) | |
636 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
637 | local targetgui=Instance.new("BillboardGui") | |
638 | targetgui.Parent=ZTarget | |
639 | targetgui.Size=UDim2.new(10,100,10,100) | |
640 | local targ=Instance.new("ImageLabel") | |
641 | targ.Parent=targetgui | |
642 | targ.BackgroundTransparency=1 | |
643 | targ.Image="rbxassetid://4834067" | |
644 | targ.Size=UDim2.new(1,0,1,0) | |
645 | cam.CameraType="Scriptable" | |
646 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
647 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
648 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
649 | Targetting=true | |
650 | RocketTarget=ZTarget | |
651 | for i=1,Property do | |
652 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
653 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
654 | swait() | |
655 | end | |
656 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
657 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
658 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
659 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
660 | end | |
661 | Targetting=false | |
662 | RocketTarget=nil | |
663 | targetgui.Parent=nil | |
664 | cam.CameraType="Custom" | |
665 | end | |
666 | end | |
667 | local debounce=Instance.new("BoolValue") | |
668 | debounce.Name="DebounceHit" | |
669 | debounce.Parent=hit.Parent | |
670 | debounce.Value=true | |
671 | game:GetService("Debris"):AddItem(debounce,Delay) | |
672 | c=Instance.new("ObjectValue") | |
673 | c.Name="creator" | |
674 | c.Value=Player | |
675 | c.Parent=h | |
676 | game:GetService("Debris"):AddItem(c,.5) | |
677 | end | |
678 | end | |
679 | ||
680 | ||
681 | function ShowDamage(Pos, Text, Time, Color) | |
682 | local Rate = (1 / 30) | |
683 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
684 | local Text = (Text or "") | |
685 | local Time = (Time or 2) | |
686 | local Color = (Color or Color3.new(1, 0, 0)) | |
687 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
688 | EffectPart.Anchored = true | |
689 | local BillboardGui = Instance.new("BillboardGui") | |
690 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
691 | BillboardGui.Adornee = EffectPart | |
692 | local TextLabel = Instance.new("TextLabel") | |
693 | TextLabel.BackgroundTransparency = 1 | |
694 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
695 | TextLabel.Text = Text | |
696 | TextLabel.TextColor3 = Color | |
697 | TextLabel.TextScaled = true | |
698 | TextLabel.Font = Enum.Font.ArialBold | |
699 | TextLabel.Parent = BillboardGui | |
700 | BillboardGui.Parent = EffectPart | |
701 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
702 | EffectPart.Parent = game:GetService("Workspace") | |
703 | Delay(0, function() | |
704 | local Frames = (Time / Rate) | |
705 | for Frame = 1, Frames do | |
706 | wait(Rate) | |
707 | local Percent = (Frame / Frames) | |
708 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
709 | TextLabel.TextTransparency = Percent | |
710 | end | |
711 | if EffectPart and EffectPart.Parent then | |
712 | EffectPart:Destroy() | |
713 | end | |
714 | end) | |
715 | end | |
716 | ||
717 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.800000012, 0.600000024, 0.400000036)) | |
718 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0999984741, 0.00293731689, -0.997625113, 0.999999762, 0, 0, -0, -2.98023224e-008, 1, 0, -0.999999642, -2.98023206e-008)) | |
719 | mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
720 | BarrelA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelA",Vector3.new(0.400000006, 0.400000036, 0.200000003)) | |
721 | BarrelAweld=weld(m,handle,BarrelA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, -0.501502991, 0.70533812, 0.999999762, 8.9397489e-013, -4.26325811e-014, 8.93974673e-013, -1, -7.63833441e-014, -4.2632554e-014, 7.81597009e-014, -0.999999762)) | |
722 | mesh("BlockMesh",BarrelA,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2)) | |
723 | BarrelB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","BarrelB",Vector3.new(0.400000006, 0.400000036, 0.200000003)) | |
724 | BarrelBweld=weld(m,handle,BarrelB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.498413086, 0.705340028, 0.999999762, 8.93975215e-013, -4.26325811e-014, 8.93974998e-013, -1, -7.99360578e-014, -4.2632554e-014, 8.17124146e-014, -0.999999762)) | |
725 | mesh("BlockMesh",BarrelB,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2)) | |
726 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 2.60000038)) | |
727 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.701442719, -0.600021362, 2.49932575, 0.999998927, 1.87752244e-006, -0.000799447123, -1.84774353e-006, 0.999999166, -1.93715053e-007, 0.000799283211, 2.23561045e-007, 0.999998808)) | |
728 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",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.400000006, 0.800000012, 0.200000003)) | |
730 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, 0.497962952, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008)) | |
731 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
732 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003)) | |
733 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, 0.501495361, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008)) | |
734 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2)) | |
735 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 1.00000012, 1.20000029)) | |
736 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, -3.76701355e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
737 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 2.20000005, 0.599999964)) | |
738 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, 0.899943829, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
739 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005)) | |
740 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.599975586, 3.38554382e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
741 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
742 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 1.79999995, 0.599999964)) | |
743 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709243774, -2.28881836e-005, 0.899943829, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
744 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036)) | |
745 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.399993896, -5.96046448e-006, 0.999999762, -0, 0, -0, 1, -1.77635684e-015, 0, 0, 0.999999762)) | |
746 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
747 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.99999994)) | |
748 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.713443756, -0.500030518, 1.69926405, 0.999998927, -2.26500038e-006, -0.000799596135, 2.27987721e-006, 0.999999225, 1.93017172e-007, 0.000799476926, -2.231682e-007, 0.999998927)) | |
749 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
750 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.20000017)) | |
751 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700153351, -0.700019836, 0.000669956207, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166)) | |
752 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
753 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000083, 2.60000038)) | |
754 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.698387146, -0.599975586, 2.50042844, -0.999998689, -1.90737251e-006, -0.000799447123, 1.90734818e-006, -0.999998927, -1.34110465e-007, -0.000799282978, -1.64014665e-007, 0.999998808)) | |
755 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
756 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999)) | |
757 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709453583, -0.399978638, 2.50040436, -0.999999166, 2.30715773e-006, -0.000799596135, -2.33717014e-006, -0.999999523, 2.5262176e-007, -0.000799476926, 2.82754144e-007, 0.999998927)) | |
758 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
759 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
760 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700153351, -0.80002594, -0.2993083, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166)) | |
761 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
762 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964)) | |
763 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.70142746, -0.80002594, 1.49932528, 0.999998927, 1.87752244e-006, -0.000799447123, -1.84774353e-006, 0.999999166, -1.93715053e-007, 0.000799283211, 2.23561045e-007, 0.999998808)) | |
764 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
765 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000036, 1.20000005)) | |
766 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699836731, -0.69997406, -0.000449538231, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166)) | |
767 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
768 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.99999994, 0.200000003, 2)) | |
769 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0.599975586, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
770 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.40000045, 0.200000003, 1.20000005)) | |
771 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -0.000755310059, 5.96046448e-005, -1.48553302e-013, -0.999995828, 2.98021838e-008, -0.999999762, -1.503297e-013, -2.98021909e-008, 2.98023295e-008, -2.9802214e-008, -0.999995589)) | |
772 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.285999984, 1.01199996)) | |
773 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.599999964)) | |
774 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.698394775, -0.799972534, 1.50044394, -0.999998689, -1.90737251e-006, -0.000799447123, 1.90734818e-006, -0.999998927, -1.34110465e-007, -0.000799282978, -1.64014665e-007, 0.999998808)) | |
775 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
776 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003)) | |
777 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.405347705, -0.502029419, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008)) | |
778 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
779 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003)) | |
780 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, 0.599975586, 0.999999762, -0, 0, 0, 1.49011647e-008, -0.999999523, -0, 0.999999762, 1.49011594e-008)) | |
781 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
782 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
783 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699840546, -0.799964905, -0.300427675, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166)) | |
784 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
785 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019)) | |
786 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.195159912, -0.900024414, 0.899938345, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
787 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036)) | |
788 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.194999695, -0.900024414, 0.200763583, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166)) | |
789 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
790 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006)) | |
791 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, 0.499969482, 0.999999642, -0, 0, 0, 1.49011647e-008, -0.999999404, -0, 0.999999762, 1.49011594e-008)) | |
792 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
793 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
794 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.203845978, -0.899963379, 1.90046763, 0.99999851, -1.38333075e-006, 0.000811993901, 1.25192548e-006, 0.999998987, 9.15403871e-006, -0.00081211311, -9.18428123e-006, 0.999998808)) | |
795 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
796 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.800000012, 0.999999881)) | |
797 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709457397, -0.499977112, 1.70040178, -0.999999166, 2.30715773e-006, -0.000799596135, -2.33717014e-006, -0.999999523, 2.5262176e-007, -0.000799476926, 2.82754144e-007, 0.999998927)) | |
798 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
799 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.800000012, 0.200000003)) | |
800 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.405341506, -0.502037048, 0.999999285, -0, 0, 0, 1.49011647e-008, -0.999999046, -0, 0.999999762, 1.49011594e-008)) | |
801 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.170000017, 1, 2)) | |
802 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000143, 1.21000028)) | |
803 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708374023, -3.05175781e-005, -0.00504338741, 0.999999523, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999523)) | |
804 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005)) | |
805 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709457397, -0.500030518, 0.000697374344, -0.999999166, 1.89247135e-006, 0.000799469941, 1.86264469e-006, 0.999999225, 1.34110437e-007, -0.000799469533, 1.63927339e-007, -0.999999166)) | |
806 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
807 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.400000006, 0.200000003)) | |
808 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, -0.600021362, 0.999999762, -0, 0, 0, 1.49011647e-008, -0.999999523, -0, 0.999999762, 1.49011594e-008)) | |
809 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
810 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
811 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.196155548, -0.899963379, 1.90047097, 0.99999851, -1.38333075e-006, 0.000811993901, 1.25192548e-006, 0.999998987, 9.15403871e-006, -0.00081211311, -9.18428123e-006, 0.999998808)) | |
812 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
813 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 2.5999999)) | |
814 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.713447571, -0.400032043, 2.49926639, 0.999998927, -2.26500038e-006, -0.000799596135, 2.27987721e-006, 0.999999225, 1.93017172e-007, 0.000799476926, -2.231682e-007, 0.999998927)) | |
815 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
816 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.4000001, 2)) | |
817 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.5, -3.05175781e-005, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
818 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 1.20000005)) | |
819 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709461212, -0.499969482, -0.000437021255, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166)) | |
820 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
821 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 0.200000003, 1.20000005)) | |
822 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.600028992, 3.38554382e-005, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
823 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
824 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(1.20000005, 0.800000012, 0.400000006)) | |
825 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.39996767, -0.500030518, 0.999999642, -0, 0, 0, 1.49011647e-008, -0.999999404, -0, 0.999999762, 1.49011594e-008)) | |
826 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
827 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(1.40000045, 0.200000018, 1.20000005)) | |
828 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, -0.000755310059, 6.81877136e-005, 8.88178631e-016, -1, 2.98023206e-008, -0.999999762, -1.77635769e-015, -2.98023224e-008, 2.98023224e-008, -2.98023259e-008, -0.999999762)) | |
829 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
830 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 1.80000019)) | |
831 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190341949, -0.900024414, 0.899938345, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
832 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.800000012, 0.200000003, 0.400000036)) | |
833 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.400001526, -5.96046448e-006, 0.999999762, -0, 0, -0, 1, -1.77635684e-015, 0, 0, 0.999999762)) | |
834 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
835 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.400000006, 0.400000036)) | |
836 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.190494537, -0.900024414, 0.200588226, -0.999999106, 1.87757018e-006, 0.000799469941, 1.84774353e-006, 0.999999166, 1.34110437e-007, -0.000799469592, 1.63956443e-007, -0.999999166)) | |
837 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
838 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
839 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.709449768, -0.600021362, -0.299300909, -0.999999166, 1.89247135e-006, 0.000799469941, 1.86264469e-006, 0.999999225, 1.34110437e-007, -0.000799469533, 1.63927339e-007, -0.999999166)) | |
840 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
841 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.200000152, 2.61000037)) | |
842 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708377838, 2.28881836e-005, -2.50490212, 0.999999642, -0, 0, 0, -0.999999702, -4.470348e-008, 0, 2.98023295e-008, -0.999999344)) | |
843 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","Part",Vector3.new(0.200000003, 0.600000024, 0.600000024)) | |
844 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.709445953, -0.599967957, -0.300435305, 0.999999344, -1.89480204e-006, 0.000799469941, -1.92476682e-006, -0.999999523, 1.93715039e-007, 0.000799469766, -2.23517404e-007, -0.999999166)) | |
845 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
846 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1, 0.200000003, 2)) | |
847 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, -0.600021362, 0.999940634, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
848 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.200000003, 0.600000143, 2.60000014)) | |
849 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.700000763, -3.05175781e-005, 2.49992704, 0.999999762, -0, 0, -0, 1, 1.77635684e-015, 0, -3.55271368e-015, 0.999999762)) | |
850 | ||
851 | BladeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladeHandle",Vector3.new(0.200000003, 1, 3.39999986)) | |
852 | BladeHandleweld=weld(m,Character["Right Arm"],BladeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0872383118, -1.20300293, 0.302297354, 1, -2.21671375e-008, 7.04762897e-008, -7.04762684e-008, 2.98023188e-008, 0.999999404, -2.2167157e-008, -0.999999285, 2.98023224e-008)) | |
853 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,1,"Lime green","Hitbox",Vector3.new(0.200000003, 4.79999971, 1)) | |
854 | Hitboxweld=weld(m,BladeHandle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.699994326, 0, 1, -9.99836402e-007, 1.80018773e-007, -1.80019143e-007, 1.49011647e-008, 0.999998808, -9.99837425e-007, -0.999998808, 1.49011719e-008)) | |
855 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001)) | |
856 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135803223, -0.393920898, -0.000129699707, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093)) | |
857 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072)) | |
858 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399986267, -5.7220459e-006, 1.70002365, 1.42108547e-014, -0.999998808, -1.77635684e-015, -1, 2.13162821e-014, -2.98022744e-008, 2.98023828e-008, -3.55271368e-015, -0.999998808)) | |
859 | mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
860 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.200000003, 0.220000014, 0.800000072)) | |
861 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.400005341, -5.7220459e-006, 1.70001566, 4.33431069e-013, -0.999998093, 1.63424829e-013, -1, -9.23705556e-014, -2.98015639e-008, 2.98019547e-008, 2.14939178e-013, -0.999998093)) | |
862 | mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
863 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976)) | |
864 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00168228149, -0.399024963, 1.89990211, 0.999998748, -2.1309047e-006, 0.000802797964, 2.13086582e-006, 0.999997854, 3.29315458e-006, -0.000802962575, -3.21859238e-006, 0.999998093)) | |
865 | mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
866 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 3.4000001)) | |
867 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00168037415, -0.399391174, -0.000123500824, 0.999998748, -2.1309047e-006, 0.000802797964, 2.13086582e-006, 0.999997854, 3.29315458e-006, -0.000802962575, -3.21859238e-006, 0.999998093)) | |
868 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Lime green","BladePart",Vector3.new(0.220000014, 0.200000003, 0.399999976)) | |
869 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135612488, -0.39358139, 1.89990449, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093)) | |
870 | mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
871 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.520000041, 1.39999998)) | |
872 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00136566162, -0.239994049, 2.3998909, 0.999999166, -1.95434222e-006, -0.000799282745, 1.92285847e-006, 0.999998212, -1.86264401e-006, 0.000799447356, 2.07120365e-006, 0.999998033)) | |
873 | mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
874 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(1.00000012, 0.200000003, 1.00000012)) | |
875 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-7.62939453e-006, -5.7220459e-006, 1.60001981, 3.26849658e-013, -0.999999404, -3.01980663e-014, -1, -3.05533376e-013, -2.98017593e-008, 2.98018055e-008, 2.84217094e-014, -0.999999404)) | |
876 | mesh("CylinderMesh",BladePart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
877 | BladePart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.20000000298023,0,"Really black","BladePart",Vector3.new(0.200000003, 0.479999989, 1.39999998)) | |
878 | BladePartweld=weld(m,BladeHandle,BladePart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135612488, -0.260002136, 2.39991736, -0.999998927, 2.05645279e-006, 0.000802798022, -2.0555824e-006, -0.999997914, 3.17394552e-006, 0.000802962692, 3.11428425e-006, 0.999998093)) | |
879 | mesh("SpecialMesh",BladePart,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
880 | ||
881 | function effect(Color,Ref,LP,P1,returnn) | |
882 | if LP==nil or P1==nil then return end | |
883 | local effectsmsh=Instance.new("CylinderMesh") | |
884 | effectsmsh.Scale=Vector3.new(0.2,1,0.2) | |
885 | effectsmsh.Name="Mesh" | |
886 | local effectsg=Instance.new("Part") | |
887 | NoOutline(effectsg) | |
888 | effectsg.formFactor=3 | |
889 | effectsg.CanCollide=false | |
890 | effectsg.Name="Eff" | |
891 | effectsg.Locked=true | |
892 | effectsg.Anchored=true | |
893 | effectsg.Size=Vector3.new(0.5,1,0.5) | |
894 | effectsg.Parent=workspace | |
895 | effectsmsh.Parent=effectsg | |
896 | effectsg.BrickColor=BrickColor.new(Color) | |
897 | effectsg.Reflectance=Ref | |
898 | local point1=P1 | |
899 | local mg=(LP.p - point1.p).magnitude | |
900 | effectsg.Size=Vector3.new(0.5,mg,0.5) | |
901 | effectsg.CFrame=cf((LP.p+point1.p)/2,point1.p) * CFrame.Angles(math.rad(90),0,0) | |
902 | effectsmsh.Scale=Vector3.new(0.2,1,0.2) | |
903 | game:GetService("Debris"):AddItem(effectsg,2) | |
904 | if returnn then return effectsg end | |
905 | if not returnn then | |
906 | table.insert(Effects,{effectsg,"Cylinder",0.2,0.01,0,0.01,effectsmsh}) | |
907 | end | |
908 | end | |
909 | ||
910 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
911 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt()) | |
912 | prt.Anchored=true | |
913 | prt.CFrame=cframe | |
914 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
915 | game:GetService("Debris"):AddItem(prt,2) | |
916 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh}) | |
917 | end | |
918 | ||
919 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
920 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt()) | |
921 | prt.Anchored=true | |
922 | prt.CFrame=cframe | |
923 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
924 | game:GetService("Debris"):AddItem(prt,2) | |
925 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh}) | |
926 | end | |
927 | ||
928 | function MagicHead(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
929 | local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt()) | |
930 | prt.Anchored=true | |
931 | prt.CFrame=cframe | |
932 | local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
933 | game:GetService("Debris"):AddItem(prt,2) | |
934 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3,msh}) | |
935 | end | |
936 | ||
937 | function Shootcombo() | |
938 | attack = true | |
939 | for i = 0,1,0.1 do | |
940 | swait() | |
941 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
942 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
943 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3) | |
944 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
945 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3) | |
946 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3) | |
947 | end | |
948 | so("http://www.roblox.com/asset/?id=169445602",BarrelA,.7,1.5) | |
949 | so("http://www.roblox.com/asset/?id=169445602",BarrelB,.7,1.5) | |
950 | so("http://www.roblox.com/asset/?id=169380505",BarrelA,.7,1.1) | |
951 | so("http://www.roblox.com/asset/?id=169380505",BarrelB,.7,1.1) | |
952 | table.insert(Effects,{BarrelA.CFrame.lookVector,"Shoot",10,BarrelA.Position,5,10,0,1}) | |
953 | table.insert(Effects,{BarrelB.CFrame.lookVector,"Shoot",10,BarrelB.Position,5,10,0,1}) | |
954 | for i = 0,1,0.2 do | |
955 | swait() | |
956 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
957 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(5),math.rad(-50)),.3) | |
958 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(130), math.rad(30), math.rad(50)), 0.3) | |
959 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3) | |
960 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),.3) | |
961 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(10)),.3) | |
962 | end | |
963 | attack = false | |
964 | end | |
965 | ||
966 | function BladeAttackOne() | |
967 | attack = true | |
968 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end) | |
969 | for i = 0,1,0.1 do | |
970 | swait() | |
971 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.4) | |
972 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),0.4) | |
973 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(100)),0.4) | |
974 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)),0.4) | |
975 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4) | |
976 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(0)),0.4) | |
977 | end | |
978 | --so("http://roblox.com/asset/?id=206083107",handle,1,1) | |
979 | so("http://www.roblox.com/asset/?id=200633148",handle,1,.9) | |
980 | for i = 0,1,0.1 do | |
981 | swait() | |
982 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
983 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
984 | local h = 5 | |
985 | 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) | |
986 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
987 | 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) | |
988 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
989 | scfr = blcf | |
990 | elseif not scfr then | |
991 | scfr = blcf | |
992 | end | |
993 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4) | |
994 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4) | |
995 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
996 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
997 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4) | |
998 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(-10)),0.4) | |
999 | end | |
1000 | attack = false | |
1001 | con:disconnect() | |
1002 | end | |
1003 | ||
1004 | function BladeAttackTwo() | |
1005 | attack = true | |
1006 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1007 | for i = 0,1,0.1 do | |
1008 | swait() | |
1009 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4) | |
1010 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4) | |
1011 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
1012 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
1013 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4) | |
1014 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4) | |
1015 | end | |
1016 | --so("http://roblox.com/asset/?id=206083107",handle,1,.9) | |
1017 | so("http://www.roblox.com/asset/?id=200633196",handle,1,1) | |
1018 | for i = 0,1,0.1 do | |
1019 | swait() | |
1020 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1021 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1022 | local h = 5 | |
1023 | 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) | |
1024 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1025 | 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) | |
1026 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1027 | scfr = blcf | |
1028 | elseif not scfr then | |
1029 | scfr = blcf | |
1030 | end | |
1031 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4) | |
1032 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4) | |
1033 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4) | |
1034 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4) | |
1035 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4) | |
1036 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4) | |
1037 | end | |
1038 | attack = false | |
1039 | con:disconnect() | |
1040 | end | |
1041 | ||
1042 | function BladeAttackThree() | |
1043 | attack = true | |
1044 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1045 | for i = 0,1,0.1 do | |
1046 | swait() | |
1047 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),0.4) | |
1048 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3) | |
1049 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
1050 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
1051 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4) | |
1052 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4) | |
1053 | end | |
1054 | --so("http://roblox.com/asset/?id=206083107",handle,1,1.1) | |
1055 | so("http://www.roblox.com/asset/?id=200633196",handle,1,.9) | |
1056 | for i = 0,1,0.1 do | |
1057 | swait() | |
1058 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1059 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1060 | local h = 5 | |
1061 | 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) | |
1062 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1063 | 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) | |
1064 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1065 | scfr = blcf | |
1066 | elseif not scfr then | |
1067 | scfr = blcf | |
1068 | end | |
1069 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.4) | |
1070 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-40)),.3) | |
1071 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)),0.4) | |
1072 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4) | |
1073 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4) | |
1074 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4) | |
1075 | end | |
1076 | attack = false | |
1077 | con:disconnect() | |
1078 | end | |
1079 | ||
1080 | function BladeAttackFour() | |
1081 | attack = true | |
1082 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,20,30,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1083 | for i = 0,1,0.1 do | |
1084 | swait() | |
1085 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4) | |
1086 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.4) | |
1087 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
1088 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
1089 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),0.4) | |
1090 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),0.4) | |
1091 | end | |
1092 | so("http://www.roblox.com/asset/?id=200633148",handle,1,.8) | |
1093 | Torso.Velocity=Head.CFrame.lookVector*100 | |
1094 | for i = 0,1,0.05 do | |
1095 | swait() | |
1096 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1097 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1098 | local h = 5 | |
1099 | 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) | |
1100 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1101 | 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) | |
1102 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1103 | scfr = blcf | |
1104 | elseif not scfr then | |
1105 | scfr = blcf | |
1106 | end | |
1107 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(40),math.rad(0),math.rad(-70)),0.3) | |
1108 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-30),math.rad(70)),.3) | |
1109 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(90)),0.3) | |
1110 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-60)),0.3) | |
1111 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(-30)),0.3) | |
1112 | LH.C0=clerp(LH.C0,cf(-1,.2,0)*angles(math.rad(0),math.rad(-40),math.rad(-60)),0.3) | |
1113 | end | |
1114 | con:disconnect() | |
1115 | attack = false | |
1116 | end | |
1117 | ||
1118 | function ElecEffect(cff,x,y,z) | |
1119 | local prt=part(3,workspace,"SmoothPlastic",0,0,BrickColor.new("Lime green"),"Part",vt(1,1,1)) | |
1120 | prt.Anchored=true | |
1121 | prt.CFrame=cff*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
1122 | prt.CFrame=cf(prt.Position) | |
1123 | --prt.CFrame=cf(cff)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z)) | |
1124 | game:GetService("Debris"):AddItem(prt,2) | |
1125 | xval=math.random()/2 | |
1126 | yval=math.random()/2 | |
1127 | zval=math.random()/2 | |
1128 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval)) | |
1129 | Effects[#Effects+1]={prt,"Elec",0.1,x,y,z,xval,yval,zval} --part, type, delay | |
1130 | end | |
1131 | ||
1132 | function Test() | |
1133 | ElecEffect(Hitbox.CFrame,2,4,2) | |
1134 | end | |
1135 | ||
1136 | attacktype1 = 1 | |
1137 | mouse.Button1Down:connect(function() | |
1138 | if Mode == "Gun" then | |
1139 | if attack==false then | |
1140 | if attacktype1==1 then | |
1141 | attack=true | |
1142 | attacktype1=1 | |
1143 | Shootcombo() | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | if Mode == "Blade" then | |
1148 | if attack==false then | |
1149 | if attacktype==1 then | |
1150 | attack=true | |
1151 | attacktype=2 | |
1152 | BladeAttackOne() | |
1153 | elseif attacktype==2 then | |
1154 | attack=true | |
1155 | attacktype=3 | |
1156 | BladeAttackTwo() | |
1157 | elseif attacktype==3 then | |
1158 | attack=true | |
1159 | attacktype=4 | |
1160 | BladeAttackThree() | |
1161 | elseif attacktype==4 then | |
1162 | attack=true | |
1163 | attacktype=1 | |
1164 | BladeAttackFour() | |
1165 | end | |
1166 | end | |
1167 | end | |
1168 | end) | |
1169 | ||
1170 | mouse.KeyDown:connect(function(k) | |
1171 | k=k:lower() | |
1172 | if k=='f' then | |
1173 | if Mode == "Gun" then | |
1174 | Mode = "Blade" | |
1175 | so("http://www.roblox.com/asset/?id=152052659",handle,1,1) | |
1176 | elseif Mode == "Blade" then | |
1177 | Mode = "Gun" | |
1178 | so("http://www.roblox.com/asset/?id=211134014",handle,1,1) | |
1179 | end | |
1180 | elseif k=='q' then | |
1181 | Test() | |
1182 | end | |
1183 | end) | |
1184 | ||
1185 | ||
1186 | ||
1187 | local sine = 0 | |
1188 | local change = 1 | |
1189 | local val = 0 | |
1190 | ||
1191 | while true do | |
1192 | swait() | |
1193 | sine = sine + change | |
1194 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1195 | local velderp=RootPart.Velocity.y | |
1196 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1197 | if equipped==true or equipped==false then | |
1198 | if attack==false then | |
1199 | idle=idle+1 | |
1200 | else | |
1201 | idle=0 | |
1202 | end | |
1203 | if idle>=500 then | |
1204 | if attack==false then | |
1205 | --Sheath() | |
1206 | end | |
1207 | end | |
1208 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1209 | Anim="Jump" | |
1210 | if attack==false and Mode == "Gun" then | |
1211 | change=3 | |
1212 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1213 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1214 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3) | |
1215 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1216 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3) | |
1217 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3) | |
1218 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1219 | end | |
1220 | if attack==false and Mode == "Blade" then | |
1221 | change=3 | |
1222 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1223 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1224 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3) | |
1225 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1226 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3) | |
1227 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(20)),.3) | |
1228 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3) | |
1229 | end | |
1230 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1231 | Anim="Fall" | |
1232 | if attack==false and Mode == "Gun" then | |
1233 | change=3 | |
1234 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1235 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1236 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3) | |
1237 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3) | |
1238 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3) | |
1239 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3) | |
1240 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1241 | end | |
1242 | if attack==false and Mode == "Blade" then | |
1243 | change=3 | |
1244 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1245 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1246 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3) | |
1247 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3) | |
1248 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3) | |
1249 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20)),.3) | |
1250 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3) | |
1251 | end | |
1252 | elseif torvel<1 and hitfloor~=nil then | |
1253 | Anim="Idle" | |
1254 | if attack==false and Mode == "Gun" then | |
1255 | change=3 | |
1256 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3) | |
1257 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-20)),.3) | |
1258 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.3) | |
1259 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.3) | |
1260 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3) | |
1261 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(10)),.3) | |
1262 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1263 | end | |
1264 | if attack==false and Mode == "Blade" then | |
1265 | change=3 | |
1266 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
1267 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3) | |
1268 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(60), math.rad(0), math.rad(20)), 0.3) | |
1269 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-30)), 0.3) | |
1270 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),.3) | |
1271 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(-5)),.3) | |
1272 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3) | |
1273 | end | |
1274 | elseif torvel>2 and hitfloor~=nil then | |
1275 | Anim="Walk" | |
1276 | if attack==false and Mode == "Gun" then | |
1277 | change=3 | |
1278 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1279 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-0)),.3) | |
1280 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.3) | |
1281 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.3) | |
1282 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3) | |
1283 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10)),.3) | |
1284 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
1285 | end | |
1286 | if attack==false and Mode == "Blade" then | |
1287 | change=3 | |
1288 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(10)),.3) | |
1289 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(1),math.rad(-10)),.3) | |
1290 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(5), math.rad(20)), 0.3) | |
1291 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
1292 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
1293 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
1294 | BladeHandleweld.C0=clerp(BladeHandleweld.C0, CFrame.new(0, -3, 1.2) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3) | |
1295 | end | |
1296 | end | |
1297 | end | |
1298 | if #Effects>0 then | |
1299 | --table.insert(Effects,{prt,"Block1",delay}) | |
1300 | for e=1,#Effects do | |
1301 | if Effects[e]~=nil then | |
1302 | --for j=1,#Effects[e] do | |
1303 | local Thing=Effects[e] | |
1304 | if Thing~=nil then | |
1305 | local Part=Thing[1] | |
1306 | local Mode=Thing[2] | |
1307 | local Delay=Thing[3] | |
1308 | local IncX=Thing[4] | |
1309 | local IncY=Thing[5] | |
1310 | local IncZ=Thing[6] | |
1311 | if Thing[2]=="DecreaseStat" then | |
1312 | Thing[5]=Thing[5]-1 | |
1313 | if Thing[5]<=0 then | |
1314 | if Thing[1]:findFirstChild("Stats")~=nil then | |
1315 | Thing[1].Stats[Thing[3]].Value=Thing[1].Stats[Thing[3]].Value+Thing[4] | |
1316 | end | |
1317 | table.remove(Effects,e) | |
1318 | end | |
1319 | end | |
1320 | if Thing[2]=="Shoot" then | |
1321 | local Look=Thing[1] | |
1322 | local hit,pos = rayCast(Thing[4],Look,20,m) | |
1323 | local mag=(Thing[4]-pos).magnitude | |
1324 | MagicHead(BrickColor.new("Lime green"),CFrame.new((Thing[4]+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,.5,0,.5,0.1) | |
1325 | Thing[4]=Thing[4]+(Look*20) | |
1326 | Thing[3]=Thing[3]-1 | |
1327 | if hit~=nil then | |
1328 | Thing[3]=0 | |
1329 | if Thing[8]==1 then | |
1330 | Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"Normal",RootPart,0,2,math.random(1,5),nil,nil,true) | |
1331 | elseif Thing[8]==2 then | |
1332 | Damagefunc(Hitbox,hit,Thing[5],Thing[6],Thing[7],"NormalDecreaseMvmt1",RootPart,0,2,math.random(1,5),nil,nil,true) | |
1333 | end | |
1334 | ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Lime green"),"Reference",vt()) | |
1335 | ref.Anchored=true | |
1336 | ref.CFrame=cf(pos) | |
1337 | MagicCircle(BrickColor.new("Lime green"),cf(pos),5,5,5,1,1,1,0.03) | |
1338 | game:GetService("Debris"):AddItem(ref,1) | |
1339 | end | |
1340 | if Thing[3]<=0 then | |
1341 | table.remove(Effects,e) | |
1342 | end | |
1343 | end | |
1344 | if Thing[2]=="CylinderClang" then | |
1345 | if Thing[3]<=1 then | |
1346 | Thing[1].CFrame=Thing[1].CFrame*CFrame.new(0,2.5*Thing[5],0)*CFrame.fromEulerAnglesXYZ(Thing[6],0,0) | |
1347 | Thing[7]=Thing[1].CFrame | |
1348 | effect("New Yeller",0,Thing[8],Thing[7]) | |
1349 | Thing[8]=Thing[7] | |
1350 | Thing[3]=Thing[3]+Thing[4] | |
1351 | else | |
1352 | Part.Parent=nil | |
1353 | table.remove(Effects,e) | |
1354 | end | |
1355 | --[[Mesh=Thing[7] | |
1356 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1357 | Thing[1].Transparency=Thing[1].Transparency+Thing[3]] | |
1358 | end | |
1359 | if Thing[2]~="Shoot" and Thing[2]~="DecreaseStat" then | |
1360 | if Thing[1].Transparency<=1 then | |
1361 | if Thing[2]=="Block1" then | |
1362 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1363 | Mesh=Thing[7] | |
1364 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1365 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1366 | elseif Thing[2]=="Block2" then | |
1367 | Thing[1].CFrame=Thing[1].CFrame | |
1368 | Mesh=Thing[7] | |
1369 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1370 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1371 | elseif Thing[2]=="Cylinder" then | |
1372 | Mesh=Thing[7] | |
1373 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1374 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1375 | elseif Thing[2]=="Blood" then | |
1376 | Mesh=Thing[7] | |
1377 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
1378 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1379 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1380 | elseif Thing[2]=="Elec" then | |
1381 | Mesh=Thing[1].Mesh | |
1382 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
1383 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1384 | elseif Thing[2]=="Disappear" then | |
1385 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1386 | end | |
1387 | else | |
1388 | Part.Parent=nil | |
1389 | table.remove(Effects,e) | |
1390 | end | |
1391 | end | |
1392 | end | |
1393 | --end | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | end |