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