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