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