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