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