SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player = owner | |
3 | local Mouse,mouse,UserInputService,ContextActionService | |
4 | do | |
5 | script.Parent = Player.Character | |
6 | local CAS = {Actions={}} | |
7 | - | Player=game:GetService("Players").LocalPlayer |
7 | + | local Event = Instance.new("RemoteEvent") |
8 | Event.Name = "UserInput_Event" | |
9 | Event.Parent = Player.Character | |
10 | local fakeEvent = function() | |
11 | local t = {_fakeEvent=true} | |
12 | t.Connect = function(self,f)self.Function=f end | |
13 | t.connect = t.Connect | |
14 | return t | |
15 | end | |
16 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
17 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
18 | function CAS:BindAction(name,fun,touch,...) | |
19 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
20 | end | |
21 | function CAS:UnbindAction(name) | |
22 | CAS.Actions[name] = nil | |
23 | end | |
24 | local function te(self,ev,...) | |
25 | local t = m[ev] | |
26 | if t and t._fakeEvent and t.Function then | |
27 | t.Function(...) | |
28 | end | |
29 | end | |
30 | m.TrigEvent = te | |
31 | UIS.TrigEvent = te | |
32 | Event.OnServerEvent:Connect(function(plr,io) | |
33 | if plr~=Player then return end | |
34 | if io.isMouse then | |
35 | m.Target = io.Target | |
36 | m.Hit = io.Hit | |
37 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
38 | if io.UserInputState == Enum.UserInputState.Begin then | |
39 | m:TrigEvent("Button1Down") | |
40 | else | |
41 | m:TrigEvent("Button1Up") | |
42 | end | |
43 | else | |
44 | for n,t in pairs(CAS.Actions) do | |
45 | for _,k in pairs(t.Keys) do | |
46 | if k==io.KeyCode then | |
47 | t.Function(t.Name,io.UserInputState,io) | |
48 | end | |
49 | end | |
50 | end | |
51 | if io.UserInputState == Enum.UserInputState.Begin then | |
52 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
53 | UIS:TrigEvent("InputBegan",io,false) | |
54 | else | |
55 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
56 | UIS:TrigEvent("InputEnded",io,false) | |
57 | end | |
58 | end | |
59 | end) | |
60 | NLS([==[ | |
61 | local Player = game:GetService("Players").LocalPlayer | |
62 | ||
63 | local Char = Player.Character | |
64 | local Event = Char:WaitForChild("UserInput_Event") | |
65 | ||
66 | local UIS = game:GetService("UserInputService") | |
67 | ||
68 | local input = function(io,a) | |
69 | if a then return end | |
70 | local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState} | |
71 | Event:FireServer(io) | |
72 | end | |
73 | UIS.InputBegan:Connect(input) | |
74 | UIS.InputEnded:Connect(input) | |
75 | local Changed = false | |
76 | ||
77 | local h,t = Mouse.Hit,Mouse.Target | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit}) | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | end | |
83 | end | |
84 | ]==],Player.Character) | |
85 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
86 | end | |
87 | --[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]-- | |
88 | ||
89 | ||
90 | ||
91 | ||
92 | ||
93 | Player=owner | |
94 | Character=Player.Character | |
95 | PlayerGui=Player.PlayerGui | |
96 | Backpack=Player.Backpack | |
97 | Torso=Character.Torso | |
98 | Head=Character.Head | |
99 | Humanoid=Character.Humanoid | |
100 | LeftArm=Character["Left Arm"] | |
101 | LeftLeg=Character["Left Leg"] | |
102 | RightArm=Character["Right Arm"] | |
103 | RightLeg=Character["Right Leg"] | |
104 | LS=Torso["Left Shoulder"] | |
105 | LH=Torso["Left Hip"] | |
106 | RS=Torso["Right Shoulder"] | |
107 | RH=Torso["Right Hip"] | |
108 | Face = Head.face | |
109 | Neck=Torso.Neck | |
110 | it=Instance.new | |
111 | attacktype=1 | |
112 | attacktype2=1 | |
113 | vt=Vector3.new | |
114 | it=Instance.new | |
115 | cf=CFrame.new | |
116 | cn=CFrame.new | |
117 | euler=CFrame.fromEulerAnglesXYZ | |
118 | angles=CFrame.Angles | |
119 | combo = 0 | |
120 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
121 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
122 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
123 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
124 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
125 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
126 | RootPart=Character.HumanoidRootPart | |
127 | RootJoint=RootPart.RootJoint | |
128 | RootCF=euler(-1.57,0,3.14) | |
129 | attack = false | |
130 | attackdebounce = false | |
131 | trispeed=.2 | |
132 | attackmode='none' | |
133 | local idle=0 | |
134 | local Anim="Idle" | |
135 | stance = false | |
136 | local ff = 2 | |
137 | noleg = false | |
138 | evadecooldown = false | |
139 | Humanoid.Animator.Parent = nil | |
140 | local equip = false | |
141 | local Effects = {} | |
142 | attackspeed = 0.14 | |
143 | df = false | |
144 | Swing = 1 | |
145 | local sine = 0 | |
146 | local change = 1 | |
147 | local val = 0 | |
148 | local speed = 0 | |
149 | local rs = game:GetService("RunService").RenderStepped | |
150 | cam = workspace.CurrentCamera | |
151 | local RbxUtility = LoadLibrary("RbxUtility") | |
152 | local Create = RbxUtility.Create | |
153 | deb = game:GetService("Debris") | |
154 | Face:Destroy() | |
155 | ||
156 | --game.Lighting.TimeOfDay = 210 | |
157 | ||
158 | local eye1 = Instance.new("Part") | |
159 | eye1.Parent = Character | |
160 | eye1.Size = Vector3.new(0.2,0.2,0.2) | |
161 | eye1.Archivable = true | |
162 | eye1.Transparency = 0 | |
163 | eye1.CanCollide = false | |
164 | eye1.Material = "Neon" | |
165 | eye1.Color = Color3.fromRGB(48,0,211) | |
166 | local eye1mesh = Instance.new("SpecialMesh",eye1) | |
167 | eye1mesh.MeshType = "Sphere" | |
168 | eye1mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
169 | ko2 = eye1mesh.Scale | |
170 | local eye1weld = Instance.new("Weld") | |
171 | eye1weld.Parent = eye1 | |
172 | eye1weld.Part0 = Head | |
173 | eye1weld.Part1 = eye1 | |
174 | eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
175 | eye1weld.Part0 = Head | |
176 | ||
177 | ||
178 | ||
179 | ||
180 | local eye2 = Instance.new("Part") | |
181 | eye2.Parent = Character | |
182 | eye2.Size = Vector3.new(0.2,0.2,0.2) | |
183 | eye2.Archivable = true | |
184 | eye2.Transparency = 0 | |
185 | eye2.CanCollide = false | |
186 | eye2.Material = "Neon" | |
187 | eye2.Color = Color3.fromRGB(48,0,211) | |
188 | local eye2mesh = Instance.new("SpecialMesh",eye2) | |
189 | eye2mesh.MeshType = "Sphere" | |
190 | eye2mesh.Scale = Vector3.new(0.66,1.22,0.66) | |
191 | local eye2weld = Instance.new("Weld") | |
192 | eye2weld.Parent = eye2 | |
193 | eye2weld.Part0 = Head | |
194 | eye2weld.Part1 = eye2 | |
195 | eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
196 | eye2weld.Part0 = Head | |
197 | ||
198 | ||
199 | ||
200 | ||
201 | music = Instance.new("Sound",PlayerGui) | |
202 | - | Player=game:GetService('Players').LocalPlayer |
202 | + | |
203 | music.TimePosition = 0 | |
204 | - | mouse=Player:GetMouse() |
204 | + | |
205 | music.SoundId = "rbxassetid://1849245030" | |
206 | music.Looped = true | |
207 | music:Play() | |
208 | ||
209 | ||
210 | ||
211 | ||
212 | ||
213 | ||
214 | ||
215 | ||
216 | ||
217 | ||
218 | ||
219 | ||
220 | ||
221 | ||
222 | ||
223 | ||
224 | ||
225 | ||
226 | ||
227 | ||
228 | so = function(id,par,vol,pit) | |
229 | coroutine.resume(coroutine.create(function() | |
230 | local sou = Instance.new("Sound",par or workspace) | |
231 | sou.Volume=vol | |
232 | sou.Pitch=pit or 1 | |
233 | sou.SoundId=id | |
234 | sou:play() | |
235 | game:GetService("Debris"):AddItem(sou,8) | |
236 | end)) | |
237 | end | |
238 | ||
239 | --save shoulders | |
240 | RSH, LSH=nil, nil | |
241 | --welds | |
242 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
243 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
244 | LH=Torso["Left Hip"] | |
245 | RH=Torso["Right Hip"] | |
246 | TorsoColor=Torso.BrickColor | |
247 | function NoOutline(Part) | |
248 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
249 | end | |
250 | player=Player | |
251 | ch=Character | |
252 | RSH=ch.Torso["Right Shoulder"] | |
253 | LSH=ch.Torso["Left Shoulder"] | |
254 | -- | |
255 | RSH.Parent=nil | |
256 | LSH.Parent=nil | |
257 | -- | |
258 | RW.Name="Right Shoulder" | |
259 | RW.Part0=ch.Torso | |
260 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
261 | RW.C1=cf(0, 0.5, 0) | |
262 | RW.Part1=ch["Right Arm"] | |
263 | RW.Parent=ch.Torso | |
264 | -- | |
265 | LW.Name="Left Shoulder" | |
266 | LW.Part0=ch.Torso | |
267 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
268 | LW.C1=cf(0, 0.5, 0) | |
269 | LW.Part1=ch["Left Arm"] | |
270 | LW.Parent=ch.Torso | |
271 | ||
272 | ||
273 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
274 | local wld = Instance.new("Weld", wp1) | |
275 | wld.Part0 = wp0 | |
276 | wld.Part1 = wp1 | |
277 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
278 | end | |
279 | local rs = game:GetService("RunService").RenderStepped | |
280 | ||
281 | newWeld(RootPart, Torso, 0, -1, 0) | |
282 | Torso.Weld.C1 = CFrame.new(0, -1, 0) | |
283 | newWeld(Torso, LeftLeg, -0.5, -1, 0) | |
284 | LeftLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
285 | newWeld(Torso, RightLeg, 0.5, -1, 0) | |
286 | RightLeg.Weld.C1 = CFrame.new(0, 1, 0) | |
287 | ||
288 | Player=owner | |
289 | Character=Player.Character | |
290 | m=Instance.new('Model',Character) | |
291 | ||
292 | ||
293 | local function weldBetween(a, b) | |
294 | local weldd = Instance.new("ManualWeld") | |
295 | weldd.Part0 = a | |
296 | weldd.Part1 = b | |
297 | weldd.C0 = CFrame.new() | |
298 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
299 | weldd.Parent = a | |
300 | return weldd | |
301 | end | |
302 | ||
303 | ArtificialHB = Instance.new("BindableEvent", script) | |
304 | ArtificialHB.Name = "Heartbeat" | |
305 | ||
306 | script:WaitForChild("Heartbeat") | |
307 | ||
308 | frame = 1 / 80 | |
309 | tf = 0 | |
310 | allowframeloss = false | |
311 | tossremainder = false | |
312 | lastframe = tick() | |
313 | script.Heartbeat:Fire() | |
314 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
315 | tf = tf + s | |
316 | if tf >= frame then | |
317 | if allowframeloss then | |
318 | script.Heartbeat:Fire() | |
319 | lastframe = tick() | |
320 | else | |
321 | for i = 1, math.floor(tf / frame) do | |
322 | script.Heartbeat:Fire() | |
323 | end | |
324 | lastframe = tick() | |
325 | end | |
326 | if tossremainder then | |
327 | tf = 0 | |
328 | else | |
329 | tf = tf - frame * math.floor(tf / frame) | |
330 | end | |
331 | end | |
332 | end) | |
333 | ||
334 | --[[] | |
335 | function swait(num) | |
336 | if num == 0 or num == nil then | |
337 | ArtificialHB.Event:wait() | |
338 | else | |
339 | for i = 0, num do | |
340 | ArtificialHB.Event:wait() | |
341 | end | |
342 | end | |
343 | end | |
344 | ||
345 | ]] | |
346 | ||
347 | ||
348 | function swait(num) | |
349 | if num == 0 or num == nil then | |
350 | game:service("RunService").Stepped:wait() | |
351 | else | |
352 | for i = 0, num do | |
353 | game:service("RunService").Stepped:wait() | |
354 | end | |
355 | end | |
356 | end | |
357 | ||
358 | ||
359 | ||
360 | ||
361 | ||
362 | ||
363 | ||
364 | ||
365 | function RemoveOutlines(part) | |
366 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
367 | end | |
368 | ||
369 | ||
370 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
371 | local fp = it("Part") | |
372 | fp.formFactor = formfactor | |
373 | fp.Parent = parent | |
374 | fp.Reflectance = reflectance | |
375 | fp.Transparency = transparency | |
376 | fp.CanCollide = false | |
377 | fp.Locked = true | |
378 | fp.BrickColor = brickcolor | |
379 | fp.Name = name | |
380 | fp.Size = size | |
381 | fp.Position = Torso.Position | |
382 | NoOutline(fp) | |
383 | if fp.BrickColor == BrickColor.new("Dark indigo") then | |
384 | fp.Material = "Neon" | |
385 | else | |
386 | if fp.BrickColor == BrickColor.new("Really black") then | |
387 | fp.BrickColor = BrickColor.new("Really black") | |
388 | fp.Material = "Metal" | |
389 | else | |
390 | fp.Material = "Neon" | |
391 | end | |
392 | end | |
393 | fp:BreakJoints() | |
394 | return fp | |
395 | end | |
396 | ||
397 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
398 | local mesh = it(Mesh) | |
399 | mesh.Parent = part | |
400 | if Mesh == "SpecialMesh" then | |
401 | mesh.MeshType = meshtype | |
402 | if meshid ~= "nil" then | |
403 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
404 | end | |
405 | end | |
406 | mesh.Offset = offset | |
407 | mesh.Scale = scale | |
408 | return mesh | |
409 | end | |
410 | weld = function(parent, part0, part1, c0) | |
411 | local weld = it("Weld") | |
412 | weld.Parent = parent | |
413 | weld.Part0 = part0 | |
414 | weld.Part1 = part1 | |
415 | weld.C0 = c0 | |
416 | return weld | |
417 | end | |
418 | ||
419 | F1 = Instance.new("Folder", Character) | |
420 | F1.Name = "Effects Folder" | |
421 | F2 = Instance.new("Folder", F1) | |
422 | F2.Name = "Effects" | |
423 | Triangle = function(a, b, c) | |
424 | end | |
425 | ||
426 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
427 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
428 | prt.Anchored = true | |
429 | prt.CFrame = cframe | |
430 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
431 | game:GetService("Debris"):AddItem(prt, 10) | |
432 | if Type == 1 or Type == nil then | |
433 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
434 | else | |
435 | if Type == 2 then | |
436 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
437 | else | |
438 | if Type == 3 then | |
439 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0}) | |
440 | end | |
441 | end | |
442 | end | |
443 | end | |
444 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
445 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
446 | prt.Anchored = true | |
447 | prt.CFrame = cframe | |
448 | msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1)) | |
449 | game:GetService("Debris"):AddItem(prt, 10) | |
450 | table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe}) | |
451 | end | |
452 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
453 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
454 | prt.Anchored = true | |
455 | prt.CFrame = cframe | |
456 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
457 | game:GetService("Debris"):AddItem(prt, 10) | |
458 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
459 | end | |
460 | MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
461 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
462 | prt.Anchored = true | |
463 | prt.CFrame = cframe * cf(x2, y2, z2) | |
464 | local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1)) | |
465 | game:GetService("Debris"):AddItem(prt, 10) | |
466 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
467 | end | |
468 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
469 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
470 | prt.Anchored = true | |
471 | prt.CFrame = cframe | |
472 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
473 | game:GetService("Debris"):AddItem(prt, 10) | |
474 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push}) | |
475 | end | |
476 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
477 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
478 | prt.Anchored = true | |
479 | prt.CFrame = cframe | |
480 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
481 | game:GetService("Debris"):AddItem(prt, 10) | |
482 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
483 | end | |
484 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
485 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
486 | prt.Anchored = true | |
487 | prt.CFrame = cframe | |
488 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
489 | game:GetService("Debris"):AddItem(prt, 10) | |
490 | table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe}) | |
491 | end | |
492 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
493 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
494 | prt.Anchored = true | |
495 | prt.CFrame = cframe | |
496 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1)) | |
497 | game:GetService("Debris"):AddItem(prt, 10) | |
498 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
499 | end | |
500 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
501 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
502 | prt.Anchored = true | |
503 | prt.CFrame = cframe | |
504 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5)) | |
505 | game:GetService("Debris"):AddItem(prt, 10) | |
506 | table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil}) | |
507 | end | |
508 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
509 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
510 | prt.Anchored = true | |
511 | prt.CFrame = cframe | |
512 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
513 | game:GetService("Debris"):AddItem(prt, 10) | |
514 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
515 | end | |
516 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
517 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
518 | prt.Anchored = true | |
519 | prt.CFrame = cframe | |
520 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
521 | game:GetService("Debris"):AddItem(prt, 10) | |
522 | table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh}) | |
523 | end | |
524 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
525 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
526 | prt.Anchored = true | |
527 | prt.CFrame = cframe | |
528 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
529 | d = Instance.new("Decal") | |
530 | d.Parent = prt | |
531 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
532 | d.Face = "Top" | |
533 | d = Instance.new("Decal") | |
534 | d.Parent = prt | |
535 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
536 | d.Face = "Bottom" | |
537 | game:GetService("Debris"):AddItem(prt, 10) | |
538 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh}) | |
539 | end | |
540 | ElecEffect = function(cff, x, y, z) | |
541 | local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1)) | |
542 | prt.Anchored = true | |
543 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
544 | prt.CFrame = cf(prt.Position) | |
545 | game:GetService("Debris"):AddItem(prt, 10) | |
546 | xval = math.random() / 3 | |
547 | yval = math.random() / 3 | |
548 | zval = math.random() / 3 | |
549 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval)) | |
550 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh} | |
551 | end | |
552 | ||
553 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
554 | if SinglePlayer then | |
555 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
556 | end | |
557 | local List = {} | |
558 | for i, v in pairs(workspace:GetChildren()) do | |
559 | if v:IsA("Model") then | |
560 | if v:findFirstChild("Torso") then | |
561 | if v ~= Character then | |
562 | if (v.Torso.Position - Position).magnitude <= Distance then | |
563 | table.insert(List, v) | |
564 | end | |
565 | end | |
566 | end | |
567 | end | |
568 | end | |
569 | return List | |
570 | end | |
571 | ||
572 | ||
573 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
574 | local Part = Create("Part"){ | |
575 | Parent = Parent, | |
576 | Reflectance = Reflectance, | |
577 | Transparency = Transparency, | |
578 | CanCollide = false, | |
579 | Locked = true, | |
580 | BrickColor = BrickColor.new(tostring(BColor)), | |
581 | Name = Name, | |
582 | Size = Size, | |
583 | Material = Material, | |
584 | } | |
585 | RemoveOutlines(Part) | |
586 | return Part | |
587 | end | |
588 | ||
589 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
590 | local Msh = Create(Mesh){ | |
591 | Parent = Part, | |
592 | Offset = OffSet, | |
593 | Scale = Scale, | |
594 | } | |
595 | if Mesh == "SpecialMesh" then | |
596 | Msh.MeshType = MeshType | |
597 | Msh.MeshId = MeshId | |
598 | end | |
599 | return Msh | |
600 | end | |
601 | ||
602 | ||
603 | ||
604 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
605 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
606 | prt.Anchored = true | |
607 | prt.CFrame = cframe | |
608 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
609 | game:GetService("Debris"):AddItem(prt, 10) | |
610 | if Type == 1 or Type == nil then | |
611 | table.insert(Effects, { | |
612 | prt, | |
613 | "Block1", | |
614 | delay, | |
615 | x3, | |
616 | y3, | |
617 | z3, | |
618 | msh | |
619 | }) | |
620 | elseif Type == 2 then | |
621 | table.insert(Effects, { | |
622 | prt, | |
623 | "Block2", | |
624 | delay, | |
625 | x3, | |
626 | y3, | |
627 | z3, | |
628 | msh | |
629 | }) | |
630 | end | |
631 | end | |
632 | ||
633 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
634 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
635 | prt.Anchored = true | |
636 | prt.CFrame = cframe | |
637 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
638 | game:GetService("Debris"):AddItem(prt, 10) | |
639 | table.insert(Effects, { | |
640 | prt, | |
641 | "Cylinder", | |
642 | delay, | |
643 | x3, | |
644 | y3, | |
645 | z3, | |
646 | msh | |
647 | }) | |
648 | end | |
649 | ||
650 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
651 | local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
652 | prt.Anchored=true | |
653 | prt.CFrame=cframe | |
654 | msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
655 | game:GetService("Debris"):AddItem(prt,2) | |
656 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
657 | for i=0,1,delay do | |
658 | swait() | |
659 | Part.Transparency=i | |
660 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
661 | end | |
662 | Part.Parent=nil | |
663 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
664 | end | |
665 | ||
666 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
667 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
668 | prt.Anchored = true | |
669 | prt.CFrame = cframe | |
670 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
671 | game:GetService("Debris"):AddItem(prt, 10) | |
672 | table.insert(Effects, { | |
673 | prt, | |
674 | "Cylinder", | |
675 | delay, | |
676 | x3, | |
677 | y3, | |
678 | z3, | |
679 | msh | |
680 | }) | |
681 | end | |
682 | ||
683 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
684 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
685 | prt.Anchored = true | |
686 | prt.CFrame = cframe | |
687 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
688 | game:GetService("Debris"):AddItem(prt, 10) | |
689 | table.insert(Effects, { | |
690 | prt, | |
691 | "Cylinder", | |
692 | delay, | |
693 | x3, | |
694 | y3, | |
695 | z3, | |
696 | msh | |
697 | }) | |
698 | end | |
699 | ||
700 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
701 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
702 | prt.Anchored = true | |
703 | prt.CFrame = cframe | |
704 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
705 | game:GetService("Debris"):AddItem(prt, 10) | |
706 | table.insert(Effects, { | |
707 | prt, | |
708 | "Cylinder", | |
709 | delay, | |
710 | x3, | |
711 | y3, | |
712 | z3, | |
713 | msh | |
714 | }) | |
715 | end | |
716 | ||
717 | ||
718 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
719 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
720 | prt.Anchored = true | |
721 | prt.CFrame = cframe | |
722 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
723 | game:GetService("Debris"):AddItem(prt, 10) | |
724 | table.insert(Effects, { | |
725 | prt, | |
726 | "Cylinder", | |
727 | delay, | |
728 | x3, | |
729 | y3, | |
730 | z3, | |
731 | msh | |
732 | }) | |
733 | end | |
734 | ||
735 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
736 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
737 | prt.Anchored = true | |
738 | prt.CFrame = cframe | |
739 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
740 | game:GetService("Debris"):AddItem(prt, 10) | |
741 | table.insert(Effects, { | |
742 | prt, | |
743 | "Cylinder", | |
744 | delay, | |
745 | x3, | |
746 | y3, | |
747 | z3, | |
748 | msh | |
749 | }) | |
750 | end | |
751 | ||
752 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
753 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
754 | prt.Anchored = true | |
755 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
756 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
757 | local num = math.random(10, 50) / 1000 | |
758 | game:GetService("Debris"):AddItem(prt, 10) | |
759 | table.insert(Effects, { | |
760 | prt, | |
761 | "Shatter", | |
762 | num, | |
763 | prt.CFrame, | |
764 | math.random() - math.random(), | |
765 | 0, | |
766 | math.random(50, 100) / 100 | |
767 | }) | |
768 | end | |
769 | ||
770 | function FindNearestHead(Position, Distance, SinglePlayer) | |
771 | if SinglePlayer then | |
772 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
773 | end | |
774 | local List = {} | |
775 | for i, v in pairs(workspace:GetChildren()) do | |
776 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then | |
777 | table.insert(List, v) | |
778 | end | |
779 | end | |
780 | return List | |
781 | end | |
782 | ||
783 | ||
784 | ||
785 | function clerp(a,b,t) | |
786 | local qa = {QuaternionFromCFrame(a)} | |
787 | local qb = {QuaternionFromCFrame(b)} | |
788 | local ax, ay, az = a.x, a.y, a.z | |
789 | local bx, by, bz = b.x, b.y, b.z | |
790 | local _t = 1-t | |
791 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
792 | end | |
793 | ||
794 | function QuaternionFromCFrame(cf) | |
795 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
796 | local trace = m00 + m11 + m22 | |
797 | if trace > 0 then | |
798 | local s = math.sqrt(1 + trace) | |
799 | local recip = 0.5/s | |
800 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
801 | else | |
802 | local i = 0 | |
803 | if m11 > m00 then | |
804 | i = 1 | |
805 | end | |
806 | if m22 > (i == 0 and m00 or m11) then | |
807 | i = 2 | |
808 | end | |
809 | if i == 0 then | |
810 | local s = math.sqrt(m00-m11-m22+1) | |
811 | local recip = 0.5/s | |
812 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
813 | elseif i == 1 then | |
814 | local s = math.sqrt(m11-m22-m00+1) | |
815 | local recip = 0.5/s | |
816 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
817 | elseif i == 2 then | |
818 | local s = math.sqrt(m22-m00-m11+1) | |
819 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
820 | end | |
821 | end | |
822 | end | |
823 | local lerp = function(a, b, t) | |
824 | return a * (1 - t) + b * t | |
825 | end | |
826 | ||
827 | ||
828 | ||
829 | ||
830 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
831 | local xs, ys, zs = x + x, y + y, z + z | |
832 | local wx, wy, wz = w*xs, w*ys, w*zs | |
833 | local xx = x*xs | |
834 | local xy = x*ys | |
835 | local xz = x*zs | |
836 | local yy = y*ys | |
837 | local yz = y*zs | |
838 | local zz = z*zs | |
839 | 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)) | |
840 | end | |
841 | function QuaternionSlerp(a, b, t) | |
842 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
843 | local startInterp, finishInterp; | |
844 | if cosTheta >= 0.0001 then | |
845 | if (1 - cosTheta) > 0.0001 then | |
846 | local theta = math.acos(cosTheta) | |
847 | local invSinTheta = 1/math.sin(theta) | |
848 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
849 | finishInterp = math.sin(t*theta)*invSinTheta | |
850 | else | |
851 | startInterp = 1-t | |
852 | finishInterp = t | |
853 | end | |
854 | else | |
855 | if (1+cosTheta) > 0.0001 then | |
856 | local theta = math.acos(-cosTheta) | |
857 | local invSinTheta = 1/math.sin(theta) | |
858 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
859 | finishInterp = math.sin(t*theta)*invSinTheta | |
860 | else | |
861 | startInterp = t-1 | |
862 | finishInterp = t | |
863 | end | |
864 | end | |
865 | 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 | |
866 | end | |
867 | ||
868 | function weld5(part0, part1, c0, c1) | |
869 | weeld=Instance.new("Weld", part0) | |
870 | weeld.Part0=part0 | |
871 | weeld.Part1=part1 | |
872 | weeld.C0=c0 | |
873 | weeld.C1=c1 | |
874 | return weeld | |
875 | end | |
876 | ||
877 | --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4) | |
878 | ||
879 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
880 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
881 | end | |
882 | ||
883 | ||
884 | function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation) | |
885 | swait() | |
886 | local Bullet = Instance.new("Part",Workspace) | |
887 | Bullet.Locked = true | |
888 | Bullet.Name = "Bullet" | |
889 | Bullet.Anchored = bounce | |
890 | Bullet.CanCollide = collide | |
891 | Bullet.Transparency = 0.24 | |
892 | Bullet.Reflectance = 0 | |
893 | Bullet.BottomSurface = 0 | |
894 | Bullet.TopSurface = 0 | |
895 | Bullet.Shape = 0 | |
896 | Bullet.BrickColor = BrickColor.new(color) | |
897 | Bullet.Size = Vector3.new(size,size,size) | |
898 | Bullet.Material = "Neon" | |
899 | Bullet.Orientation = vt(-90,0,0) | |
900 | local Bulletthing = Instance.new("SpecialMesh",Bullet) | |
901 | Bulletthing.MeshType = "Sphere" | |
902 | local Bulletforce = Instance.new("BodyForce") | |
903 | Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0) | |
904 | Bulletforce.Parent = Bullet | |
905 | Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place)) | |
906 | local bv = Instance.new("BodyVelocity",Bullet) | |
907 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
908 | Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p) | |
909 | bv.velocity = Bullet.CFrame.lookVector*velocity | |
910 | ||
911 | ||
912 | Bullet.Touched:connect(function(hit) | |
913 | ||
914 | if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then | |
915 | local orbexplode = Instance.new("Sound", Bullet) | |
916 | orbexplode.Volume = 4 | |
917 | orbexplode.PlayOnRemove = true | |
918 | orbexplode.SoundId = "http://roblox.com/asset/?id=142070127" | |
919 | orbexplode.Pitch = 1 | |
920 | orbexplode:Destroy() | |
921 | deb:AddItem(orbexplode, 4) | |
922 | Bullet.Anchored = true | |
923 | Bullet.Transparency = 1 | |
924 | deb:AddItem(Bullet, 4) | |
925 | local Explode = Instance.new("Explosion") | |
926 | Explode.Position = Bullet.Position | |
927 | Explode.Parent = Workspace | |
928 | Explode.BlastPressure = 0 | |
929 | Explode.BlastRadius = Bullet.Size.X *5.6 | |
930 | Explode.Visible = false | |
931 | ||
932 | Explode.Hit:connect(function(hit) | |
933 | if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then | |
934 | if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then | |
935 | hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100 | |
936 | hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100 | |
937 | end | |
938 | if attackdebounce == false then | |
939 | attackdebounce = true | |
940 | hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage)) | |
941 | wait(0.02) | |
942 | attackdebounce = false | |
943 | end | |
944 | end | |
945 | end) | |
946 | coroutine.resume(coroutine.create(function() | |
947 | ||
948 | MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
949 | MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
950 | MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025) | |
951 | MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025) | |
952 | end)) | |
953 | end | |
954 | end) | |
955 | coroutine.resume(coroutine.create(function() | |
956 | for i = 0,16,0.1 do | |
957 | swait() | |
958 | end | |
959 | if Bullet.Anchored == false then | |
960 | Bullet:Destroy() | |
961 | end | |
962 | end)) | |
963 | ||
964 | end | |
965 | ||
966 | ||
967 | ||
968 | ||
969 | ||
970 | local bl = Instance.new("BlurEffect",cam) | |
971 | bl.Size = 0 | |
972 | ||
973 | ||
974 | function Dash() | |
975 | evadecooldown = true | |
976 | attack = true | |
977 | so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1) | |
978 | ||
979 | so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1) | |
980 | ||
981 | ||
982 | ||
983 | ||
984 | ||
985 | ||
986 | ||
987 | ||
988 | ||
989 | ||
990 | bl.Size = 84 | |
991 | ||
992 | ||
993 | MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05) | |
994 | MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025) | |
995 | MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05) | |
996 | MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05) | |
997 | ||
998 | RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96) | |
999 | RootPart.Velocity = RootPart.CFrame.lookVector *280 | |
1000 | ||
1001 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
1002 | if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then | |
1003 | ||
1004 | so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1) | |
1005 | v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36)) | |
1006 | SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04) | |
1007 | MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
1008 | MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
1009 | MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
1010 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05) | |
1011 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05) | |
1012 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05) | |
1013 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05) | |
1014 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05) | |
1015 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05) | |
1016 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05) | |
1017 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005) | |
1018 | MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005) | |
1019 | MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005) | |
1020 | end | |
1021 | end | |
1022 | ||
1023 | for i = 0,1,0.064 do | |
1024 | swait() | |
1025 | cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5) | |
1026 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24) | |
1027 | RootPart.Velocity = RootPart.CFrame.lookVector * 175 | |
1028 | bl.Size = bl.Size - 8.5 | |
1029 | SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03) | |
1030 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4) | |
1031 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4) | |
1032 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4) | |
1033 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4) | |
1034 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8) | |
1035 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8) | |
1036 | ||
1037 | ||
1038 | ||
1039 | end | |
1040 | ||
1041 | ||
1042 | ||
1043 | attack = false | |
1044 | attackdebounce = false | |
1045 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1) | |
1046 | wait(.2) | |
1047 | bl.Size = 0 | |
1048 | evadecooldown = false | |
1049 | ||
1050 | ||
1051 | ||
1052 | end | |
1053 | ||
1054 | ||
1055 | ||
1056 | ||
1057 | ||
1058 | ||
1059 | ||
1060 | ||
1061 | ||
1062 | ||
1063 | ||
1064 | ||
1065 | local shooting = false | |
1066 | ||
1067 | ||
1068 | ||
1069 | function shoot() | |
1070 | attack = true | |
1071 | shooting = true | |
1072 | ||
1073 | ||
1074 | local thing = Instance.new("BodyGyro",RootPart) | |
1075 | thing.D = 50 | |
1076 | thing.P = 6000 | |
1077 | thing.MaxTorque = vt(100000,math.huge,0) | |
1078 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1079 | for i = 0,2,0.16 do | |
1080 | swait() | |
1081 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2) | |
1082 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2) | |
1083 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2) | |
1084 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2) | |
1085 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1) | |
1086 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0) * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1) | |
1087 | end | |
1088 | ||
1089 | ||
1090 | while shooting == true do | |
1091 | swait(1) | |
1092 | ||
1093 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2) | |
1094 | so("http://roblox.com/asset/?id=200633327",Torso,2,1) | |
1095 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1096 | Torso.Velocity = RootPart.CFrame.lookVector * -13 | |
1097 | Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false) | |
1098 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2) | |
1099 | coroutine.resume(coroutine.create(function() | |
1100 | for i = 0, 0.5, 0.1 do | |
1101 | swait() | |
1102 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24) | |
1103 | end | |
1104 | end)) | |
1105 | end | |
1106 | ||
1107 | attack = false | |
1108 | thing:Destroy() | |
1109 | end | |
1110 | ||
1111 | ||
1112 | ||
1113 | function dshoot() | |
1114 | attack = true | |
1115 | shooting = true | |
1116 | ||
1117 | ||
1118 | local thing = Instance.new("BodyGyro",RootPart) | |
1119 | thing.D = 50 | |
1120 | thing.P = 6000 | |
1121 | thing.MaxTorque = vt(100000,math.huge,0) | |
1122 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1123 | so("http://roblox.com/asset/?id=1268159756",Torso,5,1) | |
1124 | for i = 0,3,0.16 do | |
1125 | swait() | |
1126 | MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07) | |
1127 | MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07) | |
1128 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2) | |
1129 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2) | |
1130 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2) | |
1131 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2) | |
1132 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1) | |
1133 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1) | |
1134 | end | |
1135 | ||
1136 | ||
1137 | ||
1138 | while shooting == true do | |
1139 | swait(0.5) | |
1140 | coroutine.resume(coroutine.create(function() | |
1141 | MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07) | |
1142 | end)) | |
1143 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3) | |
1144 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3) | |
1145 | so("http://roblox.com/asset/?id=200633327",Torso,2,1) | |
1146 | thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p) | |
1147 | Torso.Velocity = RootPart.CFrame.lookVector * -63 | |
1148 | ||
1149 | ||
1150 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4) | |
1151 | Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false) | |
1152 | coroutine.resume(coroutine.create(function() | |
1153 | for i = 0, 0.5, 0.1 do | |
1154 | swait() | |
1155 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44) | |
1156 | end | |
1157 | end)) | |
1158 | ||
1159 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2) | |
1160 | Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false) | |
1161 | coroutine.resume(coroutine.create(function() | |
1162 | for i = 0, 0.5, 0.1 do | |
1163 | swait() | |
1164 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24) | |
1165 | end | |
1166 | end)) | |
1167 | ||
1168 | end | |
1169 | ||
1170 | attack = false | |
1171 | thing:Destroy() | |
1172 | end | |
1173 | ||
1174 | ||
1175 | ||
1176 | ||
1177 | ||
1178 | function finaldev() | |
1179 | attack = true | |
1180 | so("http://roblox.com/asset/?id=815032096",Head,6,0.84) | |
1181 | so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84) | |
1182 | ||
1183 | for i = 0,14,0.1 do | |
1184 | swait() | |
1185 | WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) | |
1186 | WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) | |
1187 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16) | |
1188 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15) | |
1189 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15) | |
1190 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15) | |
1191 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15) | |
1192 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15) | |
1193 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15) | |
1194 | ||
1195 | end | |
1196 | so("http://roblox.com/asset/?id=197161452",Torso,7,1) | |
1197 | for i = 0,6,0.1 do | |
1198 | swait() | |
1199 | WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) | |
1200 | WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) | |
1201 | Head.Velocity = Vector3.new(0,320,0) | |
1202 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6) | |
1203 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1) | |
1204 | RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1) | |
1205 | LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1) | |
1206 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1207 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1) | |
1208 | end | |
1209 | ||
1210 | ||
1211 | local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126)) | |
1212 | local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10)) | |
1213 | ||
1214 | ||
1215 | ||
1216 | local Charge = Instance.new("Sound", bel) | |
1217 | Charge.Volume = 10 | |
1218 | Charge.SoundId = "http://roblox.com/asset/?id=244578827" | |
1219 | Charge.Pitch = 0.8 | |
1220 | Charge.PlayOnRemove = true | |
1221 | Charge:Play() | |
1222 | Charge:Destroy() | |
1223 | bel.Anchored = true | |
1224 | for i = 0,47,0.1 do | |
1225 | swait() | |
1226 | bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0) | |
1227 | bel.Transparency = bel.Transparency - 0.0034 | |
1228 | belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24) | |
1229 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15) | |
1230 | cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15) | |
1231 | Head.Velocity = Vector3.new(0,2.4+0.8*i,0) | |
1232 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2) | |
1233 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2) | |
1234 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2) | |
1235 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2) | |
1236 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1) | |
1237 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1) | |
1238 | end | |
1239 | so("http://roblox.com/asset/?id=160212892",Head,10,0.84) | |
1240 | for i = 0,4,0.1 do | |
1241 | swait() | |
1242 | Head.Velocity = Vector3.new(0,2.4,0) | |
1243 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1244 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2) | |
1245 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2) | |
1246 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2) | |
1247 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2) | |
1248 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1) | |
1249 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1) | |
1250 | end | |
1251 | ||
1252 | ||
1253 | ||
1254 | ||
1255 | ||
1256 | bel.Anchored = false | |
1257 | local bv = Instance.new("BodyVelocity",bel) | |
1258 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1259 | bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p) | |
1260 | bv.velocity = bel.CFrame.lookVector*350 | |
1261 | ||
1262 | ||
1263 | ||
1264 | --[[ | |
1265 | bel.Touched:connect(function(hit) | |
1266 | ||
1267 | if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then | |
1268 | local orbexplode = Instance.new("Sound", bel) | |
1269 | orbexplode.Volume = 10 | |
1270 | orbexplode.PlayOnRemove = true | |
1271 | orbexplode.SoundId = "http://roblox.com/asset/?id=142070127" | |
1272 | orbexplode.Pitch = 1 | |
1273 | orbexplode:Destroy() | |
1274 | deb:AddItem(orbexplode, 4) | |
1275 | bel.Anchored = true | |
1276 | bel.Transparency = 1 | |
1277 | deb:AddItem(bel, 4) | |
1278 | local Explode = Instance.new("Explosion") | |
1279 | Explode.Position = bel.Position | |
1280 | Explode.Parent = Workspace | |
1281 | Explode.BlastPressure = 90 | |
1282 | Explode.BlastRadius = Bullet.Size.X *25.6 | |
1283 | Explode.Visible = false | |
1284 | ||
1285 | coroutine.resume(coroutine.create(function() | |
1286 | ||
1287 | ||
1288 | ||
1289 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
1290 | MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
1291 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
1292 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05) | |
1293 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05) | |
1294 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05) | |
1295 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05) | |
1296 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05) | |
1297 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05) | |
1298 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05) | |
1299 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005) | |
1300 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005) | |
1301 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005) | |
1302 | ||
1303 | ||
1304 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
1305 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
1306 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025) | |
1307 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025) | |
1308 | end)) | |
1309 | end | |
1310 | end) | |
1311 | ||
1312 | ]] | |
1313 | ||
1314 | con5=bel.Touched:connect(function(hit) | |
1315 | ||
1316 | local orbexplode = Instance.new("Sound", bel) | |
1317 | orbexplode.Volume = 10 | |
1318 | orbexplode.PlayOnRemove = true | |
1319 | orbexplode.SoundId = "http://roblox.com/asset/?id=167115397" | |
1320 | orbexplode.Pitch = 1 | |
1321 | orbexplode:Destroy() | |
1322 | deb:AddItem(orbexplode, 4) | |
1323 | bel.Anchored = true | |
1324 | bel.Transparency = 1 | |
1325 | deb:AddItem(bel, 5.2) | |
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | coroutine.resume(coroutine.create(function() | |
1331 | so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1) | |
1332 | so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1) | |
1333 | for i = 0, 0.4, 0.1 do | |
1334 | swait() | |
1335 | ||
1336 | ||
1337 | for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do | |
1338 | if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then | |
1339 | if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then | |
1340 | v:FindFirstChildOfClass("Humanoid").MaxHealth = 100 | |
1341 | v:FindFirstChildOfClass("Humanoid").Health = 100 | |
1342 | end | |
1343 | v.Humanoid:TakeDamage(math.random(43,86)) | |
1344 | coroutine.resume(coroutine.create(function() | |
1345 | for i = 0,2,0.1 do | |
1346 | swait() | |
1347 | v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0) | |
1348 | end | |
1349 | end)) | |
1350 | end | |
1351 | end | |
1352 | ||
1353 | coroutine.resume(coroutine.create(function() | |
1354 | for i = 0, 2.4, 0.1 do | |
1355 | swait() | |
1356 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44) | |
1357 | end | |
1358 | end)) | |
1359 | ||
1360 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1) | |
1361 | MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1) | |
1362 | MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1) | |
1363 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05) | |
1364 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05) | |
1365 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05) | |
1366 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05) | |
1367 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05) | |
1368 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05) | |
1369 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05) | |
1370 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005) | |
1371 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005) | |
1372 | MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005) | |
1373 | ||
1374 | WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09) | |
1375 | WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05) | |
1376 | ||
1377 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065) | |
1378 | MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025) | |
1379 | MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1380 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1381 | MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015) | |
1382 | MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015) | |
1383 | end | |
1384 | end)) | |
1385 | ||
1386 | ||
1387 | end) | |
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | for i = 0,32,0.1 do | |
1393 | swait() | |
1394 | Head.Velocity = Vector3.new(0,2.4,0) | |
1395 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2) | |
1396 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2) | |
1397 | RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2) | |
1398 | LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2) | |
1399 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2) | |
1400 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2) | |
1401 | end | |
1402 | ||
1403 | coroutine.resume(coroutine.create(function() | |
1404 | for i = 0, 63, 0.1 do | |
1405 | swait() | |
1406 | end | |
1407 | if bel.Anchored == false then | |
1408 | bel:Destroy() | |
1409 | end | |
1410 | end)) | |
1411 | ||
1412 | ||
1413 | ||
1414 | ||
1415 | attack = false | |
1416 | end | |
1417 | ||
1418 | ||
1419 | ||
1420 | mouse.Button1Down:connect(function(key) | |
1421 | if attack == false then | |
1422 | shoot() | |
1423 | end | |
1424 | end) | |
1425 | ||
1426 | ||
1427 | ||
1428 | ||
1429 | mouse.Button1Up:connect(function(key) | |
1430 | if shooting == true then | |
1431 | shooting = false | |
1432 | end | |
1433 | end) | |
1434 | ||
1435 | ||
1436 | ||
1437 | ||
1438 | mouse.KeyDown:connect(function(key) | |
1439 | if key == 'e' and attack == false then | |
1440 | dshoot() | |
1441 | end | |
1442 | end) | |
1443 | ||
1444 | ||
1445 | ||
1446 | ||
1447 | mouse.KeyDown:connect(function(key) | |
1448 | if key == 'q' and attack == false then | |
1449 | finaldev() | |
1450 | end | |
1451 | end) | |
1452 | ||
1453 | mouse.KeyUp:connect(function(key) | |
1454 | if key == 'e' and shooting == true then | |
1455 | shooting = false | |
1456 | end | |
1457 | end) | |
1458 | ||
1459 | ||
1460 | ||
1461 | mouse.KeyDown:connect(function(key) | |
1462 | if key == 'f' and attack == false and evadecooldown == false then | |
1463 | Dash() | |
1464 | end | |
1465 | end) | |
1466 | ||
1467 | ||
1468 | local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt()) | |
1469 | local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15)) | |
1470 | ||
1471 | local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt()) | |
1472 | local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15)) | |
1473 | orb.Anchored = true | |
1474 | orb2.Anchored = true | |
1475 | Humanoid.WalkSpeed = 32 | |
1476 | ||
1477 | ||
1478 | local f = 0 | |
1479 | game:GetService("RunService"):BindToRenderStep("W0tT", 0, function() | |
1480 | ||
1481 | ||
1482 | f = f+1 | |
1483 | cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076) | |
1484 | if f >= 6 then | |
1485 | f=0 | |
1486 | SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03) | |
1487 | SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03) | |
1488 | MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07) | |
1489 | MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05) | |
1490 | MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07) | |
1491 | MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05) | |
1492 | MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2) | |
1493 | MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2) | |
1494 | ||
1495 | end | |
1496 | end) | |
1497 | ||
1498 | Humanoid.MaxHealth = 400 | |
1499 | ||
1500 | print("Move list") | |
1501 | print("---------") | |
1502 | print("F: Time Dash") | |
1503 | print("Hold Click: Lesser Bullets") | |
1504 | print("Hold E: Mega Bullets") | |
1505 | print("Q: Final Devastator") | |
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | while true do | |
1511 | swait() | |
1512 | sine = sine + change | |
1513 | --speed = speed + music.PlaybackLoudness/90 | |
1514 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1515 | local velderp=RootPart.Velocity.y | |
1516 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1517 | local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity)) | |
1518 | if attack==true or attack==false then | |
1519 | if attack==false then | |
1520 | idle=idle+1 | |
1521 | else | |
1522 | idle=0 | |
1523 | end | |
1524 | if idle>=500 then | |
1525 | if attack==false then | |
1526 | end | |
1527 | end | |
1528 | ||
1529 | Humanoid.Health = Humanoid.Health + 4 | |
1530 | ||
1531 | orb.CFrame = RightArm.CFrame * cf(0, -1, 0) | |
1532 | orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0) | |
1533 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1534 | Anim="Jump" | |
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | if attack==false then | |
1541 | change = 1 | |
1542 | look = 0 | |
1543 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1544 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07) | |
1545 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07) | |
1546 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07) | |
1547 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07) | |
1548 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1) | |
1549 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1) | |
1550 | end | |
1551 | ||
1552 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1553 | Anim="Fall" | |
1554 | change = 1 | |
1555 | ||
1556 | ||
1557 | ||
1558 | if attack==false then | |
1559 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1560 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07) | |
1561 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07) | |
1562 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07) | |
1563 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07) | |
1564 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1) | |
1565 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1) | |
1566 | end | |
1567 | ||
1568 | elseif torvel<1 and hitfloor~=nil then | |
1569 | Anim="Idle" | |
1570 | change = 1 | |
1571 | if attack==false and equip == false then | |
1572 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15) | |
1573 | ||
1574 | ||
1575 | ||
1576 | orb.CFrame = orb.CFrame:lerp(RightArm.CFrame*cf(0+2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) | |
1577 | orb2.CFrame = orb2.CFrame:lerp(LeftArm.CFrame*cf(0-2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) | |
1578 | ||
1579 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.25) | |
1580 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10+2.6*math.sin(sine/40)),math.rad(0),math.rad(60)),0.25) | |
1581 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.55+0.04*math.sin(sine/40), 0.2) * angles(math.rad(-32+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(-22.3+2.2*math.cos(sine/40))),0.25) | |
1582 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.55+0.04*math.sin(sine/40), -0.3-0.04*math.cos(sine/40)) * angles(math.rad(28+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(26.3-2.2*math.cos(sine/40))),0.25) | |
1583 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(8), math.rad(-7)),0.25) | |
1584 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)),0.25) | |
1585 | end | |
1586 | ||
1587 | ||
1588 | ||
1589 | elseif torvel>1.5 and torvel<22 and hitfloor~=nil then | |
1590 | Anim="Walk" | |
1591 | change = 0.84 | |
1592 | look = 0 | |
1593 | if attack==false and equip == false then | |
1594 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1595 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.14*math.cos(sine/5), -0.3) * angles(math.rad(-2)*-math.rad(TiltVelocity.z)*9.5, math.rad(0+2*math.cos(sine/10)), math.rad(8)*-math.rad(TiltVelocity.x)*7.5+ RootPart.RotVelocity.Y / 46), 0.08) | |
1596 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(4-3*math.sin(sine/5)),math.rad(0),math.rad(2) + RootPart.RotVelocity.Y / 13), 0.08) | |
1597 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/10)) * angles(math.rad(0-26*math.sin(sine/10))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+8*math.cos(sine/5))- RootPart.RotVelocity.Y / 34), 0.08) | |
1598 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0-0.34*math.sin(sine/10)) * angles(math.rad(0+26*math.sin(sine/10))+ RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-6-8*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34), 0.08) | |
1599 | --LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*11.5+ RootPart.RotVelocity.Y / -34)), 0.08) | |
1600 | --RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*11.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1601 | end | |
1602 | if attack == false or attack==true and noleg == false then | |
1603 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1604 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)), 0.08) | |
1605 | end | |
1606 | ||
1607 | elseif torvel>=22 and hitfloor~=nil then | |
1608 | Anim="Run" | |
1609 | change = 0.84+ Character.Humanoid.WalkSpeed/112 | |
1610 | if attack==false and equip == false then | |
1611 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02) | |
1612 | Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1) | |
1613 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1) | |
1614 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25) | |
1615 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25) | |
1616 | ||
1617 | ||
1618 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3) | |
1619 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3) | |
1620 | end | |
1621 | ||
1622 | --[[ | |
1623 | if attack==false then | |
1624 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1625 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8) | |
1626 | end | |
1627 | ]] | |
1628 | if attack==true and noleg == false then | |
1629 | LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1630 | RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3) | |
1631 | end | |
1632 | ||
1633 | ||
1634 | end | |
1635 | end | |
1636 | ||
1637 | ||
1638 | ||
1639 | if 0 < #Effects then | |
1640 | for e = 1, #Effects do | |
1641 | if Effects[e] ~= nil then | |
1642 | local Thing = Effects[e] | |
1643 | if Thing ~= nil then | |
1644 | local Part = Thing[1] | |
1645 | local Mode = Thing[2] | |
1646 | local Delay = Thing[3] | |
1647 | local IncX = Thing[4] | |
1648 | local IncY = Thing[5] | |
1649 | local IncZ = Thing[6] | |
1650 | if Thing[2] == "CylinderClang" then | |
1651 | if Thing[3] <= 1 then | |
1652 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1653 | Thing[7] = Thing[1].CFrame | |
1654 | effect("New Yeller", 0, Thing[8], Thing[7]) | |
1655 | Thing[8] = Thing[7] | |
1656 | Thing[3] = Thing[3] + Thing[4] | |
1657 | else | |
1658 | Part.Parent = nil | |
1659 | table.remove(Effects, e) | |
1660 | end | |
1661 | end | |
1662 | if Thing[2] == "showDamage" then | |
1663 | if Thing[6] < Thing[5] then | |
1664 | Thing[6] = Thing[6] + 1 | |
1665 | else | |
1666 | if Thing[6] < Thing[7] then | |
1667 | Thing[4].position = Thing[4].position + vt(0, -0.2, 0) | |
1668 | Thing[6] = Thing[6] + 1 | |
1669 | else | |
1670 | if Thing[6] < Thing[8] then | |
1671 | Thing[6] = Thing[6] + 1 | |
1672 | else | |
1673 | if Thing[6] < Thing[9] then | |
1674 | Thing[6] = Thing[6] + 1 | |
1675 | Thing[4].position = Thing[4].position + vt(0, 0.2, 0) | |
1676 | Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1 | |
1677 | Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1 | |
1678 | else | |
1679 | Thing[1].Parent = nil | |
1680 | table.remove(Effects, e) | |
1681 | end | |
1682 | end | |
1683 | end | |
1684 | end | |
1685 | end | |
1686 | if Thing[2] == "PartiEmi" then | |
1687 | Thing[3] = Thing[3] - 1 | |
1688 | if Thing[3] <= 0 then | |
1689 | Thing[1].Enabled = false | |
1690 | table.remove(Effects, e) | |
1691 | end | |
1692 | end | |
1693 | if Thing[2] == "AdjuEff" then | |
1694 | if 0 < Thing[3] then | |
1695 | Thing[3] = Thing[3] - 1 | |
1696 | Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0) | |
1697 | Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0) | |
1698 | Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1 | |
1699 | else | |
1700 | Thing[1].Parent = nil | |
1701 | table.remove(Effects, e) | |
1702 | end | |
1703 | end | |
1704 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then | |
1705 | if Thing[1].Transparency <= 1 then | |
1706 | if Thing[2] == "Block1" then | |
1707 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1708 | Mesh = Thing[7] | |
1709 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1710 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1711 | else | |
1712 | if Thing[2] == "Block2" then | |
1713 | Thing[1].CFrame = Thing[1].CFrame | |
1714 | Mesh = Thing[7] | |
1715 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1716 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1717 | else | |
1718 | if Thing[2] == "Block3" then | |
1719 | Thing[9] = Thing[9] + 0.5 | |
1720 | Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0) | |
1721 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1722 | Mesh = Thing[7] | |
1723 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1724 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1725 | else | |
1726 | if Thing[2] == "Skull" then | |
1727 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8]) | |
1728 | Mesh = Thing[7] | |
1729 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1730 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1731 | else | |
1732 | if Thing[2] == "Cylinder" then | |
1733 | Mesh = Thing[7] | |
1734 | Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency) | |
1735 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1736 | else | |
1737 | if Thing[2] == "Cylinder2" then | |
1738 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0) | |
1739 | Mesh = Thing[7] | |
1740 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1741 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1742 | else | |
1743 | if Thing[2] == "Blood" then | |
1744 | Mesh = Thing[7] | |
1745 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
1746 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
1747 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1748 | else | |
1749 | if Thing[2] == "Elec" then | |
1750 | Mesh = Thing[10] | |
1751 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
1752 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1753 | else | |
1754 | if Thing[2] == "Disappear" then | |
1755 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1756 | end | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | end | |
1762 | end | |
1763 | end | |
1764 | end | |
1765 | else | |
1766 | Part.Parent = nil | |
1767 | table.remove(Effects, e) | |
1768 | end | |
1769 | end | |
1770 | end | |
1771 | end | |
1772 | end | |
1773 | end | |
1774 | end |