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 r/ and not rl/") end | |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | local Player,game,owner = owner,game |
3 | - | --\\====================================================//-- |
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()} | |
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 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) 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 self[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 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | print'Pandora Edit By UndeniableInfinity.' | |
145 | print'Script name: "INSANITY PANDORA"' | |
146 | print'Insanity Pandora is an edit which makes it more op.' | |
147 | print'The Upgrades are:' | |
148 | warn'More Magic Bullets, which is now named Bullet Hell.' | |
149 | warn'Much Bigger Impact Of "Warp Meteor" which is now named "Warp Apocalypse"' | |
150 | warn'"Times up", which is now named "Game Over" has now Ultra-Fast Wave/Pulse Killing.' | |
151 | warn'WAVES ARE NOW INSANELY FAST. at this point i do not know if anyone can touch you. except Ghosts.' | |
152 | warn'Chained Punch was only SLIGHTLY buffed.' | |
153 | warn'"Pandoras Box", which is now named "Insanity Box", has now;' | |
154 | warn'More "Ghosts" Spawn.' | |
155 | warn'Bigger Black Hole And Gravity Orb...thing.' | |
156 | warn'Bigger Box Explosion.' | |
157 | warn'Added Two Moves that came from OTHER Shackluster Scripts.' | |
158 | print'MOVES BELOW' | |
159 | warn'[Z] Bullet Hell' | |
160 | warn'[B] Game Over' | |
161 | warn'[V] Warp Apocalypse' | |
162 | warn'[C] Chained Punch' | |
163 | warn'[X] Insanity Box' | |
164 | warn'[Q] Isolation (Warden Lock)' | |
165 | warn'[E] Void Blast (Ravager Beam)' | |
166 | print'Welp, Thats it all covered up.' | |
167 | print'Credits to Shackluster, as there are some moves from other scripts he did too. this may be a Minor Mix, and kind of major edit.' | |
168 | ||
169 | wait(0.2) | |
170 | ||
171 | Player = game:GetService("Players").LocalPlayer | |
172 | PlayerGui = Player.PlayerGui | |
173 | Cam = workspace.CurrentCamera | |
174 | Backpack = Player.Backpack | |
175 | Character = Player.Character | |
176 | Humanoid = Character.Humanoid | |
177 | Mouse = Player:GetMouse() | |
178 | RootPart = Character["HumanoidRootPart"] | |
179 | Torso = Character["Torso"] | |
180 | Head = Character["Head"] | |
181 | RightArm = Character["Right Arm"] | |
182 | LeftArm = Character["Left Arm"] | |
183 | RightLeg = Character["Right Leg"] | |
184 | LeftLeg = Character["Left Leg"] | |
185 | RootJoint = RootPart["RootJoint"] | |
186 | Neck = Torso["Neck"] | |
187 | RightShoulder = Torso["Right Shoulder"] | |
188 | LeftShoulder = Torso["Left Shoulder"] | |
189 | RightHip = Torso["Right Hip"] | |
190 | LeftHip = Torso["Left Hip"] | |
191 | Character.Archivable = true | |
192 | Player:ClearCharacterAppearance() | |
193 | ||
194 | IT = Instance.new | |
195 | CF = CFrame.new | |
196 | VT = Vector3.new | |
197 | RAD = math.rad | |
198 | C3 = Color3.new | |
199 | UD2 = UDim2.new | |
200 | BRICKC = BrickColor.new | |
201 | ANGLES = CFrame.Angles | |
202 | EULER = CFrame.fromEulerAnglesXYZ | |
203 | COS = math.cos | |
204 | ACOS = math.acos | |
205 | SIN = math.sin | |
206 | ASIN = math.asin | |
207 | ABS = math.abs | |
208 | MRANDOM = math.random | |
209 | FLOOR = math.floor | |
210 | ||
211 | --//=================================\\ | |
212 | --|| USEFUL VALUES | |
213 | --\\=================================// | |
214 | ||
215 | Animation_Speed = 3 | |
216 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
217 | local Speed = 20 | |
218 | local SIZE = 1.4 | |
219 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
220 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
221 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
222 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
223 | local DAMAGEMULTIPLIER = 1 | |
224 | local ANIM = "Idle" | |
225 | local ATTACK = false | |
226 | local EQUIPPED = false | |
227 | local HOLD = false | |
228 | local COMBO = 1 | |
229 | local Rooted = false | |
230 | local SINE = 0 | |
231 | local KEYHOLD = false | |
232 | local CHANGE = 2 / Animation_Speed | |
233 | local WALKINGANIM = false | |
234 | local VALUE1 = false | |
235 | local VALUE2 = false | |
236 | local ROBLOXIDLEANIMATION = IT("Animation") | |
237 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
238 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
239 | local ATANIM = IT("Animation") | |
240 | ATANIM.Name = "Attack Animation" | |
241 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
242 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
243 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
244 | WEAPONGUI.Name = "Weapon GUI" | |
245 | local Weapon = IT("Model") | |
246 | Weapon.Name = "Adds" | |
247 | local Effects = IT("Folder", Weapon) | |
248 | Effects.Name = "Effects" | |
249 | local ANIMATOR = Humanoid.Animator | |
250 | local ANIMATE = Character.Animate | |
251 | local UNANCHOR = true | |
252 | local CLOCKLOOP = 0 | |
253 | local SONG = 1382488262 | |
254 | local CLOCKTARGET = nil | |
255 | local CLOCKSPEED = 50 | |
256 | script.Parent = WEAPONGUI | |
257 | local CLONE = Character:Clone() | |
258 | CLONE.Parent = nil | |
259 | Character.Archivable = false | |
260 | local sick = Instance.new("Sound",Torso) | |
261 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
262 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
263 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
264 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
265 | ||
266 | --//=================================\\ | |
267 | --\\=================================// | |
268 | ||
269 | ||
270 | --//=================================\\ | |
271 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
272 | --\\=================================// | |
273 | ||
274 | ArtificialHB = Instance.new("BindableEvent", script) | |
275 | ArtificialHB.Name = "ArtificialHB" | |
276 | ||
277 | script:WaitForChild("ArtificialHB") | |
278 | ||
279 | frame = Frame_Speed | |
280 | tf = 0 | |
281 | allowframeloss = false | |
282 | tossremainder = false | |
283 | lastframe = tick() | |
284 | script.ArtificialHB:Fire() | |
285 | ||
286 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
287 | tf = tf + s | |
288 | if tf >= frame then | |
289 | if allowframeloss then | |
290 | script.ArtificialHB:Fire() | |
291 | lastframe = tick() | |
292 | else | |
293 | for i = 1, math.floor(tf / frame) do | |
294 | script.ArtificialHB:Fire() | |
295 | end | |
296 | lastframe = tick() | |
297 | end | |
298 | if tossremainder then | |
299 | tf = 0 | |
300 | else | |
301 | tf = tf - frame * math.floor(tf / frame) | |
302 | end | |
303 | end | |
304 | end) | |
305 | ||
306 | --//=================================\\ | |
307 | --\\=================================// | |
308 | ||
309 | --//=================================\\ | |
310 | --|| SOME FUNCTIONS | |
311 | --\\=================================// | |
312 | function Reappear() | |
313 | for _, c in pairs(Character:GetChildren()) do | |
314 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
315 | c.Transparency = 0 | |
316 | if c:FindFirstChildOfClass("Decal") then | |
317 | c:FindFirstChildOfClass("Decal").Transparency = 0 | |
318 | end | |
319 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
320 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
321 | end | |
322 | elseif c.ClassName == "Accessory" then | |
323 | c.Handle.Transparency = 0 | |
324 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
325 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
326 | end | |
327 | end | |
328 | end | |
329 | end | |
330 | ||
331 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
332 | if FLOOR ~= nil then | |
333 | coroutine.resume(coroutine.create(function() | |
334 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0)) | |
335 | PART.CFrame = CF(POSITION) | |
336 | for i = 1, 45 do | |
337 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE) | |
338 | RingPiece.Material = FLOOR.Material | |
339 | RingPiece.Color = FLOOR.Color | |
340 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
341 | Debris:AddItem(RingPiece,SWAIT) | |
342 | end | |
343 | PART:remove() | |
344 | end)) | |
345 | end | |
346 | end | |
347 | ||
348 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
349 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
350 | local mesh = IT("SpecialMesh",wave) | |
351 | mesh.MeshType = "FileMesh" | |
352 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
353 | mesh.Scale = SIZE | |
354 | mesh.Offset = VT(0,0,0) | |
355 | wave.CFrame = CFRAME | |
356 | coroutine.resume(coroutine.create(function(PART) | |
357 | for i = 1, WAIT do | |
358 | Swait() | |
359 | mesh.Scale = mesh.Scale + GROW | |
360 | if DOESROT == true then | |
361 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
362 | end | |
363 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
364 | if wave.Transparency > 0.99 then | |
365 | wave:remove() | |
366 | end | |
367 | end | |
368 | end)) | |
369 | end | |
370 | ||
371 | function VanishPlayer() | |
372 | for _, c in pairs(Character:GetChildren()) do | |
373 | if c.ClassName == "Part" then | |
374 | c.Transparency = 1 | |
375 | if c:FindFirstChildOfClass("Decal") then | |
376 | c:FindFirstChildOfClass("Decal").Transparency = 1 | |
377 | end | |
378 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
379 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
380 | end | |
381 | elseif c.ClassName == "Accessory" then | |
382 | c.Handle.Transparency = 1 | |
383 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
384 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
385 | end | |
386 | end | |
387 | end | |
388 | end | |
389 | ||
390 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
391 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
392 | end | |
393 | ||
394 | function PositiveAngle(NUMBER) | |
395 | if NUMBER >= 0 then | |
396 | NUMBER = 0 | |
397 | end | |
398 | return NUMBER | |
399 | end | |
400 | ||
401 | function NegativeAngle(NUMBER) | |
402 | if NUMBER <= 0 then | |
403 | NUMBER = 0 | |
404 | end | |
405 | return NUMBER | |
406 | end | |
407 | ||
408 | function Swait(NUMBER) | |
409 | if NUMBER == 0 or NUMBER == nil then | |
410 | ArtificialHB.Event:wait() | |
411 | else | |
412 | for i = 1, NUMBER do | |
413 | ArtificialHB.Event:wait() | |
414 | end | |
415 | end | |
416 | end | |
417 | ||
418 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
419 | local NEWMESH = IT(MESH) | |
420 | if MESH == "SpecialMesh" then | |
421 | NEWMESH.MeshType = MESHTYPE | |
422 | if MESHID ~= "nil" and MESHID ~= "" then | |
423 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
424 | end | |
425 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
426 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
427 | end | |
428 | end | |
429 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
430 | NEWMESH.Scale = SCALE | |
431 | NEWMESH.Parent = PARENT | |
432 | return NEWMESH | |
433 | end | |
434 | ||
435 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
436 | local NEWPART = IT("Part") | |
437 | NEWPART.formFactor = FORMFACTOR | |
438 | NEWPART.Reflectance = REFLECTANCE | |
439 | NEWPART.Transparency = TRANSPARENCY | |
440 | NEWPART.CanCollide = false | |
441 | NEWPART.Locked = true | |
442 | NEWPART.Anchored = true | |
443 | if ANCHOR == false then | |
444 | NEWPART.Anchored = false | |
445 | end | |
446 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
447 | NEWPART.Name = NAME | |
448 | NEWPART.Size = SIZE | |
449 | NEWPART.Position = Torso.Position | |
450 | NEWPART.Material = MATERIAL | |
451 | NEWPART:BreakJoints() | |
452 | NEWPART.Parent = PARENT | |
453 | return NEWPART | |
454 | end | |
455 | ||
456 | local function weldBetween(a, b) | |
457 | local weldd = Instance.new("ManualWeld") | |
458 | weldd.Part0 = a | |
459 | weldd.Part1 = b | |
460 | weldd.C0 = CFrame.new() | |
461 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
462 | weldd.Parent = a | |
463 | return weldd | |
464 | end | |
465 | ||
466 | ||
467 | function QuaternionFromCFrame(cf) | |
468 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
469 | local trace = m00 + m11 + m22 | |
470 | if trace > 0 then | |
471 | local s = math.sqrt(1 + trace) | |
472 | local recip = 0.5 / s | |
473 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
474 | else | |
475 | local i = 0 | |
476 | if m11 > m00 then | |
477 | i = 1 | |
478 | end | |
479 | if m22 > (i == 0 and m00 or m11) then | |
480 | i = 2 | |
481 | end | |
482 | if i == 0 then | |
483 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
484 | local recip = 0.5 / s | |
485 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
486 | elseif i == 1 then | |
487 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
488 | local recip = 0.5 / s | |
489 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
490 | elseif i == 2 then | |
491 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
492 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
493 | end | |
494 | end | |
495 | end | |
496 | ||
497 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
498 | local xs, ys, zs = x + x, y + y, z + z | |
499 | local wx, wy, wz = w * xs, w * ys, w * zs | |
500 | local xx = x * xs | |
501 | local xy = x * ys | |
502 | local xz = x * zs | |
503 | local yy = y * ys | |
504 | local yz = y * zs | |
505 | local zz = z * zs | |
506 | 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)) | |
507 | end | |
508 | ||
509 | function QuaternionSlerp(a, b, t) | |
510 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
511 | local startInterp, finishInterp; | |
512 | if cosTheta >= 0.0001 then | |
513 | if (1 - cosTheta) > 0.0001 then | |
514 | local theta = ACOS(cosTheta) | |
515 | local invSinTheta = 1 / SIN(theta) | |
516 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
517 | finishInterp = SIN(t * theta) * invSinTheta | |
518 | else | |
519 | startInterp = 1 - t | |
520 | finishInterp = t | |
521 | end | |
522 | else | |
523 | if (1 + cosTheta) > 0.0001 then | |
524 | local theta = ACOS(-cosTheta) | |
525 | local invSinTheta = 1 / SIN(theta) | |
526 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
527 | finishInterp = SIN(t * theta) * invSinTheta | |
528 | else | |
529 | startInterp = t - 1 | |
530 | finishInterp = t | |
531 | end | |
532 | end | |
533 | 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 | |
534 | end | |
535 | ||
536 | function Clerp(a, b, t) | |
537 | local qa = {QuaternionFromCFrame(a)} | |
538 | local qb = {QuaternionFromCFrame(b)} | |
539 | local ax, ay, az = a.x, a.y, a.z | |
540 | local bx, by, bz = b.x, b.y, b.z | |
541 | local _t = 1 - t | |
542 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
543 | end | |
544 | ||
545 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
546 | local frame = IT("Frame") | |
547 | frame.BackgroundTransparency = TRANSPARENCY | |
548 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
549 | frame.Position = POSITION | |
550 | frame.Size = SIZE | |
551 | frame.BackgroundColor3 = COLOR | |
552 | frame.BorderColor3 = BORDERCOLOR | |
553 | frame.Name = NAME | |
554 | frame.Parent = PARENT | |
555 | return frame | |
556 | end | |
557 | ||
558 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
559 | local label = IT("TextLabel") | |
560 | label.BackgroundTransparency = 1 | |
561 | label.Size = UD2(1, 0, 1, 0) | |
562 | label.Position = UD2(0, 0, 0, 0) | |
563 | label.TextColor3 = TEXTCOLOR | |
564 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
565 | label.TextTransparency = TRANSPARENCY | |
566 | label.FontSize = TEXTFONTSIZE | |
567 | label.Font = TEXTFONT | |
568 | label.BorderSizePixel = BORDERSIZEPIXEL | |
569 | label.TextStrokeColor3 = C3(1,1,1) | |
570 | label.TextScaled = false | |
571 | label.Text = TEXT | |
572 | label.Name = NAME | |
573 | label.Parent = PARENT | |
574 | return label | |
575 | end | |
576 | ||
577 | function NoOutlines(PART) | |
578 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
579 | end | |
580 | ||
581 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
582 | local NEWWELD = IT(TYPE) | |
583 | NEWWELD.Part0 = PART0 | |
584 | NEWWELD.Part1 = PART1 | |
585 | NEWWELD.C0 = C0 | |
586 | NEWWELD.C1 = C1 | |
587 | NEWWELD.Parent = PARENT | |
588 | return NEWWELD | |
589 | end | |
590 | ||
591 | local S = IT("Sound") | |
592 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
593 | local NEWSOUND = nil | |
594 | coroutine.resume(coroutine.create(function() | |
595 | NEWSOUND = S:Clone() | |
596 | NEWSOUND.Parent = PARENT | |
597 | NEWSOUND.Volume = VOLUME | |
598 | NEWSOUND.Pitch = PITCH | |
599 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
600 | NEWSOUND:play() | |
601 | if DOESLOOP == true then | |
602 | NEWSOUND.Looped = true | |
603 | else | |
604 | repeat wait(1) until NEWSOUND.Playing == false | |
605 | NEWSOUND:remove() | |
606 | end | |
607 | end)) | |
608 | return NEWSOUND | |
609 | end | |
610 | ||
611 | function CFrameFromTopBack(at, top, back) | |
612 | local right = top:Cross(back) | |
613 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
614 | end | |
615 | ||
616 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
617 | function WACKYEFFECT(Table) | |
618 | local TYPE = (Table.EffectType or "Sphere") | |
619 | local SIZE = (Table.Size or VT(1,1,1)) | |
620 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
621 | local TRANSPARENCY = (Table.Transparency or 0) | |
622 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
623 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
624 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
625 | local ROTATION1 = (Table.RotationX or 0) | |
626 | local ROTATION2 = (Table.RotationY or 0) | |
627 | local ROTATION3 = (Table.RotationZ or 0) | |
628 | local MATERIAL = (Table.Material or "Neon") | |
629 | local COLOR = (Table.Color or C3(1,1,1)) | |
630 | local TIME = (Table.Time or 45) | |
631 | local SOUNDID = (Table.SoundID or nil) | |
632 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
633 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
634 | coroutine.resume(coroutine.create(function() | |
635 | local PLAYSSOUND = false | |
636 | local SOUND = nil | |
637 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
638 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
639 | PLAYSSOUND = true | |
640 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
641 | end | |
642 | EFFECT.Color = COLOR | |
643 | local MSH = nil | |
644 | if TYPE == "Sphere" then | |
645 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
646 | elseif TYPE == "Block" then | |
647 | MSH = IT("BlockMesh",EFFECT) | |
648 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
649 | elseif TYPE == "Wave" then | |
650 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
651 | elseif TYPE == "Ring" then | |
652 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
653 | elseif TYPE == "Slash" then | |
654 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
655 | elseif TYPE == "Round Slash" then | |
656 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
657 | elseif TYPE == "Swirl" then | |
658 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
659 | elseif TYPE == "Skull" then | |
660 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
661 | elseif TYPE == "Crystal" then | |
662 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
663 | end | |
664 | if MSH ~= nil then | |
665 | local MOVESPEED = nil | |
666 | if MOVEDIRECTION ~= nil then | |
667 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
668 | end | |
669 | local GROWTH = SIZE - ENDSIZE | |
670 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
671 | if TYPE == "Block" then | |
672 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
673 | else | |
674 | EFFECT.CFrame = CFRAME | |
675 | end | |
676 | for LOOP = 1, TIME+1 do | |
677 | Swait() | |
678 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
679 | if TYPE == "Wave" then | |
680 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
681 | end | |
682 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
683 | if TYPE == "Block" then | |
684 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
685 | else | |
686 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
687 | end | |
688 | if MOVEDIRECTION ~= nil then | |
689 | local ORI = EFFECT.Orientation | |
690 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
691 | EFFECT.Orientation = ORI | |
692 | end | |
693 | end | |
694 | if PLAYSSOUND == false then | |
695 | EFFECT:remove() | |
696 | else | |
697 | repeat Swait() until SOUND.Playing == false | |
698 | EFFECT:remove() | |
699 | end | |
700 | else | |
701 | if PLAYSSOUND == false then | |
702 | EFFECT:remove() | |
703 | else | |
704 | repeat Swait() until SOUND.Playing == false | |
705 | EFFECT:remove() | |
706 | end | |
707 | end | |
708 | end)) | |
709 | end | |
710 | function killnearest(position,range,maxstrength) | |
711 | for i,v in ipairs(workspace:GetChildren()) do | |
712 | local body = v:GetChildren() | |
713 | for part = 1, #body do | |
714 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
715 | if(body[part].Position - position).Magnitude < range then | |
716 | if v.ClassName == "Model" then | |
717 | v:BreakJoints() | |
718 | end | |
719 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
720 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
721 | end | |
722 | end | |
723 | end | |
724 | if v.ClassName == "Part" then | |
725 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
726 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
727 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
728 | end | |
729 | end | |
730 | end | |
731 | end | |
732 | ||
733 | function CheckTableForString(Table, String) | |
734 | for i, v in pairs(Table) do | |
735 | if string.find(string.lower(String), string.lower(v)) then | |
736 | return true | |
737 | end | |
738 | end | |
739 | return false | |
740 | end | |
741 | ||
742 | function CheckIntangible(Hit) | |
743 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
744 | if Hit and Hit.Parent then | |
745 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
746 | return true | |
747 | end | |
748 | end | |
749 | return false | |
750 | end | |
751 | ||
752 | function MakeForm(PART,TYPE) | |
753 | if TYPE == "Cyl" then | |
754 | local MSH = IT("CylinderMesh",PART) | |
755 | elseif TYPE == "Ball" then | |
756 | local MSH = IT("SpecialMesh",PART) | |
757 | MSH.MeshType = "Sphere" | |
758 | elseif TYPE == "Wedge" then | |
759 | local MSH = IT("SpecialMesh",PART) | |
760 | MSH.MeshType = "Wedge" | |
761 | end | |
762 | end | |
763 | ||
764 | Debris = game:GetService("Debris") | |
765 | ||
766 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
767 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
768 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
769 | end | |
770 | ||
771 | function turnto(position) | |
772 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
773 | end | |
774 | ||
775 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
776 | PLAYMAINANIM = false | |
777 | if WhichPose == "Cast1" then | |
778 | for i=0, Time, 0.1 / Animation_Speed do | |
779 | Swait() | |
780 | if Magic == true then | |
781 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
782 | end | |
783 | if Gyro ~= nil and Gyro ~= false then | |
784 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
785 | end | |
786 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
790 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
792 | end | |
793 | elseif WhichPose == "Cast2" then | |
794 | for i=0, Time, 0.1 / Animation_Speed do | |
795 | Swait() | |
796 | if Magic == true then | |
797 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
798 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
799 | end | |
800 | if Gyro ~= nil and Gyro ~= false then | |
801 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
802 | end | |
803 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
804 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
805 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
806 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
807 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
808 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
809 | end | |
810 | elseif WhichPose == "RightArmUp" then | |
811 | for i=0, Time, 0.1 / Animation_Speed do | |
812 | Swait() | |
813 | if Magic == true then | |
814 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
815 | end | |
816 | if Gyro ~= nil and Gyro ~= false then | |
817 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
818 | end | |
819 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
820 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
821 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
822 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
823 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
824 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
825 | end | |
826 | elseif WhichPose == "Taunt" then | |
827 | for i=0, Time, 0.1 / Animation_Speed do | |
828 | Swait() | |
829 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
830 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
831 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
832 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
833 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
834 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
835 | end | |
836 | HATWELD.Part0 = RightArm | |
837 | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) | |
838 | CreateSound(221057812,Torso,10,1,false) | |
839 | for i=0, Time*2, 0.1 / Animation_Speed do | |
840 | Swait() | |
841 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
842 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
843 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
844 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
845 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
846 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
847 | end | |
848 | for i=0, Time, 0.1 / Animation_Speed do | |
849 | Swait() | |
850 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
856 | HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed) | |
857 | end | |
858 | HATWELD.Part0 = Head | |
859 | HATWELD.C0 = CF(0,0.35,0) | |
860 | elseif WhichPose == "Prepare key" then | |
861 | for i=0, Time, 0.1 / Animation_Speed do | |
862 | Swait() | |
863 | if Gyro ~= nil and Gyro ~= false then | |
864 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
865 | end | |
866 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
867 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
868 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
869 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
870 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
871 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
872 | end | |
873 | elseif WhichPose == "Turn key" then | |
874 | for i=0, Time, 0.1 / Animation_Speed do | |
875 | Swait() | |
876 | if Gyro ~= nil and Gyro ~= false then | |
877 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
878 | end | |
879 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
880 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
881 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
882 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
883 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
884 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
885 | end | |
886 | end | |
887 | PLAYMAINANIM = true | |
888 | end | |
889 | ||
890 | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false}) | |
891 | function Lightning(Table) | |
892 | local Color = Table.Color or C3(1,1,1) | |
893 | local StartPos = Table.Start or Torso.Position | |
894 | local EndPos = Table.End or Mouse.Hit.p | |
895 | local SegmentLength = Table.SegmentL or 2 | |
896 | local Thickness = Table.Thickness or 0.1 | |
897 | local Dissapear = Table.DoesFade or false | |
898 | local Parent = Table.Ignore or Character | |
899 | local MaxDist = Table.MaxDist or 400 | |
900 | local Branches = Table.Branches or false | |
901 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
902 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
903 | local LIGHTNINGMODEL = IT("Model",Effects) | |
904 | LIGHTNINGMODEL.Name = "Lightning" | |
905 | local LastBolt = nil | |
906 | for E = 1, DISTANCE do | |
907 | local ExtraSize = (DISTANCE-E)/15 | |
908 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
909 | PART.Color = Color | |
910 | MakeForm(PART,"Cyl") | |
911 | if LastBolt == nil then | |
912 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
913 | else | |
914 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
915 | end | |
916 | LastBolt = PART | |
917 | if Branches == true then | |
918 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
919 | if CHOICE == 1 then | |
920 | local LASTBRANCH = nil | |
921 | for i = 1, MRANDOM(2,5) do | |
922 | local ExtraSize2 = ((DISTANCE-E)/25)/i | |
923 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
924 | PART.Color = Color | |
925 | MakeForm(PART,"Cyl") | |
926 | if LASTBRANCH == nil then | |
927 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
928 | else | |
929 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
930 | end | |
931 | LASTBRANCH = PART | |
932 | end | |
933 | end | |
934 | end | |
935 | end | |
936 | if Dissapear == true then | |
937 | coroutine.resume(coroutine.create(function() | |
938 | for i = 1, 10 do | |
939 | Swait() | |
940 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
941 | if c.ClassName == "Part" then | |
942 | c.Transparency = i/10 | |
943 | end | |
944 | end | |
945 | end | |
946 | LIGHTNINGMODEL:remove() | |
947 | end)) | |
948 | elseif Dissapear == false then | |
949 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
950 | end | |
951 | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
952 | end | |
953 | ||
954 | --//=================================\\ | |
955 | --|| WEAPON CREATION | |
956 | --\\=================================// | |
957 | ||
958 | RootPart.Size = RootPart.Size*SIZE | |
959 | Torso.Size = Torso.Size*SIZE | |
960 | RightArm.Size = RightArm.Size*SIZE | |
961 | RightLeg.Size = RightLeg.Size*SIZE | |
962 | LeftArm.Size = LeftArm.Size*SIZE | |
963 | LeftLeg.Size = LeftLeg.Size*SIZE | |
964 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
965 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
966 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
967 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
968 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
969 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
970 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
971 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
972 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
973 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
974 | Head.Size = Head.Size*SIZE | |
975 | RootJoint.Parent = RootPart | |
976 | Neck.Parent = Torso | |
977 | RightShoulder.Parent = Torso | |
978 | LeftShoulder.Parent = Torso | |
979 | RightHip.Parent = Torso | |
980 | LeftHip.Parent = Torso | |
981 | ||
982 | Humanoid.DisplayDistanceType = "None" | |
983 | local naeeym2 = IT("BillboardGui",Character) | |
984 | naeeym2.AlwaysOnTop = true | |
985 | naeeym2.Size = UDim2.new(5,35,2,15) | |
986 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
987 | naeeym2.MaxDistance = 75 | |
988 | naeeym2.Adornee = Character.Head | |
989 | naeeym2.Name = "Name" | |
990 | local tecks2 = IT("TextLabel",naeeym2) | |
991 | tecks2.BackgroundTransparency = 1 | |
992 | tecks2.TextScaled = true | |
993 | tecks2.BorderSizePixel = 0 | |
994 | tecks2.Text = "!Insanity! Pandora" | |
995 | tecks2.Font = "Fantasy" | |
996 | tecks2.TextSize = 30 | |
997 | tecks2.TextStrokeTransparency = 0 | |
998 | tecks2.TextColor3 = C3(1,1,1) | |
999 | tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255) | |
1000 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1001 | tecks2.Parent = naeeym2 | |
1002 | local top = Instance.new("Shirt") | |
1003 | top.ShirtTemplate = "rbxassetid://1533635803" | |
1004 | top.Parent = Character | |
1005 | top.Name = "Cloth" | |
1006 | local bottom = Instance.new("Pants") | |
1007 | bottom.PantsTemplate = "rbxassetid://1460022985" | |
1008 | bottom.Parent = Character | |
1009 | bottom.Name = "Cloth" | |
1010 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
1011 | PRT.Color = C3(0,0,0) | |
1012 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1013 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1014 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
1015 | PRT.Color = C3(1,1,1) | |
1016 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1017 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1018 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false) | |
1019 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1020 | MakeForm(PRT,"Ball") | |
1021 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1022 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.4,0.5),false) | |
1023 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1024 | MakeForm(PRT,"Ball") | |
1025 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) | |
1026 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false) | |
1027 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1028 | MakeForm(PRT,"Ball") | |
1029 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1030 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false) | |
1031 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1032 | MakeForm(PRT,"Ball") | |
1033 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1034 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false) | |
1035 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1036 | MakeForm(PRT,"Ball") | |
1037 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) | |
1038 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false) | |
1039 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1040 | MakeForm(PRT,"Ball") | |
1041 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) | |
1042 | ||
1043 | local LASTPART = Head | |
1044 | for i = 1, 24 do | |
1045 | local MATH = (1-(i/30)) | |
1046 | if LASTPART == Head then | |
1047 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1048 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
1049 | LASTPART = Horn | |
1050 | Horn.Color = C3(0,0,0) | |
1051 | else | |
1052 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1053 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1054 | LASTPART = Horn | |
1055 | Horn.Color = C3(0,0,0) | |
1056 | end | |
1057 | end | |
1058 | local LASTPART = Head | |
1059 | for i = 1, 24 do | |
1060 | local MATH = (1-(i/30)) | |
1061 | if LASTPART == Head then | |
1062 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1063 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
1064 | LASTPART = Horn | |
1065 | Horn.Color = C3(0,0,0) | |
1066 | else | |
1067 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1068 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1069 | LASTPART = Horn | |
1070 | Horn.Color = C3(0,0,0) | |
1071 | end | |
1072 | end | |
1073 | local LASTPART = Head | |
1074 | for i = 1, 8 do | |
1075 | local MATH = (1-(i/14)) | |
1076 | if LASTPART == Head then | |
1077 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1078 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
1079 | LASTPART = Horn | |
1080 | Horn.Color = C3(0,0,0) | |
1081 | else | |
1082 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1083 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1084 | LASTPART = Horn | |
1085 | Horn.Color = C3(0,0,0) | |
1086 | end | |
1087 | end | |
1088 | local LASTPART = Head | |
1089 | for i = 1, 8 do | |
1090 | local MATH = (1-(i/14)) | |
1091 | if LASTPART == Head then | |
1092 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1093 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
1094 | LASTPART = Horn | |
1095 | Horn.Color = C3(0,0,0) | |
1096 | else | |
1097 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1098 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1099 | LASTPART = Horn | |
1100 | Horn.Color = C3(0,0,0) | |
1101 | end | |
1102 | end | |
1103 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1104 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1105 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1106 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1107 | MakeForm(PRT,"Cyl") | |
1108 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1109 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1110 | MakeForm(PRT,"Cyl") | |
1111 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1112 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1113 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1114 | MakeForm(RING,"Cyl") | |
1115 | RING.Color = C3(0,0,0) | |
1116 | for i = 1, 12 do | |
1117 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0)*SIZE,false) | |
1118 | PRT.Color = C3(0,0,0) | |
1119 | local MSH = IT("BlockMesh",PRT) | |
1120 | MSH.Scale = VT(0.6,1,1) | |
1121 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1122 | end | |
1123 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1124 | PRT.Color = C3(0,0,0) | |
1125 | local MSH = IT("BlockMesh",PRT) | |
1126 | MSH.Scale = VT(0.4,1,1) | |
1127 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
1128 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
1129 | PRT.Color = C3(0,0,0) | |
1130 | local MSH = IT("BlockMesh",PRT) | |
1131 | MSH.Scale = VT(0.4,1,1) | |
1132 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
1133 | coroutine.resume(coroutine.create(function() | |
1134 | while true do | |
1135 | Swait() | |
1136 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
1137 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
1138 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
1139 | if CLOCKLOOP <= -150 then | |
1140 | if VALUE1 == false then | |
1141 | CLOCKLOOP = 0 | |
1142 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
1143 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1144 | ApplyAoE(HITPOS,10,15,45,75,false) | |
1145 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1146 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1147 | if CLOCKTARGET ~= nil then | |
1148 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
1149 | if CLOCKTARGET.Torso ~= nil then | |
1150 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
1151 | end | |
1152 | if CLOCKTARGET.Health == 0 then | |
1153 | CLOCKTARGET = nil | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | end | |
1158 | end | |
1159 | end)) | |
1160 | ||
1161 | for _, c in pairs(Weapon:GetChildren()) do | |
1162 | if c.ClassName == "Part" then | |
1163 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1164 | end | |
1165 | end | |
1166 | ||
1167 | Neck.Name = "Weld" | |
1168 | RootJoint.Name = "Weld" | |
1169 | RightShoulder.Name = "Weld" | |
1170 | LeftShoulder.Name = "Weld" | |
1171 | RightHip.Name = "Weld" | |
1172 | LeftHip.Name = "Weld" | |
1173 | ||
1174 | local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255) | |
1175 | local SKILLFONT = "Fantasy" | |
1176 | local SKILLTEXTSIZE = 7 | |
1177 | ||
1178 | Weapon.Parent = Character | |
1179 | Humanoid.Parent = Character | |
1180 | ||
1181 | Humanoid.Died:connect(function() | |
1182 | ATTACK = true | |
1183 | end) | |
1184 | ||
1185 | --//=================================\\ | |
1186 | --|| DAMAGING | |
1187 | --\\=================================// | |
1188 | ||
1189 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1190 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1191 | defence.Name = ("HitBy"..Player.Name) | |
1192 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1193 | Damage = Damage * DAMAGEMULTIPLIER | |
1194 | if Humanoid.Health ~= 0 then | |
1195 | local CritChance = MRANDOM(1,100) | |
1196 | if Damage > Humanoid.Health then | |
1197 | Damage = math.ceil(Humanoid.Health) | |
1198 | if Damage == 0 then | |
1199 | Damage = 0.1 | |
1200 | end | |
1201 | end | |
1202 | Humanoid.Health = Humanoid.Health - Damage | |
1203 | end | |
1204 | end | |
1205 | ||
1206 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1207 | local CHILDREN = workspace:GetDescendants() | |
1208 | for index, CHILD in pairs(CHILDREN) do | |
1209 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1210 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1211 | if HUM then | |
1212 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1213 | if TORSO then | |
1214 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1215 | if INSTAKILL == true then | |
1216 | CHILD:BreakJoints() | |
1217 | else | |
1218 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1219 | ApplyDamage(HUM,DMG,TORSO) | |
1220 | end | |
1221 | if FLING > 0 then | |
1222 | for _, c in pairs(CHILD:GetChildren()) do | |
1223 | if c:IsA("BasePart") then | |
1224 | local bv = Instance.new("BodyVelocity") | |
1225 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1226 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1227 | bv.Parent = c | |
1228 | Debris:AddItem(bv,0.05) | |
1229 | end | |
1230 | end | |
1231 | end | |
1232 | end | |
1233 | end | |
1234 | end | |
1235 | end | |
1236 | end | |
1237 | end | |
1238 | ||
1239 | function MagicSphere2(size,waitt,cframe,color) | |
1240 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
1241 | local mesh = IT("SpecialMesh",wave) | |
1242 | mesh.MeshType = "Sphere" | |
1243 | mesh.Scale = VT(size,size,size) | |
1244 | mesh.Offset = VT(0,0,0) | |
1245 | wave.CFrame = cframe | |
1246 | coroutine.resume(coroutine.create(function(PART) | |
1247 | for i = 1, waitt do | |
1248 | Swait() | |
1249 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1250 | wave.Transparency = wave.Transparency - (1/waitt) | |
1251 | end | |
1252 | wave:remove() | |
1253 | end)) | |
1254 | end | |
1255 | ||
1256 | function MagicSphere(size,waitt,cframe,color) | |
1257 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
1258 | local mesh = IT("SpecialMesh",wave) | |
1259 | mesh.MeshType = "Sphere" | |
1260 | mesh.Scale = VT(size,size,size) | |
1261 | mesh.Offset = VT(0,0,0) | |
1262 | wave.CFrame = cframe | |
1263 | coroutine.resume(coroutine.create(function(PART) | |
1264 | for i = 1, waitt do | |
1265 | Swait() | |
1266 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1267 | wave.Transparency = wave.Transparency + (1/waitt) | |
1268 | if wave.Transparency > 0.99 then | |
1269 | wave:remove() | |
1270 | end | |
1271 | end | |
1272 | end)) | |
1273 | end | |
1274 | ||
1275 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
1276 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1277 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1278 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1279 | if RayHit and CheckIntangible(RayHit) then | |
1280 | if DelayIfHit then | |
1281 | wait() | |
1282 | end | |
1283 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
1284 | end | |
1285 | return RayHit, RayPos, RayNormal | |
1286 | end | |
1287 | ||
1288 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
1289 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1290 | local mesh = IT("SpecialMesh",wave) | |
1291 | mesh.MeshType = "FileMesh" | |
1292 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1293 | mesh.Scale = VT(size,size,size) | |
1294 | wave.CFrame = cframe | |
1295 | coroutine.resume(coroutine.create(function(PART) | |
1296 | for i = 1, waitt do | |
1297 | Swait() | |
1298 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1299 | if doesrotate == true then | |
1300 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1301 | end | |
1302 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1303 | if wave.Transparency > 0.99 then | |
1304 | wave:remove() | |
1305 | end | |
1306 | end | |
1307 | end)) | |
1308 | end | |
1309 | ||
1310 | --//=================================\\ | |
1311 | --|| ATTACK FUNCTIONS AND STUFF | |
1312 | --\\=================================// | |
1313 | ||
1314 | function MagicMissiles() | |
1315 | ATTACK = true | |
1316 | Rooted = true | |
1317 | local SELECTING = true | |
1318 | local SPOTS = {} | |
1319 | coroutine.resume(coroutine.create(function() | |
1320 | local LOOP = 0 | |
1321 | repeat | |
1322 | LOOP = LOOP + 1 | |
1323 | Swait() | |
1324 | if LOOP >= 20 then | |
1325 | LOOP = 0 | |
1326 | for i = 1, #SPOTS do | |
1327 | if SPOTS[i] ~= nil then | |
1328 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1329 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1330 | end | |
1331 | end | |
1332 | end | |
1333 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1334 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1335 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1336 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1337 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1338 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1339 | until SELECTING == false | |
1340 | Rooted = false | |
1341 | repeat | |
1342 | LOOP = LOOP + 1 | |
1343 | Swait() | |
1344 | if LOOP >= 20 then | |
1345 | LOOP = 0 | |
1346 | for i = 1, #SPOTS do | |
1347 | if SPOTS[i] ~= nil then | |
1348 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1349 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1350 | end | |
1351 | end | |
1352 | end | |
1353 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1354 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1355 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1356 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1357 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1358 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1359 | until ATTACK == false | |
1360 | end)) | |
1361 | repeat | |
1362 | repeat Swait() until HOLD == true | |
1363 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1364 | if DIST > 9999 then | |
1365 | DIST = 9999 | |
1366 | end | |
1367 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1368 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1369 | if HITFLOOR ~= nil then | |
1370 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
1371 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) | |
1372 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1373 | end | |
1374 | repeat Swait() until HOLD == false | |
1375 | until #SPOTS == 15 | |
1376 | SELECTING = false | |
1377 | for i = 1, #SPOTS do | |
1378 | if SPOTS[i] ~= nil then | |
1379 | local POS = SPOTS[i] | |
1380 | coroutine.resume(coroutine.create(function() | |
1381 | local MISSILE = IT("Model",Effects) | |
1382 | MISSILE.Name = "Missile" | |
1383 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2)) | |
1384 | MakeForm(BASEPART,"Cyl") | |
1385 | MISSILE.PrimaryPart = BASEPART | |
1386 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
1387 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2)) | |
1388 | MakeForm(HEAD,"Ball") | |
1389 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
1390 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5)) | |
1391 | MakeForm(TAIL,"Cyl") | |
1392 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
1393 | for i = 1, 10 do | |
1394 | Swait() | |
1395 | for _, c in pairs(MISSILE:GetChildren()) do | |
1396 | if c.ClassName == "Part" then | |
1397 | c.Transparency = c.Transparency - 1/10 | |
1398 | end | |
1399 | end | |
1400 | end | |
1401 | for i = 1, 15*1.5 do | |
1402 | Swait() | |
1403 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
1404 | end | |
1405 | ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false) | |
1406 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) | |
1407 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) | |
1408 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1409 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1410 | MISSILE:remove() | |
1411 | end)) | |
1412 | end | |
1413 | end | |
1414 | wait(0.6) | |
1415 | ATTACK = false | |
1416 | Rooted = false | |
1417 | end | |
1418 | ||
1419 | ||
1420 | ||
1421 | function TimesUp() | |
1422 | CLOCKTARGET = nil | |
1423 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1424 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1425 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1426 | if TORSO then | |
1427 | ATTACK = true | |
1428 | Rooted = false | |
1429 | coroutine.resume(coroutine.create(function() | |
1430 | repeat | |
1431 | Swait() | |
1432 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1433 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1434 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1435 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1436 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1437 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1438 | until ATTACK == false | |
1439 | end)) | |
1440 | if Effects:FindFirstChild("NeonDoll") then | |
1441 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
1442 | end | |
1443 | wait(0.5) | |
1444 | local FAKECHARACTER = IT("Model",Effects) | |
1445 | FAKECHARACTER.Name = "NeonDoll" | |
1446 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
1447 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
1448 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1449 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
1450 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1451 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
1452 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1453 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
1454 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1455 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
1456 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
1457 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
1458 | CreateSound(201858045, TORS, 5, 0.4, false) | |
1459 | for i = 1, 150 do | |
1460 | Swait() | |
1461 | CLOCKSPEED = 100 | |
1462 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1463 | if c.ClassName == "Part" then | |
1464 | c.Transparency = c.Transparency - 0.5/150 | |
1465 | end | |
1466 | end | |
1467 | end | |
1468 | CLOCKTARGET = HUM | |
1469 | coroutine.resume(coroutine.create(function() | |
1470 | repeat Swait() CLOCKSPEED = 100 until CLOCKTARGET == nil | |
1471 | for i = 1, 25 do | |
1472 | Swait() | |
1473 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1474 | if c.ClassName == "Part" then | |
1475 | c.Transparency = c.Transparency + 0.5/25 | |
1476 | end | |
1477 | end | |
1478 | end | |
1479 | CLOCKSPEED = 100 | |
1480 | FAKECHARACTER:remove() | |
1481 | end)) | |
1482 | wait(0.5) | |
1483 | ATTACK = false | |
1484 | Rooted = false | |
1485 | end | |
1486 | end | |
1487 | end | |
1488 | ||
1489 | function ChainPunch() | |
1490 | ATTACK = true | |
1491 | Rooted = false | |
1492 | local GYRO = IT("BodyGyro",RootPart) | |
1493 | GYRO.D = 25 | |
1494 | GYRO.P = 2000 | |
1495 | GYRO.MaxTorque = VT(0,40000,0) | |
1496 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1497 | repeat | |
1498 | Swait() | |
1499 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1500 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1501 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1502 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1503 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1504 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1505 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1506 | until HOLD == true | |
1507 | local POS = Mouse.Hit.p | |
1508 | local CHAINS = false | |
1509 | local CHAINLINKS = {} | |
1510 | local A = IT("Attachment",RightArm) | |
1511 | A.Position = VT(1,-1,0)*SIZE | |
1512 | A.Orientation = VT(-90, -89.982, 0) | |
1513 | local B = IT("Attachment",RightArm) | |
1514 | B.Position = VT(-1,-1,0)*SIZE | |
1515 | B.Orientation = VT(-90, 89.988, 0) | |
1516 | local C = IT("Attachment",RightArm) | |
1517 | C.Position = VT(0.5,-1.3,0)*SIZE | |
1518 | C.Orientation = VT(-90, -89.982, 0) | |
1519 | local D = IT("Attachment",RightArm) | |
1520 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
1521 | D.Orientation = VT(-90, 89.988, 0) | |
1522 | local LIGHT = IT("Attachment",RightArm) | |
1523 | LIGHT.Position = VT(0,-1,0)*SIZE | |
1524 | local LIGHT2 = IT("PointLight",LIGHT) | |
1525 | LIGHT2.Range = 7 | |
1526 | LIGHT2.Brightness = 5 | |
1527 | LIGHT2.Color = SKILLTEXTCOLOR | |
1528 | for i = 1, 2 do | |
1529 | local TWIST = -2 | |
1530 | local START = A | |
1531 | local END = B | |
1532 | if i == 1 then | |
1533 | START = B | |
1534 | END = A | |
1535 | end | |
1536 | local ChainLink = IT("Beam",Torso) | |
1537 | ChainLink.Texture = "rbxassetid://73042633" | |
1538 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1539 | ChainLink.TextureSpeed = 1 | |
1540 | ChainLink.Width0 = 1 | |
1541 | ChainLink.Width1 = 1 | |
1542 | ChainLink.TextureLength = 2.5 | |
1543 | ChainLink.Attachment0 = START | |
1544 | ChainLink.Attachment1 = END | |
1545 | ChainLink.CurveSize0 = TWIST | |
1546 | ChainLink.CurveSize1 = TWIST | |
1547 | --ChainLink.FaceCamera = true | |
1548 | ChainLink.Segments = 45 | |
1549 | ChainLink.Transparency = NumberSequence.new(1) | |
1550 | table.insert(CHAINLINKS,ChainLink) | |
1551 | end | |
1552 | for i = 1, 2 do | |
1553 | local TWIST = -1 | |
1554 | local START = C | |
1555 | local END = D | |
1556 | if i == 1 then | |
1557 | START = D | |
1558 | END = C | |
1559 | end | |
1560 | local ChainLink = IT("Beam",Torso) | |
1561 | ChainLink.Texture = "rbxassetid://73042633" | |
1562 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1563 | ChainLink.TextureSpeed = 1 | |
1564 | ChainLink.Width0 = 1 | |
1565 | ChainLink.Width1 = 1 | |
1566 | ChainLink.TextureLength = 5 | |
1567 | ChainLink.Attachment0 = START | |
1568 | ChainLink.Attachment1 = END | |
1569 | ChainLink.CurveSize0 = TWIST | |
1570 | ChainLink.CurveSize1 = TWIST | |
1571 | --ChainLink.FaceCamera = true | |
1572 | ChainLink.Segments = 25 | |
1573 | ChainLink.LightEmission = 0.5 | |
1574 | ChainLink.Transparency = NumberSequence.new(1) | |
1575 | table.insert(CHAINLINKS,ChainLink) | |
1576 | end | |
1577 | coroutine.resume(coroutine.create(function() | |
1578 | repeat | |
1579 | Swait() | |
1580 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1581 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1582 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1583 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1584 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1585 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1586 | until CHAINS == true | |
1587 | repeat | |
1588 | Swait() | |
1589 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1590 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1591 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1592 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1593 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1594 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1595 | until ATTACK == false | |
1596 | for e = 1, 15 do | |
1597 | Swait() | |
1598 | for i = 1, #CHAINLINKS do | |
1599 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
1600 | end | |
1601 | end | |
1602 | A:remove() | |
1603 | B:remove() | |
1604 | C:remove() | |
1605 | D:remove() | |
1606 | end)) | |
1607 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
1608 | for e = 1, 15 do | |
1609 | Swait() | |
1610 | for i = 1, #CHAINLINKS do | |
1611 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
1612 | end | |
1613 | end | |
1614 | CHAINS = true | |
1615 | Rooted = true | |
1616 | wait(0.25) | |
1617 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
1618 | FIST.Color = C3(1, 215/255, 1) | |
1619 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1620 | local LIGHT3 = IT("PointLight",FIST) | |
1621 | LIGHT3.Range = 7 | |
1622 | LIGHT3.Brightness = 5 | |
1623 | LIGHT3.Color = SKILLTEXTCOLOR | |
1624 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0)) | |
1625 | local FISTA = IT("Attachment",FIST) | |
1626 | FISTA.Position = VT(0.062, 0.977, 0) | |
1627 | local ChainLink = IT("Beam",Torso) | |
1628 | ChainLink.Texture = "rbxassetid://73042633" | |
1629 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1630 | ChainLink.TextureSpeed = 0 | |
1631 | ChainLink.Width0 = 3 | |
1632 | ChainLink.Width1 = 3 | |
1633 | ChainLink.TextureLength = 12 | |
1634 | ChainLink.Attachment0 = LIGHT | |
1635 | ChainLink.Attachment1 = FISTA | |
1636 | ChainLink.FaceCamera = true | |
1637 | ChainLink.Segments = 45 | |
1638 | ChainLink.LightEmission = 0.5 | |
1639 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1640 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1641 | for i = 1, 85 do | |
1642 | Swait() | |
1643 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1644 | ChainLink.TextureLength = 12+(i*2) | |
1645 | ApplyAoE(FIST.Position,40,15,20,100,false) | |
1646 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(20,0,20), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1647 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1648 | if HITFLOOR ~= nil then | |
1649 | HITFLOOR:BreakJoints() | |
1650 | coroutine.resume(coroutine.create(function() | |
1651 | for i = 1, 15 do | |
1652 | Swait() | |
1653 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1654 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
1655 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,3,60), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1656 | end | |
1657 | end)) | |
1658 | break | |
1659 | end | |
1660 | end | |
1661 | coroutine.resume(coroutine.create(function() | |
1662 | for i = 1, 50 do | |
1663 | Swait() | |
1664 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1665 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1666 | end | |
1667 | FIST:remove() | |
1668 | end)) | |
1669 | LIGHT:remove() | |
1670 | GYRO:remove() | |
1671 | ATTACK = false | |
1672 | Rooted = false | |
1673 | end | |
1674 | ||
1675 | function WarpMeteor() | |
1676 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1677 | if DIST > 180 then | |
1678 | DIST = 180 | |
1679 | end | |
1680 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1681 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1682 | if HITFLOOR then | |
1683 | local POS = HITPOS | |
1684 | ATTACK = true | |
1685 | Rooted = true | |
1686 | local WARPED = false | |
1687 | local SMASHED = false | |
1688 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1689 | coroutine.resume(coroutine.create(function() | |
1690 | repeat | |
1691 | Swait() | |
1692 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1693 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1694 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1695 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1696 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1697 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1698 | until WARPED == true | |
1699 | repeat | |
1700 | Swait() | |
1701 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1702 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1703 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1704 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1705 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1706 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1707 | until SMASHED == true | |
1708 | repeat | |
1709 | Swait() | |
1710 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1711 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1712 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1713 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1714 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1715 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1716 | until ATTACK == false | |
1717 | end)) | |
1718 | VALUE1 = true | |
1719 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1720 | for i = 1, 25 do | |
1721 | Swait() | |
1722 | for _, c in pairs(Character:GetChildren()) do | |
1723 | if c.ClassName == "Part" then | |
1724 | c.Transparency = c.Transparency + 1/25 | |
1725 | end | |
1726 | end | |
1727 | for _, c in pairs(Weapon:GetChildren()) do | |
1728 | if c.ClassName == "Part" then | |
1729 | c.Transparency = c.Transparency + 1/25 | |
1730 | end | |
1731 | end | |
1732 | end | |
1733 | UNANCHOR = false | |
1734 | RootPart.Anchored = true | |
1735 | RootPart.Velocity = VT(0,0,0) | |
1736 | local ROOTPOS = RootPart.Position | |
1737 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1738 | WARPED = true | |
1739 | for i = 1, 25 do | |
1740 | Swait() | |
1741 | for _, c in pairs(Character:GetChildren()) do | |
1742 | if c.ClassName == "Part" then | |
1743 | c.Transparency = c.Transparency - 1/25 | |
1744 | end | |
1745 | end | |
1746 | for _, c in pairs(Weapon:GetChildren()) do | |
1747 | if c.ClassName == "Part" then | |
1748 | c.Transparency = c.Transparency - 1/25 | |
1749 | end | |
1750 | end | |
1751 | end | |
1752 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0)) | |
1753 | SHELL.CFrame = RootPart.CFrame | |
1754 | MakeForm(SHELL,"Ball") | |
1755 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1756 | for i = 1, 10 do | |
1757 | Swait() | |
1758 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
1759 | SHELL.Size = SHELL.Size + VT(2,2,2)*1.8 | |
1760 | end | |
1761 | for i = 1, math.ceil(75/2) do | |
1762 | Swait() | |
1763 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1764 | SHELL.CFrame = CF(RootPart.Position) | |
1765 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(10,6,10), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1766 | end | |
1767 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1768 | SHELL.CFrame = CF(RootPart.Position) | |
1769 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(100,100,100)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1770 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1771 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1772 | for i = 1, 5 do | |
1773 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(50,5,50)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1774 | end | |
1775 | SHELL:remove() | |
1776 | ApplyAoE(RootPart.Position,75,35,75,300,false) | |
1777 | SMASHED = true | |
1778 | wait(1) | |
1779 | VALUE1 = false | |
1780 | UNANCHOR = true | |
1781 | ATTACK = false | |
1782 | Rooted = false | |
1783 | end | |
1784 | end | |
1785 | ||
1786 | function PandorasBox() | |
1787 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1788 | if HITFLOOR ~= nil then | |
1789 | ATTACK = true | |
1790 | Rooted = true | |
1791 | local RINGSPIN = true | |
1792 | local CONSTRUCTING = true | |
1793 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0)) | |
1794 | RING.Color = C3(0,0,0) | |
1795 | MakeForm(RING,"Cyl") | |
1796 | RING.CFrame = CF(HITPOS) | |
1797 | CreateSound(402981977, RING, 5, 1.2, false) | |
1798 | coroutine.resume(coroutine.create(function() | |
1799 | repeat | |
1800 | Swait() | |
1801 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1802 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1803 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1804 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1805 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1806 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1807 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1808 | until CONSTRUCTING == false | |
1809 | repeat | |
1810 | Swait() | |
1811 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1812 | until RINGSPIN == false | |
1813 | for i = 1, 25 do | |
1814 | Swait() | |
1815 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1816 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1817 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1818 | RING.Transparency = RING.Transparency + 1/25 | |
1819 | end | |
1820 | RING:remove() | |
1821 | end)) | |
1822 | for i = 1, 15 do | |
1823 | Swait() | |
1824 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
1825 | RING.Transparency = RING.Transparency - 1/15 | |
1826 | end | |
1827 | local BOXSPIN = true | |
1828 | local PANDORASBOX = IT("Model",Effects) | |
1829 | PANDORASBOX.Name = "Pandora's Box" | |
1830 | local BOX = IT("Model",PANDORASBOX) | |
1831 | BOX.Name = "Body" | |
1832 | local LID = IT("Model",PANDORASBOX) | |
1833 | LID.Name = "Lid" | |
1834 | --BUILDING THE BOX-- | |
1835 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2)) | |
1836 | BASE.Color = C3(0,0,0) | |
1837 | PANDORASBOX.PrimaryPart = BASE | |
1838 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1839 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1840 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1841 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1842 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1843 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1844 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1845 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1846 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1847 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1848 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1849 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1850 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1851 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1852 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1853 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1854 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1855 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1856 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1857 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1858 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1859 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1860 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1861 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1862 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1863 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1864 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1865 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1866 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
1867 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1868 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
1869 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1870 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
1871 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1872 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
1873 | ------------- | |
1874 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1875 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
1876 | LID.PrimaryPart = LIDPART | |
1877 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1878 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1879 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1880 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1881 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1882 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
1883 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1884 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1885 | local DECAL = IT("Decal",LIDPART) | |
1886 | DECAL.Face = "Top" | |
1887 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
1888 | DECAL.Color3 = C3(0,0,0) | |
1889 | --BUILDING THE BOX-- | |
1890 | coroutine.resume(coroutine.create(function() | |
1891 | repeat | |
1892 | Swait() | |
1893 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
1894 | until BOXSPIN == false | |
1895 | end)) | |
1896 | for i = 1, 25 do | |
1897 | Swait() | |
1898 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1899 | end | |
1900 | wait(0.5) | |
1901 | BOXSPIN = false | |
1902 | CONSTRUCTING = false | |
1903 | coroutine.resume(coroutine.create(function() | |
1904 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6}) | |
1905 | --[[for i = 1, 45 do | |
1906 | Swait() | |
1907 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1908 | end- | |
1909 | LID:remove()]]-- | |
1910 | for _, c in pairs(LID:GetChildren()) do | |
1911 | if c.ClassName == "Part" then | |
1912 | c.Anchored = false | |
1913 | c.CanCollide = true | |
1914 | if c ~= LIDPART then | |
1915 | weldBetween(LIDPART,c) | |
1916 | end | |
1917 | end | |
1918 | end | |
1919 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1920 | Debris:AddItem(LID,15) | |
1921 | wait(0.5) | |
1922 | local RANDOMEFFECT = MRANDOM(1,4) | |
1923 | if RANDOMEFFECT == 1 then | |
1924 | for i = 1, 45 do | |
1925 | wait((2-(i/15))/15) | |
1926 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6}) | |
1927 | end | |
1928 | wait(1) | |
1929 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(70,70,70)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1930 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6}) | |
1931 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1932 | for i = 1, 5 do | |
1933 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,6,60)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1934 | end | |
1935 | ApplyAoE(BASE.Position,50,1,200,375,false) | |
1936 | ApplyAoE(BASE.Position,250,35,75,475,false) | |
1937 | elseif RANDOMEFFECT == 2 then | |
1938 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1939 | FIELD.CFrame = BASE.CFrame | |
1940 | MakeForm(FIELD,"Ball") | |
1941 | for i = 1, 50 do | |
1942 | Swait() | |
1943 | FIELD.Size = FIELD.Size + VT(1,1,1) | |
1944 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1945 | end | |
1946 | wait(0.2) | |
1947 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1948 | coroutine.resume(coroutine.create(function() | |
1949 | for i = 1, 75 do | |
1950 | Swait() | |
1951 | LOOP.Volume = LOOP.Volume + 10/75 | |
1952 | LOOP.Parent = FIELD | |
1953 | local CHILDREN = workspace:GetDescendants() | |
1954 | for index, CHILD in pairs(CHILDREN) do | |
1955 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1956 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1957 | if HUM then | |
1958 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1959 | if TORSO then | |
1960 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1961 | HUM.Health = HUM.Health - 0.1 | |
1962 | TORSO.Velocity = VT(0,5,0) | |
1963 | HUM.PlatformStand = true | |
1964 | if TORSO.RotVelocity.Magnitude < 15 then | |
1965 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1966 | end | |
1967 | end | |
1968 | end | |
1969 | end | |
1970 | end | |
1971 | end | |
1972 | FIELD.Size = FIELD.Size + VT(6,6,6) | |
1973 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1974 | end | |
1975 | for i = 1, 500 do | |
1976 | Swait() | |
1977 | LOOP.Parent = FIELD | |
1978 | local CHILDREN = workspace:GetDescendants() | |
1979 | for index, CHILD in pairs(CHILDREN) do | |
1980 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1981 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1982 | if HUM then | |
1983 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1984 | if TORSO then | |
1985 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1986 | TORSO.Velocity = VT(0,5,0) | |
1987 | HUM.Health = HUM.Health - 0.1 | |
1988 | HUM.PlatformStand = true | |
1989 | if TORSO.RotVelocity.Magnitude < 15 then | |
1990 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1991 | end | |
1992 | end | |
1993 | end | |
1994 | end | |
1995 | end | |
1996 | end | |
1997 | end | |
1998 | for i = 1, 25 do | |
1999 | Swait() | |
2000 | LOOP.Volume = LOOP.Volume + 10/25 | |
2001 | LOOP.Parent = FIELD | |
2002 | local CHILDREN = workspace:GetDescendants() | |
2003 | for index, CHILD in pairs(CHILDREN) do | |
2004 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2005 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2006 | if HUM then | |
2007 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2008 | if TORSO then | |
2009 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
2010 | TORSO.Velocity = VT(0,5,0) | |
2011 | HUM.Health = HUM.Health - 0.1 | |
2012 | HUM.PlatformStand = false | |
2013 | if TORSO.RotVelocity.Magnitude < 15 then | |
2014 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2015 | end | |
2016 | end | |
2017 | end | |
2018 | end | |
2019 | end | |
2020 | end | |
2021 | FIELD.Size = FIELD.Size - VT(9,9,9) | |
2022 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
2023 | end | |
2024 | FIELD:remove() | |
2025 | end)) | |
2026 | elseif RANDOMEFFECT == 3 then | |
2027 | for i = 1, 20 do | |
2028 | wait(0.15) | |
2029 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6}) | |
2030 | coroutine.resume(coroutine.create(function() | |
2031 | local MINION = CLONE:Clone() | |
2032 | MINION.Parent = Effects | |
2033 | MINION.Name = "Shadow" | |
2034 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
2035 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
2036 | for _, c in pairs(MINION:GetChildren()) do | |
2037 | if c.ClassName == "Part" then | |
2038 | c.Material = "Neon" | |
2039 | c.Color = C3(0,0,0) | |
2040 | c.Transparency = 0.25 | |
2041 | if c.Name == "Head" then | |
2042 | c:ClearAllChildren() | |
2043 | local MSH = IT("BlockMesh",c) | |
2044 | MSH.Scale = VT(0.5,1,1) | |
2045 | end | |
2046 | end | |
2047 | end | |
2048 | local TORSO = MINION.Torso | |
2049 | local HUMAN = MINION.Humanoid | |
2050 | HUMAN.WalkSpeed = 20 | |
2051 | HUMAN.MaxHealth = math.huge | |
2052 | HUMAN.Health = math.huge | |
2053 | HUMAN.DisplayDistanceType = "None" | |
2054 | HUMAN.Died:connect(function() | |
2055 | MINION:remove() | |
2056 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
2057 | end) | |
2058 | wait(1) | |
2059 | local findNearestTorso = function(POS) | |
2060 | local list = game.Workspace:GetDescendants() | |
2061 | local torso = nil | |
2062 | local dist = 500 | |
2063 | local temp = nil | |
2064 | local human = nil | |
2065 | local temp2 = nil | |
2066 | for x = 1, #list do | |
2067 | temp2 = list[x] | |
2068 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
2069 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
2070 | human = temp2:findFirstChildOfClass("Humanoid") | |
2071 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
2072 | if (temp.Position - POS).magnitude < dist then | |
2073 | torso = temp | |
2074 | dist = (temp.Position - POS).magnitude | |
2075 | end | |
2076 | end | |
2077 | end | |
2078 | end | |
2079 | return torso, dist | |
2080 | end | |
2081 | for i = 1, 40 do | |
2082 | if HUMAN.Health == 0 then | |
2083 | break | |
2084 | end | |
2085 | wait(0.3) | |
2086 | local target,dist= findNearestTorso(TORSO.Position) | |
2087 | if target then | |
2088 | HUMAN:MoveTo(target.Position) | |
2089 | if dist < 25 then | |
2090 | CreateSound(348663022, TORSO, 10, 1, true) | |
2091 | wait(2) | |
2092 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
2093 | --ANIM:Play() | |
2094 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
2095 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
2096 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10}) | |
2097 | for i = 1, 5 do | |
2098 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2099 | end | |
2100 | break | |
2101 | end | |
2102 | end | |
2103 | end | |
2104 | MINION:remove() | |
2105 | end)) | |
2106 | end | |
2107 | elseif RANDOMEFFECT == 4 then | |
2108 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
2109 | FIELD.Color = C3(0,0,0) | |
2110 | FIELD.CFrame = BASE.CFrame | |
2111 | MakeForm(FIELD,"Ball") | |
2112 | FIELD.CanCollide = true | |
2113 | for i = 1, 50 do | |
2114 | Swait() | |
2115 | FIELD.Size = FIELD.Size + VT(1,1,1) | |
2116 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
2117 | end | |
2118 | wait(0.2) | |
2119 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
2120 | coroutine.resume(coroutine.create(function() | |
2121 | local E = 0 | |
2122 | for i = 1, 75 do | |
2123 | E = E + 1 | |
2124 | Swait() | |
2125 | if E >= 60 then | |
2126 | E = 0 | |
2127 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*80, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
2128 | end | |
2129 | LOOP.Volume = LOOP.Volume + 10/75 | |
2130 | LOOP.Parent = FIELD | |
2131 | local CHILDREN = workspace:GetDescendants() | |
2132 | for index, CHILD in pairs(CHILDREN) do | |
2133 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2134 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2135 | if HUM then | |
2136 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2137 | if TORSO then | |
2138 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
2139 | for _, c in pairs(CHILD:GetChildren()) do | |
2140 | if c:IsA("BasePart") then | |
2141 | local bv = Instance.new("BodyVelocity") | |
2142 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2143 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
2144 | bv.Parent = c | |
2145 | Debris:AddItem(bv,0.05) | |
2146 | end | |
2147 | end | |
2148 | HUM.Health = HUM.Health - 0.3 | |
2149 | end | |
2150 | end | |
2151 | end | |
2152 | end | |
2153 | end | |
2154 | FIELD.Size = FIELD.Size + VT(10,10,10)/5 | |
2155 | end | |
2156 | for i = 1, 180 do | |
2157 | E = E + 1 | |
2158 | Swait() | |
2159 | if E >= 60 then | |
2160 | E = 0 | |
2161 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*60, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
2162 | end | |
2163 | LOOP.Parent = FIELD | |
2164 | local CHILDREN = workspace:GetDescendants() | |
2165 | for index, CHILD in pairs(CHILDREN) do | |
2166 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2167 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2168 | if HUM then | |
2169 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2170 | if TORSO then | |
2171 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
2172 | for _, c in pairs(CHILD:GetChildren()) do | |
2173 | if c:IsA("BasePart") then | |
2174 | local bv = Instance.new("BodyVelocity") | |
2175 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2176 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
2177 | bv.Parent = c | |
2178 | Debris:AddItem(bv,0.05) | |
2179 | end | |
2180 | end | |
2181 | HUM.Health = HUM.Health - 0.3 | |
2182 | end | |
2183 | end | |
2184 | end | |
2185 | end | |
2186 | end | |
2187 | end | |
2188 | ApplyAoE(FIELD.Position,40,100,20,400,false) | |
2189 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6}) | |
2190 | for i = 1, 5 do | |
2191 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2192 | end | |
2193 | FIELD:remove() | |
2194 | end)) | |
2195 | elseif RANDOMEFFECT == 5 then | |
2196 | end | |
2197 | wait(0.5) | |
2198 | for i = 1, 25 do | |
2199 | Swait() | |
2200 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
2201 | end | |
2202 | PANDORASBOX:remove() | |
2203 | RINGSPIN = false | |
2204 | end)) | |
2205 | ATTACK = false | |
2206 | Rooted = false | |
2207 | end | |
2208 | end | |
2209 | ||
2210 | function Taunt() | |
2211 | ATTACK = true | |
2212 | local LAUGH = nil | |
2213 | coroutine.resume(coroutine.create(function() | |
2214 | repeat | |
2215 | Swait() | |
2216 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2217 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2218 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2219 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2220 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2221 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2222 | until LAUGH ~= nil | |
2223 | repeat | |
2224 | Swait() | |
2225 | LAUGH.Parent = Head | |
2226 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2227 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2228 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2229 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2230 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2231 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2232 | until LAUGH.Playing == false | |
2233 | ATTACK = false | |
2234 | end)) | |
2235 | wait(0.1) | |
2236 | sick:Pause() | |
2237 | LAUGH = CreateSound(525166232, Head, 10, 1, false) | |
2238 | wait(1) | |
2239 | sick:Resume() | |
2240 | end | |
2241 | ||
2242 | function Prison_Key() | |
2243 | if Mouse.Target ~= nil then | |
2244 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2245 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2246 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2247 | local GYRO = IT("BodyGyro",RootPart) | |
2248 | GYRO.D = 750 | |
2249 | GYRO.P = 20000 | |
2250 | GYRO.MaxTorque = VT(0,40000000,0) | |
2251 | local grav = Instance.new("BodyPosition",TORSO) | |
2252 | grav.D = 15 | |
2253 | grav.P = 20000 | |
2254 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2255 | grav.position = TORSO.Position | |
2256 | local GYRO2 = IT("BodyGyro",TORSO) | |
2257 | GYRO2.D = 750 | |
2258 | GYRO2.P = 20000 | |
2259 | GYRO2.MaxTorque = VT(0,40000000,0) | |
2260 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2261 | grav.Name = "Jail" | |
2262 | local LOCKPARTS = {} | |
2263 | ATTACK = true | |
2264 | Rooted = false | |
2265 | local LOCK = IT("Model",Effects) | |
2266 | LOCK.Name = "Lock" | |
2267 | local LOCK2 = IT("Model",LOCK) | |
2268 | LOCK2.Name = "Metal" | |
2269 | --CREATE LOCK-- | |
2270 | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) | |
2271 | LOCK.PrimaryPart = BASE | |
2272 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
2273 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) | |
2274 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2275 | MakeForm(PRT,"Cyl") | |
2276 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) | |
2277 | PRT.Color = C3(0,0,0) | |
2278 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2279 | MakeForm(PRT,"Cyl") | |
2280 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) | |
2281 | PRT.Color = C3(0,0,0) | |
2282 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
2283 | for i = 1, 45 do | |
2284 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2285 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
2286 | end | |
2287 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2288 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
2289 | LOCK2.PrimaryPart = PRT | |
2290 | --------------- | |
2291 | local CHILDREN = LOCK:GetDescendants() | |
2292 | for index, CHILD in pairs(CHILDREN) do | |
2293 | if CHILD:IsA("BasePart") then | |
2294 | CHILD.Transparency = 1 | |
2295 | end | |
2296 | end | |
2297 | for i = 1, 75 do | |
2298 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
2299 | Swait() | |
2300 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2301 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2302 | local CHILDREN = LOCK:GetDescendants() | |
2303 | for index, CHILD in pairs(CHILDREN) do | |
2304 | if CHILD:IsA("BasePart") then | |
2305 | CHILD.Transparency = CHILD.Transparency - 1/75 | |
2306 | end | |
2307 | end | |
2308 | end | |
2309 | HUM.DisplayDistanceType = "None" | |
2310 | local KEY = IT("Model",Effects) | |
2311 | KEY.Name = "Key" | |
2312 | --CREATE KEY-- | |
2313 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false) | |
2314 | KEY.PrimaryPart = KBASE | |
2315 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
2316 | local WLD = weldBetween(RightArm,KBASE) | |
2317 | for i = 1, 45 do | |
2318 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false) | |
2319 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
2320 | weldBetween(KBASE,PRT) | |
2321 | end | |
2322 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false) | |
2323 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
2324 | weldBetween(KBASE,PRT) | |
2325 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false) | |
2326 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
2327 | weldBetween(KBASE,PRT) | |
2328 | -------------- | |
2329 | Rooted = true | |
2330 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
2331 | coroutine.resume(coroutine.create(function() | |
2332 | for i = 1, 10 do | |
2333 | Swait() | |
2334 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2335 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2336 | end | |
2337 | CreateSound(1149318312,BASE,5,1,false) | |
2338 | CreateSound(160772554,BASE,3,1,false) | |
2339 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
2340 | for i = 1, 4 do | |
2341 | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2342 | end | |
2343 | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2344 | wait(1) | |
2345 | TORSO.Parent.Parent = LOCK | |
2346 | for i = 1, 75 do | |
2347 | Swait() | |
2348 | local CHILDREN = KEY:GetDescendants() | |
2349 | for index, CHILD in pairs(CHILDREN) do | |
2350 | if CHILD:IsA("BasePart") then | |
2351 | CHILD.Transparency = i/25 | |
2352 | end | |
2353 | end | |
2354 | local CHILDREN = LOCK:GetDescendants() | |
2355 | for index, CHILD in pairs(CHILDREN) do | |
2356 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
2357 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2358 | elseif CHILD.ClassName == "Decal" then | |
2359 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2360 | end | |
2361 | end | |
2362 | end | |
2363 | TORSO.Parent:ClearAllChildren() | |
2364 | KEY:remove() | |
2365 | LOCK:remove() | |
2366 | end)) | |
2367 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
2368 | GYRO:remove() | |
2369 | ATTACK = false | |
2370 | Rooted = false | |
2371 | end | |
2372 | end | |
2373 | end | |
2374 | ||
2375 | function RavagingOverthrower() | |
2376 | ATTACK = true | |
2377 | Rooted = true | |
2378 | for i=0, 1, 0.1 / Animation_Speed do | |
2379 | Swait() | |
2380 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2381 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2382 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2383 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2384 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2385 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2386 | end | |
2387 | CreateSound("348663022", Torso, 5, 1) | |
2388 | local StartPos = RootPart.CFrame * CF(0,10,0).p | |
2389 | for i = 1, 5 do | |
2390 | MagicSphere2(25,25,CF(StartPos),"Royal purple") | |
2391 | Swait(15) | |
2392 | end | |
2393 | local soundeffect = IT("Sound",Torso) | |
2394 | soundeffect.SoundId = "rbxassetid://487186990" | |
2395 | soundeffect.Looped = true | |
2396 | soundeffect.Volume = 10 | |
2397 | soundeffect.Playing = true | |
2398 | repeat | |
2399 | turnto(Mouse.Hit.p) | |
2400 | MagicSphere2(25,25,CF(StartPos),"Royal purple") | |
2401 | MagicSphere(25/10,25,CF(StartPos),"Royal purple") | |
2402 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
2403 | local distance = (StartPos - RayPos).magnitude | |
2404 | local RayBeam = IT("Part",Effects) | |
2405 | RayBeam.Material = "Neon" | |
2406 | RayBeam.Anchored = true | |
2407 | RayBeam.BrickColor = BRICKC"Royal purple" | |
2408 | local mesh = IT("SpecialMesh",RayBeam) | |
2409 | mesh.MeshType = "Cylinder" | |
2410 | RayBeam.Size = Vector3.new(distance+10, 5, 5) | |
2411 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
2412 | MagicSphere(15,5,CF(RayPos),"Royal purple") | |
2413 | killnearest(RayPos,15,100) | |
2414 | for i = 1, 3 do | |
2415 | CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
2416 | end | |
2417 | Swait() | |
2418 | if KEYHOLD == false then | |
2419 | coroutine.resume(coroutine.create(function() | |
2420 | for i = 1, 5 do | |
2421 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
2422 | Swait() | |
2423 | end | |
2424 | RayBeam:remove() | |
2425 | end)) | |
2426 | else | |
2427 | RayBeam:remove() | |
2428 | end | |
2429 | until KEYHOLD == false | |
2430 | soundeffect:remove() | |
2431 | ATTACK = false | |
2432 | Rooted = false | |
2433 | end | |
2434 | ||
2435 | ||
2436 | --//=================================\\ | |
2437 | --|| ASSIGN THINGS TO KEYS | |
2438 | --\\=================================// | |
2439 | ||
2440 | function MouseDown(Mouse) | |
2441 | HOLD = true | |
2442 | if ATTACK == false then | |
2443 | end | |
2444 | end | |
2445 | ||
2446 | function MouseUp(Mouse) | |
2447 | HOLD = false | |
2448 | end | |
2449 | ||
2450 | function KeyDown(Key) | |
2451 | KEYHOLD = true | |
2452 | if Key == "z" and ATTACK == false then | |
2453 | MagicMissiles() | |
2454 | end | |
2455 | ||
2456 | if Key == "b" and ATTACK == false then | |
2457 | TimesUp() | |
2458 | end | |
2459 | ||
2460 | if Key == "c" and ATTACK == false then | |
2461 | ChainPunch() | |
2462 | end | |
2463 | ||
2464 | if Key == "v" and ATTACK == false then | |
2465 | WarpMeteor() | |
2466 | end | |
2467 | ||
2468 | if Key == "x" and ATTACK == false then | |
2469 | PandorasBox() | |
2470 | end | |
2471 | ||
2472 | if Key == "t" and ATTACK == false then | |
2473 | Taunt() | |
2474 | end | |
2475 | ||
2476 | if Key == "q" and ATTACK == false then | |
2477 | Prison_Key() | |
2478 | end | |
2479 | ||
2480 | if Key == "e" and ATTACK == false then | |
2481 | RavagingOverthrower() | |
2482 | end | |
2483 | if Key == "r" and ATTACK == false then | |
2484 | end | |
2485 | end | |
2486 | ||
2487 | function KeyUp(Key) | |
2488 | KEYHOLD = false | |
2489 | end | |
2490 | ||
2491 | Mouse.Button1Down:connect(function(NEWKEY) | |
2492 | MouseDown(NEWKEY) | |
2493 | end) | |
2494 | Mouse.Button1Up:connect(function(NEWKEY) | |
2495 | MouseUp(NEWKEY) | |
2496 | end) | |
2497 | Mouse.KeyDown:connect(function(NEWKEY) | |
2498 | KeyDown(NEWKEY) | |
2499 | end) | |
2500 | Mouse.KeyUp:connect(function(NEWKEY) | |
2501 | KeyUp(NEWKEY) | |
2502 | end) | |
2503 | ||
2504 | --//=================================\\ | |
2505 | --\\=================================// | |
2506 | ||
2507 | ||
2508 | function unanchor() | |
2509 | if UNANCHOR == true then | |
2510 | RootPart.Anchored = false | |
2511 | end | |
2512 | g = Character:GetChildren() | |
2513 | for i = 1, #g do | |
2514 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2515 | g[i].Anchored = false | |
2516 | end | |
2517 | end | |
2518 | g = Weapon:GetChildren() | |
2519 | for i = 1, #g do | |
2520 | if g[i].ClassName == "Part" then | |
2521 | g[i].Anchored = false | |
2522 | end | |
2523 | end | |
2524 | end | |
2525 | ||
2526 | ||
2527 | --//=================================\\ | |
2528 | --|| WRAP THE WHOLE SCRIPT UP | |
2529 | --\\=================================// | |
2530 | ||
2531 | Humanoid.Changed:connect(function(Jump) | |
2532 | if Jump == "Jump" and (Disable_Jump == true) then | |
2533 | Humanoid.Jump = false | |
2534 | end | |
2535 | end) | |
2536 | ||
2537 | while true do | |
2538 | Swait() | |
2539 | script.Parent = WEAPONGUI | |
2540 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2541 | v:Stop(); | |
2542 | end | |
2543 | ANIMATE.Parent = nil | |
2544 | SINE = SINE + CHANGE*1.5 | |
2545 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2546 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2547 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2548 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2549 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2550 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2551 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2552 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2553 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2554 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2555 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2556 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2557 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2558 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2559 | end | |
2560 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2561 | ANIM = "Jump" | |
2562 | if ATTACK == false then | |
2563 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2564 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2565 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2566 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2567 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2568 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2569 | end | |
2570 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2571 | ANIM = "Fall" | |
2572 | if ATTACK == false then | |
2573 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2574 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2575 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2576 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2577 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2578 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2579 | end | |
2580 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2581 | ANIM = "Idle" | |
2582 | if ATTACK == false then | |
2583 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2584 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2585 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2586 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2587 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2588 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2589 | end | |
2590 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2591 | ANIM = "Walk" | |
2592 | if ATTACK == false then | |
2593 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2594 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2595 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2596 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2597 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2598 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2599 | end | |
2600 | end | |
2601 | unanchor() | |
2602 | Humanoid.MaxHealth = "inf" | |
2603 | Humanoid.Health = "inf" | |
2604 | if Rooted == false then | |
2605 | Disable_Jump = false | |
2606 | Humanoid.WalkSpeed = Speed | |
2607 | elseif Rooted == true then | |
2608 | Disable_Jump = true | |
2609 | Humanoid.WalkSpeed = 0 | |
2610 | end | |
2611 | for _, c in pairs(Character:GetChildren()) do | |
2612 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2613 | c.Material = "Fabric" | |
2614 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2615 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2616 | end | |
2617 | if c ~= Head then | |
2618 | c.Color = C3(0,0,0) | |
2619 | else | |
2620 | c.Color = C3(1,1,1) | |
2621 | end | |
2622 | if c == Head then | |
2623 | if c:FindFirstChild("face") then | |
2624 | c.face:remove() | |
2625 | end | |
2626 | end | |
2627 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2628 | c:remove() | |
2629 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2630 | c:remove() | |
2631 | end | |
2632 | end | |
2633 | sick.SoundId = "rbxassetid://"..SONG | |
2634 | sick.Looped = true | |
2635 | sick.Pitch = 1 | |
2636 | sick.Volume = 5 | |
2637 | sick.Parent = Torso | |
2638 | sick:Resume() | |
2639 | --sick.Playing = false | |
2640 | Humanoid.Name = "Pandora = "..Player.Name | |
2641 | end | |
2642 | ||
2643 | --//=================================\\ | |
2644 | --\\=================================// | |
2645 | ||
2646 | ||
2647 | ||
2648 | ||
2649 | ||
2650 | --//====================================================\\-- | |
2651 | --|| END OF SCRIPT | |
2652 | --\\====================================================//-- |