SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | wait(0.2) | |
6 | ||
7 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
8 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
9 | local RealPlayer = Player | |
10 | 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 | |
11 | ||
12 | Player = owner | |
13 | PlayerGui = Player.PlayerGui | |
14 | Cam = workspace.CurrentCamera | |
15 | Backpack = Player.Backpack | |
16 | Character = Player.Character | |
17 | Humanoid = Character.Humanoid | |
18 | Mouse = Player:GetMouse() | |
19 | RootPart = Character["HumanoidRootPart"] | |
20 | Torso = Character["Torso"] | |
21 | Head = Character["Head"] | |
22 | RightArm = Character["Right Arm"] | |
23 | LeftArm = Character["Left Arm"] | |
24 | RightLeg = Character["Right Leg"] | |
25 | LeftLeg = Character["Left Leg"] | |
26 | RootJoint = RootPart["RootJoint"] | |
27 | Neck = Torso["Neck"] | |
28 | RightShoulder = Torso["Right Shoulder"] | |
29 | LeftShoulder = Torso["Left Shoulder"] | |
30 | RightHip = Torso["Right Hip"] | |
31 | LeftHip = Torso["Left Hip"] | |
32 | Character.Archivable = true | |
33 | Player:ClearCharacterAppearance() | |
34 | ||
35 | IT = Instance.new | |
36 | CF = CFrame.new | |
37 | VT = Vector3.new | |
38 | RAD = math.rad | |
39 | C3 = Color3.new | |
40 | UD2 = UDim2.new | |
41 | BRICKC = BrickColor.new | |
42 | ANGLES = CFrame.Angles | |
43 | EULER = CFrame.fromEulerAnglesXYZ | |
44 | COS = math.cos | |
45 | ACOS = math.acos | |
46 | SIN = math.sin | |
47 | ASIN = math.asin | |
48 | ABS = math.abs | |
49 | MRANDOM = math.random | |
50 | FLOOR = math.floor | |
51 | ||
52 | --//=================================\\ | |
53 | --|| USEFUL VALUES | |
54 | --\\=================================// | |
55 | ||
56 | Animation_Speed = 3 | |
57 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
58 | local Speed = 20 | |
59 | local SIZE = 1 | |
60 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
61 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
62 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
63 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
64 | local DAMAGEMULTIPLIER = 1 | |
65 | local ANIM = "Idle" | |
66 | local ATTACK = false | |
67 | local EQUIPPED = false | |
68 | local HOLD = false | |
69 | local COMBO = 1 | |
70 | local Rooted = false | |
71 | local SINE = 0 | |
72 | local KEYHOLD = false | |
73 | local CHANGE = 2 / Animation_Speed | |
74 | local WALKINGANIM = false | |
75 | local VALUE1 = false | |
76 | local VALUE2 = false | |
77 | local ROBLOXIDLEANIMATION = IT("Animation") | |
78 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
79 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
80 | local ATANIM = IT("Animation") | |
81 | ATANIM.Name = "Attack Animation" | |
82 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
83 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
84 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
85 | WEAPONGUI.Name = "Weapon GUI" | |
86 | local Weapon = IT("Model") | |
87 | Weapon.Name = "Adds" | |
88 | local Effects = IT("Folder", Weapon) | |
89 | Effects.Name = "Effects" | |
90 | local ANIMATOR = Humanoid.Animator | |
91 | local ANIMATE = Character.Animate | |
92 | local UNANCHOR = true | |
93 | local CLOCKLOOP = 0 | |
94 | local SONG = 621130660 | |
95 | local CLOCKTARGET = nil | |
96 | local CLOCKSPEED = 1 | |
97 | script.Parent = WEAPONGUI | |
98 | local CLONE = Character:Clone() | |
99 | CLONE.Parent = nil | |
100 | Character.Archivable = false | |
101 | local sick = Instance.new("Sound",Torso) | |
102 | ||
103 | --//=================================\\ | |
104 | --\\=================================// | |
105 | ||
106 | ||
107 | --//=================================\\ | |
108 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
109 | --\\=================================// | |
110 | ||
111 | ArtificialHB = Instance.new("BindableEvent", script) | |
112 | ArtificialHB.Name = "ArtificialHB" | |
113 | ||
114 | script:WaitForChild("ArtificialHB") | |
115 | ||
116 | frame = Frame_Speed | |
117 | tf = 0 | |
118 | allowframeloss = false | |
119 | tossremainder = false | |
120 | lastframe = tick() | |
121 | script.ArtificialHB:Fire() | |
122 | ||
123 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
123 | + | game:GetService("RunService").Stepped:connect(function(s, p) |
124 | tf = tf + s | |
125 | if tf >= frame then | |
126 | if allowframeloss then | |
127 | script.ArtificialHB:Fire() | |
128 | lastframe = tick() | |
129 | else | |
130 | for i = 1, math.floor(tf / frame) do | |
131 | script.ArtificialHB:Fire() | |
132 | end | |
133 | lastframe = tick() | |
134 | end | |
135 | if tossremainder then | |
136 | tf = 0 | |
137 | else | |
138 | tf = tf - frame * math.floor(tf / frame) | |
139 | end | |
140 | end | |
141 | end) | |
142 | ||
143 | --//=================================\\ | |
144 | --\\=================================// | |
145 | ||
146 | --//=================================\\ | |
147 | --|| SOME FUNCTIONS | |
148 | --\\=================================// | |
149 | ||
150 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
151 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
152 | end | |
153 | ||
154 | function PositiveAngle(NUMBER) | |
155 | if NUMBER >= 0 then | |
156 | NUMBER = 0 | |
157 | end | |
158 | return NUMBER | |
159 | end | |
160 | ||
161 | function NegativeAngle(NUMBER) | |
162 | if NUMBER <= 0 then | |
163 | NUMBER = 0 | |
164 | end | |
165 | return NUMBER | |
166 | end | |
167 | ||
168 | function Swait(NUMBER) | |
169 | if NUMBER == 0 or NUMBER == nil then | |
170 | ArtificialHB.Event:wait() | |
171 | else | |
172 | for i = 1, NUMBER do | |
173 | ArtificialHB.Event:wait() | |
174 | end | |
175 | end | |
176 | end | |
177 | ||
178 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
179 | local NEWMESH = IT(MESH) | |
180 | if MESH == "SpecialMesh" then | |
181 | NEWMESH.MeshType = MESHTYPE | |
182 | if MESHID ~= "nil" and MESHID ~= "" then | |
183 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
184 | end | |
185 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
186 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
187 | end | |
188 | end | |
189 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
190 | NEWMESH.Scale = SCALE | |
191 | NEWMESH.Parent = PARENT | |
192 | return NEWMESH | |
193 | end | |
194 | ||
195 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
196 | local NEWPART = IT("Part") | |
197 | NEWPART.formFactor = FORMFACTOR | |
198 | NEWPART.Reflectance = REFLECTANCE | |
199 | NEWPART.Transparency = TRANSPARENCY | |
200 | NEWPART.CanCollide = false | |
201 | NEWPART.Locked = true | |
202 | NEWPART.Anchored = true | |
203 | if ANCHOR == false then | |
204 | NEWPART.Anchored = false | |
205 | end | |
206 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
207 | NEWPART.Name = NAME | |
208 | NEWPART.Size = SIZE | |
209 | NEWPART.Position = Torso.Position | |
210 | NEWPART.Material = MATERIAL | |
211 | NEWPART:BreakJoints() | |
212 | NEWPART.Parent = PARENT | |
213 | return NEWPART | |
214 | end | |
215 | ||
216 | local function weldBetween(a, b) | |
217 | local weldd = Instance.new("ManualWeld") | |
218 | weldd.Part0 = a | |
219 | weldd.Part1 = b | |
220 | weldd.C0 = CFrame.new() | |
221 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
222 | weldd.Parent = a | |
223 | return weldd | |
224 | end | |
225 | ||
226 | ||
227 | function QuaternionFromCFrame(cf) | |
228 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
229 | local trace = m00 + m11 + m22 | |
230 | if trace > 0 then | |
231 | local s = math.sqrt(1 + trace) | |
232 | local recip = 0.5 / s | |
233 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
234 | else | |
235 | local i = 0 | |
236 | if m11 > m00 then | |
237 | i = 1 | |
238 | end | |
239 | if m22 > (i == 0 and m00 or m11) then | |
240 | i = 2 | |
241 | end | |
242 | if i == 0 then | |
243 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
244 | local recip = 0.5 / s | |
245 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
246 | elseif i == 1 then | |
247 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
248 | local recip = 0.5 / s | |
249 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
250 | elseif i == 2 then | |
251 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
252 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
253 | end | |
254 | end | |
255 | end | |
256 | ||
257 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
258 | local xs, ys, zs = x + x, y + y, z + z | |
259 | local wx, wy, wz = w * xs, w * ys, w * zs | |
260 | local xx = x * xs | |
261 | local xy = x * ys | |
262 | local xz = x * zs | |
263 | local yy = y * ys | |
264 | local yz = y * zs | |
265 | local zz = z * zs | |
266 | 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)) | |
267 | end | |
268 | ||
269 | function QuaternionSlerp(a, b, t) | |
270 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
271 | local startInterp, finishInterp; | |
272 | if cosTheta >= 0.0001 then | |
273 | if (1 - cosTheta) > 0.0001 then | |
274 | local theta = ACOS(cosTheta) | |
275 | local invSinTheta = 1 / SIN(theta) | |
276 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
277 | finishInterp = SIN(t * theta) * invSinTheta | |
278 | else | |
279 | startInterp = 1 - t | |
280 | finishInterp = t | |
281 | end | |
282 | else | |
283 | if (1 + cosTheta) > 0.0001 then | |
284 | local theta = ACOS(-cosTheta) | |
285 | local invSinTheta = 1 / SIN(theta) | |
286 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
287 | finishInterp = SIN(t * theta) * invSinTheta | |
288 | else | |
289 | startInterp = t - 1 | |
290 | finishInterp = t | |
291 | end | |
292 | end | |
293 | 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 | |
294 | end | |
295 | ||
296 | function Clerp(a, b, t) | |
297 | local qa = {QuaternionFromCFrame(a)} | |
298 | local qb = {QuaternionFromCFrame(b)} | |
299 | local ax, ay, az = a.x, a.y, a.z | |
300 | local bx, by, bz = b.x, b.y, b.z | |
301 | local _t = 1 - t | |
302 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
303 | end | |
304 | ||
305 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
306 | local frame = IT("Frame") | |
307 | frame.BackgroundTransparency = TRANSPARENCY | |
308 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
309 | frame.Position = POSITION | |
310 | frame.Size = SIZE | |
311 | frame.BackgroundColor3 = COLOR | |
312 | frame.BorderColor3 = BORDERCOLOR | |
313 | frame.Name = NAME | |
314 | frame.Parent = PARENT | |
315 | return frame | |
316 | end | |
317 | ||
318 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
319 | local label = IT("TextLabel") | |
320 | label.BackgroundTransparency = 1 | |
321 | label.Size = UD2(1, 0, 1, 0) | |
322 | label.Position = UD2(0, 0, 0, 0) | |
323 | label.TextColor3 = TEXTCOLOR | |
324 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
325 | label.TextTransparency = TRANSPARENCY | |
326 | label.FontSize = TEXTFONTSIZE | |
327 | label.Font = TEXTFONT | |
328 | label.BorderSizePixel = BORDERSIZEPIXEL | |
329 | label.TextStrokeColor3 = C3(1,1,1) | |
330 | label.TextScaled = false | |
331 | label.Text = TEXT | |
332 | label.Name = NAME | |
333 | label.Parent = PARENT | |
334 | return label | |
335 | end | |
336 | ||
337 | function NoOutlines(PART) | |
338 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
339 | end | |
340 | ||
341 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
342 | local NEWWELD = IT(TYPE) | |
343 | NEWWELD.Part0 = PART0 | |
344 | NEWWELD.Part1 = PART1 | |
345 | NEWWELD.C0 = C0 | |
346 | NEWWELD.C1 = C1 | |
347 | NEWWELD.Parent = PARENT | |
348 | return NEWWELD | |
349 | end | |
350 | ||
351 | local S = IT("Sound") | |
352 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
353 | local NEWSOUND = nil | |
354 | coroutine.resume(coroutine.create(function() | |
355 | NEWSOUND = S:Clone() | |
356 | NEWSOUND.Parent = PARENT | |
357 | NEWSOUND.Volume = VOLUME | |
358 | NEWSOUND.Pitch = PITCH | |
359 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
360 | NEWSOUND:play() | |
361 | if DOESLOOP == true then | |
362 | NEWSOUND.Looped = true | |
363 | else | |
364 | repeat wait(1) until NEWSOUND.Playing == false | |
365 | NEWSOUND:remove() | |
366 | end | |
367 | end)) | |
368 | return NEWSOUND | |
369 | end | |
370 | ||
371 | function CFrameFromTopBack(at, top, back) | |
372 | local right = top:Cross(back) | |
373 | 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) | |
374 | end | |
375 | ||
376 | --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}) | |
377 | function WACKYEFFECT(Table) | |
378 | local TYPE = (Table.EffectType or "Sphere") | |
379 | local SIZE = (Table.Size or VT(1,1,1)) | |
380 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
381 | local TRANSPARENCY = (Table.Transparency or 0) | |
382 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
383 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
384 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
385 | local ROTATION1 = (Table.RotationX or 0) | |
386 | local ROTATION2 = (Table.RotationY or 0) | |
387 | local ROTATION3 = (Table.RotationZ or 0) | |
388 | local MATERIAL = (Table.Material or "Neon") | |
389 | local COLOR = (Table.Color or C3(1,1,1)) | |
390 | local TIME = (Table.Time or 45) | |
391 | local SOUNDID = (Table.SoundID or nil) | |
392 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
393 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
394 | coroutine.resume(coroutine.create(function() | |
395 | local PLAYSSOUND = false | |
396 | local SOUND = nil | |
397 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
398 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
399 | PLAYSSOUND = true | |
400 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
401 | end | |
402 | EFFECT.Color = COLOR | |
403 | local MSH = nil | |
404 | if TYPE == "Sphere" then | |
405 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
406 | elseif TYPE == "Block" then | |
407 | MSH = IT("BlockMesh",EFFECT) | |
408 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
409 | elseif TYPE == "Wave" then | |
410 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", SIZE, VT(0,0,-SIZE.X/8)) | |
411 | elseif TYPE == "Ring" then | |
412 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
413 | elseif TYPE == "Slash" then | |
414 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
415 | elseif TYPE == "Round Slash" then | |
416 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
417 | elseif TYPE == "Swirl" then | |
418 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", SIZE, VT(0,0,0)) | |
419 | elseif TYPE == "Skull" then | |
420 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", SIZE, VT(0,0,0)) | |
421 | elseif TYPE == "Crystal" then | |
422 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "0", "", SIZE, VT(0,0,0)) | |
423 | end | |
424 | if MSH ~= nil then | |
425 | local MOVESPEED = nil | |
426 | if MOVEDIRECTION ~= nil then | |
427 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
428 | end | |
429 | local GROWTH = SIZE - ENDSIZE | |
430 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
431 | if TYPE == "Block" then | |
432 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
433 | else | |
434 | EFFECT.CFrame = CFRAME | |
435 | end | |
436 | for LOOP = 1, TIME+1 do | |
437 | Swait() | |
438 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
439 | if TYPE == "Wave" then | |
440 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
441 | end | |
442 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
443 | if TYPE == "Block" then | |
444 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
445 | else | |
446 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
447 | end | |
448 | if MOVEDIRECTION ~= nil then | |
449 | local ORI = EFFECT.Orientation | |
450 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
451 | EFFECT.Orientation = ORI | |
452 | end | |
453 | end | |
454 | if PLAYSSOUND == false then | |
455 | EFFECT:remove() | |
456 | else | |
457 | repeat Swait() until SOUND.Playing == false | |
458 | EFFECT:remove() | |
459 | end | |
460 | else | |
461 | if PLAYSSOUND == false then | |
462 | EFFECT:remove() | |
463 | else | |
464 | repeat Swait() until SOUND.Playing == false | |
465 | EFFECT:remove() | |
466 | end | |
467 | end | |
468 | end)) | |
469 | end | |
470 | ||
471 | function MakeForm(PART,TYPE) | |
472 | if TYPE == "Cyl" then | |
473 | local MSH = IT("CylinderMesh",PART) | |
474 | elseif TYPE == "Ball" then | |
475 | local MSH = IT("SpecialMesh",PART) | |
476 | MSH.MeshType = "Sphere" | |
477 | elseif TYPE == "Wedge" then | |
478 | local MSH = IT("SpecialMesh",PART) | |
479 | MSH.MeshType = "Wedge" | |
480 | end | |
481 | end | |
482 | ||
483 | Debris = game:GetService("Debris") | |
484 | ||
485 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
486 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
487 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
488 | end | |
489 | ||
490 | function turnto(position) | |
491 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
492 | end | |
493 | ||
494 | --//=================================\\ | |
495 | --|| WEAPON CREATION | |
496 | --\\=================================// | |
497 | ||
498 | RootPart.Size = RootPart.Size*SIZE | |
499 | Torso.Size = Torso.Size*SIZE | |
500 | RightArm.Size = RightArm.Size*SIZE | |
501 | RightLeg.Size = RightLeg.Size*SIZE | |
502 | LeftArm.Size = LeftArm.Size*SIZE | |
503 | LeftLeg.Size = LeftLeg.Size*SIZE | |
504 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
505 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
506 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
507 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
508 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
509 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
510 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
511 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
512 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
513 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
514 | Head.Size = Head.Size*SIZE | |
515 | RootJoint.Parent = RootPart | |
516 | Neck.Parent = Torso | |
517 | RightShoulder.Parent = Torso | |
518 | LeftShoulder.Parent = Torso | |
519 | RightHip.Parent = Torso | |
520 | LeftHip.Parent = Torso | |
521 | ||
522 | local naeeym2 = IT("BillboardGui",Character) | |
523 | naeeym2.AlwaysOnTop = true | |
524 | naeeym2.Size = UDim2.new(5,35,2,15) | |
525 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
526 | naeeym2.MaxDistance = 75 | |
527 | naeeym2.Adornee = Character.Head | |
528 | naeeym2.Name = "Name" | |
529 | local top = Instance.new("Shirt") | |
530 | top.ShirtTemplate = "rbxassetid://99405261" | |
531 | top.Parent = Character | |
532 | top.Name = "Cloth" | |
533 | local bottom = Instance.new("Pants") | |
534 | bottom.PantsTemplate = "rbxassetid://99405318" | |
535 | bottom.Parent = Character | |
536 | bottom.Name = "Cloth" | |
537 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(0.1,0.1,0.1),false) | |
538 | PRT.Color = C3(0,0,0) | |
539 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.1,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0,-0.5,0.2)) | |
540 | CreateMesh("SpecialMesh", PRT, "FileMesh", "3088871166", "", VT(1,1,1), VT(0,0,0)) | |
541 | ||
542 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
543 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
544 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
545 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
546 | MakeForm(PRT,"Cyl") | |
547 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
548 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
549 | MakeForm(PRT,"Cyl") | |
550 | PRT.Color = C3(159/255, 111/255, 183/255) | |
551 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
552 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
553 | MakeForm(RING,"Cyl") | |
554 | RING.Color = C3(0,0,0) | |
555 | for i = 1, 12 do | |
556 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
557 | PRT.Color = C3(0,0,0) | |
558 | local MSH = IT("BlockMesh",PRT) | |
559 | MSH.Scale = VT(0.6,1,1) | |
560 | 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)) | |
561 | end | |
562 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
563 | PRT.Color = C3(0,0,0) | |
564 | local MSH = IT("BlockMesh",PRT) | |
565 | MSH.Scale = VT(0.4,1,1) | |
566 | 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)) | |
567 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
568 | PRT.Color = C3(0,0,0) | |
569 | local MSH = IT("BlockMesh",PRT) | |
570 | MSH.Scale = VT(0.4,1,1) | |
571 | 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)) | |
572 | coroutine.resume(coroutine.create(function() | |
573 | while true do | |
574 | Swait() | |
575 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
576 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
577 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
578 | if CLOCKLOOP <= -150 then | |
579 | if VALUE1 == false then | |
580 | CLOCKLOOP = 0 | |
581 | 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 = 0, SoundPitch = 1.2, SoundVolume = 4}) | |
582 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
583 | ApplyAoE(HITPOS,10,15,45,75,false) | |
584 | 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}) | |
585 | 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}) | |
586 | if CLOCKTARGET ~= nil then | |
587 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
588 | if CLOCKTARGET.Torso ~= nil then | |
589 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
590 | end | |
591 | if CLOCKTARGET.Health == 0 then | |
592 | CLOCKTARGET = nil | |
593 | end | |
594 | end | |
595 | end | |
596 | end | |
597 | end | |
598 | end)) | |
599 | ||
600 | for _, c in pairs(Weapon:GetChildren()) do | |
601 | if c.ClassName == "Part" then | |
602 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
603 | end | |
604 | end | |
605 | ||
606 | Neck.Name = "Weld" | |
607 | RootJoint.Name = "Weld" | |
608 | RightShoulder.Name = "Weld" | |
609 | LeftShoulder.Name = "Weld" | |
610 | RightHip.Name = "Weld" | |
611 | LeftHip.Name = "Weld" | |
612 | ||
613 | local SKILLTEXTCOLOR = C3(159/255, 111/255, 183/255) | |
614 | local SKILLFONT = "Fantasy" | |
615 | local SKILLTEXTSIZE = 7 | |
616 | ||
617 | Weapon.Parent = Character | |
618 | Humanoid.Parent = Character | |
619 | ||
620 | Humanoid.Died:connect(function() | |
621 | ATTACK = true | |
622 | end) | |
623 | ||
624 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
625 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
626 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
627 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
628 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
629 | ||
630 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
631 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
632 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
633 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
634 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
635 | ||
636 | --//=================================\\ | |
637 | --|| DAMAGING | |
638 | --\\=================================// | |
639 | ||
640 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
641 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
642 | defence.Name = ("HitBy"..Player.Name) | |
643 | game:GetService("Debris"):AddItem(defence, 0.001) | |
644 | Damage = Damage * DAMAGEMULTIPLIER | |
645 | if Humanoid.Health ~= 0 then | |
646 | local CritChance = MRANDOM(1,100) | |
647 | if Damage > Humanoid.Health then | |
648 | Damage = math.ceil(Humanoid.Health) | |
649 | if Damage == 0 then | |
650 | Damage = 0.1 | |
651 | end | |
652 | end | |
653 | Humanoid.Health = Humanoid.Health - Damage | |
654 | end | |
655 | end | |
656 | ||
657 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
658 | local CHILDREN = workspace:GetDescendants() | |
659 | for index, CHILD in pairs(CHILDREN) do | |
660 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
661 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
662 | if HUM then | |
663 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
664 | if TORSO then | |
665 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
666 | if INSTAKILL == true then | |
667 | CHILD:BreakJoints() | |
668 | else | |
669 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
670 | ApplyDamage(HUM,DMG,TORSO) | |
671 | end | |
672 | if FLING > 0 then | |
673 | for _, c in pairs(CHILD:GetChildren()) do | |
674 | if c:IsA("BasePart") then | |
675 | local bv = Instance.new("BodyVelocity") | |
676 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
677 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
678 | bv.Parent = c | |
679 | Debris:AddItem(bv,0.05) | |
680 | end | |
681 | end | |
682 | end | |
683 | end | |
684 | end | |
685 | end | |
686 | end | |
687 | end | |
688 | end | |
689 | ||
690 | --//=================================\\ | |
691 | --|| ATTACK FUNCTIONS AND STUFF | |
692 | --\\=================================// | |
693 | ||
694 | function MagicMissiles() | |
695 | ATTACK = true | |
696 | Rooted = true | |
697 | local SELECTING = true | |
698 | local SPOTS = {} | |
699 | coroutine.resume(coroutine.create(function() | |
700 | local LOOP = 0 | |
701 | repeat | |
702 | LOOP = LOOP + 1 | |
703 | Swait() | |
704 | if LOOP >= 10 then | |
705 | LOOP = 0 | |
706 | for i = 1, #SPOTS do | |
707 | if SPOTS[i] ~= nil then | |
708 | 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}) | |
709 | 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}) | |
710 | end | |
711 | end | |
712 | end | |
713 | 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) | |
714 | 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) | |
715 | 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) | |
716 | 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) | |
717 | 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) | |
718 | 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) | |
719 | until SELECTING == false | |
720 | Rooted = false | |
721 | repeat | |
722 | LOOP = LOOP + 1 | |
723 | Swait() | |
724 | if LOOP >= 10 then | |
725 | LOOP = 0 | |
726 | for i = 1, #SPOTS do | |
727 | if SPOTS[i] ~= nil then | |
728 | 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}) | |
729 | 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}) | |
730 | end | |
731 | end | |
732 | end | |
733 | 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) | |
734 | 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) | |
735 | 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) | |
736 | 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) | |
737 | 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) | |
738 | 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) | |
739 | until ATTACK == false | |
740 | end)) | |
741 | repeat | |
742 | repeat Swait() until HOLD == true | |
743 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
744 | if DIST > 65 then | |
745 | DIST = 65 | |
746 | end | |
747 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
748 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
749 | if HITFLOOR ~= nil then | |
750 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
751 | 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}) | |
752 | 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}) | |
753 | end | |
754 | repeat Swait() until HOLD == false | |
755 | until #SPOTS == 5 | |
756 | SELECTING = false | |
757 | for i = 1, #SPOTS do | |
758 | if SPOTS[i] ~= nil then | |
759 | local POS = SPOTS[i] | |
760 | coroutine.resume(coroutine.create(function() | |
761 | local MISSILE = IT("Model",Effects) | |
762 | MISSILE.Name = "Missile" | |
763 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2)) | |
764 | MakeForm(BASEPART,"Cyl") | |
765 | MISSILE.PrimaryPart = BASEPART | |
766 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
767 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2)) | |
768 | MakeForm(HEAD,"Ball") | |
769 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
770 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5)) | |
771 | MakeForm(TAIL,"Cyl") | |
772 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
773 | for i = 1, 10 do | |
774 | Swait() | |
775 | for _, c in pairs(MISSILE:GetChildren()) do | |
776 | if c.ClassName == "Part" then | |
777 | c.Transparency = c.Transparency - 1/10 | |
778 | end | |
779 | end | |
780 | end | |
781 | for i = 1, 15*1.5 do | |
782 | Swait() | |
783 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
784 | end | |
785 | ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false) | |
786 | 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}) | |
787 | 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}) | |
788 | 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}) | |
789 | 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}) | |
790 | MISSILE:remove() | |
791 | end)) | |
792 | end | |
793 | end | |
794 | wait(0.6) | |
795 | ATTACK = false | |
796 | Rooted = false | |
797 | end | |
798 | ||
799 | function TimesUp() | |
800 | CLOCKTARGET = nil | |
801 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
802 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
803 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
804 | if TORSO then | |
805 | ATTACK = true | |
806 | Rooted = false | |
807 | coroutine.resume(coroutine.create(function() | |
808 | repeat | |
809 | Swait() | |
810 | 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) | |
811 | 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) | |
812 | 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) | |
813 | 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) | |
814 | 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) | |
815 | 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) | |
816 | until ATTACK == false | |
817 | end)) | |
818 | if Effects:FindFirstChild("NeonDoll") then | |
819 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
820 | end | |
821 | wait(0.5) | |
822 | local FAKECHARACTER = IT("Model",Effects) | |
823 | FAKECHARACTER.Name = "NeonDoll" | |
824 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
825 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
826 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
827 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
828 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
829 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
830 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
831 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
832 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
833 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
834 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
835 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
836 | CreateSound(201858045, TORS, 5, 0.4, false) | |
837 | for i = 1, 150 do | |
838 | Swait() | |
839 | CLOCKSPEED = 6 | |
840 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
841 | if c.ClassName == "Part" then | |
842 | c.Transparency = c.Transparency - 0.5/150 | |
843 | end | |
844 | end | |
845 | end | |
846 | CLOCKTARGET = HUM | |
847 | coroutine.resume(coroutine.create(function() | |
848 | repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil | |
849 | for i = 1, 25 do | |
850 | Swait() | |
851 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
852 | if c.ClassName == "Part" then | |
853 | c.Transparency = c.Transparency + 0.5/25 | |
854 | end | |
855 | end | |
856 | end | |
857 | CLOCKSPEED = 1 | |
858 | FAKECHARACTER:remove() | |
859 | end)) | |
860 | wait(0.5) | |
861 | ATTACK = false | |
862 | Rooted = false | |
863 | end | |
864 | end | |
865 | end | |
866 | ||
867 | function ChainPunch() | |
868 | ATTACK = true | |
869 | Rooted = false | |
870 | local GYRO = IT("BodyGyro",RootPart) | |
871 | GYRO.D = 25 | |
872 | GYRO.P = 2000 | |
873 | GYRO.MaxTorque = VT(0,40000,0) | |
874 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
875 | repeat | |
876 | Swait() | |
877 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
878 | 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) | |
879 | 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) | |
880 | 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) | |
881 | 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) | |
882 | 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) | |
883 | 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) | |
884 | until HOLD == true | |
885 | local POS = Mouse.Hit.p | |
886 | local CHAINS = false | |
887 | local CHAINLINKS = {} | |
888 | local A = IT("Attachment",RightArm) | |
889 | A.Position = VT(1,-1,0)*SIZE | |
890 | A.Orientation = VT(-90, -89.982, 0) | |
891 | local B = IT("Attachment",RightArm) | |
892 | B.Position = VT(-1,-1,0)*SIZE | |
893 | B.Orientation = VT(-90, 89.988, 0) | |
894 | local C = IT("Attachment",RightArm) | |
895 | C.Position = VT(0.5,-1.3,0)*SIZE | |
896 | C.Orientation = VT(-90, -89.982, 0) | |
897 | local D = IT("Attachment",RightArm) | |
898 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
899 | D.Orientation = VT(-90, 89.988, 0) | |
900 | local LIGHT = IT("Attachment",RightArm) | |
901 | LIGHT.Position = VT(0,-1,0)*SIZE | |
902 | local LIGHT2 = IT("PointLight",LIGHT) | |
903 | LIGHT2.Range = 7 | |
904 | LIGHT2.Brightness = 5 | |
905 | LIGHT2.Color = SKILLTEXTCOLOR | |
906 | for i = 1, 2 do | |
907 | local TWIST = -2 | |
908 | local START = A | |
909 | local END = B | |
910 | if i == 1 then | |
911 | START = B | |
912 | END = A | |
913 | end | |
914 | local ChainLink = IT("Beam",Torso) | |
915 | ChainLink.Texture = "rbxassetid://73042633" | |
916 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
917 | ChainLink.TextureSpeed = 1 | |
918 | ChainLink.Width0 = 1 | |
919 | ChainLink.Width1 = 1 | |
920 | ChainLink.TextureLength = 2.5 | |
921 | ChainLink.Attachment0 = START | |
922 | ChainLink.Attachment1 = END | |
923 | ChainLink.CurveSize0 = TWIST | |
924 | ChainLink.CurveSize1 = TWIST | |
925 | --ChainLink.FaceCamera = true | |
926 | ChainLink.Segments = 45 | |
927 | ChainLink.Transparency = NumberSequence.new(1) | |
928 | table.insert(CHAINLINKS,ChainLink) | |
929 | end | |
930 | for i = 1, 2 do | |
931 | local TWIST = -1 | |
932 | local START = C | |
933 | local END = D | |
934 | if i == 1 then | |
935 | START = D | |
936 | END = C | |
937 | end | |
938 | local ChainLink = IT("Beam",Torso) | |
939 | ChainLink.Texture = "rbxassetid://73042633" | |
940 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
941 | ChainLink.TextureSpeed = 1 | |
942 | ChainLink.Width0 = 1 | |
943 | ChainLink.Width1 = 1 | |
944 | ChainLink.TextureLength = 5 | |
945 | ChainLink.Attachment0 = START | |
946 | ChainLink.Attachment1 = END | |
947 | ChainLink.CurveSize0 = TWIST | |
948 | ChainLink.CurveSize1 = TWIST | |
949 | --ChainLink.FaceCamera = true | |
950 | ChainLink.Segments = 25 | |
951 | ChainLink.LightEmission = 0.5 | |
952 | ChainLink.Transparency = NumberSequence.new(1) | |
953 | table.insert(CHAINLINKS,ChainLink) | |
954 | end | |
955 | coroutine.resume(coroutine.create(function() | |
956 | repeat | |
957 | Swait() | |
958 | 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) | |
959 | 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) | |
960 | 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) | |
961 | 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) | |
962 | 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) | |
963 | 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) | |
964 | until CHAINS == true | |
965 | repeat | |
966 | Swait() | |
967 | 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) | |
968 | 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) | |
969 | 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) | |
970 | 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) | |
971 | 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) | |
972 | 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) | |
973 | until ATTACK == false | |
974 | for e = 1, 15 do | |
975 | Swait() | |
976 | for i = 1, #CHAINLINKS do | |
977 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
978 | end | |
979 | end | |
980 | A:remove() | |
981 | B:remove() | |
982 | C:remove() | |
983 | D:remove() | |
984 | end)) | |
985 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
986 | for e = 1, 15 do | |
987 | Swait() | |
988 | for i = 1, #CHAINLINKS do | |
989 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
990 | end | |
991 | end | |
992 | CHAINS = true | |
993 | Rooted = true | |
994 | wait(0.25) | |
995 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
996 | FIST.Color = C3(1, 215/255, 1) | |
997 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
998 | local LIGHT3 = IT("PointLight",FIST) | |
999 | LIGHT3.Range = 7 | |
1000 | LIGHT3.Brightness = 5 | |
1001 | LIGHT3.Color = SKILLTEXTCOLOR | |
1002 | CreateMesh("SpecialMesh", FIST, "FileMesh", "0", "", VT(10,10,10), VT(0,0,0)) | |
1003 | local FISTA = IT("Attachment",FIST) | |
1004 | FISTA.Position = VT(0.062, 0.977, 0) | |
1005 | local ChainLink = IT("Beam",Torso) | |
1006 | ChainLink.Texture = "rbxassetid://73042633" | |
1007 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1008 | ChainLink.TextureSpeed = 0 | |
1009 | ChainLink.Width0 = 3 | |
1010 | ChainLink.Width1 = 3 | |
1011 | ChainLink.TextureLength = 12 | |
1012 | ChainLink.Attachment0 = LIGHT | |
1013 | ChainLink.Attachment1 = FISTA | |
1014 | ChainLink.FaceCamera = true | |
1015 | ChainLink.Segments = 45 | |
1016 | ChainLink.LightEmission = 0.5 | |
1017 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1018 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1019 | for i = 1, 85 do | |
1020 | Swait() | |
1021 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1022 | ChainLink.TextureLength = 12+(i*2) | |
1023 | ApplyAoE(FIST.Position,10,15,25,100,false) | |
1024 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1025 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1026 | if HITFLOOR ~= nil then | |
1027 | HITFLOOR:BreakJoints() | |
1028 | coroutine.resume(coroutine.create(function() | |
1029 | for i = 1, 15 do | |
1030 | Swait() | |
1031 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1032 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
1033 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1034 | end | |
1035 | end)) | |
1036 | break | |
1037 | end | |
1038 | end | |
1039 | coroutine.resume(coroutine.create(function() | |
1040 | for i = 1, 50 do | |
1041 | Swait() | |
1042 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1043 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1044 | end | |
1045 | FIST:remove() | |
1046 | end)) | |
1047 | LIGHT:remove() | |
1048 | GYRO:remove() | |
1049 | ATTACK = false | |
1050 | Rooted = false | |
1051 | end | |
1052 | ||
1053 | function WarpMeteor() | |
1054 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1055 | if DIST > 180 then | |
1056 | DIST = 180 | |
1057 | end | |
1058 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1059 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1060 | if HITFLOOR then | |
1061 | local POS = HITPOS | |
1062 | ATTACK = true | |
1063 | Rooted = true | |
1064 | local WARPED = false | |
1065 | local SMASHED = false | |
1066 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1067 | coroutine.resume(coroutine.create(function() | |
1068 | repeat | |
1069 | Swait() | |
1070 | 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) | |
1071 | 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) | |
1072 | 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) | |
1073 | 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) | |
1074 | 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) | |
1075 | 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) | |
1076 | until WARPED == true | |
1077 | repeat | |
1078 | Swait() | |
1079 | 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) | |
1080 | 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) | |
1081 | 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) | |
1082 | 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) | |
1083 | 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) | |
1084 | 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) | |
1085 | until SMASHED == true | |
1086 | repeat | |
1087 | Swait() | |
1088 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1089 | 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) | |
1090 | 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) | |
1091 | 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) | |
1092 | 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) | |
1093 | 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) | |
1094 | until ATTACK == false | |
1095 | end)) | |
1096 | VALUE1 = true | |
1097 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1098 | for i = 1, 25 do | |
1099 | Swait() | |
1100 | for _, c in pairs(Character:GetChildren()) do | |
1101 | if c.ClassName == "Part" then | |
1102 | c.Transparency = c.Transparency + 1/25 | |
1103 | end | |
1104 | end | |
1105 | for _, c in pairs(Weapon:GetChildren()) do | |
1106 | if c.ClassName == "Part" then | |
1107 | c.Transparency = c.Transparency + 1/25 | |
1108 | end | |
1109 | end | |
1110 | end | |
1111 | UNANCHOR = false | |
1112 | RootPart.Anchored = true | |
1113 | RootPart.Velocity = VT(0,0,0) | |
1114 | local ROOTPOS = RootPart.Position | |
1115 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1116 | WARPED = true | |
1117 | for i = 1, 25 do | |
1118 | Swait() | |
1119 | for _, c in pairs(Character:GetChildren()) do | |
1120 | if c.ClassName == "Part" then | |
1121 | c.Transparency = c.Transparency - 1/25 | |
1122 | end | |
1123 | end | |
1124 | for _, c in pairs(Weapon:GetChildren()) do | |
1125 | if c.ClassName == "Part" then | |
1126 | c.Transparency = c.Transparency - 1/25 | |
1127 | end | |
1128 | end | |
1129 | end | |
1130 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0)) | |
1131 | SHELL.CFrame = RootPart.CFrame | |
1132 | MakeForm(SHELL,"Ball") | |
1133 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1134 | for i = 1, 10 do | |
1135 | Swait() | |
1136 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
1137 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
1138 | end | |
1139 | for i = 1, math.ceil(75/2) do | |
1140 | Swait() | |
1141 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1142 | SHELL.CFrame = CF(RootPart.Position) | |
1143 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1144 | end | |
1145 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1146 | SHELL.CFrame = CF(RootPart.Position) | |
1147 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1148 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1149 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1150 | for i = 1, 5 do | |
1151 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1152 | end | |
1153 | SHELL:remove() | |
1154 | ApplyAoE(RootPart.Position,75,35,75,175,false) | |
1155 | SMASHED = true | |
1156 | wait(1) | |
1157 | VALUE1 = false | |
1158 | UNANCHOR = true | |
1159 | ATTACK = false | |
1160 | Rooted = false | |
1161 | end | |
1162 | end | |
1163 | ||
1164 | function PandorasBox() | |
1165 | 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) | |
1166 | if HITFLOOR ~= nil then | |
1167 | ATTACK = true | |
1168 | Rooted = true | |
1169 | local RINGSPIN = true | |
1170 | local CONSTRUCTING = true | |
1171 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0)) | |
1172 | RING.Color = C3(0,0,0) | |
1173 | MakeForm(RING,"Cyl") | |
1174 | RING.CFrame = CF(HITPOS) | |
1175 | CreateSound(402981977, RING, 5, 1.2, false) | |
1176 | coroutine.resume(coroutine.create(function() | |
1177 | repeat | |
1178 | Swait() | |
1179 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1180 | 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) | |
1181 | 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) | |
1182 | 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) | |
1183 | 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) | |
1184 | 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) | |
1185 | 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) | |
1186 | until CONSTRUCTING == false | |
1187 | repeat | |
1188 | Swait() | |
1189 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1190 | until RINGSPIN == false | |
1191 | for i = 1, 25 do | |
1192 | Swait() | |
1193 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1194 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1195 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1196 | RING.Transparency = RING.Transparency + 1/25 | |
1197 | end | |
1198 | RING:remove() | |
1199 | end)) | |
1200 | for i = 1, 15 do | |
1201 | Swait() | |
1202 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
1203 | RING.Transparency = RING.Transparency - 1/15 | |
1204 | end | |
1205 | local BOXSPIN = true | |
1206 | local PANDORASBOX = IT("Model",Effects) | |
1207 | PANDORASBOX.Name = "Pandora's Box" | |
1208 | local BOX = IT("Model",PANDORASBOX) | |
1209 | BOX.Name = "Body" | |
1210 | local LID = IT("Model",PANDORASBOX) | |
1211 | LID.Name = "Lid" | |
1212 | --BUILDING THE BOX-- | |
1213 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2)) | |
1214 | BASE.Color = C3(0,0,0) | |
1215 | PANDORASBOX.PrimaryPart = BASE | |
1216 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1217 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1218 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1219 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1220 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1221 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1222 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1223 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1224 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1225 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1226 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1227 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1228 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1229 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1230 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1231 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1232 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1233 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1234 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1235 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1236 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1237 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1238 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1239 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1240 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1241 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1242 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1243 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1244 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
1245 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1246 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
1247 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1248 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
1249 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1250 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
1251 | ------------- | |
1252 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1253 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
1254 | LID.PrimaryPart = LIDPART | |
1255 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1256 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1257 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1258 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1259 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1260 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
1261 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1262 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1263 | local DECAL = IT("Decal",LIDPART) | |
1264 | DECAL.Face = "Top" | |
1265 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
1266 | DECAL.Color3 = C3(0,0,0) | |
1267 | --BUILDING THE BOX-- | |
1268 | coroutine.resume(coroutine.create(function() | |
1269 | repeat | |
1270 | Swait() | |
1271 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
1272 | until BOXSPIN == false | |
1273 | end)) | |
1274 | for i = 1, 25 do | |
1275 | Swait() | |
1276 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1277 | end | |
1278 | wait(0.5) | |
1279 | BOXSPIN = false | |
1280 | CONSTRUCTING = false | |
1281 | coroutine.resume(coroutine.create(function() | |
1282 | 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}) | |
1283 | --[[for i = 1, 45 do | |
1284 | Swait() | |
1285 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1286 | end- | |
1287 | LID:remove()]]-- | |
1288 | for _, c in pairs(LID:GetChildren()) do | |
1289 | if c.ClassName == "Part" then | |
1290 | c.Anchored = false | |
1291 | c.CanCollide = true | |
1292 | if c ~= LIDPART then | |
1293 | weldBetween(LIDPART,c) | |
1294 | end | |
1295 | end | |
1296 | end | |
1297 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1298 | Debris:AddItem(LID,15) | |
1299 | wait(0.5) | |
1300 | local RANDOMEFFECT = MRANDOM(1,4) | |
1301 | if RANDOMEFFECT == 1 then | |
1302 | for i = 1, 45 do | |
1303 | wait((2-(i/15))/15) | |
1304 | 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}) | |
1305 | end | |
1306 | wait(1) | |
1307 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1308 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6}) | |
1309 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1310 | for i = 1, 5 do | |
1311 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1312 | end | |
1313 | ApplyAoE(BASE.Position,50,1,200,375,false) | |
1314 | ApplyAoE(BASE.Position,250,35,75,175,false) | |
1315 | elseif RANDOMEFFECT == 2 then | |
1316 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1317 | FIELD.CFrame = BASE.CFrame | |
1318 | MakeForm(FIELD,"Ball") | |
1319 | for i = 1, 50 do | |
1320 | Swait() | |
1321 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1322 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1323 | end | |
1324 | wait(0.2) | |
1325 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1326 | coroutine.resume(coroutine.create(function() | |
1327 | for i = 1, 75 do | |
1328 | Swait() | |
1329 | LOOP.Volume = LOOP.Volume + 10/75 | |
1330 | LOOP.Parent = FIELD | |
1331 | local CHILDREN = workspace:GetDescendants() | |
1332 | for index, CHILD in pairs(CHILDREN) do | |
1333 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1334 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1335 | if HUM then | |
1336 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1337 | if TORSO then | |
1338 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1339 | HUM.Health = HUM.Health - 0.1 | |
1340 | TORSO.Velocity = VT(0,5,0) | |
1341 | HUM.PlatformStand = true | |
1342 | if TORSO.RotVelocity.Magnitude < 15 then | |
1343 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1344 | end | |
1345 | end | |
1346 | end | |
1347 | end | |
1348 | end | |
1349 | end | |
1350 | FIELD.Size = FIELD.Size + VT(3,3,3) | |
1351 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1352 | end | |
1353 | for i = 1, 500 do | |
1354 | Swait() | |
1355 | LOOP.Parent = FIELD | |
1356 | local CHILDREN = workspace:GetDescendants() | |
1357 | for index, CHILD in pairs(CHILDREN) do | |
1358 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1359 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1360 | if HUM then | |
1361 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1362 | if TORSO then | |
1363 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1364 | TORSO.Velocity = VT(0,5,0) | |
1365 | HUM.Health = HUM.Health - 0.1 | |
1366 | HUM.PlatformStand = true | |
1367 | if TORSO.RotVelocity.Magnitude < 15 then | |
1368 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | end | |
1373 | end | |
1374 | end | |
1375 | end | |
1376 | for i = 1, 25 do | |
1377 | Swait() | |
1378 | LOOP.Volume = LOOP.Volume + 10/25 | |
1379 | LOOP.Parent = FIELD | |
1380 | local CHILDREN = workspace:GetDescendants() | |
1381 | for index, CHILD in pairs(CHILDREN) do | |
1382 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1383 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1384 | if HUM then | |
1385 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1386 | if TORSO then | |
1387 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1388 | TORSO.Velocity = VT(0,5,0) | |
1389 | HUM.Health = HUM.Health - 0.1 | |
1390 | HUM.PlatformStand = false | |
1391 | if TORSO.RotVelocity.Magnitude < 15 then | |
1392 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1393 | end | |
1394 | end | |
1395 | end | |
1396 | end | |
1397 | end | |
1398 | end | |
1399 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1400 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1401 | end | |
1402 | FIELD:remove() | |
1403 | end)) | |
1404 | elseif RANDOMEFFECT == 3 then | |
1405 | for i = 1, 10 do | |
1406 | wait(0.15) | |
1407 | 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}) | |
1408 | coroutine.resume(coroutine.create(function() | |
1409 | local MINION = CLONE:Clone() | |
1410 | MINION.Parent = Effects | |
1411 | MINION.Name = "Shadow" | |
1412 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1413 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
1414 | for _, c in pairs(MINION:GetChildren()) do | |
1415 | if c.ClassName == "Part" then | |
1416 | c.Material = "Neon" | |
1417 | c.Color = C3(0,0,0) | |
1418 | c.Transparency = 0.25 | |
1419 | if c.Name == "Head" then | |
1420 | c:ClearAllChildren() | |
1421 | local MSH = IT("BlockMesh",c) | |
1422 | MSH.Scale = VT(0.5,1,1) | |
1423 | end | |
1424 | end | |
1425 | end | |
1426 | local TORSO = MINION.Torso | |
1427 | local HUMAN = MINION.Humanoid | |
1428 | HUMAN.WalkSpeed = 20 | |
1429 | HUMAN.MaxHealth = math.huge | |
1430 | HUMAN.Health = math.huge | |
1431 | HUMAN.DisplayDistanceType = "None" | |
1432 | HUMAN.Died:connect(function() | |
1433 | MINION:remove() | |
1434 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
1435 | end) | |
1436 | wait(1) | |
1437 | local findNearestTorso = function(POS) | |
1438 | local list = game.Workspace:GetDescendants() | |
1439 | local torso = nil | |
1440 | local dist = 500 | |
1441 | local temp = nil | |
1442 | local human = nil | |
1443 | local temp2 = nil | |
1444 | for x = 1, #list do | |
1445 | temp2 = list[x] | |
1446 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
1447 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1448 | human = temp2:findFirstChildOfClass("Humanoid") | |
1449 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1450 | if (temp.Position - POS).magnitude < dist then | |
1451 | torso = temp | |
1452 | dist = (temp.Position - POS).magnitude | |
1453 | end | |
1454 | end | |
1455 | end | |
1456 | end | |
1457 | return torso, dist | |
1458 | end | |
1459 | for i = 1, 40 do | |
1460 | if HUMAN.Health == 0 then | |
1461 | break | |
1462 | end | |
1463 | wait(0.3) | |
1464 | local target,dist= findNearestTorso(TORSO.Position) | |
1465 | if target then | |
1466 | HUMAN:MoveTo(target.Position) | |
1467 | if dist < 25 then | |
1468 | CreateSound(348663022, TORSO, 10, 1, true) | |
1469 | wait(2) | |
1470 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
1471 | --ANIM:Play() | |
1472 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
1473 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
1474 | 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}) | |
1475 | for i = 1, 5 do | |
1476 | 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}) | |
1477 | end | |
1478 | break | |
1479 | end | |
1480 | end | |
1481 | end | |
1482 | MINION:remove() | |
1483 | end)) | |
1484 | end | |
1485 | elseif RANDOMEFFECT == 4 then | |
1486 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1487 | FIELD.Color = C3(0,0,0) | |
1488 | FIELD.CFrame = BASE.CFrame | |
1489 | MakeForm(FIELD,"Ball") | |
1490 | FIELD.CanCollide = true | |
1491 | for i = 1, 50 do | |
1492 | Swait() | |
1493 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1494 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1495 | end | |
1496 | wait(0.2) | |
1497 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
1498 | coroutine.resume(coroutine.create(function() | |
1499 | local E = 0 | |
1500 | for i = 1, 75 do | |
1501 | E = E + 1 | |
1502 | Swait() | |
1503 | if E >= 35 then | |
1504 | E = 0 | |
1505 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1506 | end | |
1507 | LOOP.Volume = LOOP.Volume + 10/75 | |
1508 | LOOP.Parent = FIELD | |
1509 | local CHILDREN = workspace:GetDescendants() | |
1510 | for index, CHILD in pairs(CHILDREN) do | |
1511 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1512 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1513 | if HUM then | |
1514 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1515 | if TORSO then | |
1516 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1517 | for _, c in pairs(CHILD:GetChildren()) do | |
1518 | if c:IsA("BasePart") then | |
1519 | local bv = Instance.new("BodyVelocity") | |
1520 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1521 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1522 | bv.Parent = c | |
1523 | Debris:AddItem(bv,0.05) | |
1524 | end | |
1525 | end | |
1526 | HUM.Health = HUM.Health - 0.3 | |
1527 | end | |
1528 | end | |
1529 | end | |
1530 | end | |
1531 | end | |
1532 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
1533 | end | |
1534 | for i = 1, 180 do | |
1535 | E = E + 1 | |
1536 | Swait() | |
1537 | if E >= 35 then | |
1538 | E = 0 | |
1539 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1540 | end | |
1541 | LOOP.Parent = FIELD | |
1542 | local CHILDREN = workspace:GetDescendants() | |
1543 | for index, CHILD in pairs(CHILDREN) do | |
1544 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1545 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1546 | if HUM then | |
1547 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1548 | if TORSO then | |
1549 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1550 | for _, c in pairs(CHILD:GetChildren()) do | |
1551 | if c:IsA("BasePart") then | |
1552 | local bv = Instance.new("BodyVelocity") | |
1553 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1554 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1555 | bv.Parent = c | |
1556 | Debris:AddItem(bv,0.05) | |
1557 | end | |
1558 | end | |
1559 | HUM.Health = HUM.Health - 0.3 | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | end | |
1565 | end | |
1566 | ApplyAoE(FIELD.Position,40,15,20,375,false) | |
1567 | 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}) | |
1568 | for i = 1, 5 do | |
1569 | 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}) | |
1570 | end | |
1571 | FIELD:remove() | |
1572 | end)) | |
1573 | elseif RANDOMEFFECT == 5 then | |
1574 | end | |
1575 | wait(0.5) | |
1576 | for i = 1, 25 do | |
1577 | Swait() | |
1578 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
1579 | end | |
1580 | PANDORASBOX:remove() | |
1581 | RINGSPIN = false | |
1582 | end)) | |
1583 | ATTACK = false | |
1584 | Rooted = false | |
1585 | end | |
1586 | end | |
1587 | ||
1588 | function Taunt() | |
1589 | ATTACK = true | |
1590 | local LAUGH = nil | |
1591 | coroutine.resume(coroutine.create(function() | |
1592 | repeat | |
1593 | Swait() | |
1594 | 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) | |
1595 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1596 | 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) | |
1597 | 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) | |
1598 | 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) | |
1599 | 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) | |
1600 | until LAUGH ~= nil | |
1601 | repeat | |
1602 | Swait() | |
1603 | LAUGH.Parent = Head | |
1604 | 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) | |
1605 | 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) | |
1606 | 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) | |
1607 | 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) | |
1608 | 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) | |
1609 | 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) | |
1610 | until LAUGH.Playing == false | |
1611 | ATTACK = false | |
1612 | end)) | |
1613 | wait(0.1) | |
1614 | sick:Pause() | |
1615 | LAUGH = CreateSound(525166232, Head, 10, 1, false) | |
1616 | wait(1) | |
1617 | sick:Resume() | |
1618 | end | |
1619 | ||
1620 | --//=================================\\ | |
1621 | --|| ASSIGN THINGS TO KEYS | |
1622 | --\\=================================// | |
1623 | ||
1624 | function MouseDown(Mouse) | |
1625 | HOLD = true | |
1626 | if ATTACK == false then | |
1627 | end | |
1628 | end | |
1629 | ||
1630 | function MouseUp(Mouse) | |
1631 | HOLD = false | |
1632 | end | |
1633 | ||
1634 | function KeyDown(Key) | |
1635 | KEYHOLD = true | |
1636 | if Key == "z" and ATTACK == false then | |
1637 | MagicMissiles() | |
1638 | end | |
1639 | ||
1640 | if Key == "b" and ATTACK == false then | |
1641 | TimesUp() | |
1642 | end | |
1643 | ||
1644 | if Key == "c" and ATTACK == false then | |
1645 | ChainPunch() | |
1646 | end | |
1647 | ||
1648 | if Key == "v" and ATTACK == false then | |
1649 | WarpMeteor() | |
1650 | end | |
1651 | ||
1652 | if Key == "x" and ATTACK == false then | |
1653 | PandorasBox() | |
1654 | end | |
1655 | ||
1656 | if Key == "t" and ATTACK == false then | |
1657 | Taunt() | |
1658 | end | |
1659 | end | |
1660 | ||
1661 | function KeyUp(Key) | |
1662 | KEYHOLD = false | |
1663 | end | |
1664 | ||
1665 | Mouse.Button1Down:connect(function(NEWKEY) | |
1666 | MouseDown(NEWKEY) | |
1667 | end) | |
1668 | Mouse.Button1Up:connect(function(NEWKEY) | |
1669 | MouseUp(NEWKEY) | |
1670 | end) | |
1671 | Mouse.KeyDown:connect(function(NEWKEY) | |
1672 | KeyDown(NEWKEY) | |
1673 | end) | |
1674 | Mouse.KeyUp:connect(function(NEWKEY) | |
1675 | KeyUp(NEWKEY) | |
1676 | end) | |
1677 | ||
1678 | --//=================================\\ | |
1679 | --\\=================================// | |
1680 | ||
1681 | ||
1682 | function unanchor() | |
1683 | if UNANCHOR == true then | |
1684 | RootPart.Anchored = false | |
1685 | end | |
1686 | g = Character:GetChildren() | |
1687 | for i = 1, #g do | |
1688 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
1689 | g[i].Anchored = false | |
1690 | end | |
1691 | end | |
1692 | g = Weapon:GetChildren() | |
1693 | for i = 1, #g do | |
1694 | if g[i].ClassName == "Part" then | |
1695 | g[i].Anchored = false | |
1696 | end | |
1697 | end | |
1698 | end | |
1699 | ||
1700 | ||
1701 | --//=================================\\ | |
1702 | --|| WRAP THE WHOLE SCRIPT UP | |
1703 | --\\=================================// | |
1704 | ||
1705 | Humanoid.Changed:connect(function(Jump) | |
1706 | if Jump == "Jump" and (Disable_Jump == true) then | |
1707 | Humanoid.Jump = false | |
1708 | end | |
1709 | end) | |
1710 | ||
1711 | while true do | |
1712 | Swait() | |
1713 | script.Parent = WEAPONGUI | |
1714 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1715 | v:Stop(); | |
1716 | end | |
1717 | ANIMATE.Parent = nil | |
1718 | SINE = SINE + CHANGE*1.5 | |
1719 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1720 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1721 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1722 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
1723 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1724 | 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) | |
1725 | 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) | |
1726 | 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) | |
1727 | 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) | |
1728 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1729 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1730 | 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) | |
1731 | 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) | |
1732 | 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) | |
1733 | end | |
1734 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1735 | ANIM = "Jump" | |
1736 | if ATTACK == false then | |
1737 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1738 | 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) | |
1739 | 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) | |
1740 | 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) | |
1741 | 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) | |
1742 | 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) | |
1743 | end | |
1744 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1745 | ANIM = "Fall" | |
1746 | if ATTACK == false then | |
1747 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1748 | 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) | |
1749 | 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) | |
1750 | 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) | |
1751 | 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) | |
1752 | 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) | |
1753 | end | |
1754 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1755 | ANIM = "Idle" | |
1756 | if ATTACK == false then | |
1757 | 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) | |
1758 | 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) | |
1759 | 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) | |
1760 | 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) | |
1761 | 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) | |
1762 | 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) | |
1763 | end | |
1764 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1765 | ANIM = "Walk" | |
1766 | if ATTACK == false then | |
1767 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1768 | 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) | |
1769 | 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) | |
1770 | 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) | |
1771 | 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) | |
1772 | 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) | |
1773 | end | |
1774 | end | |
1775 | unanchor() | |
1776 | Humanoid.MaxHealth = "inf" | |
1777 | Humanoid.Health = "inf" | |
1778 | if Rooted == false then | |
1779 | Disable_Jump = false | |
1780 | Humanoid.WalkSpeed = Speed | |
1781 | elseif Rooted == true then | |
1782 | Disable_Jump = true | |
1783 | Humanoid.WalkSpeed = 0 | |
1784 | end | |
1785 | for _, c in pairs(Character:GetChildren()) do | |
1786 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
1787 | c.Material = "Fabric" | |
1788 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1789 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1790 | end | |
1791 | if c ~= Head then | |
1792 | c.Color = C3(0,0,0) | |
1793 | else | |
1794 | c.Color = C3(1,1,1) | |
1795 | end | |
1796 | if c == Head then | |
1797 | if c:FindFirstChild("face") then | |
1798 | c.face:remove() | |
1799 | end | |
1800 | end | |
1801 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1802 | c:remove() | |
1803 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1804 | c:remove() | |
1805 | end | |
1806 | end | |
1807 | sick.SoundId = "rbxassetid://"..SONG | |
1808 | sick.Looped = true | |
1809 | sick.Pitch = 1 | |
1810 | sick.Volume = 5 | |
1811 | sick.Parent = Torso | |
1812 | sick:Resume() | |
1813 | --sick.Playing = false | |
1814 | end | |
1815 | ||
1816 | --//=================================\\ | |
1817 | --\\=================================// | |
1818 | ||
1819 | ||
1820 | ||
1821 | ||
1822 | ||
1823 | --//====================================================\\-- | |
1824 | --|| END OF SCRIPT | |
1825 | --\\====================================================//-- |