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