SHOW:
|
|
- or go back to the newest paste.
1 | - | -- Shadow Blade Edit by MappleGalexy(MapleGalaxy) -- |
1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
2 | - | -- I'll Fucking Find You -- |
2 | + | local Player,game,owner = owner,game |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
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 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | local Mouse = Player:GetMouse() | |
68 | local UIS = game:GetService("UserInputService") | |
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | --Since InputObject is a client-side instance, we create and pass table instead | |
72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then | |
95 | return typeof(s[k])=="function" | |
96 | and function(_,...)return s[k](s,...)end or s[k] | |
97 | end | |
98 | end, | |
99 | __newindex = function(self,k,v) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then s[k]=v end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return rawget(self,s) or _rg:GetService(s) | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | RunService = FakeService({ | |
120 | _btrs = {}, | |
121 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
122 | BindToRenderStep = function(self,name,_,fun) | |
123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
124 | end, | |
125 | UnbindFromRenderStep = function(self,name) | |
126 | self._btrs[name]:Disconnect() | |
127 | end, | |
128 | },"RunService") | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | FakeService(g,game) | |
133 | --Changing owner to fake player object to support owner:GetMouse() | |
134 | game,owner = g,g.Players.LocalPlayer | |
135 | end | |
136 | ||
137 | Player=game:GetService("Players").LocalPlayer | |
138 | Character=Player.Character | |
139 | PlayerGui=Player.PlayerGui | |
140 | Backpack=Player.Backpack | |
141 | Torso=Character.Torso | |
142 | Head=Character.Head | |
143 | Humanoid=Character.Humanoid | |
144 | LeftArm=Character["Left Arm"] | |
145 | LeftLeg=Character["Left Leg"] | |
146 | RightArm=Character["Right Arm"] | |
147 | RightLeg=Character["Right Leg"] | |
148 | cam=game.Workspace.CurrentCamera | |
149 | LS=Torso["Left Shoulder"] | |
150 | LH=Torso["Left Hip"] | |
151 | RS=Torso["Right Shoulder"] | |
152 | RH=Torso["Right Hip"] | |
153 | Face = Head.face | |
154 | Neck=Torso.Neck | |
155 | it=Instance.new | |
156 | attacktype=1 | |
157 | vt=Vector3.new | |
158 | cf=CFrame.new | |
159 | script.Name = "MagicBlade" | |
160 | euler=CFrame.fromEulerAnglesXYZ | |
161 | angles=CFrame.Angles | |
162 | cloaked=false | |
163 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
164 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
165 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
166 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
167 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
168 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
169 | RootPart=Character.HumanoidRootPart | |
170 | RootJoint=RootPart.RootJoint | |
171 | RootCF=euler(-1.57,0,3.14) | |
172 | attack = false | |
173 | bounce=false | |
174 | cooldown=false | |
175 | deeznuts=false | |
176 | attackdebounce = false | |
177 | deb=false | |
178 | equipped=true | |
179 | hand=false | |
180 | MMouse=nil | |
181 | combo=0 | |
182 | mana=0 | |
183 | trispeed=.2 | |
184 | attackmode='none' | |
185 | local idle=0 | |
186 | local Anim="Idle" | |
187 | local Effects={} | |
188 | local gun=false | |
189 | local shoot=false | |
190 | player=nil | |
191 | mana=0 | |
192 | cam = workspace.CurrentCamera | |
193 | ZTarget = nil | |
194 | RocketTarget = nil | |
195 | local m = Instance.new("Model",Character) | |
196 | m.Name = "WeaponModelz" | |
197 | ||
198 | local SHEZ = Instance.new("Sound",Character.HumanoidRootPart)SHEZ.SoundId = "rbxassetid://656541219" SHEZ.Looped = true SHEZ.Volume = 2 SHEZ:Play() | |
199 | mouse=Player:GetMouse() | |
200 | --save shoulders | |
201 | RSH, LSH=nil, nil | |
202 | --welds | |
203 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
204 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
205 | LH=Torso["Left Hip"] | |
206 | RH=Torso["Right Hip"] | |
207 | TorsoColor=Torso.BrickColor | |
208 | function NoOutline(Part) | |
209 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
210 | end | |
211 | player=Player | |
212 | ch=Character | |
213 | RSH=ch.Torso["Right Shoulder"] | |
214 | LSH=ch.Torso["Left Shoulder"] | |
215 | -- | |
216 | RSH.Parent=nil | |
217 | LSH.Parent=nil | |
218 | -- | |
219 | RW.Name="Right Shoulder" | |
220 | RW.Part0=ch.Torso | |
221 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
222 | RW.C1=cf(0, 0.5, 0) | |
223 | RW.Part1=ch["Right Arm"] | |
224 | RW.Parent=ch.Torso | |
225 | -- | |
226 | LW.Name="Left Shoulder" | |
227 | LW.Part0=ch.Torso | |
228 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
229 | LW.C1=cf(0, 0.5, 0) | |
230 | LW.Part1=ch["Left Arm"] | |
231 | LW.Parent=ch.Torso | |
232 | ||
233 | function swait(num) | |
234 | if num==0 or num==nil then | |
235 | game:service'RunService'.Heartbeat:wait(0) | |
236 | else | |
237 | for i=0,num do | |
238 | game:service'RunService'.Heartbeat:wait(0) | |
239 | end | |
240 | end | |
241 | end | |
242 | ||
243 | function nooutline(part) | |
244 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
245 | end | |
246 | ||
247 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
248 | local fp=it("Part") | |
249 | fp.formFactor=formfactor | |
250 | fp.Parent=parent | |
251 | fp.Reflectance=reflectance | |
252 | fp.Transparency=transparency | |
253 | fp.CanCollide=false | |
254 | fp.Locked=true | |
255 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
256 | fp.Name=name | |
257 | fp.Size=size | |
258 | fp.Position=Character.Torso.Position | |
259 | nooutline(fp) | |
260 | fp.Material=material | |
261 | fp:BreakJoints() | |
262 | return fp | |
263 | end | |
264 | ||
265 | function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
266 | local fp = it("Part") | |
267 | fp.formFactor = formfactor | |
268 | fp.Parent = parent | |
269 | fp.Reflectance = reflectance | |
270 | fp.Transparency = transparency | |
271 | fp.CanCollide = false | |
272 | fp.Locked=true | |
273 | fp.BrickColor = brickcolor | |
274 | fp.Name = name | |
275 | fp.Size = size | |
276 | fp.Position = EffectPart.Position | |
277 | NoOutline(fp) | |
278 | fp.Material="Neon" | |
279 | fp:BreakJoints() | |
280 | return fp | |
281 | end | |
282 | ||
283 | function wweld(parent,part0,part1,c0) | |
284 | local weld=it("Weld") | |
285 | weld.Parent=parent | |
286 | weld.Part0=part0 | |
287 | weld.Part1=part1 | |
288 | weld.C0=c0 | |
289 | return weld | |
290 | end | |
291 | ||
292 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
293 | local mesh=it(Mesh) | |
294 | mesh.Parent=part | |
295 | if Mesh=="SpecialMesh" then | |
296 | mesh.MeshType=meshtype | |
297 | mesh.MeshId=meshid | |
298 | end | |
299 | mesh.Offset=offset | |
300 | mesh.Scale=scale | |
301 | return mesh | |
302 | end | |
303 | ||
304 | function decal(part,face,texture,transparency,shiny,specular,name) | |
305 | local d=it("Decal",part) | |
306 | d.Shiny=shiny | |
307 | d.Face=face | |
308 | d.Specular=specular | |
309 | d.Transparency=transparency | |
310 | d.Texture=texture | |
311 | d.Name=name | |
312 | return d | |
313 | end | |
314 | ||
315 | function weld(parent,part0,part1,c0,c1) | |
316 | local weld=it("Weld") | |
317 | weld.Parent=parent | |
318 | weld.Part0=part0 | |
319 | weld.Part1=part1 | |
320 | weld.C0=c0 | |
321 | weld.C1=c1 | |
322 | return weld | |
323 | end | |
324 | ||
325 | Humanoid.Name = "Noctis" | |
326 | local SH = Instance.new("Sound") | |
327 | local list = {} | |
328 | ||
329 | so = function(id,par,vol,pit) | |
330 | coroutine.resume(coroutine.create(function() | |
331 | local sou = SH:clone() sou.Parent = par or workspace | |
332 | sou.Volume=vol | |
333 | sou.Pitch=pit or 1 | |
334 | sou.SoundId=id | |
335 | sou:play() | |
336 | game:GetService("Debris"):AddItem(sou,15) | |
337 | end)) | |
338 | end | |
339 | ||
340 | function clerp(a,b,t) | |
341 | local qa = {QuaternionFromCFrame(a)} | |
342 | local qb = {QuaternionFromCFrame(b)} | |
343 | local ax, ay, az = a.x, a.y, a.z | |
344 | local bx, by, bz = b.x, b.y, b.z | |
345 | local _t = 1-t | |
346 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
347 | end | |
348 | ||
349 | function QuaternionFromCFrame(cf) | |
350 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
351 | local trace = m00 + m11 + m22 | |
352 | if trace > 0 then | |
353 | local s = math.sqrt(1 + trace) | |
354 | local recip = 0.5/s | |
355 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
356 | else | |
357 | local i = 0 | |
358 | if m11 > m00 then | |
359 | i = 1 | |
360 | end | |
361 | if m22 > (i == 0 and m00 or m11) then | |
362 | i = 2 | |
363 | end | |
364 | if i == 0 then | |
365 | local s = math.sqrt(m00-m11-m22+1) | |
366 | local recip = 0.5/s | |
367 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
368 | elseif i == 1 then | |
369 | local s = math.sqrt(m11-m22-m00+1) | |
370 | local recip = 0.5/s | |
371 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
372 | elseif i == 2 then | |
373 | local s = math.sqrt(m22-m00-m11+1) | |
374 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
375 | end | |
376 | end | |
377 | end | |
378 | ||
379 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
380 | local xs, ys, zs = x + x, y + y, z + z | |
381 | local wx, wy, wz = w*xs, w*ys, w*zs | |
382 | local xx = x*xs | |
383 | local xy = x*ys | |
384 | local xz = x*zs | |
385 | local yy = y*ys | |
386 | local yz = y*zs | |
387 | local zz = z*zs | |
388 | 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)) | |
389 | end | |
390 | ||
391 | function QuaternionSlerp(a, b, t) | |
392 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
393 | local startInterp, finishInterp; | |
394 | if cosTheta >= 0.0001 then | |
395 | if (1 - cosTheta) > 0.0001 then | |
396 | local theta = math.acos(cosTheta) | |
397 | local invSinTheta = 1/math.sin(theta) | |
398 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
399 | finishInterp = math.sin(t*theta)*invSinTheta | |
400 | else | |
401 | startInterp = 1-t | |
402 | finishInterp = t | |
403 | end | |
404 | else | |
405 | if (1+cosTheta) > 0.0001 then | |
406 | local theta = math.acos(-cosTheta) | |
407 | local invSinTheta = 1/math.sin(theta) | |
408 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
409 | finishInterp = math.sin(t*theta)*invSinTheta | |
410 | else | |
411 | startInterp = t-1 | |
412 | finishInterp = t | |
413 | end | |
414 | end | |
415 | 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 | |
416 | end | |
417 | ||
418 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
419 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
420 | end | |
421 | ||
422 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
423 | if hit.Parent==nil then | |
424 | return | |
425 | end | |
426 | local h=hit.Parent:FindFirstChild("Humanoid") | |
427 | for _,v in pairs(hit.Parent:children()) do | |
428 | if v:IsA("Humanoid") then | |
429 | h=v | |
430 | end | |
431 | end | |
432 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
433 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
434 | end | |
435 | if hit.Parent.className=="Hat" then | |
436 | hit=hit.Parent.Parent:findFirstChild("Head") | |
437 | end | |
438 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
439 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
440 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
441 | return | |
442 | end]] | |
443 | -- hs(hit,1.2) | |
444 | local c=Instance.new("ObjectValue") | |
445 | c.Name="creator" | |
446 | c.Value=game:service("Players").LocalPlayer | |
447 | c.Parent=h | |
448 | game:GetService("Debris"):AddItem(c,.5) | |
449 | local Damage=math.random(minim,maxim) | |
450 | -- h:TakeDamage(Damage) | |
451 | local blocked=false | |
452 | local block=hit.Parent:findFirstChild("Block") | |
453 | if block~=nil then | |
454 | print(block.className) | |
455 | if block.className=="NumberValue" then | |
456 | if block.Value>0 then | |
457 | blocked=true | |
458 | if decreaseblock==nil then | |
459 | block.Value=block.Value-1 | |
460 | end | |
461 | end | |
462 | end | |
463 | if block.className=="IntValue" then | |
464 | if block.Value>0 then | |
465 | blocked=true | |
466 | if decreaseblock~=nil then | |
467 | block.Value=block.Value-1 | |
468 | end | |
469 | end | |
470 | end | |
471 | end | |
472 | if blocked==false then | |
473 | -- h:TakeDamage(Damage) | |
474 | h.Health=h.Health-Damage | |
475 | ShowDamage((Part.CFrame * CFrame.new(math.random(-5,5), math.random(-5,5), math.random(-5,5)+ (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
476 | else | |
477 | h.Health=h.Health-(Damage/2) | |
478 | 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) | |
479 | end | |
480 | if Type=="Knockdown" then | |
481 | local hum=hit.Parent.Humanoid | |
482 | hum.PlatformStand=true | |
483 | coroutine.resume(coroutine.create(function(HHumanoid) | |
484 | swait(1) | |
485 | HHumanoid.PlatformStand=false | |
486 | end),hum) | |
487 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
488 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
489 | local bodvol=Instance.new("BodyVelocity") | |
490 | bodvol.velocity=angle*knockback | |
491 | bodvol.P=5000 | |
492 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
493 | bodvol.Parent=hit | |
494 | local rl=Instance.new("BodyAngularVelocity") | |
495 | rl.P=3000 | |
496 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
497 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
498 | rl.Parent=hit | |
499 | game:GetService("Debris"):AddItem(bodvol,.5) | |
500 | game:GetService("Debris"):AddItem(rl,.5) | |
501 | elseif Type=="Normal" then | |
502 | local vp=Instance.new("BodyVelocity") | |
503 | vp.P=500 | |
504 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
505 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
506 | if KnockbackType==1 then | |
507 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
508 | elseif KnockbackType==2 then | |
509 | vp.velocity=Property.CFrame.lookVector*knockback | |
510 | end | |
511 | if knockback>0 then | |
512 | vp.Parent=hit.Parent.Torso | |
513 | end | |
514 | game:GetService("Debris"):AddItem(vp,.5) | |
515 | elseif Type=="Up" then | |
516 | local bodyVelocity=Instance.new("BodyVelocity") | |
517 | bodyVelocity.velocity=vt(0,60,0) | |
518 | bodyVelocity.P=5000 | |
519 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
520 | bodyVelocity.Parent=hit | |
521 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
522 | local rl=Instance.new("BodyAngularVelocity") | |
523 | rl.P=3000 | |
524 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
525 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
526 | rl.Parent=hit | |
527 | game:GetService("Debris"):AddItem(rl,.5) | |
528 | elseif Type=="Snare" then | |
529 | local bp=Instance.new("BodyPosition") | |
530 | bp.P=2000 | |
531 | bp.D=100 | |
532 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
533 | bp.position=hit.Parent.Torso.Position | |
534 | bp.Parent=hit.Parent.Torso | |
535 | game:GetService("Debris"):AddItem(bp,1) | |
536 | elseif Type=="Target" then | |
537 | local Targetting = false | |
538 | if Targetting==false then | |
539 | ZTarget=hit.Parent.Torso | |
540 | coroutine.resume(coroutine.create(function(Part) | |
541 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
542 | swait(5) | |
543 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
544 | end),ZTarget) | |
545 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
546 | local targetgui=Instance.new("BillboardGui") | |
547 | targetgui.Parent=ZTarget | |
548 | targetgui.Size=UDim2.new(10,100,10,100) | |
549 | local targ=Instance.new("ImageLabel") | |
550 | targ.Parent=targetgui | |
551 | targ.BackgroundTransparency=1 | |
552 | targ.Image="rbxassetid://4834067" | |
553 | targ.Size=UDim2.new(1,0,1,0) | |
554 | cam.CameraType="Scriptable" | |
555 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
556 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
557 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
558 | Targetting=true | |
559 | RocketTarget=ZTarget | |
560 | for i=1,Property do | |
561 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
562 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
563 | swait() | |
564 | end | |
565 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
566 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
567 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
568 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
569 | end | |
570 | Targetting=false | |
571 | RocketTarget=nil | |
572 | targetgui.Parent=nil | |
573 | cam.CameraType="Custom" | |
574 | end | |
575 | end | |
576 | c=Instance.new("ObjectValue") | |
577 | c.Name="creator" | |
578 | c.Value=Player | |
579 | c.Parent=h | |
580 | game:GetService("Debris"):AddItem(c,.5) | |
581 | end | |
582 | end | |
583 | ||
584 | ||
585 | function ShowDamage(Pos, Text, Time, Color) | |
586 | local Rate = (1 / 30) | |
587 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
588 | local Text = (Text or "") | |
589 | local Time = (Time or 2) | |
590 | local Color = (Color or Color3.new(1, 0, 0)) | |
591 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
592 | EffectPart.Anchored = true | |
593 | local BillboardGui = Instance.new("BillboardGui") | |
594 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
595 | BillboardGui.Adornee = EffectPart | |
596 | local TextLabel = Instance.new("TextLabel") | |
597 | TextLabel.BackgroundTransparency = 1 | |
598 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
599 | TextLabel.Text = Text | |
600 | TextLabel.TextColor3 = Color | |
601 | TextLabel.TextScaled = true | |
602 | TextLabel.Font = Enum.Font.ArialBold | |
603 | TextLabel.Parent = BillboardGui | |
604 | BillboardGui.Parent = EffectPart | |
605 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
606 | EffectPart.Parent = game:GetService("Workspace") | |
607 | Delay(0, function() | |
608 | local Frames = (Time / Rate) | |
609 | for Frame = 1, Frames do | |
610 | wait(Rate) | |
611 | local Percent = (Frame / Frames) | |
612 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
613 | TextLabel.TextTransparency = Percent | |
614 | end | |
615 | if EffectPart and EffectPart.Parent then | |
616 | EffectPart:Destroy() | |
617 | end | |
618 | end) | |
619 | end | |
620 | ||
621 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003)) | |
622 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
623 | handleweld.Name = "MagicWeld" | |
624 | mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746)) | |
625 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571)) | |
626 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010)) | |
627 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
628 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657)) | |
629 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006)) | |
630 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
631 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743)) | |
632 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006)) | |
633 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
634 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723)) | |
635 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007)) | |
636 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
637 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715)) | |
638 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007)) | |
639 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
640 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057)) | |
641 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010)) | |
642 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
643 | Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1)) | |
644 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008)) | |
645 | mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298)) | |
646 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
647 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
648 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179)) | |
649 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
650 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
651 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1)) | |
652 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
653 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
654 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002)) | |
655 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601)) | |
656 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
657 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179)) | |
658 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
659 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
660 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269)) | |
661 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601)) | |
662 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
663 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269)) | |
664 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
665 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007)) | |
666 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
667 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
668 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009)) | |
669 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
670 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
671 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008)) | |
672 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
673 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003)) | |
674 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
675 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
676 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003)) | |
677 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007)) | |
678 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
679 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
680 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008)) | |
681 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
682 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285)) | |
683 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
684 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364)) | |
685 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285)) | |
686 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
687 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408)) | |
688 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
689 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
690 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408)) | |
691 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
692 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
693 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364)) | |
694 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
695 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
696 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057)) | |
697 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
698 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
699 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268)) | |
700 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
701 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1)) | |
702 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746)) | |
703 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
704 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
705 | EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Cyan","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
706 | EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
707 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
708 | EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
709 | EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
710 | ||
711 | local ColorsArray = {ColorSequenceKeypoint.new(0, Color3.new(0/255,170/255,255/255)),ColorSequenceKeypoint.new(1, Color3.new(0/255,170/255,255/255))} | |
712 | local Atch1 = Instance.new("Attachment",Hitbox)Atch1.Position = Vector3.new(0,2,0) | |
713 | local Atch2 = Instance.new("Attachment",Hitbox)Atch2.Position = Vector3.new(0,-2.5,0) | |
714 | local Trail = Instance.new("Trail",Hitbox)Trail.Attachment0 = Atch1 Trail.Attachment1 = Atch2 | |
715 | Trail.Texture = "rbxassetid://22636887" Trail.Lifetime = 0.05 Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
716 | Trail.Color = ColorSequence.new(ColorsArray) Trail.LightEmission = 1 | |
717 | ||
718 | DarkRiftF=function(par) | |
719 | while lol == true do | |
720 | wait() | |
721 | local PWN={} | |
722 | for _,v in pairs(game.Workspace:children()) do | |
723 | if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then | |
724 | if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then | |
725 | table.insert(PWN,v.Torso) | |
726 | end | |
727 | end | |
728 | end | |
729 | for _,t in pairs(PWN) do | |
730 | local targ=par.Position-t.Position | |
731 | local Mag=targ.magnitude | |
732 | if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then | |
733 | if Mag<=30 then | |
734 | t.Parent.Humanoid:TakeDamage(.5) | |
735 | local rl=Instance.new("BodyAngularVelocity") | |
736 | rl.P=3000 | |
737 | rl.maxTorque=Vector3.new(500000,500000,500000)*5000 | |
738 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10 | |
739 | rl.Parent=t | |
740 | game:GetService("Debris"):AddItem(rl,.1) | |
741 | end | |
742 | if Mag<=20 then | |
743 | t.Parent.Humanoid:TakeDamage(.1) | |
744 | else | |
745 | local vl=Instance.new("BodyVelocity") | |
746 | vl.P=3000 | |
747 | vl.maxForce=Vector3.new(50000000000,50000000000,50000000000) | |
748 | vl.velocity=(t.Position-par.Position).unit*-(70/(Mag)) | |
749 | vl.Parent=t | |
750 | game:GetService("Debris"):AddItem(vl,.1) | |
751 | end | |
752 | end | |
753 | end | |
754 | wait(.08) | |
755 | end | |
756 | end | |
757 | ||
758 | function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) | |
759 | local msh1 = Instance.new("BlockMesh") | |
760 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
761 | local S=Instance.new("Part") | |
762 | S.Name="Effect" | |
763 | S.Material="Neon" | |
764 | S.formFactor=0 | |
765 | S.Size=Vector3.new(x1,y1,z1) | |
766 | S.BrickColor=color | |
767 | S.Reflectance = 0 | |
768 | S.TopSurface=0 | |
769 | S.BottomSurface=0 | |
770 | S.Transparency=0 | |
771 | S.Anchored=false | |
772 | S.CanCollide=false | |
773 | S.CFrame=part.CFrame | |
774 | S.Parent=game.Workspace | |
775 | msh1.Parent = S | |
776 | local W=Instance.new("Weld") | |
777 | W.Parent=S | |
778 | W.Part0=S | |
779 | W.Part1=part | |
780 | W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
781 | W.Parent=nil | |
782 | S.Anchored=true | |
783 | coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W) | |
784 | end | |
785 | ||
786 | local function BlackHole(parent,cframe) | |
787 | local effectsmsh = Instance.new("SpecialMesh") | |
788 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
789 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
790 | effectsmsh.Scale = Vector3.new(3,3,3) | |
791 | local effectsg = Instance.new("Part") | |
792 | effectsg.formFactor = 3 | |
793 | effectsg.CanCollide = false | |
794 | effectsg.Name = "Effect" | |
795 | effectsg.Locked = true | |
796 | effectsg.Transparency = 1 | |
797 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
798 | effectsg.Parent = parent | |
799 | effectsg.BrickColor = BrickColor.new("Cyan") | |
800 | effectsg.Material="Neon" | |
801 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
802 | local Mesh = Instance.new("SpecialMesh") | |
803 | Mesh.Scale = Vector3.new(0.5,0.5,0.5) | |
804 | Mesh.MeshType = "Sphere" | |
805 | -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460" | |
806 | Part=Instance.new("Part") | |
807 | Part.Name="Effect" | |
808 | Part.formFactor=0 | |
809 | Part.Size=Vector3.new(1,1,1) | |
810 | Part.BrickColor=BrickColor.new("Cyan") | |
811 | Part.Material="Neon" | |
812 | Part.Reflectance = 0 | |
813 | Part.TopSurface=0 | |
814 | Part.BottomSurface=0 | |
815 | Part.Transparency=0 | |
816 | Part.Anchored=true | |
817 | NoOutline(Part) | |
818 | Part.CanCollide=false | |
819 | Part.CFrame=cframe | |
820 | Part.Parent=parent | |
821 | Mesh.Parent = Part | |
822 | lol=true | |
823 | coroutine.resume(coroutine.create(function() | |
824 | DarkRiftF(Part) | |
825 | end)) | |
826 | for i=0,200 do | |
827 | wait() | |
828 | DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Cyan")) | |
829 | Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2) | |
830 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
831 | end | |
832 | local fff=200 | |
833 | for i=0,100 do | |
834 | wait() | |
835 | DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Cyan")) | |
836 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
837 | end | |
838 | for i=0,1,0.05 do | |
839 | wait() | |
840 | Part.Transparency=Part.Transparency+0.05 | |
841 | Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5) | |
842 | end | |
843 | lol=false | |
844 | Part.Parent=nil | |
845 | end),nil,nil) | |
846 | end | |
847 | ||
848 | function makeShockwave(height,color,speed,range,pulse) | |
849 | local range = range or 2000 | |
850 | local p = Instance.new("Part") | |
851 | p.Anchored = true | |
852 | p.CanCollide = false | |
853 | p.FormFactor = "Custom" | |
854 | p.BrickColor = color | |
855 | p.Parent = workspace | |
856 | local m = Instance.new("SpecialMesh",p) | |
857 | m.MeshId = "rbxassetid://3270017" | |
858 | local estimateSurvival = math.floor(range/speed) * 0.03 | |
859 | game:GetService("Debris"):AddItem(p,estimateSurvival) | |
860 | Spawn(function () | |
861 | for i = 1,range,speed do | |
862 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
863 | m.Scale = Vector3.new(i,i,i*height) | |
864 | p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0) | |
865 | wait() | |
866 | end | |
867 | p:Destroy() | |
868 | end) | |
869 | end | |
870 | ||
871 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
872 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
873 | prt.Anchored=true | |
874 | prt.CFrame=cframe | |
875 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1)) | |
876 | game:GetService("Debris"):AddItem(prt,2) | |
877 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
878 | for i=0,2,delay do | |
879 | wait() | |
880 | Part.CFrame=Part.CFrame | |
881 | Part.Transparency=i | |
882 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
883 | end | |
884 | Part.Parent=nil | |
885 | end),prt,msh) | |
886 | end | |
887 | ||
888 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
889 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
890 | prt.Anchored=true | |
891 | prt.CFrame=cframe | |
892 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
893 | game:GetService("Debris"):AddItem(prt,5) | |
894 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
895 | for i=0,1,delay do | |
896 | wait() | |
897 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
898 | Part.Transparency=i | |
899 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
900 | end | |
901 | Part.Parent=nil | |
902 | end),prt,msh) | |
903 | end | |
904 | ||
905 | local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
906 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt()) | |
907 | if Type~=2 then | |
908 | prt.Anchored=true | |
909 | end | |
910 | prt.CFrame=cframe | |
911 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
912 | game:GetService("Debris"):AddItem(prt,5) | |
913 | coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
914 | local wld=nil | |
915 | if dur==2 then | |
916 | wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0)) | |
917 | end | |
918 | for i=0,1,delay do | |
919 | swait() | |
920 | if dur==1 then | |
921 | Part.CFrame=Part.CFrame | |
922 | elseif dur==2 then | |
923 | wld.C0=cframe | |
924 | end | |
925 | Part.Transparency=i | |
926 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
927 | end | |
928 | Part.Parent=nil | |
929 | end),prt,msh,Type) | |
930 | end | |
931 | ||
932 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
933 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
934 | prt.Anchored=true | |
935 | prt.CFrame=cframe | |
936 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
937 | game:GetService("Debris"):AddItem(prt,5) | |
938 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
939 | for i=0,1,delay do | |
940 | swait() | |
941 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
942 | Part.Transparency=i | |
943 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
944 | end | |
945 | Part.Parent=nil | |
946 | end),prt,msh) | |
947 | end | |
948 | ||
949 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
950 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
951 | prt.Anchored=true | |
952 | prt.CFrame=cframe | |
953 | local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
954 | game:GetService("Debris"):AddItem(prt,5) | |
955 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
956 | for i=0,1,delay do | |
957 | wait() | |
958 | Part.CFrame=Part.CFrame | |
959 | Part.Transparency=i | |
960 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
961 | end | |
962 | Part.Parent=nil | |
963 | end),prt,msh) | |
964 | end | |
965 | ||
966 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
967 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt()) | |
968 | prt.Anchored=true | |
969 | prt.CFrame=cframe | |
970 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
971 | game:GetService("Debris"):AddItem(prt,5) | |
972 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
973 | end | |
974 | ||
975 | function Blast(parent) | |
976 | MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
977 | MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
978 | end | |
979 | ||
980 | function ChargeBall(parent,t) | |
981 | local counter=0 | |
982 | local size=1 | |
983 | for i=0,t,1 do | |
984 | swait() | |
985 | counter=counter+1 | |
986 | if counter%10==0 then | |
987 | if size==3 then | |
988 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
989 | elseif size==2 then | |
990 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
991 | end | |
992 | end | |
993 | if counter%5==0 then | |
994 | if size==1 then | |
995 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
996 | elseif size==2 then | |
997 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
998 | elseif size==3 then | |
999 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1000 | end | |
1001 | end | |
1002 | end | |
1003 | end | |
1004 | ||
1005 | function ChargeBall2(parent,t) | |
1006 | local counter=0 | |
1007 | local size=1 | |
1008 | for i=0,t,1 do | |
1009 | swait() | |
1010 | counter=counter+1 | |
1011 | if counter%10==0 then | |
1012 | if size==3 then | |
1013 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1014 | elseif size==2 then | |
1015 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1016 | end | |
1017 | end | |
1018 | if counter%5==0 then | |
1019 | if size==1 then | |
1020 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1021 | MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1022 | elseif size==2 then | |
1023 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1024 | MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1025 | elseif size==3 then | |
1026 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1027 | MagicWave(BrickColor.new("Cyan"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1028 | end | |
1029 | end | |
1030 | end | |
1031 | end | |
1032 | ||
1033 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
1034 | for _,c in pairs(workspace:children()) do | |
1035 | local hum=c:findFirstChild("Humanoid") | |
1036 | if hum~=nil then | |
1037 | local head=c:findFirstChild("Torso") | |
1038 | if head~=nil then | |
1039 | local targ=head.Position-Part.Position | |
1040 | local mag=targ.magnitude | |
1041 | if mag<=dis and c.Name~=Character.Name then | |
1042 | Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
1043 | end | |
1044 | end | |
1045 | end | |
1046 | end | |
1047 | end | |
1048 | ||
1049 | function computeDirection(vec) | |
1050 | local lenSquared = vec.magnitude * vec.magnitude | |
1051 | local invSqrt = 1 / math.sqrt(lenSquared) | |
1052 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
1053 | end | |
1054 | ||
1055 | function attackone() | |
1056 | attack = true | |
1057 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1058 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,5,9,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1059 | local fx=Hitbox.Touched:connect(function(part) | |
1060 | local human=part.Parent:findFirstChild("Humanoid") | |
1061 | if human~=nil and bounce==false then | |
1062 | bounce=true | |
1063 | local rndm=math.random(1,#hitsounds) | |
1064 | local r=rndm | |
1065 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1066 | end | |
1067 | end) | |
1068 | for i = 0,1,0.25 do | |
1069 | swait() | |
1070 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),1) | |
1071 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),1) | |
1072 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1) | |
1073 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1) | |
1074 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1) | |
1075 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
1076 | end | |
1077 | so("http://www.roblox.com/asset/?id=712781677",handle,1,.9) | |
1078 | for i = 0,1,0.5 do | |
1079 | swait() | |
1080 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1081 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1082 | local h = 5 | |
1083 | scfr = blcf | |
1084 | elseif not scfr then | |
1085 | scfr = blcf | |
1086 | end | |
1087 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.5) | |
1088 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.5) | |
1089 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5) | |
1090 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5) | |
1091 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.5) | |
1092 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.5) | |
1093 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5) | |
1094 | end | |
1095 | attack = false | |
1096 | bounce=false | |
1097 | scfr=nil | |
1098 | fx:disconnect() | |
1099 | con:disconnect() | |
1100 | end | |
1101 | ||
1102 | function attacktwo() | |
1103 | attack=true | |
1104 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1105 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1106 | local fx=Hitbox.Touched:connect(function(part) | |
1107 | local human=part.Parent:findFirstChild("Humanoid") | |
1108 | if human~=nil and bounce==false then | |
1109 | bounce=true | |
1110 | local rndm=math.random(1,#hitsounds) | |
1111 | local r=rndm | |
1112 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1113 | end | |
1114 | end) | |
1115 | for i=0,1,.25 do | |
1116 | swait() | |
1117 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
1118 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-90)),0.5) | |
1119 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.5) | |
1120 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.5) | |
1121 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4) | |
1122 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.5) | |
1123 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.5) | |
1124 | end | |
1125 | so("http://www.roblox.com/asset/?id=712781677",handle,1,1) | |
1126 | for i = 0,1,0.5 do | |
1127 | swait() | |
1128 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1129 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1130 | local h = 5 | |
1131 | scfr = blcf | |
1132 | elseif not scfr then | |
1133 | scfr = blcf | |
1134 | end | |
1135 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.5) | |
1136 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(90)),0.5) | |
1137 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.5) | |
1138 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.5) | |
1139 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.5) | |
1140 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.5) | |
1141 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1142 | end | |
1143 | scfr=nil | |
1144 | attack=false | |
1145 | bounce=false | |
1146 | con:disconnect() | |
1147 | fx:disconnect() | |
1148 | end | |
1149 | ||
1150 | function attackthree() | |
1151 | attack=true | |
1152 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1153 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,12,16,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1154 | local fx=Hitbox.Touched:connect(function(part) | |
1155 | local human=part.Parent:findFirstChild("Humanoid") | |
1156 | if human~=nil and bounce==false then | |
1157 | bounce=true | |
1158 | local rndm=math.random(1,#hitsounds) | |
1159 | local r=rndm | |
1160 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1161 | end | |
1162 | end) | |
1163 | for i=0,1,.25 do | |
1164 | swait() | |
1165 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1166 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1167 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1168 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1169 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1170 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1171 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1172 | end | |
1173 | so("http://www.roblox.com/asset/?id=712781677",handle,1,.9) | |
1174 | for i = 0,1,0.5 do | |
1175 | swait() | |
1176 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1177 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1178 | local h = 5 | |
1179 | scfr = blcf | |
1180 | elseif not scfr then | |
1181 | scfr = blcf | |
1182 | end | |
1183 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1184 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1185 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.5) | |
1186 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1187 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1188 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1189 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1190 | end | |
1191 | attack=false | |
1192 | bounce=false | |
1193 | scfr=nil | |
1194 | con:disconnect() | |
1195 | fx:disconnect() | |
1196 | end | |
1197 | ||
1198 | function attackfour() | |
1199 | attack = true | |
1200 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1201 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4,9,math.random(20,30),"Normal",RootPart,.2,1) end) | |
1202 | local fx=Hitbox.Touched:connect(function(part) | |
1203 | local human=part.Parent:findFirstChild("Humanoid") | |
1204 | if human~=nil and bounce==false then | |
1205 | bounce=true | |
1206 | local rndm=math.random(1,#hitsounds) | |
1207 | local r=rndm | |
1208 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1209 | end | |
1210 | end) | |
1211 | for i = 0,1,0.25 do | |
1212 | swait() | |
1213 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.5) | |
1214 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.5) | |
1215 | RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.5) | |
1216 | LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.5) | |
1217 | RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.5) | |
1218 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.5) | |
1219 | handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.5) | |
1220 | end | |
1221 | so("http://www.roblox.com/asset/?id=712781677",Hitbox,1,1.1) | |
1222 | local v=it("BodyVelocity",Torso) | |
1223 | v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1 | |
1224 | v.velocity=RootPart.CFrame.lookVector*50 | |
1225 | for i = 0,1,0.5 do | |
1226 | swait() | |
1227 | local blcf = Hitbox.CFrame*cf(0,0,0) | |
1228 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1229 | local h = 5 | |
1230 | scfr = blcf | |
1231 | elseif not scfr then | |
1232 | scfr = blcf | |
1233 | end | |
1234 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.5) | |
1235 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.5) | |
1236 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.5) | |
1237 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.5) | |
1238 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.5) | |
1239 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.5) | |
1240 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.5) | |
1241 | end | |
1242 | v.Parent=nil | |
1243 | scfr=nil | |
1244 | attack = false | |
1245 | bounce=false | |
1246 | con:disconnect() | |
1247 | fx:disconnect() | |
1248 | end | |
1249 | ||
1250 | function Shockwave1(CFramez, Rangez) | |
1251 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true | |
1252 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock) | |
1253 | SM.MeshId = "rbxassetid://20329976" Shock.CFrame = CFramez SM.Scale = Vector3.new(0,0,0) | |
1254 | Spawn(function () | |
1255 | for i = 1,3 do | |
1256 | SM.Scale = SM.Scale + Vector3.new(2+Rangez/2,0.15+Rangez/12,2+Rangez/2) | |
1257 | Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-80/Rangez),0) | |
1258 | wait() | |
1259 | end | |
1260 | for i = 1,math.huge do | |
1261 | if Shock.Transparency >= 1 then break end | |
1262 | Shock.Transparency = Shock.Transparency + 0.025 Shock.CFrame = Shock.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-150/Rangez),0) | |
1263 | SM.Scale = SM.Scale + Vector3.new(0.5,0.05,0.5) | |
1264 | wait() | |
1265 | end | |
1266 | Shock:remove() | |
1267 | end) | |
1268 | end | |
1269 | ||
1270 | ||
1271 | function PortalStorm() | |
1272 | attack=true | |
1273 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1274 | so("http://www.roblox.com/asset/?id=562500427",handle,1,.9) | |
1275 | MagniDamage(Character.HumanoidRootPart,20,150,235,0,"Normal",Character.HumanoidRootPart) | |
1276 | local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,1,0)game.Debris:AddItem(BV,0.1) | |
1277 | BV.maxForce = Vector3.new(0,math.huge,0) | |
1278 | for i2 = 1,10 do | |
1279 | Shockwave1(Character.HumanoidRootPart.CFrame*CFrame.new(0,-2.5,0)*CFrame.Angles(0,math.rad(-5),0), i2) | |
1280 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-(i2*100))),1) | |
1281 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1) | |
1282 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1) | |
1283 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1) | |
1284 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1) | |
1285 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
1286 | swait() | |
1287 | end | |
1288 | attack = false | |
1289 | bounce=false | |
1290 | scfr=nil | |
1291 | attack = false | |
1292 | end | |
1293 | ||
1294 | function Spin() | |
1295 | attack=true | |
1296 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1297 | so("http://www.roblox.com/asset/?id=562500427",handle,1,.9) | |
1298 | local BV = Instance.new("BodyVelocity",Character.HumanoidRootPart)BV.Velocity = Vector3.new(0,50,0)game.Debris:AddItem(BV,0.25) | |
1299 | BV.maxForce = Vector3.new(0,math.huge,0) | |
1300 | for i2 = 1,25 do | |
1301 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(math.random(-100,100)/10),math.rad(math.random(-100,100)/10),math.rad(-(i2*50))),1) | |
1302 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(125)),1) | |
1303 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),1) | |
1304 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),1) | |
1305 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),1) | |
1306 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
1307 | MagniDamage(Character.HumanoidRootPart,10,8,16,0,"Normal",Character.HumanoidRootPart) | |
1308 | swait() | |
1309 | end | |
1310 | attack = false | |
1311 | bounce=false | |
1312 | scfr=nil | |
1313 | attack = false | |
1314 | end | |
1315 | ||
1316 | function ProjectileStrike() | |
1317 | attack=true | |
1318 | for i=0,1,.25 do | |
1319 | swait() | |
1320 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1321 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1322 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1323 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1324 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1325 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1326 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1327 | end | |
1328 | Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(0.650000036, 8, 0.200000003)) Wave.Parent = game.Workspace | |
1329 | local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,4,0) | |
1330 | local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-4,0) | |
1331 | local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 | |
1332 | Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.05 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1333 | Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1 | |
1334 | Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.new(0,0,-1)*CFrame.Angles(0,0,math.rad(math.random(-20,20))) | |
1335 | local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*250 | |
1336 | so("http://www.roblox.com/asset/?id=506383970",handle,1,.9) | |
1337 | local con=Wave.Touched:connect(function(hit) Damagefunc(Wave,hit,24,46,0,"Normal",RootPart,.2,1) end) | |
1338 | for i = 0,1,0.1 do | |
1339 | swait() | |
1340 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1341 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1342 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1343 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1344 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1345 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1346 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1347 | end | |
1348 | attack=false | |
1349 | bounce=false | |
1350 | scfr=nil | |
1351 | con:disconnect() | |
1352 | end | |
1353 | ||
1354 | function WorldBreaker() | |
1355 | attack=true | |
1356 | for i=0,1,.25 do | |
1357 | swait() | |
1358 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1359 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1360 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1361 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1362 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1363 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1364 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1365 | end | |
1366 | Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(6, 100, 20)) Wave.Parent = game.Workspace | |
1367 | local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,50,-10) | |
1368 | local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-50,-10) | |
1369 | local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4 | |
1370 | Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1371 | Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1 | |
1372 | local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 3 Soond.Looped = true Soond.Parent = Wave Soond:Play() | |
1373 | Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(-90))*CFrame.new(0,0,-10) | |
1374 | game.Debris:AddItem(Wave,5) | |
1375 | local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*25 | |
1376 | Wave.Touched:connect(function(hit) | |
1377 | if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then | |
1378 | hit:remove() | |
1379 | end | |
1380 | end) | |
1381 | so("http://www.roblox.com/asset/?id=517249876",handle,1,.9) | |
1382 | for i = 0,1,0.1 do | |
1383 | swait() | |
1384 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1385 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1386 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1387 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1388 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1389 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1390 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1391 | end | |
1392 | attack=false | |
1393 | bounce=false | |
1394 | scfr=nil | |
1395 | end | |
1396 | ||
1397 | function SuperProjectile() | |
1398 | attack=true | |
1399 | for i=0,1,.25 do | |
1400 | swait() | |
1401 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1402 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1403 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1404 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1405 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1406 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1407 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1408 | end | |
1409 | for i2 = 1,3 do | |
1410 | for i = 1,12 do | |
1411 | Wave=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Wave",Vector3.new(0.650000036, 10, 10*i2)) Wave.Parent = game.Workspace | |
1412 | game.Debris:AddItem(Wave,10) | |
1413 | local Atch3 = Instance.new("Attachment",Wave)Atch3.Position = Vector3.new(0,10,0) | |
1414 | local Atch4 = Instance.new("Attachment",Wave)Atch4.Position = Vector3.new(0,-10,0) | |
1415 | local Trail2 = Instance.new("Trail",Wave)Trail2.Attachment0 = Atch3 Trail2.Attachment1 = Atch4 Trail2.MinLength = 4 | |
1416 | Trail2.Texture = "rbxassetid://22636887" Trail2.Lifetime = 0.5 Trail2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
1417 | Trail2.Color = ColorSequence.new(ColorsArray) Trail2.LightEmission = 1 | |
1418 | local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave Soond:Play() | |
1419 | Wave.CFrame = Character.HumanoidRootPart.CFrame*CFrame.Angles(0,0,math.rad(30*i)) | |
1420 | Wave.CFrame = Wave.CFrame*CFrame.new(-5*i2,0,4*i2) | |
1421 | local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*300 | |
1422 | Wave.Touched:connect(function(hit) | |
1423 | if hit.Anchored == false and hit.Parent ~= Character and hit.Parent.Parent ~= Character then | |
1424 | hit:remove() | |
1425 | end | |
1426 | end) | |
1427 | end | |
1428 | end | |
1429 | so("http://www.roblox.com/asset/?id=517249876",handle,1,.9) | |
1430 | for i = 0,1,0.1 do | |
1431 | swait() | |
1432 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1433 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1434 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1435 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1436 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1437 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1438 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1439 | end | |
1440 | attack=false | |
1441 | bounce=false | |
1442 | scfr=nil | |
1443 | end | |
1444 | ||
1445 | ||
1446 | function ShockSpin(Partz,SM) | |
1447 | Spawn(function() | |
1448 | for i = 1,math.huge do | |
1449 | if Partz.Transparency >= 1 then break end | |
1450 | Partz.Transparency = Partz.Transparency + 0.025 Partz.CFrame = Partz.CFrame* CFrame.new(0,0,0)*CFrame.Angles(0,math.rad(-50),0) | |
1451 | SM.Scale = SM.Scale + Vector3.new(1,0.25,1) | |
1452 | wait() | |
1453 | end | |
1454 | Partz:remove() | |
1455 | end) | |
1456 | end | |
1457 | ||
1458 | function Shockwave2(Partz) | |
1459 | local W = 0 | |
1460 | Spawn(function() | |
1461 | for i = 1,math.huge do | |
1462 | W = W + 1 | |
1463 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.75 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true | |
1464 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock) | |
1465 | SM.MeshId = "rbxassetid://20329976" Shock.CFrame = Partz.CFrame*CFrame.Angles(math.rad(90),math.rad(W*10),0) SM.Scale = Vector3.new(0,0,0) | |
1466 | ShockSpin(Shock,SM) | |
1467 | wait() | |
1468 | end | |
1469 | end) | |
1470 | end | |
1471 | ||
1472 | function SuperProjectile2() | |
1473 | attack=true | |
1474 | for i=0,1,.25 do | |
1475 | swait() | |
1476 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1477 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1478 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1479 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1480 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1481 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1482 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1483 | end | |
1484 | local Wave2 = Instance.new("Part",game.Workspace)Wave2.Size = Vector3.new(20,20,20)Wave2.CanCollide = false Wave2.Anchored = false Wave2.Transparency = 1 | |
1485 | local Soond = SH:clone()Soond.SoundId = "rbxassetid://666736107" Soond.Volume = 0.05 Soond.Looped = true Soond.Parent = Wave2 Soond:Play() Wave2.CFrame = Character.HumanoidRootPart.CFrame | |
1486 | local BV = Instance.new("BodyVelocity",Wave2)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Character.HumanoidRootPart.CFrame.lookVector*150 | |
1487 | Wave2.Touched:connect(function(hit) Damagefunc(Wave2,hit,24,46,0,"Normal",RootPart,.2,1) end) | |
1488 | Shockwave2(Wave2) game.Debris:addItem(Wave2,5) | |
1489 | so("http://www.roblox.com/asset/?id=517249876",handle,1,.9) | |
1490 | for i = 0,1,0.1 do | |
1491 | swait() | |
1492 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1493 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1494 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1495 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1496 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1497 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1498 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1499 | end | |
1500 | attack=false | |
1501 | bounce=false | |
1502 | scfr=nil | |
1503 | end | |
1504 | ||
1505 | function Warp() | |
1506 | for i=0,1,.25 do | |
1507 | swait() | |
1508 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1509 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1510 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1511 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1512 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1513 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1514 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1515 | end | |
1516 | local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword" | |
1517 | WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1 | |
1518 | local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs | |
1519 | Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
1520 | local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750 | |
1521 | Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0) | |
1522 | local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 3 Soond:Play() | |
1523 | local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5 | |
1524 | Trail.Enabled = false | |
1525 | for i, v in pairs(m:children()) do | |
1526 | if v.ClassName == "Part" then | |
1527 | if v.Transparency ~= 1 then | |
1528 | v.Transparency = 0.99 | |
1529 | end | |
1530 | end | |
1531 | end | |
1532 | for i = 0,1,0.1 do | |
1533 | swait() | |
1534 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1535 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1536 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1537 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1538 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1539 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1540 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1541 | end | |
1542 | wait(0.05) | |
1543 | local Soond2 = SH:clone()Soond2.SoundId = "rbxassetid://181004957" Soond2.Volume = 5 Soond2.Parent = Character.HumanoidRootPart Soond2:Play() | |
1544 | Character.HumanoidRootPart.CFrame = Partzs.CFrame | |
1545 | Humanoid.Jump = true | |
1546 | WarpS:remove() | |
1547 | Trail.Enabled = true | |
1548 | for i, v in pairs(m:children()) do | |
1549 | if v.ClassName == "Part" then | |
1550 | if v.Transparency ~= 1 then | |
1551 | v.Transparency = 0 | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end | |
1556 | ||
1557 | function NukeShockwaves(Size, CFramez) | |
1558 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true | |
1559 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock) | |
1560 | SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0) | |
1561 | Spawn(function() | |
1562 | for i = 1,math.huge do | |
1563 | if Shock.Transparency >= 1 then break end | |
1564 | Shock.Transparency = Shock.Transparency + 0.025 | |
1565 | wait() | |
1566 | end | |
1567 | end) | |
1568 | end | |
1569 | ||
1570 | function NukeBlade() | |
1571 | for i=0,1,.25 do | |
1572 | swait() | |
1573 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.5) | |
1574 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.5) | |
1575 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.5) | |
1576 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.5) | |
1577 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.5) | |
1578 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.5) | |
1579 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.5) | |
1580 | end | |
1581 | local WarpS = m:clone() WarpS:FindFirstChild("MagicWeld"):remove() WarpS.Name = "WarpSword" | |
1582 | WarpS.Parent = Character local Partzs = Instance.new("Part",WarpS)Partzs.Size = Vector3.new(0.2,0.2,0.2)Partzs.CanCollide = false Partzs.Anchored = false Partzs.Transparency = 1 | |
1583 | local WeldS = Instance.new("Weld",WarpS.Hitbox)WeldS.Part0 = WarpS.Hitbox WeldS.Part1 = Partzs | |
1584 | Partzs.CFrame = CFrame.new(Character.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
1585 | local BV = Instance.new("BodyVelocity",Partzs)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = Partzs.CFrame.lookVector*750 | |
1586 | Partzs.CFrame = Partzs.CFrame*CFrame.Angles(math.rad(90),math.rad(90),0) | |
1587 | local Soond = SH:clone()Soond.SoundId = "rbxassetid://181004943" Soond.Volume = 10 Soond.Parent = Partzs Soond.PlaybackSpeed = 2 Soond:Play() | |
1588 | local SE = Instance.new("PitchShiftSoundEffect",Soond)SE.Octave = 0.5 | |
1589 | Trail.Enabled = false | |
1590 | for i, v in pairs(m:children()) do | |
1591 | if v.ClassName == "Part" then | |
1592 | if v.Transparency ~= 1 then | |
1593 | v.Transparency = 0.99 | |
1594 | end | |
1595 | end | |
1596 | end | |
1597 | wait(0.02) | |
1598 | local Hit = false | |
1599 | Partzs.Touched:connect(function(Hit) | |
1600 | if Hit == true then return end | |
1601 | Hit = true | |
1602 | Partzs.Anchored = true | |
1603 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true | |
1604 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Cyan") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock) | |
1605 | Shock.CFrame = CFrame.new(Partzs.Position) SM.MeshType = "Sphere" | |
1606 | local Pos = Shock.Position | |
1607 | for i = 1,3 do | |
1608 | local Sound = SH:clone()Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 10 Sound.Parent = Shock Sound.PlaybackSpeed = 0.4 Sound:Play() | |
1609 | end | |
1610 | for i = 1,200 do | |
1611 | SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025) | |
1612 | NukeShockwaves(i*1.5,CFrame.new(Shock.Position)) | |
1613 | MagniDamage(Shock,i*1,10,30,0,"Normal",Character.HumanoidRootPart) | |
1614 | wait() | |
1615 | end | |
1616 | for i = 1,30 do | |
1617 | Shock.Transparency = Shock.Transparency + 1/30 | |
1618 | SM.Scale = SM.Scale + Vector3.new(i*0.0,i*0.025,i*0.025) | |
1619 | wait() | |
1620 | end | |
1621 | end) | |
1622 | game.Debris:AddItem(WarpS,10) | |
1623 | for i = 0,1,0.1 do | |
1624 | swait() | |
1625 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.5) | |
1626 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.5) | |
1627 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(math.random(-20,20)), math.rad(0), math.rad(-10)),0.5) | |
1628 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.5) | |
1629 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.5) | |
1630 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.5) | |
1631 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.5) | |
1632 | end | |
1633 | wait(0.05) | |
1634 | Trail.Enabled = true | |
1635 | for i, v in pairs(m:children()) do | |
1636 | if v.ClassName == "Part" then | |
1637 | if v.Transparency ~= 1 then | |
1638 | v.Transparency = 0 | |
1639 | end | |
1640 | end | |
1641 | end | |
1642 | end | |
1643 | ||
1644 | attacktype=1 | |
1645 | mouse.Button1Down:connect(function() | |
1646 | if attacktype==1 and attack==false then | |
1647 | attacktype=2 | |
1648 | attackone() | |
1649 | elseif attacktype==2 and attack==false then | |
1650 | attacktype=3 | |
1651 | attacktwo() | |
1652 | elseif attacktype==3 and attack==false then | |
1653 | attacktype=4 | |
1654 | attackthree() | |
1655 | elseif attacktype==4 and attack==false then | |
1656 | attacktype=1 | |
1657 | attackfour() | |
1658 | end | |
1659 | end) | |
1660 | ||
1661 | mouse.KeyDown:connect(function(k) | |
1662 | k=k:lower() | |
1663 | if attack == false and k == 'e' then | |
1664 | Spin() | |
1665 | end | |
1666 | if attack == false and k == 'q' then | |
1667 | ProjectileStrike() | |
1668 | end | |
1669 | if attack == false and k == 'z' then | |
1670 | SuperProjectile() | |
1671 | end | |
1672 | if attack == false and k == 'x' then | |
1673 | SuperProjectile2() | |
1674 | end | |
1675 | if attack == false and k == 'c' then | |
1676 | NukeBlade() | |
1677 | end | |
1678 | if attack == false and k == 'v' then | |
1679 | Warp() | |
1680 | end | |
1681 | if attack == false and k == 'f'then | |
1682 | WorldBreaker() | |
1683 | end | |
1684 | if attack == false and k == 'r'then | |
1685 | PortalStorm() | |
1686 | end | |
1687 | end) | |
1688 | ||
1689 | ||
1690 | local sine = 0 | |
1691 | local change = 1 | |
1692 | local val = 0 | |
1693 | ||
1694 | while true do | |
1695 | swait() | |
1696 | for i, v in pairs(m:children()) do | |
1697 | if v.ClassName == "Part" then | |
1698 | v.Anchored = false | |
1699 | v.CanCollide = false | |
1700 | end | |
1701 | end | |
1702 | for i,v in pairs (Character:children()) do | |
1703 | if v.ClassName == "Part" then | |
1704 | v.Anchored = false | |
1705 | end | |
1706 | if v.ClassName == "Accessory" then | |
1707 | for i,v2 in pairs (v:children()) do | |
1708 | if v2.ClassName == "Part" then | |
1709 | v2.Anchored = false | |
1710 | end | |
1711 | end | |
1712 | end | |
1713 | end | |
1714 | sine = sine + change | |
1715 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1716 | local velderp=RootPart.Velocity.y | |
1717 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1718 | if equipped==true or equipped==false then | |
1719 | if attack==false then | |
1720 | idle=idle+1 | |
1721 | else | |
1722 | idle=0 | |
1723 | end | |
1724 | if idle>=500 then | |
1725 | if attack==false then | |
1726 | end | |
1727 | end | |
1728 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1729 | Anim="Jump" | |
1730 | if attack==false then | |
1731 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1732 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1733 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3) | |
1734 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3) | |
1735 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1736 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1737 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1738 | end | |
1739 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1740 | Anim="Fall" | |
1741 | if attack==false then | |
1742 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1743 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3) | |
1744 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
1745 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
1746 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1747 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1748 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
1749 | end | |
1750 | elseif torvel<1 and hitfloor~=nil then | |
1751 | Anim="Idle" | |
1752 | if attack==false then | |
1753 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3) | |
1754 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3) | |
1755 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3) | |
1756 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
1757 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3) | |
1758 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3) | |
1759 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2) | |
1760 | end | |
1761 | elseif torvel>2 and hitfloor~=nil then | |
1762 | Anim="Walk" | |
1763 | if attack==false then | |
1764 | change=3 | |
1765 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3) | |
1766 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3) | |
1767 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3) | |
1768 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3) | |
1769 | RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3) | |
1770 | LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3) | |
1771 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1772 | end | |
1773 | end | |
1774 | end | |
1775 | if #Effects>0 then | |
1776 | for e=1,#Effects do | |
1777 | if Effects[e]~=nil then | |
1778 | local Thing=Effects[e] | |
1779 | if Thing~=nil then | |
1780 | local Part=Thing[1] | |
1781 | local Mode=Thing[2] | |
1782 | local Delay=Thing[3] | |
1783 | local IncX=Thing[4] | |
1784 | local IncY=Thing[5] | |
1785 | local IncZ=Thing[6] | |
1786 | if Thing[1].Transparency<=1 then | |
1787 | if Thing[2]=="Block1" then | |
1788 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1789 | Mesh=Thing[1].Mesh | |
1790 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1791 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1792 | elseif Thing[2]=="Cylinder" then | |
1793 | Mesh=Thing[1].Mesh | |
1794 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1795 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1796 | elseif Thing[2]=="Blood" then | |
1797 | Mesh=Thing[7] | |
1798 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
1799 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
1800 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1801 | elseif Thing[2]=="Elec" then | |
1802 | Mesh=Thing[1].Mesh | |
1803 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
1804 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1805 | elseif Thing[2]=="Disappear" then | |
1806 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1807 | end | |
1808 | else | |
1809 | Part.Parent=nil | |
1810 | table.remove(Effects,e) | |
1811 | end | |
1812 | end | |
1813 | end | |
1814 | end | |
1815 | end | |
1816 | end | |
1817 | ||
1818 | --[[game:GetService("RunService").RenderStepped:connect(function() | |
1819 | for i,v in pairs (ShockModel:children()) do | |
1820 | if v.Transparency == 1 then break end | |
1821 | v.Transparency = v.Transparency + 0.05 v.CFrame = CFrame.new(0,math.rad(2),0) | |
1822 | local SM = v:findFirstChild("Mesh") | |
1823 | SM.Scale = SM.Scale + Vector3.new(1,0,1) | |
1824 | end | |
1825 | end)]] |