SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | ||
8 | wait(0.2) | |
9 | ||
10 | Player = game:GetService("Players").LocalPlayer | |
11 | PlayerGui = Player.PlayerGui | |
12 | Cam = workspace.CurrentCamera | |
13 | Backpack = Player.Backpack | |
14 | Character = Player.Character | |
15 | Humanoid = Character.Humanoid | |
16 | Mouse = Player:GetMouse() | |
17 | RootPart = Character.HumanoidRootPart | |
18 | Torso = Character.Torso | |
19 | Head = Character.Head | |
20 | RightArm = Character["Right Arm"] | |
21 | LeftArm = Character["Left Arm"] | |
22 | RightLeg = Character["Right Leg"] | |
23 | LeftLeg = Character["Left Leg"] | |
24 | RootJoint = RootPart.RootJoint | |
25 | Neck = Torso.Neck | |
26 | RightShoulder = Torso["Right Shoulder"] | |
27 | LeftShoulder = Torso["Left Shoulder"] | |
28 | RightHip = Torso["Right Hip"] | |
29 | LeftHip = Torso["Left Hip"] | |
30 | local sick = Instance.new("Sound", Torso) | |
31 | sick.SoundId = "rbxassetid://158353213" | |
32 | sick.Looped = true | |
33 | sick.Pitch = 1 | |
34 | sick.Volume = 5 | |
35 | sick.Playing = true | |
36 | IT = Instance.new | |
37 | CF = CFrame.new | |
38 | VT = Vector3.new | |
39 | RAD = math.rad | |
40 | C3 = Color3.new | |
41 | UD2 = UDim2.new | |
42 | BRICKC = BrickColor.new | |
43 | ANGLES = CFrame.Angles | |
44 | EULER = CFrame.fromEulerAnglesXYZ | |
45 | COS = math.cos | |
46 | ACOS = math.acos | |
47 | SIN = math.sin | |
48 | ASIN = math.asin | |
49 | ABS = math.abs | |
50 | MRANDOM = math.random | |
51 | FLOOR = math.floor | |
52 | Animation_Speed = 3 | |
53 | Frame_Speed = 0.016666666666666666 | |
54 | local Speed = 30 | |
55 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
56 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
57 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
58 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
59 | local DAMAGEMULTIPLIER = 1.0E298 | |
60 | local ANIM = "Idle" | |
61 | local ATTACK = false | |
62 | local EQUIPPED = false | |
63 | local HOLD = false | |
64 | local COMBO = 1 | |
65 | local Rooted = false | |
66 | local SINE = 0 | |
67 | local KEYHOLD = false | |
68 | local CHANGE = 2 / Animation_Speed | |
69 | local WALKINGANIM = false | |
70 | local VALUE1 = false | |
71 | local VALUE2 = false | |
72 | local POWERLEVEL = 10 | |
73 | local Player_Size = 1 | |
74 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
75 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
76 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
77 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
78 | local ROBLOXIDLEANIMATION = IT("Animation") | |
79 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
80 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
81 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
82 | WEAPONGUI.Name = "Weapon GUI" | |
83 | local Weapon = IT("Model") | |
84 | Weapon.Name = "Adds" | |
85 | local Effects = IT("Folder", Weapon) | |
86 | Effects.Name = "Effects" | |
87 | local ANIMATOR = Humanoid.Animator | |
88 | local ANIMATE = Character.Animate | |
89 | local SIZE = 1 | |
90 | local ATTACKEDTAUNTS = { | |
91 | "907332040", | |
92 | "907332525", | |
93 | "907330011" | |
94 | } | |
95 | local ATTACKTAUNTS = { | |
96 | "907329893", | |
97 | "907329532", | |
98 | "907333294", | |
99 | "907332856" | |
100 | } | |
101 | local ULTTAUNTS = { | |
102 | "907332997", | |
103 | "907332670", | |
104 | "907330103" | |
105 | } | |
106 | local UNANCHOR = true | |
107 | local RWINGS = {} | |
108 | local LWINGS = {} | |
109 | local EYE, PUPIL | |
110 | local BLINKLOOP = 0 | |
111 | local FINISHEDINTRO = false | |
112 | local INTROING = false | |
113 | local INSTANT = true | |
114 | local EYES = {} | |
115 | local Sine = 0 | |
116 | local DemonForm = true | |
117 | local ChaosForm = true | |
118 | RightArm.Transparency = 1 | |
119 | Character:WaitForChild("Head").BrickColor=BrickColor.new("Really black") | |
120 | Character:WaitForChild("Torso").BrickColor=BrickColor.new("Really black") | |
121 | Character:WaitForChild("Left Arm").BrickColor=BrickColor.new("Really black") | |
122 | Character:WaitForChild("Right Arm").BrickColor=BrickColor.new("Really black") | |
123 | Character:WaitForChild("Left Leg").BrickColor=BrickColor.new("Really black") | |
124 | Character:WaitForChild("Right Leg").BrickColor=BrickColor.new("Really black") | |
125 | ArtificialHB = Instance.new("BindableEvent", script) | |
126 | ArtificialHB.Name = "ArtificialHB" | |
127 | script:WaitForChild("ArtificialHB") | |
128 | frame = Frame_Speed | |
129 | tf = 0 | |
130 | allowframeloss = false | |
131 | tossremainder = false | |
132 | lastframe = tick() | |
133 | script.ArtificialHB:Fire() | |
134 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
135 | tf = tf + s | |
136 | if tf >= frame then | |
137 | if allowframeloss then | |
138 | script.ArtificialHB:Fire() | |
139 | lastframe = tick() | |
140 | else | |
141 | for i = 1, math.floor(tf / frame) do | |
142 | script.ArtificialHB:Fire() | |
143 | end | |
144 | lastframe = tick() | |
145 | end | |
146 | if tossremainder then | |
147 | tf = 0 | |
148 | else | |
149 | tf = tf - frame * math.floor(tf / frame) | |
150 | end | |
151 | end | |
152 | end) | |
153 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
154 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
155 | end | |
156 | function PositiveAngle(NUMBER) | |
157 | if NUMBER >= 0 then | |
158 | NUMBER = 0 | |
159 | end | |
160 | return NUMBER | |
161 | end | |
162 | function NegativeAngle(NUMBER) | |
163 | if NUMBER <= 0 then | |
164 | NUMBER = 0 | |
165 | end | |
166 | return NUMBER | |
167 | end | |
168 | function Swait(NUMBER) | |
169 | if NUMBER == 0 or NUMBER == nil then | |
170 | ArtificialHB.Event:wait() | |
171 | else | |
172 | for i = 1, NUMBER do | |
173 | ArtificialHB.Event:wait() | |
174 | end | |
175 | end | |
176 | end | |
177 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
178 | local NEWMESH = IT(MESH) | |
179 | if MESH == "SpecialMesh" then | |
180 | NEWMESH.MeshType = MESHTYPE | |
181 | if MESHID ~= "nil" and MESHID ~= "" then | |
182 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
183 | end | |
184 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
185 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
186 | end | |
187 | end | |
188 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
189 | NEWMESH.Scale = SCALE | |
190 | NEWMESH.Parent = PARENT | |
191 | return NEWMESH | |
192 | end | |
193 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
194 | local NEWPART = IT("Part") | |
195 | NEWPART.formFactor = FORMFACTOR | |
196 | NEWPART.Reflectance = REFLECTANCE | |
197 | NEWPART.Transparency = TRANSPARENCY | |
198 | NEWPART.CanCollide = false | |
199 | NEWPART.Locked = true | |
200 | NEWPART.Anchored = true | |
201 | if ANCHOR == false then | |
202 | NEWPART.Anchored = false | |
203 | end | |
204 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
205 | NEWPART.Name = NAME | |
206 | NEWPART.Size = SIZE | |
207 | NEWPART.Position = Torso.Position | |
208 | NEWPART.Material = MATERIAL | |
209 | NEWPART:BreakJoints() | |
210 | NEWPART.Parent = PARENT | |
211 | return NEWPART | |
212 | end | |
213 | ||
214 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
215 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
216 | local mesh = IT("SpecialMesh",wave) | |
217 | mesh.MeshType = "Sphere" | |
218 | mesh.Scale = SIZE | |
219 | mesh.Offset = VT(0,0,0) | |
220 | wave.CFrame = CFRAME | |
221 | coroutine.resume(coroutine.create(function(PART) | |
222 | for i = 1, WAIT do | |
223 | Swait() | |
224 | mesh.Scale = mesh.Scale + GROW | |
225 | wave.Transparency = wave.Transparency + (1/WAIT) | |
226 | if wave.Transparency > 0.99 then | |
227 | wave:remove() | |
228 | end | |
229 | end | |
230 | end)) | |
231 | end | |
232 | ||
233 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
234 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
235 | local mesh = IT("SpecialMesh",wave) | |
236 | mesh.MeshType = "FileMesh" | |
237 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
238 | mesh.Scale = SIZE | |
239 | mesh.Offset = VT(0,0,0) | |
240 | wave.CFrame = CFRAME | |
241 | coroutine.resume(coroutine.create(function(PART) | |
242 | for i = 1, WAIT do | |
243 | Swait() | |
244 | mesh.Scale = mesh.Scale + GROW | |
245 | if DOESROT == true then | |
246 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
247 | end | |
248 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
249 | if wave.Transparency > 0.99 then | |
250 | wave:remove() | |
251 | end | |
252 | end | |
253 | end)) | |
254 | end | |
255 | ||
256 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
257 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
258 | local mesh = IT("SpecialMesh",wave) | |
259 | mesh.MeshType = "FileMesh" | |
260 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
261 | mesh.Scale = SIZE | |
262 | mesh.Offset = VT(0,0,0) | |
263 | wave.CFrame = CFRAME | |
264 | coroutine.resume(coroutine.create(function(PART) | |
265 | for i = 1, WAIT do | |
266 | Swait() | |
267 | mesh.Scale = mesh.Scale + GROW | |
268 | if DOESROT == true then | |
269 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
270 | end | |
271 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
272 | if wave.Transparency > 0.99 then | |
273 | wave:remove() | |
274 | end | |
275 | end | |
276 | end)) | |
277 | end | |
278 | ||
279 | function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW) | |
280 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
281 | local mesh = IT("SpecialMesh",wave) | |
282 | mesh.MeshType = "Sphere" | |
283 | mesh.Scale = SIZE | |
284 | mesh.Offset = VT(0,0,0) | |
285 | wave.CFrame = CFRAME | |
286 | coroutine.resume(coroutine.create(function(PART) | |
287 | for i = 1, WAIT do | |
288 | Swait() | |
289 | mesh.Scale = mesh.Scale + GROW | |
290 | wave.Transparency = wave.Transparency + (1/WAIT) | |
291 | if wave.Transparency > 0.99 then | |
292 | wave:remove() | |
293 | end | |
294 | end | |
295 | end)) | |
296 | end | |
297 | ||
298 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
299 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0)) | |
300 | local mesh = IT("SpecialMesh",wave) | |
301 | mesh.MeshType = "FileMesh" | |
302 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
303 | mesh.Scale = SIZE | |
304 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
305 | wave.CFrame = CFRAME | |
306 | coroutine.resume(coroutine.create(function(PART) | |
307 | for i = 1, WAIT do | |
308 | Swait() | |
309 | mesh.Scale = mesh.Scale + GROW | |
310 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
311 | if DOESROT == true then | |
312 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
313 | end | |
314 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
315 | if wave.Transparency > 0.99 then | |
316 | wave:remove() | |
317 | end | |
318 | end | |
319 | end)) | |
320 | end | |
321 | ||
322 | function CreateWave2(inair,size,doesrotate,rotatedirection,waitt,part,offset) | |
323 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Bright orange", "Effect", VT(0,0,0)) | |
324 | local mesh = IT("SpecialMesh",wave) | |
325 | mesh.MeshType = "FileMesh" | |
326 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
327 | mesh.Scale = VT(size,size,size) | |
328 | mesh.Offset = VT(0,0,-size/8) | |
329 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
330 | coroutine.resume(coroutine.create(function(PART) | |
331 | for i = 1, waitt do | |
332 | Swait() | |
333 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
334 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
335 | if doesrotate == true then | |
336 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
337 | end | |
338 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
339 | if wave.Transparency > 0.99 then | |
340 | wave:remove() | |
341 | end | |
342 | end | |
343 | end)) | |
344 | end | |
345 | ||
346 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
347 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Effect", VT(0,0,0)) | |
348 | local mesh = IT("SpecialMesh",wave) | |
349 | mesh.MeshType = "FileMesh" | |
350 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
351 | mesh.Scale = SIZE | |
352 | wave.CFrame = CFRAME | |
353 | coroutine.resume(coroutine.create(function(PART) | |
354 | for i = 1, WAIT do | |
355 | Swait() | |
356 | mesh.Scale = mesh.Scale + GROW | |
357 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
358 | if DOESROT == true then | |
359 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
360 | end | |
361 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
362 | if wave.Transparency > 0.99 then | |
363 | wave:remove() | |
364 | end | |
365 | end | |
366 | end)) | |
367 | end | |
368 | ||
369 | local weldBetween = function(a, b) | |
370 | local weldd = Instance.new("ManualWeld") | |
371 | weldd.Part0 = a | |
372 | weldd.Part1 = b | |
373 | weldd.C0 = CFrame.new() | |
374 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
375 | weldd.Parent = a | |
376 | return weldd | |
377 | end | |
378 | function QuaternionFromCFrame(cf) | |
379 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
380 | local trace = m00 + m11 + m22 | |
381 | if trace > 0 then | |
382 | local s = math.sqrt(1 + trace) | |
383 | local recip = 0.5 / s | |
384 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
385 | else | |
386 | local i = 0 | |
387 | if m00 < m11 then | |
388 | i = 1 | |
389 | end | |
390 | if m22 > (i == 0 and m00 or m11) then | |
391 | i = 2 | |
392 | end | |
393 | if i == 0 then | |
394 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
395 | local recip = 0.5 / s | |
396 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
397 | elseif i == 1 then | |
398 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
399 | local recip = 0.5 / s | |
400 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
401 | elseif i == 2 then | |
402 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
403 | local recip = 0.5 / s | |
404 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
405 | end | |
406 | end | |
407 | end | |
408 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
409 | local xs, ys, zs = x + x, y + y, z + z | |
410 | local wx, wy, wz = w * xs, w * ys, w * zs | |
411 | local xx = x * xs | |
412 | local xy = x * ys | |
413 | local xz = x * zs | |
414 | local yy = y * ys | |
415 | local yz = y * zs | |
416 | local zz = z * zs | |
417 | 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)) | |
418 | end | |
419 | function QuaternionSlerp(a, b, t) | |
420 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
421 | local startInterp, finishInterp | |
422 | if cosTheta >= 1.0E-4 then | |
423 | if 1 - cosTheta > 1.0E-4 then | |
424 | local theta = ACOS(cosTheta) | |
425 | local invSinTheta = 1 / SIN(theta) | |
426 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
427 | finishInterp = SIN(t * theta) * invSinTheta | |
428 | else | |
429 | startInterp = 1 - t | |
430 | finishInterp = t | |
431 | end | |
432 | elseif 1 + cosTheta > 1.0E-4 then | |
433 | local theta = ACOS(-cosTheta) | |
434 | local invSinTheta = 1 / SIN(theta) | |
435 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
436 | finishInterp = SIN(t * theta) * invSinTheta | |
437 | else | |
438 | startInterp = t - 1 | |
439 | finishInterp = t | |
440 | end | |
441 | 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 | |
442 | end | |
443 | function Clerp(a, b, t) | |
444 | local qa = { | |
445 | QuaternionFromCFrame(a) | |
446 | } | |
447 | local qb = { | |
448 | QuaternionFromCFrame(b) | |
449 | } | |
450 | local ax, ay, az = a.x, a.y, a.z | |
451 | local bx, by, bz = b.x, b.y, b.z | |
452 | local _t = 1 - t | |
453 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
454 | end | |
455 | ||
456 | function clerp(startCF,endCF,alpha) | |
457 | return startCF:lerp(endCF, alpha) | |
458 | end | |
459 | ||
460 | ||
461 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
462 | local frame = IT("Frame") | |
463 | frame.BackgroundTransparency = TRANSPARENCY | |
464 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
465 | frame.Position = POSITION | |
466 | frame.Size = SIZE | |
467 | frame.BackgroundColor3 = COLOR | |
468 | frame.BorderColor3 = BORDERCOLOR | |
469 | frame.Name = NAME | |
470 | frame.Parent = PARENT | |
471 | return frame | |
472 | end | |
473 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
474 | local label = IT("TextLabel") | |
475 | label.BackgroundTransparency = 1 | |
476 | label.Size = UD2(1, 0, 1, 0) | |
477 | label.Position = UD2(0, 0, 0, 0) | |
478 | label.TextColor3 = TEXTCOLOR | |
479 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
480 | label.TextTransparency = TRANSPARENCY | |
481 | label.FontSize = TEXTFONTSIZE | |
482 | label.Font = TEXTFONT | |
483 | label.BorderSizePixel = BORDERSIZEPIXEL | |
484 | label.TextScaled = false | |
485 | label.Text = TEXT | |
486 | label.Name = NAME | |
487 | label.Parent = PARENT | |
488 | return label | |
489 | end | |
490 | function NoOutlines(PART) | |
491 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
492 | end | |
493 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
494 | local NEWWELD = IT(TYPE) | |
495 | NEWWELD.Part0 = PART0 | |
496 | NEWWELD.Part1 = PART1 | |
497 | NEWWELD.C0 = C0 | |
498 | NEWWELD.C1 = C1 | |
499 | NEWWELD.Parent = PARENT | |
500 | return NEWWELD | |
501 | end | |
502 | local S = IT("Sound") | |
503 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
504 | local NEWSOUND | |
505 | coroutine.resume(coroutine.create(function() | |
506 | NEWSOUND = S:Clone() | |
507 | NEWSOUND.Parent = PARENT | |
508 | NEWSOUND.Volume = VOLUME | |
509 | NEWSOUND.Pitch = PITCH | |
510 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID | |
511 | NEWSOUND:play() | |
512 | if DOESLOOP == true then | |
513 | NEWSOUND.Looped = true | |
514 | else | |
515 | repeat | |
516 | Swait() | |
517 | until NEWSOUND.Playing == false | |
518 | NEWSOUND:remove() | |
519 | end | |
520 | end)) | |
521 | return NEWSOUND | |
522 | end | |
523 | function CFrameFromTopBack(at, top, back) | |
524 | local right = top:Cross(back) | |
525 | 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) | |
526 | end | |
527 | ||
528 | function WACKYEFFECT(Table) | |
529 | local TYPE = Table.EffectType or "Sphere" | |
530 | local SIZE = Table.Size or VT(1, 1, 1) | |
531 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
532 | local TRANSPARENCY = Table.Transparency or 0 | |
533 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
534 | local CFRAME = Table.CFrame or Torso.CFrame | |
535 | local MOVEDIRECTION = Table.MoveToPos or nil | |
536 | local ROTATION1 = Table.RotationX or 0 | |
537 | local ROTATION2 = Table.RotationY or 0 | |
538 | local ROTATION3 = Table.RotationZ or 0 | |
539 | local MATERIAL = Table.Material or "Neon" | |
540 | local COLOR = Table.Color or C3(1, 1, 1) | |
541 | local TIME = Table.Time or 45 | |
542 | local SOUNDID = Table.SoundID or nil | |
543 | local SOUNDPITCH = Table.SoundPitch or nil | |
544 | local SOUNDVOLUME = Table.SoundVolume or nil | |
545 | coroutine.resume(coroutine.create(function() | |
546 | local PLAYSSOUND = false | |
547 | local SOUND | |
548 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
549 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
550 | PLAYSSOUND = true | |
551 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
552 | end | |
553 | EFFECT.Color = COLOR | |
554 | local MSH | |
555 | if TYPE == "Sphere" then | |
556 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
557 | elseif TYPE == "Block" then | |
558 | MSH = IT("BlockMesh", EFFECT) | |
559 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
560 | elseif TYPE == "Wave" then | |
561 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
562 | elseif TYPE == "Ring" then | |
563 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
564 | elseif TYPE == "Slash" then | |
565 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
566 | elseif TYPE == "Round Slash" then | |
567 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
568 | elseif TYPE == "Swirl" then | |
569 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
570 | elseif TYPE == "Skull" then | |
571 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
572 | elseif TYPE == "Crystal" then | |
573 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
574 | end | |
575 | if MSH ~= nil then | |
576 | local MOVESPEED | |
577 | if MOVEDIRECTION ~= nil then | |
578 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
579 | end | |
580 | local GROWTH = SIZE - ENDSIZE | |
581 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
582 | if TYPE == "Block" then | |
583 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
584 | else | |
585 | EFFECT.CFrame = CFRAME | |
586 | end | |
587 | for LOOP = 1, TIME do | |
588 | Swait() | |
589 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
590 | if TYPE == "Wave" then | |
591 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
592 | end | |
593 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
594 | if TYPE == "Block" then | |
595 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
596 | else | |
597 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
598 | end | |
599 | if MOVEDIRECTION ~= nil then | |
600 | local ORI = EFFECT.Orientation | |
601 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
602 | EFFECT.Orientation = ORI | |
603 | end | |
604 | end | |
605 | if PLAYSSOUND == false then | |
606 | EFFECT:remove() | |
607 | else | |
608 | repeat | |
609 | Swait() | |
610 | until SOUND.Playing == false | |
611 | EFFECT:remove() | |
612 | end | |
613 | elseif PLAYSSOUND == false then | |
614 | EFFECT:remove() | |
615 | else | |
616 | repeat | |
617 | Swait() | |
618 | until SOUND.Playing == false | |
619 | EFFECT:remove() | |
620 | end | |
621 | end)) | |
622 | end | |
623 | function CreateDebreeRing(FLOOR, POSITION, SIZE, BLOCKSIZE, SWAIT) | |
624 | if FLOOR ~= nil then | |
625 | coroutine.resume(coroutine.create(function() | |
626 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0, 0, 0)) | |
627 | PART.CFrame = CF(POSITION) | |
628 | for i = 1, 45 do | |
629 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
630 | RingPiece.Material = FLOOR.Material | |
631 | RingPiece.Color = FLOOR.Color | |
632 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i * 8), RAD(0)) * CF(SIZE * 4, 0, 0) * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
633 | Debris:AddItem(RingPiece, SWAIT) | |
634 | end | |
635 | PART:remove() | |
636 | end)) | |
637 | end | |
638 | end | |
639 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH) | |
640 | if FLOOR ~= nil then | |
641 | for i = 1, AMOUNT do | |
642 | do | |
643 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, 0, "Peal", "Debree", BLOCKSIZE, false) | |
644 | DEBREE.Material = FLOOR.Material | |
645 | DEBREE.Color = FLOOR.Color | |
646 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
647 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), STRENGTH, MRANDOM(-STRENGTH, STRENGTH)) | |
648 | coroutine.resume(coroutine.create(function() | |
649 | Swait(15) | |
650 | DEBREE.Parent = workspace | |
651 | DEBREE.CanCollide = true | |
652 | Debris:AddItem(DEBREE, SWAIT) | |
653 | end)) | |
654 | end | |
655 | end | |
656 | end | |
657 | end | |
658 | ||
659 | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) | |
660 | for _, c in pairs(PARENT:GetChildren()) do | |
661 | if c.ClassName == "Model" then | |
662 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
663 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
664 | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
665 | if DIST > (TORSO.Position - FROM).Magnitude then | |
666 | table.insert(TABLE, c) | |
667 | end | |
668 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
669 | elseif c.ClassName == "Folder" then | |
670 | AddChildrenToTable(FROM, c, DIST, TABLE) | |
671 | end | |
672 | end | |
673 | end | |
674 | end | |
675 | ||
676 | function MakeForm(PART, TYPE) | |
677 | if TYPE == "Cyl" then | |
678 | local MSH = IT("CylinderMesh", PART) | |
679 | elseif TYPE == "Ball" then | |
680 | local MSH = IT("SpecialMesh", PART) | |
681 | MSH.MeshType = "Sphere" | |
682 | elseif TYPE == "Wedge" then | |
683 | local MSH = IT("SpecialMesh", PART) | |
684 | MSH.MeshType = "Wedge" | |
685 | end | |
686 | end | |
687 | ||
688 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
689 | if DoesCourontine == false then | |
690 | local Direction = CF(Part.Position, ToLocation) | |
691 | local Distance = (Part.Position - ToLocation).magnitude | |
692 | for i = 1, AmountOfTime do | |
693 | Swait() | |
694 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
695 | Direction = Part.CFrame | |
696 | end | |
697 | Part:remove() | |
698 | elseif DoesCourontine == true then | |
699 | coroutine.resume(coroutine.create(function() | |
700 | local Direction = CF(Part.Position, ToLocation) | |
701 | local Distance = (Part.Position - ToLocation).magnitude | |
702 | for i = 1, AmountOfTime do | |
703 | Swait() | |
704 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
705 | Direction = Part.CFrame | |
706 | end | |
707 | Part:remove() | |
708 | end)) | |
709 | end | |
710 | end | |
711 | ||
712 | function CheckTableForString(Table, String) | |
713 | for i, v in pairs(Table) do | |
714 | if string.find(string.lower(String), string.lower(v)) then | |
715 | return true | |
716 | end | |
717 | end | |
718 | return false | |
719 | end | |
720 | function CheckIntangible(Hit) | |
721 | local ProjectileNames = { | |
722 | "Water", | |
723 | "Arrow", | |
724 | "Projectile", | |
725 | "Effect", | |
726 | "Rail", | |
727 | "Lightning", | |
728 | "Bullet" | |
729 | } | |
730 | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then | |
731 | return true | |
732 | end | |
733 | return false | |
734 | end | |
735 | Debris = game:GetService("Debris") | |
736 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
737 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} | |
738 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore) | |
739 | if RayHit and CheckIntangible(RayHit) then | |
740 | if DelayIfHit then | |
741 | wait() | |
742 | end | |
743 | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) | |
744 | end | |
745 | return RayHit, RayPos, RayNormal | |
746 | end | |
747 | ||
748 | NewInstance = function(instance,parent,properties) | |
749 | local inst = Instance.new(instance,parent) | |
750 | if(properties)then | |
751 | for i,v in next, properties do | |
752 | pcall(function() inst[i] = v end) | |
753 | end | |
754 | end | |
755 | return inst; | |
756 | end | |
757 | ||
758 | local plr = game:service'Players'.LocalPlayer | |
759 | local char2 = plr.Character | |
760 | local hum2 = char2.Humanoid | |
761 | local ra = char2["Right Arm"] | |
762 | local la= char2["Left Arm"] | |
763 | local rl= char2["Right Leg"] | |
764 | local ll = char2["Left Leg"] | |
765 | local hed = char2.Head | |
766 | ||
767 | ||
768 | function checkfriendlist(model) | |
769 | local friend = false | |
770 | local target = nil | |
771 | if model.ClassName == "Player" then | |
772 | target = model | |
773 | else | |
774 | target = game:GetService("Players"):GetPlayerFromCharacter(model) | |
775 | end | |
776 | if target ~= nil then | |
777 | if target:IsFriendsWith(366099047) then friend = true end | |
778 | end | |
779 | return friend | |
780 | end | |
781 | if checkfriendlist(game:GetService("Players").LocalPlayer) == true then | |
782 | ||
783 | end | |
784 | ||
785 | if checkfriendlist(game:GetService("Players").LocalPlayer) == false then | |
786 | ||
787 | end | |
788 | ||
789 | ff = Instance.new("ForceField",char2) | |
790 | ff.Visible = false | |
791 | hum2.Name = "Base" | |
792 | hum2.MaxHealth = 1.0E298 | |
793 | hum2.Health = 1.0E298 | |
794 | game:GetService("RunService"):BindToRenderStep("Bbae", 0, function() | |
795 | if hum2.Health > 0.1 and hum2.Health < 1.0E298 then | |
796 | hum2.MaxHealth = 1.0E298 | |
797 | hum2.Health = 1.0E298 | |
798 | end | |
799 | end) | |
800 | ||
801 | ||
802 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
803 | local DIRECTION = CF(StartPos, EndPos).lookVector | |
804 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
805 | end | |
806 | function turnto(position) | |
807 | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) | |
808 | end | |
809 | BaseLightning = IT("Part") | |
810 | BaseLightning.Anchored = true | |
811 | BaseLightning.CanCollide = false | |
812 | BaseLightning.Material = "Neon" | |
813 | local LightningBolts = {} | |
814 | function Zap(Table) | |
815 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
816 | local Duration = Table.Duration or 2 | |
817 | local Offset = Table.Offset or 2 | |
818 | local Individualize = Table.Individualize or false | |
819 | local MaxRange = Table.MaxRange or 200 | |
820 | local SegmentLength = Table.SegmentLength or 5 | |
821 | local Transparency = Table.Transparency or 0 | |
822 | local Ignore = Table.Ignore or {} | |
823 | local SIZE = Table.SIZE or 0.3 | |
824 | if not (StartPos and TargetPos) or not Character then | |
825 | return | |
826 | end | |
827 | local LightningModel = IT("Folder", Effects) | |
828 | LightningModel.Name = "ZAPP" | |
829 | for i, v in pairs({Character, LightningModel}) do | |
830 | table.insert(Ignore, v) | |
831 | end | |
832 | local LastPos = StartPos | |
833 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
834 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
835 | local RayLength = (StartPos - RayPos).Magnitude | |
836 | local Struck = false | |
837 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
838 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
839 | local LightningBolt = IT("Model", Effects) | |
840 | LightningBolt.Name = "Lightning" | |
841 | LastBolt = LightningBolt | |
842 | Debris:AddItem(LightningBolt, Duration) | |
843 | LightningBolt.Parent = LightningModel | |
844 | for i = 1, TotalSegments do | |
845 | if not Struck then | |
846 | local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset) | |
847 | local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy | |
848 | local SegmentVec = NewPos - LastPos | |
849 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) | |
850 | local RayVec = LastPos - RayPos | |
851 | local LightningPart = BaseLightning:Clone() | |
852 | LightningPart.BrickColor = BrickColor.new(Color) | |
853 | LightningPart.Transparency = Transparency | |
854 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
855 | LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)) | |
856 | local CylinderMesh = IT("CylinderMesh", LightningPart) | |
857 | local OrigCF = LightningPart.CFrame | |
858 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
859 | LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0) | |
860 | LightningPart.Parent = LightningBolt | |
861 | LastPos = NewPos | |
862 | end | |
863 | end | |
864 | return { | |
865 | RayHit = RayHit, | |
866 | RayPos = RayPos, | |
867 | RayNormal = RayNormal, | |
868 | LightningModel = LightningModel | |
869 | } | |
870 | end | |
871 | ||
872 | function Blink() | |
873 | coroutine.resume(coroutine.create(function() | |
874 | if EYE ~= nil and PUPIL ~= nil then | |
875 | for i = 1, 5 do | |
876 | Swait() | |
877 | EYE.Mesh.Scale = EYE.Mesh.Scale - VT(0, 0.2, 0) | |
878 | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale - VT(0, 0.2, 0) | |
879 | end | |
880 | for i = 1, 7 do | |
881 | Swait() | |
882 | EYE.Mesh.Scale = EYE.Mesh.Scale + VT(0, 0.2, 0) | |
883 | PUPIL.Mesh.Scale = PUPIL.Mesh.Scale + VT(0, 0.2, 0) | |
884 | end | |
885 | EYE.Mesh.Scale = VT(1, 1, 1) | |
886 | PUPIL.Mesh.Scale = VT(1, 1, 1) | |
887 | end | |
888 | end)) | |
889 | end | |
890 | ||
891 | local BODY = {} | |
892 | function Face() | |
893 | EYE = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15, 0.3, 0.15), false) | |
894 | MakeForm(EYE, "Ball") | |
895 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15, 0.26, -0.55), CF(0, 0, 0)) | |
896 | PUPIL = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.05, 0.2, 0.05), false) | |
897 | PUPIL.Color = C3(0, 0, 0) | |
898 | MakeForm(PUPIL, "Ball") | |
899 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PUPIL, CF(0.15, 0.26, -0.6), CF(0, 0, 0)) | |
900 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(1.1,1,0.525),false) | |
901 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
902 | MakeForm(Part,"Wedge") | |
903 | ||
904 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
905 | PRT.Color = C3(0,0,0) | |
906 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
907 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
908 | ||
909 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
910 | PRT.Color = C3(0,0,0) | |
911 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
912 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
913 | ||
914 | RightArm.Transparency = 1 | |
915 | local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1,2,1),false) | |
916 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
917 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(1.4,1.4,1.4),false) | |
918 | MakeForm(Sphere,"Ball") | |
919 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
920 | local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false) | |
921 | MakeForm(LaserPart,"Ball") | |
922 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
923 | local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.2),false) | |
924 | MakeForm(Bump,"Ball") | |
925 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
926 | local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false) | |
927 | MakeForm(BottomLaser,"Cyl") | |
928 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
929 | local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
930 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
931 | local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
932 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0)) | |
933 | local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false) | |
934 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0)) | |
935 | local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
936 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0)) | |
937 | local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false) | |
938 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0)) | |
939 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false) | |
940 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0)) | |
941 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false) | |
942 | CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0)) | |
943 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
944 | MakeForm(Part,"Cyl") | |
945 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
946 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false) | |
947 | MakeForm(Part,"Cyl") | |
948 | CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
949 | local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Part", VT(0.3,1.6,0.7),false) | |
950 | MakeForm(Sphere,"Ball") | |
951 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
952 | ||
953 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(1,1,1.2),false) | |
954 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
955 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false) | |
956 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
957 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.3,1.7,1.15),false) | |
958 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
959 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Maroon", "Metal", VT(0.8,0.8,1.225),false) | |
960 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
961 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
962 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
963 | ||
964 | New = function(Object, Parent, Name, Data) | |
965 | local Object = Instance.new(Object) | |
966 | for Index, Value in pairs(Data or {}) do | |
967 | Object[Index] = Value | |
968 | end | |
969 | Object.Parent = Parent | |
970 | Object.Name = Name | |
971 | return Object | |
972 | end | |
973 | ||
974 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
975 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
976 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
977 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
978 | ||
979 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),}) | |
980 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
981 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
982 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
983 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
984 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
985 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
986 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
987 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
988 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
989 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
990 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
991 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
992 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
993 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),}) | |
994 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
995 | ||
996 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Maroon"),Material = Enum.Material.DiamondPlate,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),}) | |
997 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
998 | ||
999 | local LASTPART = Head | |
1000 | for i = 1, 30 do | |
1001 | local MATH = 1 - i / 40 | |
1002 | if LASTPART == Head then | |
1003 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1004 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1005 | LASTPART = Horn | |
1006 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1007 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1008 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(3), RAD(0)), CF(0, 0, 0)) | |
1009 | LASTPART = Horn | |
1010 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1011 | end | |
1012 | end | |
1013 | local LASTPART = Head | |
1014 | for i = 1, 30 do | |
1015 | local MATH = 1 - i / 40 | |
1016 | if LASTPART == Head then | |
1017 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1018 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.5, 0.35, -0.15) * ANGLES(RAD(-15), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
1019 | LASTPART = Horn | |
1020 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1021 | local Horn = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25 * MATH, 0.25, 0.25 * MATH), false) | |
1022 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y / 1.8, 0) * ANGLES(RAD(17), RAD(-3), RAD(0)), CF(0, 0, 0)) | |
1023 | LASTPART = Horn | |
1024 | Horn.Color = C3((i * 2 - 2) / 255, (i * 2 - 2) / 255, (i * 2 - 2) / 255) | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | ||
1029 | ||
1030 | function RightWing() | |
1031 | for i = 1, 2 do | |
1032 | local PART | |
1033 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1034 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(-15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-30 * i)), CF(0, 0, 0)) | |
1035 | table.insert(RWINGS, WingWeld) | |
1036 | PART = Wing | |
1037 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "LargeWing", VT(1, 1.7, 1), false) | |
1038 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(25), RAD(0)), CF(0, -0.8, 0)) | |
1039 | PART = Wing | |
1040 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1041 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1042 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.51), false) | |
1043 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1044 | PART = Wing | |
1045 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1046 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1047 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
1048 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1049 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.25, 0.2, 0.25), false) | |
1050 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1051 | PART = Wing | |
1052 | table.insert(RWINGS, WingWeld) | |
1053 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.4, 0.5, 0.4), false) | |
1054 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1055 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.45, 0.2, 0.45), false) | |
1056 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1057 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.15, 0.15), false) | |
1058 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1059 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1060 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0, 0)) | |
1061 | PART = Wing | |
1062 | table.insert(RWINGS, WingWeld) | |
1063 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1064 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1065 | PART = Wing | |
1066 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1067 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(15), RAD(15)), CF(0, 0, 0)) | |
1068 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.3, 0.3), false) | |
1069 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1070 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 0.2, 0.2), false) | |
1071 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(-0.8, 0.15, 0)) | |
1072 | PART = Wing | |
1073 | table.insert(RWINGS, WingWeld) | |
1074 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1075 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(15)), CF(0, 0, 0)) | |
1076 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1077 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1078 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1079 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1080 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1081 | table.insert(EYES, Wing1) | |
1082 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(-35)), CF(0, 0, 0)) | |
1083 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1084 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
1085 | PART = Wing | |
1086 | table.insert(RWINGS, WingWeld) | |
1087 | end | |
1088 | BODY = {} | |
1089 | for _, c in pairs(Character:GetDescendants()) do | |
1090 | if c:IsA("BasePart") then | |
1091 | table.insert(BODY, { | |
1092 | c, | |
1093 | c.Parent, | |
1094 | c.Material, | |
1095 | c.Color | |
1096 | }) | |
1097 | elseif c:IsA("JointInstance") then | |
1098 | table.insert(BODY, { | |
1099 | c, | |
1100 | c.Parent, | |
1101 | nil, | |
1102 | nil | |
1103 | }) | |
1104 | end | |
1105 | end | |
1106 | end | |
1107 | function LeftWing() | |
1108 | for i = 1, 2 do | |
1109 | local PART | |
1110 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1111 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Wing, CF(-0.8, 0.75 - 0.25 * i, 1) * ANGLES(RAD(0), RAD(15 * i), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(30 * i)), CF(0, 0, 0)) | |
1112 | table.insert(LWINGS, WingWeld) | |
1113 | PART = Wing | |
1114 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "LargeWing", VT(1, 1.7, 1), false) | |
1115 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.5, 0) * ANGLES(RAD(15), RAD(-25), RAD(0)), CF(0, -0.8, 0)) | |
1116 | PART = Wing | |
1117 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1118 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.9, 0) * ANGLES(RAD(-8), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1119 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.2, 0.51), false) | |
1120 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1121 | PART = Wing | |
1122 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1123 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1124 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.8, 0.15, 0.15), false) | |
1125 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.7, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1126 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.25, 0.2, 0.25), false) | |
1127 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1128 | PART = Wing | |
1129 | table.insert(LWINGS, WingWeld) | |
1130 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.4, 0.5, 0.4), false) | |
1131 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.65, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1132 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.45, 0.2, 0.45), false) | |
1133 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, 0), CF(0, 0, 0)) | |
1134 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.15, 0.15), false) | |
1135 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1136 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1137 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0, 0)) | |
1138 | PART = Wing | |
1139 | table.insert(LWINGS, WingWeld) | |
1140 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.2, 0.5, 0.2), false) | |
1141 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0.18, 0.25, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1142 | PART = Wing | |
1143 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.5, 0.5, 0.5), false) | |
1144 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(0, 0.55, 0) * ANGLES(RAD(-15), RAD(-15), RAD(-15)), CF(0, 0, 0)) | |
1145 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.3, 0.3), false) | |
1146 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1147 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 0.2, 0.2), false) | |
1148 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-1, 0.1, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0.8, 0.15, 0)) | |
1149 | PART = Wing | |
1150 | table.insert(LWINGS, WingWeld) | |
1151 | local Wing = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(1, 1, 1), false) | |
1152 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", PART, PART, Wing, CF(-0.4, 0.95, 0) * ANGLES(RAD(-5), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
1153 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Maroon", "WingPart", VT(0.3, 0.3, 0.3), false) | |
1154 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, -0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1155 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(0.7, 0.7, 0.7), false) | |
1156 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.2) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1157 | local Wing1 = CreatePart(3, Weapon, "Neon", 0, 0, "Maroon", "WingPart", VT(0.45, 0.45, 0.45), false) | |
1158 | table.insert(EYES, Wing1) | |
1159 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(0, 0, -0.35) * ANGLES(RAD(0), RAD(0), RAD(35)), CF(0, 0, 0)) | |
1160 | local Wing1 = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "WingPart", VT(1, 0.1, 0.1), false) | |
1161 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing1, CF(-0.8, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
1162 | PART = Wing | |
1163 | table.insert(LWINGS, WingWeld) | |
1164 | end | |
1165 | BODY = {} | |
1166 | for _, c in pairs(Character:GetDescendants()) do | |
1167 | if c:IsA("BasePart") then | |
1168 | table.insert(BODY, { | |
1169 | c, | |
1170 | c.Parent, | |
1171 | c.Material, | |
1172 | c.Color | |
1173 | }) | |
1174 | elseif c:IsA("JointInstance") then | |
1175 | table.insert(BODY, { | |
1176 | c, | |
1177 | c.Parent, | |
1178 | nil, | |
1179 | nil | |
1180 | }) | |
1181 | end | |
1182 | end | |
1183 | end | |
1184 | for _, c in pairs(Weapon:GetChildren()) do | |
1185 | if c.ClassName == "Part" then | |
1186 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1187 | end | |
1188 | end | |
1189 | for _, c in pairs(Character:GetDescendants()) do | |
1190 | if c:IsA("BasePart") then | |
1191 | table.insert(BODY, { | |
1192 | c, | |
1193 | c.Parent, | |
1194 | c.Material, | |
1195 | c.Color | |
1196 | }) | |
1197 | elseif c:IsA("JointInstance") then | |
1198 | table.insert(BODY, { | |
1199 | c, | |
1200 | c.Parent, | |
1201 | nil, | |
1202 | nil | |
1203 | }) | |
1204 | end | |
1205 | end | |
1206 | for e = 1, #BODY do | |
1207 | if BODY[e] ~= nil then | |
1208 | do | |
1209 | local STUFF = BODY[e] | |
1210 | local PART = STUFF[1] | |
1211 | local PARENT = STUFF[2] | |
1212 | local MATERIAL = STUFF[3] | |
1213 | local COLOR = STUFF[4] | |
1214 | PART.AncestryChanged:Connect(function() | |
1215 | if PART.ClassName == "Part" then | |
1216 | PART.Material = MATERIAL | |
1217 | PART.Color = COLOR | |
1218 | end | |
1219 | PART.Parent = PARENT | |
1220 | end) | |
1221 | end | |
1222 | end | |
1223 | end | |
1224 | function refit() | |
1225 | Weapon.Parent = Character | |
1226 | Character.Parent = workspace | |
1227 | for e = 1, #BODY do | |
1228 | if BODY[e] ~= nil then | |
1229 | local STUFF = BODY[e] | |
1230 | local PART = STUFF[1] | |
1231 | local PARENT = STUFF[2] | |
1232 | local MATERIAL = STUFF[3] | |
1233 | local COLOR = STUFF[4] | |
1234 | if PART.Parent ~= PARENT then | |
1235 | Humanoid:remove() | |
1236 | if PART.ClassName == "Part" then | |
1237 | PART.Material = MATERIAL | |
1238 | PART.Color = COLOR | |
1239 | end | |
1240 | PART.Parent = PARENT | |
1241 | Humanoid = IT("Humanoid", Character) | |
1242 | end | |
1243 | end | |
1244 | end | |
1245 | end | |
1246 | ||
1247 | local SKILLTEXTCOLOR = C3(0, 0, 0) | |
1248 | local SKILLTEXTCOLOR2 = C3(1, 0, 0) | |
1249 | local SKILLTEXTCOLOR3 = BRICKC"Bright orange".Color | |
1250 | local SKILLFONT = "Antique" | |
1251 | local SKILLTEXTSIZE = 8 | |
1252 | Weapon.Parent = Character | |
1253 | Humanoid.Died:connect(function() | |
1254 | refit() | |
1255 | chatfunc("Futile.") | |
1256 | end) | |
1257 | ||
1258 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame") | |
1259 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame") | |
1260 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame") | |
1261 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame") | |
1262 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame") | |
1263 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 6 Frame") | |
1264 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 7 Frame") | |
1265 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 8 Frame") | |
1266 | ||
1267 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Neck Snap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") | |
1268 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
1269 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Stone Ball", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
1270 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4") | |
1271 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[F] Eliminate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5") | |
1272 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Orb of Ultimate Destruction", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 6") | |
1273 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Demon Form", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 7") | |
1274 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Chaos Form", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 8") | |
1275 | ||
1276 | function StatLabel(CFRAME, TEXT, COLOR) | |
1277 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1278 | STATPART.CFrame = CF(CFRAME.p, CFRAME.p + VT(MRANDOM(-5, 5), MRANDOM(0, 5), MRANDOM(-5, 5))) | |
1279 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1280 | game:GetService("Debris"):AddItem(STATPART, 5) | |
1281 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1282 | BILLBOARDGUI.Adornee = STATPART | |
1283 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5, 0) | |
1284 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1285 | BILLBOARDGUI.AlwaysOnTop = false | |
1286 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1287 | TEXTLABEL.BackgroundTransparency = 1 | |
1288 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1289 | TEXTLABEL.Text = TEXT | |
1290 | TEXTLABEL.Font = SKILLFONT | |
1291 | TEXTLABEL.FontSize = "Size42" | |
1292 | TEXTLABEL.TextColor3 = COLOR | |
1293 | TEXTLABEL.TextStrokeTransparency = 0 | |
1294 | TEXTLABEL.TextScaled = true | |
1295 | TEXTLABEL.TextWrapped = true | |
1296 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1297 | for i = 1, 50 do | |
1298 | Swait() | |
1299 | STATPART.CFrame = STATPART.CFrame * CF(0, 0, -0.2) | |
1300 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + 0.02 | |
1301 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
1302 | end | |
1303 | THEPART.Parent = nil | |
1304 | end), STATPART, TEXTLABEL) | |
1305 | end | |
1306 | ||
1307 | --//=================================\\ | |
1308 | --|| text above head lel | |
1309 | --\\=================================// | |
1310 | ||
1311 | function chatfunc(text) | |
1312 | local chat = coroutine.wrap(function() | |
1313 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1314 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1315 | end | |
1316 | local Bill = Instance.new("BillboardGui",Character) | |
1317 | Bill.Size = UDim2.new(0,125,0,50) | |
1318 | Bill.StudsOffset = Vector3.new(0,1.5,0) | |
1319 | Bill.Adornee = Character.Head | |
1320 | Bill.Name = "TalkingBillBoard" | |
1321 | local Hehe = Instance.new("TextLabel",Bill) | |
1322 | Hehe.BackgroundTransparency = 1 | |
1323 | Hehe.BorderSizePixel = 0 | |
1324 | Hehe.Text = "" | |
1325 | Hehe.Font = "Antique" | |
1326 | Hehe.TextSize = 50 | |
1327 | Hehe.TextStrokeTransparency = 0 | |
1328 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1329 | coroutine.resume(coroutine.create(function() | |
1330 | while Hehe ~= nil do | |
1331 | Swait() | |
1332 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1333 | Hehe.Rotation = math.random(-5,5) | |
1334 | Hehe.TextColor3 = Color3.new(0,0,0) | |
1335 | Hehe.TextStrokeColor3 = BRICKC"Maroon".Color | |
1336 | end | |
1337 | end)) | |
1338 | for i = 1,string.len(text),1 do | |
1339 | Swait() | |
1340 | Hehe.Text = string.sub(text,1,i) | |
1341 | end | |
1342 | Swait(90)--Re[math.random(1, 93)] | |
1343 | for i = 0, 1, .025 do | |
1344 | Swait() | |
1345 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1346 | Hehe.TextStrokeTransparency = i | |
1347 | Hehe.TextTransparency = i | |
1348 | end | |
1349 | Bill:Destroy() | |
1350 | end) | |
1351 | chat() | |
1352 | end | |
1353 | ||
1354 | function onChatted(msg) | |
1355 | chatfunc(msg) | |
1356 | end | |
1357 | ||
1358 | Player.Chatted:connect(onChatted) | |
1359 | ||
1360 | function Ragdoll(Character2, CharTorso, Headless, Velocity) | |
1361 | local svch = Character2 | |
1362 | Character2:BreakJoints() | |
1363 | local hum = Character2:findFirstChild("Humanoid") | |
1364 | local q = Character2:GetChildren() | |
1365 | local CLONE = IT("Model", Effects) | |
1366 | for i = 1, #q do | |
1367 | if q[i].ClassName == "Accessory" and Headless == true then | |
1368 | q[i]:remove() | |
1369 | elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then | |
1370 | q[i].Parent = CLONE | |
1371 | elseif q[i].ClassName ~= "Humanoid" then | |
1372 | q[i]:remove() | |
1373 | end | |
1374 | end | |
1375 | local chrclone = CLONE | |
1376 | local ch = chrclone:GetChildren() | |
1377 | local i | |
1378 | for i = 1, #ch do | |
1379 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
1380 | ch[i]:remove() | |
1381 | end | |
1382 | end | |
1383 | local function Scan(ch) | |
1384 | local e | |
1385 | for e = 1, #ch do | |
1386 | Scan(ch[e]:GetChildren()) | |
1387 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1388 | ch[e]:remove() | |
1389 | end | |
1390 | end | |
1391 | end | |
1392 | Character2:remove() | |
1393 | local NEWHUM = IT("Humanoid") | |
1394 | NEWHUM.Name = "Corpse" | |
1395 | NEWHUM.Health = 0 | |
1396 | NEWHUM.MaxHealth = 0 | |
1397 | NEWHUM.PlatformStand = true | |
1398 | NEWHUM.Parent = CLONE | |
1399 | NEWHUM.DisplayDistanceType = "None" | |
1400 | Scan(chrclone:GetChildren()) | |
1401 | local ch = Character2:GetChildren() | |
1402 | local i | |
1403 | for i = 1, #ch do | |
1404 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1405 | ch[i]:remove() | |
1406 | end | |
1407 | end | |
1408 | local ch = Character2:GetChildren() | |
1409 | local i | |
1410 | for i = 1, #ch do | |
1411 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1412 | ch[i]:remove() | |
1413 | end | |
1414 | end | |
1415 | Character2 = chrclone | |
1416 | local Torso2 = Character2.Torso | |
1417 | local movevector = Vector3.new() | |
1418 | if Torso2 then | |
1419 | movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector | |
1420 | local Head = Character2:FindFirstChild("Head") | |
1421 | if Head then | |
1422 | local Neck = Instance.new("Weld") | |
1423 | Neck.Name = "Neck" | |
1424 | Neck.Part0 = Torso2 | |
1425 | Neck.Part1 = Head | |
1426 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1427 | Neck.C1 = CFrame.new() | |
1428 | Neck.Parent = Torso2 | |
1429 | if Headless == true then | |
1430 | Head.Transparency = 1 | |
1431 | Head:ClearAllChildren() | |
1432 | end | |
1433 | end | |
1434 | local Limb = Character2:FindFirstChild("Right Arm") | |
1435 | if Limb then | |
1436 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1437 | local Joint = Instance.new("Glue") | |
1438 | Joint.Name = "RightShoulder" | |
1439 | Joint.Part0 = Torso2 | |
1440 | Joint.Part1 = Limb | |
1441 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1442 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1443 | Joint.Parent = Torso2 | |
1444 | local B = Instance.new("Part") | |
1445 | B.TopSurface = 0 | |
1446 | B.BottomSurface = 0 | |
1447 | B.formFactor = "Symmetric" | |
1448 | B.Size = Vector3.new(1, 1, 1) | |
1449 | B.Transparency = 1 | |
1450 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1451 | B.Parent = Character2 | |
1452 | local W = Instance.new("Weld") | |
1453 | W.Part0 = Limb | |
1454 | W.Part1 = B | |
1455 | W.C0 = CFrame.new(0, -0.5, 0) | |
1456 | W.Parent = Limb | |
1457 | end | |
1458 | local Limb = Character2:FindFirstChild("Left Arm") | |
1459 | if Limb then | |
1460 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1461 | local Joint = Instance.new("Glue") | |
1462 | Joint.Name = "LeftShoulder" | |
1463 | Joint.Part0 = Torso2 | |
1464 | Joint.Part1 = Limb | |
1465 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1466 | Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1467 | Joint.Parent = Torso2 | |
1468 | local B = Instance.new("Part") | |
1469 | B.TopSurface = 0 | |
1470 | B.BottomSurface = 0 | |
1471 | B.formFactor = "Symmetric" | |
1472 | B.Size = Vector3.new(1, 1, 1) | |
1473 | B.Transparency = 1 | |
1474 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1475 | B.Parent = Character2 | |
1476 | local W = Instance.new("Weld") | |
1477 | W.Part0 = Limb | |
1478 | W.Part1 = B | |
1479 | W.C0 = CFrame.new(0, -0.5, 0) | |
1480 | W.Parent = Limb | |
1481 | end | |
1482 | local Limb = Character2:FindFirstChild("Right Leg") | |
1483 | if Limb then | |
1484 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1485 | local Joint = Instance.new("Glue") | |
1486 | Joint.Name = "RightHip" | |
1487 | Joint.Part0 = Torso2 | |
1488 | Joint.Part1 = Limb | |
1489 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1490 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1491 | Joint.Parent = Torso2 | |
1492 | local B = Instance.new("Part") | |
1493 | B.TopSurface = 0 | |
1494 | B.BottomSurface = 0 | |
1495 | B.formFactor = "Symmetric" | |
1496 | B.Size = Vector3.new(1, 1, 1) | |
1497 | B.Transparency = 1 | |
1498 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1499 | B.Parent = Character2 | |
1500 | local W = Instance.new("Weld") | |
1501 | W.Part0 = Limb | |
1502 | W.Part1 = B | |
1503 | W.C0 = CFrame.new(0, -0.5, 0) | |
1504 | W.Parent = Limb | |
1505 | end | |
1506 | local Limb = Character2:FindFirstChild("Left Leg") | |
1507 | if Limb then | |
1508 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1509 | local Joint = Instance.new("Glue") | |
1510 | Joint.Name = "LeftHip" | |
1511 | Joint.Part0 = Torso2 | |
1512 | Joint.Part1 = Limb | |
1513 | Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1514 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1515 | Joint.Parent = Torso2 | |
1516 | local B = Instance.new("Part") | |
1517 | B.TopSurface = 0 | |
1518 | B.BottomSurface = 0 | |
1519 | B.formFactor = "Symmetric" | |
1520 | B.Size = Vector3.new(1, 1, 1) | |
1521 | B.Transparency = 1 | |
1522 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1523 | B.Parent = Character2 | |
1524 | local W = Instance.new("Weld") | |
1525 | W.Part0 = Limb | |
1526 | W.Part1 = B | |
1527 | W.C0 = CFrame.new(0, -0.5, 0) | |
1528 | W.Parent = Limb | |
1529 | end | |
1530 | local Bar = Instance.new("Part") | |
1531 | Bar.TopSurface = 0 | |
1532 | Bar.BottomSurface = 0 | |
1533 | Bar.formFactor = "Symmetric" | |
1534 | Bar.Size = Vector3.new(1, 1, 1) | |
1535 | Bar.Transparency = 1 | |
1536 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1537 | Bar.Parent = Character2 | |
1538 | local Weld = Instance.new("Weld") | |
1539 | Weld.Part0 = Torso2 | |
1540 | Weld.Part1 = Bar | |
1541 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1542 | Weld.Parent = Torso2 | |
1543 | end | |
1544 | Character2.Parent = Weapon | |
1545 | if movevector ~= Vector3.new() then | |
1546 | for i = 1, 10 do | |
1547 | Torso2.Velocity = movevector * Velocity | |
1548 | end | |
1549 | end | |
1550 | Character2.Name = "Corpse" | |
1551 | return Character2, Torso2 | |
1552 | end | |
1553 | function PuddleOfBlood(Position, MaxDrop, Model, MaxSize) | |
1554 | local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model) | |
1555 | if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then | |
1556 | if HITFLOOR.Name == "BloodPuddle" then | |
1557 | local DIST = (Position - HITFLOOR.Position).Magnitude | |
1558 | if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then | |
1559 | HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1) | |
1560 | end | |
1561 | elseif HITFLOOR.Anchored == true then | |
1562 | do | |
1563 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(2, 0, 2)) | |
1564 | BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1565 | MakeForm(BLOOD, "Cyl") | |
1566 | coroutine.resume(coroutine.create(function() | |
1567 | Swait(75) | |
1568 | while true do | |
1569 | Swait() | |
1570 | BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02) | |
1571 | if BLOOD.Size.Z < 0.051 then | |
1572 | BLOOD:remove() | |
1573 | break | |
1574 | end | |
1575 | end | |
1576 | end)) | |
1577 | end | |
1578 | end | |
1579 | end | |
1580 | end | |
1581 | function SprayBlood(POSITION, DIRECTION, BloodSize) | |
1582 | local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Maroon", "BloodPuddle", VT(1, 1, 1), false) | |
1583 | BLOOD.CFrame = CF(POSITION) | |
1584 | MakeForm(BLOOD, "Ball") | |
1585 | local bv = Instance.new("BodyVelocity", BLOOD) | |
1586 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1587 | bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25 | |
1588 | bv.Name = "MOVE" | |
1589 | Debris:AddItem(bv, 0.05) | |
1590 | coroutine.resume(coroutine.create(function() | |
1591 | local HASTOUCHEDGROUND = false | |
1592 | local HIT = BLOOD.Touched:Connect(function(hit) | |
1593 | if hit.Anchored == true then | |
1594 | HASTOUCHEDGROUND = true | |
1595 | PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize) | |
1596 | end | |
1597 | end) | |
1598 | wait(5) | |
1599 | if HASTOUCHEDGROUND == false then | |
1600 | BLOOD:remove() | |
1601 | end | |
1602 | end)) | |
1603 | end | |
1604 | function ApplyDamage(Humanoid, Damage, TorsoPart) | |
1605 | local defence = Instance.new("BoolValue", Humanoid.Parent) | |
1606 | defence.Name = "HitBy" .. Player.Name | |
1607 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1608 | Damage = Damage * DAMAGEMULTIPLIER | |
1609 | if Humanoid.Health ~= 0 then | |
1610 | local CritChance = MRANDOM(1, 100) | |
1611 | if Damage > Humanoid.Health then | |
1612 | Damage = math.ceil(Humanoid.Health) | |
1613 | if Damage == 0 then | |
1614 | Damage = 0.1 | |
1615 | end | |
1616 | end | |
1617 | Humanoid.Health = Humanoid.Health - Damage | |
1618 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1619 | end | |
1620 | end | |
1621 | ||
1622 | function Petrify(Foe) | |
1623 | local STONEMODEL = IT("Model", Effects) | |
1624 | local CHILDREN = Foe:GetDescendants() | |
1625 | for index, CHILD in pairs(CHILDREN) do | |
1626 | if CHILD:IsA("BasePart") and CHILD.Parent.ClassName ~= "Folder" then | |
1627 | CHILD.Parent = STONEMODEL | |
1628 | CHILD.Material = "Slate" | |
1629 | CHILD.Color = C3(1, 0, 0) | |
1630 | if CHILD:FindFirstChildOfClass("SpecialMesh") then | |
1631 | local mesh = CHILD:FindFirstChildOfClass("SpecialMesh") | |
1632 | mesh.TextureId = "" | |
1633 | end | |
1634 | if CHILD:FindFirstChildOfClass("Decal") then | |
1635 | local mesh = CHILD:FindFirstChildOfClass("Decal") | |
1636 | mesh:remove() | |
1637 | end | |
1638 | if CHILD.ClassName == "MeshPart" then | |
1639 | CHILD.TextureID = "" | |
1640 | end | |
1641 | if CHILD.ClassName == "UnionOperation" then | |
1642 | CHILD.UsePartColor = true | |
1643 | end | |
1644 | CHILD.CanCollide = true | |
1645 | end | |
1646 | end | |
1647 | Debris:AddItem(STONEMODEL, 5) | |
1648 | end | |
1649 | ||
1650 | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, INSTAKILL) | |
1651 | local CHILDREN = workspace:GetDescendants() | |
1652 | for index, CHILD in pairs(CHILDREN) do | |
1653 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1654 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1655 | if HUM then | |
1656 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1657 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1658 | if INSTAKILL == true then | |
1659 | Petrify(CHILD) | |
1660 | else | |
1661 | local DMG = MRANDOM(MINDMG, MAXDMG) | |
1662 | ApplyDamage(HUM, DMG, TORSO) | |
1663 | end | |
1664 | if FLING > 0 then | |
1665 | for _, c in pairs(CHILD:GetChildren()) do | |
1666 | if c:IsA("BasePart") then | |
1667 | local bv = Instance.new("BodyVelocity") | |
1668 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1669 | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING | |
1670 | bv.Parent = c | |
1671 | Debris:AddItem(bv, 0.05) | |
1672 | end | |
1673 | end | |
1674 | end | |
1675 | end | |
1676 | end | |
1677 | end | |
1678 | end | |
1679 | end | |
1680 | ||
1681 | function Intro() | |
1682 | coroutine.resume(coroutine.create(function() | |
1683 | INTROING = true | |
1684 | Rooted = true | |
1685 | FINISHEDINTRO = true | |
1686 | Head.Transparency = 1 | |
1687 | Torso.Transparency = 1 | |
1688 | LeftArm.Transparency = 1 | |
1689 | RightArm.Transparency = 1 | |
1690 | LeftLeg.Transparency = 1 | |
1691 | RightLeg.Transparency = 1 | |
1692 | repeat | |
1693 | Swait() | |
1694 | until sick.TimePosition > 1 | |
1695 | for i = 1, 5 do | |
1696 | WACKYEFFECT({ | |
1697 | EffectType = "Sphere", | |
1698 | Size = VT(3, 3, 3), | |
1699 | Size2 = VT(0, 5, 0), | |
1700 | Transparency = 0.5, | |
1701 | Transparency2 = 1, | |
1702 | CFrame = Torso.CFrame, | |
1703 | MoveToPos = Torso.CFrame * CF(15, -5 + i * 3, 1).p, | |
1704 | RotationX = MRANDOM(-5, 5), | |
1705 | RotationY = MRANDOM(-5, 5), | |
1706 | RotationZ = MRANDOM(-5, 5), | |
1707 | Material = "Neon", | |
1708 | Color = C3(1, 0, 0), | |
1709 | SoundID = nil, | |
1710 | SoundPitch = nil, | |
1711 | SoundVolume = nil | |
1712 | }) | |
1713 | end | |
1714 | RightWing() | |
1715 | repeat | |
1716 | Swait() | |
1717 | until sick.TimePosition > 1.8 | |
1718 | for i = 1, 5 do | |
1719 | WACKYEFFECT({ | |
1720 | EffectType = "Sphere", | |
1721 | Size = VT(3, 3, 3), | |
1722 | Size2 = VT(0, 5, 0), | |
1723 | Transparency = 0.5, | |
1724 | Transparency2 = 1, | |
1725 | CFrame = Torso.CFrame, | |
1726 | MoveToPos = Torso.CFrame * CF(-15, -5 + i * 3, 1).p, | |
1727 | RotationX = MRANDOM(-5, 5), | |
1728 | RotationY = MRANDOM(-5, 5), | |
1729 | RotationZ = MRANDOM(-5, 5), | |
1730 | Material = "Neon", | |
1731 | Color = C3(1, 0, 0), | |
1732 | SoundID = nil, | |
1733 | SoundPitch = nil, | |
1734 | SoundVolume = nil | |
1735 | }) | |
1736 | end | |
1737 | LeftWing() | |
1738 | repeat | |
1739 | Swait() | |
1740 | until sick.TimePosition > 3.5 | |
1741 | for i = 1, 6 do | |
1742 | WACKYEFFECT({ | |
1743 | EffectType = "Sphere", | |
1744 | Size = VT(1.5, 1.5, 1.5), | |
1745 | Size2 = VT(4, 4, 4) * i, | |
1746 | Transparency = 0, | |
1747 | Transparency2 = 1, | |
1748 | CFrame = Head.CFrame, | |
1749 | MoveToPos = nil, | |
1750 | RotationX = 0, | |
1751 | RotationY = 0, | |
1752 | RotationZ = 0, | |
1753 | Material = "Neon", | |
1754 | Color = C3(1, 0, 0), | |
1755 | SoundID = nil, | |
1756 | SoundPitch = nil, | |
1757 | SoundVolume = nil | |
1758 | }) | |
1759 | end | |
1760 | Head.Transparency = 0 | |
1761 | Face() | |
1762 | wait(0.5) | |
1763 | for i = 1, 100 do | |
1764 | Swait() | |
1765 | Torso.Transparency = 1 - i / 100 | |
1766 | LeftArm.Transparency = 1 - i / 100 | |
1767 | RightArm.Transparency = 1 - i / 100 | |
1768 | LeftLeg.Transparency = 1 - i / 100 | |
1769 | RightLeg.Transparency = 1 - i / 100 | |
1770 | Humanoid.DisplayDistanceType = "None" | |
1771 | local naeeym2 = IT("BillboardGui",Character) | |
1772 | naeeym2.AlwaysOnTop = true | |
1773 | naeeym2.Size = UDim2.new(7,50,4,25) | |
1774 | naeeym2.StudsOffset = Vector3.new(0,4,0) | |
1775 | naeeym2.MaxDistance = 200 | |
1776 | naeeym2.Adornee = Character.Head | |
1777 | naeeym2.Name = "Name" | |
1778 | local tecks2 = IT("TextLabel",naeeym2) | |
1779 | tecks2.BackgroundTransparency = 1 | |
1780 | tecks2.TextScaled = true | |
1781 | tecks2.BorderSizePixel = 0 | |
1782 | tecks2.Text = Character.Name | |
1783 | tecks2.Font = "Antique" | |
1784 | tecks2.TextSize = 50 | |
1785 | tecks2.TextStrokeTransparency = 0 | |
1786 | tecks2.TextColor3 = BRICKC"Maroon".Color | |
1787 | tecks2.TextStrokeColor3 = C3(0,0,0) | |
1788 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1789 | tecks2.Parent = naeeym2 | |
1790 | ||
1791 | Humanoid.DisplayDistanceType = "None" | |
1792 | local naeeym3 = IT("BillboardGui",Character) | |
1793 | naeeym3.AlwaysOnTop = true | |
1794 | naeeym3.Size = UDim2.new(5,30,2,15) | |
1795 | naeeym3.StudsOffset = Vector3.new(0,2.5,0) | |
1796 | naeeym3.MaxDistance = 200 | |
1797 | naeeym3.Adornee = Character.Head | |
1798 | naeeym3.Name = "Name" | |
1799 | local tecks3 = IT("TextLabel",naeeym3) | |
1800 | tecks3.BackgroundTransparency = 1 | |
1801 | tecks3.TextScaled = true | |
1802 | tecks3.BorderSizePixel = 0 | |
1803 | tecks3.Text = "God of Destruction" | |
1804 | tecks3.Font = "Fantasy" | |
1805 | tecks3.TextSize = 50 | |
1806 | tecks3.TextStrokeTransparency = 1 | |
1807 | tecks3.TextColor3 = Color3.new(0,0,0) | |
1808 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
1809 | tecks3.Parent = naeeym3 | |
1810 | end | |
1811 | FINISHEDINTRO = true | |
1812 | Rooted = false | |
1813 | end)) | |
1814 | end | |
1815 | ||
1816 | function Warp() | |
1817 | ATTACK = true | |
1818 | Rooted = false | |
1819 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1820 | Swait() | |
1821 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1822 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
1823 | end | |
1824 | for e = 1, #BODY do | |
1825 | if BODY[e] ~= nil then | |
1826 | local STUFF = BODY[e] | |
1827 | local PART = STUFF[1] | |
1828 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1829 | local PRT = PART:Clone() | |
1830 | PRT.Anchored = true | |
1831 | PRT.CanCollide = false | |
1832 | PRT.Material = "Neon" | |
1833 | PRT.Color = C3(1,0,0) | |
1834 | PRT.Name = "WarpEffect" | |
1835 | PRT.Parent = Effects | |
1836 | PRT.CFrame = PART.CFrame | |
1837 | PRT:BreakJoints() | |
1838 | if PRT:FindFirstChildOfClass("Sound") then | |
1839 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1840 | end | |
1841 | if PRT:FindFirstChildOfClass("Decal") then | |
1842 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1843 | end | |
1844 | coroutine.resume(coroutine.create(function() | |
1845 | for i = 1, 100 do | |
1846 | Swait() | |
1847 | PRT.Transparency = PRT.Transparency + 1/100 | |
1848 | end | |
1849 | PRT:remove() | |
1850 | end)) | |
1851 | end | |
1852 | end | |
1853 | end | |
1854 | local POS = RootPart.Orientation | |
1855 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1856 | RootPart.Orientation = POS | |
1857 | RootJoint.Parent = RootPart | |
1858 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1859 | Swait() | |
1860 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1861 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
1862 | end | |
1863 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1864 | Swait() | |
1865 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
1866 | end | |
1867 | ATTACK = false | |
1868 | Rooted = false | |
1869 | end | |
1870 | ||
1871 | function Neck_Snap() | |
1872 | ATTACK = true | |
1873 | Rooted = false | |
1874 | local TARGET, HUM, WLD | |
1875 | local HIT = RightArm.Touched:Connect(function(hit) | |
1876 | if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
1877 | local H = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1878 | if H.Health > 0 then | |
1879 | local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1880 | if TORSO then | |
1881 | HUM = H | |
1882 | TARGET = TORSO | |
1883 | H.PlatformStand = true | |
1884 | CreateSound("260411131", TORSO, 10, 1) | |
1885 | WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1886 | end | |
1887 | end | |
1888 | end | |
1889 | end) | |
1890 | for i = 0, 1, 0.1 / Animation_Speed do | |
1891 | Swait() | |
1892 | if TARGET ~= nil then | |
1893 | break | |
1894 | end | |
1895 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
1896 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
1897 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1898 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1899 | if ANIM == "Idle" then | |
1900 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1901 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1902 | elseif ANIM == "Walk" then | |
1903 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1904 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1905 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1906 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1907 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1908 | end | |
1909 | end | |
1910 | HIT:disconnect() | |
1911 | if TARGET ~= nil then | |
1912 | if TARGET.Name == "Torso" then | |
1913 | for i = 0, 2, 0.1 / Animation_Speed do | |
1914 | Swait() | |
1915 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1916 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1917 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1918 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1919 | if ANIM == "Idle" then | |
1920 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1921 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1922 | elseif ANIM == "Walk" then | |
1923 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1924 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1925 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1926 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1927 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1928 | end | |
1929 | end | |
1930 | WLD:remove() | |
1931 | local HEAD = TARGET.Parent:FindFirstChild("Head") | |
1932 | if HEAD then | |
1933 | UNANCHOR = false | |
1934 | RootPart.Anchored = true | |
1935 | local HD = HEAD:Clone() | |
1936 | HD.Name = "FakeHead" | |
1937 | for i = 1, 7 do | |
1938 | SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15) | |
1939 | end | |
1940 | local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0) | |
1941 | local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1942 | HD.Parent = RAGDOLL | |
1943 | CreateSound("264486467", RAGTORSO, 10, 1) | |
1944 | local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1945 | for i = 0, 2, 0.1 / Animation_Speed do | |
1946 | Swait() | |
1947 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1948 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1949 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1950 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1951 | if ANIM == "Idle" then | |
1952 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1953 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1954 | elseif ANIM == "Walk" then | |
1955 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1956 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1957 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1958 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1959 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1960 | end | |
1961 | end | |
1962 | HEADWELD:remove() | |
1963 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
1964 | Swait() | |
1965 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1966 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1967 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1968 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1969 | if ANIM == "Idle" then | |
1970 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1971 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1972 | elseif ANIM == "Walk" then | |
1973 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1974 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1975 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1976 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1977 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1978 | end | |
1979 | end | |
1980 | CreateSound("907333406", Torso, 10, 1) | |
1981 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
1982 | Swait() | |
1983 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1984 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1985 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1986 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1987 | if ANIM == "Idle" then | |
1988 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1989 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1990 | elseif ANIM == "Walk" then | |
1991 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1992 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1993 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
1994 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1995 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1996 | end | |
1997 | end | |
1998 | RAGWELD:remove() | |
1999 | local bv = Instance.new("BodyVelocity") | |
2000 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2001 | bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75 | |
2002 | bv.Parent = RAGTORSO | |
2003 | Debris:AddItem(bv, 0.05) | |
2004 | Debris:AddItem(RAGDOLL, 5) | |
2005 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
2006 | Swait() | |
2007 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2008 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2009 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2010 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2011 | if ANIM == "Idle" then | |
2012 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2013 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2014 | elseif ANIM == "Walk" then | |
2015 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2016 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2017 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2018 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2019 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2020 | end | |
2021 | end | |
2022 | UNANCHOR = true | |
2023 | RootPart.Anchored = false | |
2024 | end | |
2025 | else | |
2026 | UNANCHOR = false | |
2027 | RootPart.Anchored = true | |
2028 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2029 | Swait() | |
2030 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2031 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2032 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2033 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2034 | if ANIM == "Idle" then | |
2035 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2036 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2037 | elseif ANIM == "Walk" then | |
2038 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2039 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2040 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2041 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2042 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2043 | end | |
2044 | end | |
2045 | for i = 0, 0.25, 0.1 / Animation_Speed do | |
2046 | Swait() | |
2047 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2048 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2049 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2050 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2051 | if ANIM == "Idle" then | |
2052 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2053 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2054 | elseif ANIM == "Walk" then | |
2055 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2056 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2057 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2058 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2059 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2060 | end | |
2061 | end | |
2062 | WLD:remove() | |
2063 | TARGET.Parent:BreakJoints() | |
2064 | for _, c in pairs(TARGET.Parent:GetChildren()) do | |
2065 | if c:IsA("BasePart") then | |
2066 | local bv = Instance.new("BodyVelocity") | |
2067 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2068 | bv.velocity = CF(Torso.Position, c.Position).lookVector * 75 | |
2069 | bv.Parent = c | |
2070 | Debris:AddItem(bv, 0.05) | |
2071 | end | |
2072 | end | |
2073 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
2074 | Swait() | |
2075 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2076 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2079 | if ANIM == "Idle" then | |
2080 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2081 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2082 | elseif ANIM == "Walk" then | |
2083 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2084 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2085 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2086 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2087 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2088 | end | |
2089 | end | |
2090 | UNANCHOR = true | |
2091 | RootPart.Anchored = false | |
2092 | end | |
2093 | end | |
2094 | ATTACK = false | |
2095 | Rooted = false | |
2096 | end | |
2097 | ||
2098 | function Taunt() | |
2099 | ATTACK = true | |
2100 | Rooted = true | |
2101 | CreateSound("865772398", Character, 10, 1) | |
2102 | chatfunc("Foolish Decision..") | |
2103 | for i=0, 1, 0.1 / Animation_Speed do | |
2104 | Swait() | |
2105 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2106 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2107 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2108 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2109 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2110 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2111 | end | |
2112 | for i=0, 2, 0.1 / Animation_Speed do | |
2113 | Swait() | |
2114 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2115 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2116 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2117 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2118 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2119 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2120 | end | |
2121 | ATTACK = false | |
2122 | Rooted = false | |
2123 | end | |
2124 | ||
2125 | function Taunt2() | |
2126 | CreateSound(907331307, Torso, 50, 0.9, false) | |
2127 | chatfunc("You have failed.") | |
2128 | for i=0, 1, 0.1 / Animation_Speed do | |
2129 | Swait() | |
2130 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2131 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2132 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(170), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2133 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2134 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2135 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2136 | end | |
2137 | for i=0, 2, 0.1 / Animation_Speed do | |
2138 | Swait() | |
2139 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2140 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2141 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(75), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2142 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2143 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2144 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2145 | end | |
2146 | end | |
2147 | ||
2148 | function Imperfect_Command() | |
2149 | ATTACK = true | |
2150 | Rooted = true | |
2151 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2152 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2153 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2154 | if TORSO then | |
2155 | local GYRO = IT("BodyGyro", RootPart) | |
2156 | GYRO.D = 750 | |
2157 | GYRO.P = 2000 | |
2158 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2159 | CreateSound("907330103", Torso, 10, 1) | |
2160 | for i = 0, 1.6, 0.1 / Animation_Speed do | |
2161 | Swait() | |
2162 | WACKYEFFECT({ | |
2163 | Time = 5, | |
2164 | EffectType = "Round Slash", | |
2165 | Size = VT(0, 0, 0), | |
2166 | Size2 = VT(0.01, 0, 0.01), | |
2167 | Transparency = 0.5, | |
2168 | Transparency2 = 1, | |
2169 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2170 | MoveToPos = nil, | |
2171 | RotationX = MRANDOM(-50, 50) / 10, | |
2172 | RotationY = MRANDOM(-50, 50) / 10, | |
2173 | RotationZ = MRANDOM(-50, 50) / 10, | |
2174 | Material = "Neon", | |
2175 | Color = C3(1, 0, 0), | |
2176 | SoundID = nil, | |
2177 | SoundPitch = nil, | |
2178 | SoundVolume = nil | |
2179 | }) | |
2180 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2181 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.2 / Animation_Speed) | |
2182 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.2 / Animation_Speed) | |
2183 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(120), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-45)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2184 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2185 | if ANIM == "Idle" then | |
2186 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2187 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2188 | elseif ANIM == "Walk" then | |
2189 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2190 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2191 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2192 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2193 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2194 | end | |
2195 | end | |
2196 | GYRO:remove() | |
2197 | for i = 1, 15 do | |
2198 | WACKYEFFECT({ | |
2199 | Time = MRANDOM(15, 85), | |
2200 | EffectType = "Round Slash", | |
2201 | Size = VT(0, 0, 0), | |
2202 | Size2 = VT(0.3, 0, 0.3), | |
2203 | Transparency = 0.5, | |
2204 | Transparency2 = 1, | |
2205 | CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2206 | MoveToPos = nil, | |
2207 | RotationX = MRANDOM(-50, 50) / 10, | |
2208 | RotationY = MRANDOM(-50, 50) / 10, | |
2209 | RotationZ = MRANDOM(-50, 50) / 10, | |
2210 | Material = "Neon", | |
2211 | Color = C3(1, 0, 0), | |
2212 | SoundID = nil, | |
2213 | SoundPitch = nil, | |
2214 | SoundVolume = nil | |
2215 | }) | |
2216 | end | |
2217 | local bv = Instance.new("BodyVelocity") | |
2218 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2219 | bv.velocity = CF(Torso.Position, TORSO.Position).lookVector * 5 | |
2220 | bv.Parent = TORSO | |
2221 | Debris:AddItem(bv, 0.05) | |
2222 | CreateSound("1222405264", TORSO, 10, 1) | |
2223 | Petrify(HUM.Parent) | |
2224 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2225 | Swait() | |
2226 | WACKYEFFECT({ | |
2227 | Time = 5, | |
2228 | EffectType = "Round Slash", | |
2229 | Size = VT(0, 0, 0), | |
2230 | Size2 = VT(0.01, 0, 0.01), | |
2231 | Transparency = 0.5, | |
2232 | Transparency2 = 1, | |
2233 | CFrame = CF(EYE.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2234 | MoveToPos = nil, | |
2235 | RotationX = MRANDOM(-50, 50) / 10, | |
2236 | RotationY = MRANDOM(-50, 50) / 10, | |
2237 | RotationZ = MRANDOM(-50, 50) / 10, | |
2238 | Material = "Neon", | |
2239 | Color = C3(1, 0, 0), | |
2240 | SoundID = nil, | |
2241 | SoundPitch = nil, | |
2242 | SoundVolume = nil | |
2243 | }) | |
2244 | GYRO.cframe = CF(RootPart.Position, TORSO.Position) | |
2245 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
2246 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 2 / Animation_Speed) | |
2247 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 22), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2248 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2249 | if ANIM == "Idle" then | |
2250 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2251 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2252 | elseif ANIM == "Walk" then | |
2253 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2254 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2255 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2256 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2257 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2258 | end | |
2259 | end | |
2260 | end | |
2261 | end | |
2262 | ATTACK = false | |
2263 | Rooted = false | |
2264 | end | |
2265 | ||
2266 | function Perfect_Command() | |
2267 | ATTACK = true | |
2268 | Rooted = true | |
2269 | chatfunc("Weaklings...") | |
2270 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(100,100,100)) | |
2271 | CreateSound("1368605755", Effects, 10, 1) | |
2272 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(500,500,500)) | |
2273 | ApplyAoE(Torso.Position, 9999, 0, 0, 0, true) | |
2274 | ATTACK = false | |
2275 | Rooted = false | |
2276 | end | |
2277 | ||
2278 | function killnearest2(position,range,maxstrength) | |
2279 | for i,v in ipairs(workspace:GetChildren()) do | |
2280 | if v.ClassName == "Model" then | |
2281 | local body = v:GetChildren() | |
2282 | for part = 1, #body do | |
2283 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2284 | if(body[part].Position - position).Magnitude < range then | |
2285 | if v.ClassName == "Model" then | |
2286 | v:BreakJoints() | |
2287 | end | |
2288 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
2289 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
2290 | end | |
2291 | end | |
2292 | end | |
2293 | end | |
2294 | end | |
2295 | end | |
2296 | ||
2297 | function killnearest(position,range,maxstrength,direction) | |
2298 | for i,v in ipairs(workspace:GetChildren()) do | |
2299 | local body = v:GetChildren() | |
2300 | for part = 1, #body do | |
2301 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2302 | if(body[part].Position - position).Magnitude < range then | |
2303 | if v.ClassName == "Model" then | |
2304 | --v:BreakJoints() | |
2305 | end | |
2306 | local POS = position | |
2307 | coroutine.resume(coroutine.create(function() | |
2308 | body[part].Anchored = true | |
2309 | body[part].Parent = Effects | |
2310 | body[part].CanCollide = true | |
2311 | local SIZE = body[part].Size | |
2312 | body[part].Material = "Neon" | |
2313 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
2314 | for i = 1, 75 do | |
2315 | Swait() | |
2316 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
2317 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2318 | end | |
2319 | coroutine.resume(coroutine.create(function() | |
2320 | while true do | |
2321 | Swait() | |
2322 | body[part].Color = Color3.fromRGB(cR,cG,cB) | |
2323 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2324 | end | |
2325 | end)) | |
2326 | body[part].Anchored = false | |
2327 | body[part].Velocity = direction.lookVector*maxstrength | |
2328 | end)) | |
2329 | end | |
2330 | end | |
2331 | end | |
2332 | if v.ClassName == "Part" then | |
2333 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
2334 | local POS = position | |
2335 | coroutine.resume(coroutine.create(function() | |
2336 | v.Anchored = true | |
2337 | v.Parent = Effects | |
2338 | local SIZE = v.Size | |
2339 | v.Material = "Neon" | |
2340 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
2341 | for i = 1, 75 do | |
2342 | Swait() | |
2343 | v.Color = Color3.fromRGB(cR,cG,cB) | |
2344 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2345 | end | |
2346 | coroutine.resume(coroutine.create(function() | |
2347 | while true do | |
2348 | Swait() | |
2349 | v.Color = Color3.fromRGB(cR,cG,cB) | |
2350 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
2351 | end | |
2352 | end)) | |
2353 | v.Anchored = false | |
2354 | v.Velocity = direction.lookVector*maxstrength | |
2355 | end)) | |
2356 | end | |
2357 | end | |
2358 | end | |
2359 | end | |
2360 | ||
2361 | function VanishPlayer() | |
2362 | tecks2.TextTransparency = 1 | |
2363 | tecks2.TextStrokeTransparency = 1 | |
2364 | for _, c in pairs(Character:GetChildren()) do | |
2365 | if c.ClassName == "Part" then | |
2366 | c.Transparency = 0 | |
2367 | if c:FindFirstChildOfClass("Decal") then | |
2368 | c:FindFirstChildOfClass("Decal").Transparency = 1 | |
2369 | end | |
2370 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2371 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
2372 | end | |
2373 | elseif c.ClassName == "Accessory" then | |
2374 | c.Handle.Transparency = 0 | |
2375 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
2376 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
2377 | end | |
2378 | end | |
2379 | end | |
2380 | end | |
2381 | ||
2382 | function Reappear() | |
2383 | tecks2.TextTransparency = 0 | |
2384 | tecks2.TextStrokeTransparency = 0 | |
2385 | for _, c in pairs(Character:GetChildren()) do | |
2386 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2387 | c.Transparency = 0 | |
2388 | if c:FindFirstChildOfClass("Decal") then | |
2389 | c:FindFirstChildOfClass("Decal").Transparency = 0 | |
2390 | end | |
2391 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2392 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
2393 | end | |
2394 | elseif c.ClassName == "Accessory" then | |
2395 | c.Handle.Transparency = 0 | |
2396 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
2397 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
2398 | end | |
2399 | end | |
2400 | end | |
2401 | end | |
2402 | ||
2403 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
2404 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
2405 | local mesh | |
2406 | if KIND == "Base" then | |
2407 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
2408 | elseif KIND == "Thin" then | |
2409 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
2410 | elseif KIND == "Round" then | |
2411 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
2412 | end | |
2413 | wave.CFrame = CFRAME | |
2414 | coroutine.resume(coroutine.create(function(PART) | |
2415 | for i = 1, WAIT do | |
2416 | Swait() | |
2417 | mesh.Scale = mesh.Scale + GROW / 10 | |
2418 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
2419 | if wave.Transparency > 0.99 then | |
2420 | wave:remove() | |
2421 | end | |
2422 | end | |
2423 | end)) | |
2424 | end | |
2425 | ||
2426 | function Orb() | |
2427 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2428 | if HITFLOOR ~= nil then | |
2429 | do | |
2430 | local HITBODIES = {} | |
2431 | ATTACK = true | |
2432 | Rooted = true | |
2433 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "ABSOLUTEUM", VT(0, 0, 0)) | |
2434 | MakeForm(ABSOLUTE, "Ball") | |
2435 | CreateSound("416200578", RootPart, 10, 0.7) | |
2436 | for i = 0, 8, 0.1 / Animation_Speed do | |
2437 | Swait() | |
2438 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.75, 0.75, 0.75) | |
2439 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
2440 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
2441 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(3, 3, 3)) | |
2442 | MakeForm(CHARGE, "Ball") | |
2443 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
2444 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
2445 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2446 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2447 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2448 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2449 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2450 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2451 | end | |
2452 | CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Torso, 10, 0.9) | |
2453 | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10) | |
2454 | for i = 1, 45 do | |
2455 | Swait() | |
2456 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2457 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2458 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2459 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2460 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2461 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2462 | end | |
2463 | coroutine.resume(coroutine.create(function() | |
2464 | local IMPACT = false | |
2465 | local BULLET = ABSOLUTE | |
2466 | MakeForm(BULLET, "Ball") | |
2467 | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) | |
2468 | for i = 1, 500 do | |
2469 | Swait() | |
2470 | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) | |
2471 | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) | |
2472 | MagicSphere(VT(1000, 1000, 1000), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-100, -100, -100) / 55) | |
2473 | if HIT ~= nil then | |
2474 | IMPACT = true | |
2475 | break | |
2476 | end | |
2477 | end | |
2478 | if IMPACT == false then | |
2479 | for i = 1, 40 do | |
2480 | Swait() | |
2481 | BULLET.Size = BULLET.Size * 0.9 | |
2482 | end | |
2483 | BULLET:remove() | |
2484 | else | |
2485 | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10) | |
2486 | for i = 1, 175 do | |
2487 | Swait() | |
2488 | BULLET.Size = BULLET.Size * 0.99 | |
2489 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 85) | |
2490 | end | |
2491 | CreateSound("438666001", BULLET, 10, 3) | |
2492 | Swait(35) | |
2493 | BULLET.Transparency = 1 | |
2494 | for i = 1, 20 do | |
2495 | for e = 1, 5 do | |
2496 | MagicSphere(VT(20, 20, 20), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0) | |
2497 | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 3) | |
2498 | end | |
2499 | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) | |
2500 | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10) | |
2501 | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10) | |
2502 | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) | |
2503 | Swait(5) | |
2504 | for e = 1, #HITBODIES do | |
2505 | if HITBODIES[e] ~= nil then | |
2506 | local BOD = HITBODIES[e] | |
2507 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
2508 | if TORS then | |
2509 | BOD:BreakJoints() | |
2510 | Petrify(HUM.Parent) | |
2511 | C3(193,223,240) | |
2512 | for _, c in pairs(BOD:GetChildren()) do | |
2513 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2514 | local bv = Instance.new("BodyVelocity") | |
2515 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2516 | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 | |
2517 | bv.Parent = c | |
2518 | Debris:AddItem(bv, 0.2) | |
2519 | end | |
2520 | end | |
2521 | end | |
2522 | end | |
2523 | end | |
2524 | CreateWave(VT(0, 200, 0), 75, CF(BULLET.Position), true, -15, "Maroon", VT(i, 0, i) * 2) | |
2525 | end | |
2526 | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(120, 120, 120)) | |
2527 | Debris:AddItem(BULLET, 10) | |
2528 | end | |
2529 | end)) | |
2530 | ATTACK = false | |
2531 | Rooted = false | |
2532 | end | |
2533 | end | |
2534 | end | |
2535 | ||
2536 | function Slice2(SIZE,WAIT,CFRAME,COLOR,GROW) | |
2537 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("Really black"), "Effect", VT(1,1,1), true) | |
2538 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
2539 | wave.CFrame = CFRAME | |
2540 | coroutine.resume(coroutine.create(function(PART) | |
2541 | for i = 1, WAIT do | |
2542 | Swait() | |
2543 | mesh.Scale = mesh.Scale * GROW | |
2544 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
2545 | if wave.Transparency > 0.99 then | |
2546 | wave:remove() | |
2547 | end | |
2548 | end | |
2549 | end)) | |
2550 | end | |
2551 | ||
2552 | function swait(num) | |
2553 | if num == 0 or num == nil then | |
2554 | ArtificialHB.Event:wait() | |
2555 | else | |
2556 | for i = 0, num do | |
2557 | ArtificialHB.Event:wait() | |
2558 | end | |
2559 | end | |
2560 | end | |
2561 | ||
2562 | function ChaosWorld() | |
2563 | 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) | |
2564 | CHOICE = 6 | |
2565 | ||
2566 | chatfunc("I am bored...") | |
2567 | for i = 0, 12, .1 do | |
2568 | swait(0.35) | |
2569 | end | |
2570 | ||
2571 | chatfunc("Time to cause some chaos!") | |
2572 | for i = 0, 16, .1 do | |
2573 | end | |
2574 | swait(0.15) | |
2575 | CreateWave2(0,4,true,0.2,45,RootPart,-5) | |
2576 | CreateWave2(0,4.5,true,-0.2,40,RootPart,-5) | |
2577 | CreateWave2(0,5,true,0.2,35,RootPart,-5) | |
2578 | CreateWave2(0,5.5,true,-0.2,30,RootPart,-5) | |
2579 | CreateWave2(0,6,true,0.2,25,RootPart,-5) | |
2580 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Bright orange",VT(25,25,25)) | |
2581 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Bright orange",VT(25,25,25)) | |
2582 | CreateSound("1368605755", Effects, 10, 1) | |
2583 | ||
2584 | back2 = CreateSound(177604015, Character, 9999, 0.9, true) | |
2585 | ChaosForm = true | |
2586 | local sillsky2 = Instance.new('Sky', game:GetService'Lighting') | |
2587 | sillsky2.SkyboxBk = "rbxassetid://1012890" | |
2588 | sillsky2.SkyboxDn = "rbxassetid://1012891" | |
2589 | sillsky2.SkyboxFt = "rbxassetid://1012887" | |
2590 | sillsky2.SkyboxLf = "rbxassetid://1012889" | |
2591 | sillsky2.SkyboxRt = "rbxassetid://1012888" | |
2592 | sillsky2.SkyboxUp = "rbxassetid://1014449" | |
2593 | sillsky2.StarCount = 0 | |
2594 | sillsky2.SunAngularSize = 0 | |
2595 | sillsky2.MoonAngularSize = 0 | |
2596 | sillsky2.MoonTextureId = "" | |
2597 | sillsky2.CelestialBodiesShown = false | |
2598 | game.Lighting.FogColor = BRICKC"Bright orange".Color | |
2599 | game.Lighting.FogEnd = 1400 | |
2600 | end | |
2601 | ||
2602 | function DemonWorld() | |
2603 | 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) | |
2604 | CHOICE = 6 | |
2605 | ||
2606 | chatfunc("All of these fools...") | |
2607 | for i = 0, 12, .1 do | |
2608 | swait(0.35) | |
2609 | end | |
2610 | ||
2611 | chatfunc("Its time to p e r i s h.") | |
2612 | for i = 0, 16, .1 do | |
2613 | end | |
2614 | swait(0.15) | |
2615 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(1000,1000,1000)) | |
2616 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Maroon",VT(75,75,75)) | |
2617 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25)) | |
2618 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Maroon",VT(25,25,25)) | |
2619 | CreateSound("1368605755", Effects, 10, 1) | |
2620 | CreateSound("265201042", Effects, 10, 0.5) | |
2621 | ||
2622 | back = CreateSound(1192655599, Character, 9999, 1, true) | |
2623 | DemonForm = true | |
2624 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
2625 | sillsky.SkyboxBk = "rbxassetid://157712259" | |
2626 | sillsky.SkyboxDn = "rbxassetid://157712247" | |
2627 | sillsky.SkyboxFt = "rbxassetid://157712266" | |
2628 | sillsky.SkyboxLf = "rbxassetid://157712240" | |
2629 | sillsky.SkyboxRt = "rbxassetid://157712254" | |
2630 | sillsky.SkyboxUp = "rbxassetid://157712276" | |
2631 | sillsky.StarCount = 0 | |
2632 | sillsky.SunAngularSize = 0 | |
2633 | sillsky.MoonAngularSize = 0 | |
2634 | sillsky.MoonTextureId = "" | |
2635 | sillsky.CelestialBodiesShown = false | |
2636 | game.Lighting.FogColor = Color3.new(1,0,0) | |
2637 | game.Lighting.FogEnd = 1400 | |
2638 | end | |
2639 | ||
2640 | function Eliminate() | |
2641 | chatfunc("Come here!") | |
2642 | ATTACK = true | |
2643 | Rooted = false | |
2644 | local HASGRABBED = false | |
2645 | local WELD = nil | |
2646 | local TORS = nil | |
2647 | local hitting = RightArm.Touched:Connect(function(hit) | |
2648 | if hit.Parent:FindFirstChild("Humanoid") then | |
2649 | if hit.Parent.Humanoid.Health ~= 0 then | |
2650 | UNANCHOR = false | |
2651 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
2652 | TORS.Anchored = true | |
2653 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2654 | WELD = weldBetween(RightArm,TORS) | |
2655 | HASGRABBED = true | |
2656 | chatfunc("Time to die.") | |
2657 | Rooted = true | |
2658 | end | |
2659 | end | |
2660 | end) | |
2661 | for i=0, 1, 0.1 / Animation_Speed do | |
2662 | Swait() | |
2663 | if HASGRABBED == true then | |
2664 | break | |
2665 | end | |
2666 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
2667 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
2668 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2669 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2670 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2671 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2672 | end | |
2673 | hitting:disconnect() | |
2674 | if HASGRABBED == true then | |
2675 | TORS.Anchored = false | |
2676 | RootPart.Anchored = true | |
2677 | for i=0, 2, 0.1 / Animation_Speed do | |
2678 | Swait() | |
2679 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2680 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2681 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2682 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2683 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2684 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2685 | end | |
2686 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(5,3,5)) | |
2687 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Maroon",VT(6,3,6)) | |
2688 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Maroon", "Sound", VT(0,0,0)) | |
2689 | SOUNDPART.CFrame = RootPart.CFrame | |
2690 | Debris:AddItem(SOUNDPART,5) | |
2691 | CreateSound("260411131", SOUNDPART, 2, 1) | |
2692 | for i = 1, 15 do | |
2693 | Slice2(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
2694 | end | |
2695 | for i=0, 2, 0.1 / Animation_Speed do | |
2696 | Swait() | |
2697 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2698 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2699 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2700 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2701 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2702 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2703 | end | |
2704 | for i=0, 0.25, 0.1 / Animation_Speed do | |
2705 | Swait() | |
2706 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2707 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2708 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2709 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2710 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2711 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2712 | end | |
2713 | if HITFLOOR ~= nil then | |
2714 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(70,70,70),85) | |
2715 | end | |
2716 | CreateSound("1295446488", Effects, 10, MRANDOM(7, 12) / 10) | |
2717 | WELD:remove() | |
2718 | for i = 1, 25 do | |
2719 | Swait() | |
2720 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
2721 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(3,30,3)) | |
2722 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Maroon",VT(10,4,10)) | |
2723 | CreateWave(VT(30,10,30),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Maroon",VT(23,3,23)) | |
2724 | Slice2(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Maroon", 1 + MRANDOM(1,30)/5) | |
2725 | Slice2(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Maroon", 1 + MRANDOM(1,30)/15) | |
2726 | end | |
2727 | end | |
2728 | UNANCHOR = true | |
2729 | ATTACK = false | |
2730 | Rooted = false | |
2731 | end | |
2732 | ||
2733 | function Fire_At_Will() | |
2734 | ATTACK = true | |
2735 | Rooted = false | |
2736 | local GYRO = IT("BodyGyro", RootPart) | |
2737 | GYRO.D = 750 | |
2738 | GYRO.P = 2000 | |
2739 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2740 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
2741 | Swait() | |
2742 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
2743 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2744 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2747 | if ANIM == "Idle" then | |
2748 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2749 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2750 | elseif ANIM == "Walk" then | |
2751 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2752 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2753 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2754 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2755 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2756 | end | |
2757 | end | |
2758 | local BOMB = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Sphere", VT(1, 1, 1), false) | |
2759 | MakeForm(BOMB, "Ball") | |
2760 | BOMB.Mesh.Scale = VT(0.5, 0.5, 0.5) | |
2761 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BOMB, CF(0, -2, 0), CF(0, 0, 0)) | |
2762 | for i = 0, 1.5, 0.1 / Animation_Speed do | |
2763 | Swait() | |
2764 | if MRANDOM(1, 2) == 1 then | |
2765 | for E = 1, #EYES do | |
2766 | if EYES[E] ~= nil then | |
2767 | local EY = EYES[E] | |
2768 | local LIGHTNING = Zap({ | |
2769 | StartPosition = EY.Position, | |
2770 | TargetPosition = BOMB.Position, | |
2771 | Character = Character, | |
2772 | Color = "Really red", | |
2773 | Individual = false, | |
2774 | MaxRange = 7, | |
2775 | SegmentLength = 1, | |
2776 | Offset = 0.3, | |
2777 | SIZE = 0.05 | |
2778 | }) | |
2779 | Debris:AddItem(LIGHTNING.LightningModel, 0.05) | |
2780 | end | |
2781 | end | |
2782 | end | |
2783 | BOMB.Mesh.Scale = BOMB.Mesh.Scale + VT(0.1, 0.1, 0.1) | |
2784 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
2785 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2786 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2787 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.48, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2788 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2789 | if ANIM == "Idle" then | |
2790 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2792 | elseif ANIM == "Walk" then | |
2793 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2794 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2795 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2796 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2798 | end | |
2799 | end | |
2800 | WACKYEFFECT({ | |
2801 | Time = 25, | |
2802 | EffectType = "Ring", | |
2803 | Size = VT(0, 0, 0), | |
2804 | Size2 = VT(18.75, 18.75, 0), | |
2805 | Transparency = 0.7, | |
2806 | Transparency2 = 1, | |
2807 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
2808 | MoveToPos = nil, | |
2809 | RotationX = 0, | |
2810 | RotationY = 0, | |
2811 | RotationZ = 0, | |
2812 | Material = "Neon", | |
2813 | Color = BOMB.Color, | |
2814 | SoundID = nil, | |
2815 | SoundPitch = nil, | |
2816 | SoundVolume = nil | |
2817 | }) | |
2818 | WACKYEFFECT({ | |
2819 | Time = 50, | |
2820 | EffectType = "Ring", | |
2821 | Size = VT(0, 0, 0), | |
2822 | Size2 = VT(75, 75, 0), | |
2823 | Transparency = 0.7, | |
2824 | Transparency2 = 1, | |
2825 | CFrame = RootPart.CFrame * CF(0, -0.25, -1.3), | |
2826 | MoveToPos = nil, | |
2827 | RotationX = 0, | |
2828 | RotationY = 0, | |
2829 | RotationZ = 0, | |
2830 | Material = "Neon", | |
2831 | Color = BOMB.Color, | |
2832 | SoundID = nil, | |
2833 | SoundPitch = nil, | |
2834 | SoundVolume = nil | |
2835 | }) | |
2836 | BOMB.Anchored = true | |
2837 | WELD:remove() | |
2838 | GYRO:remove() | |
2839 | coroutine.resume(coroutine.create(function() | |
2840 | BOMB.CFrame = CF(BOMB.Position, Mouse.Hit.p) | |
2841 | for i = 1, 500 do | |
2842 | Swait() | |
2843 | BOMB.CFrame = BOMB.CFrame * CF(0, 0, -2) | |
2844 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2.2, Character) | |
2845 | if HITFLOOR ~= nil then | |
2846 | break | |
2847 | end | |
2848 | end | |
2849 | ApplyAoE(BOMB.Position, 375, 0, 0, 0, true) | |
2850 | for i = 1, 5 do | |
2851 | WACKYEFFECT({ | |
2852 | Time = 50, | |
2853 | EffectType = "Sphere", | |
2854 | Size = BOMB.Mesh.Scale, | |
2855 | Size2 = VT(125, 125, 125) * i, | |
2856 | Transparency = 0.5, | |
2857 | Transparency2 = 1, | |
2858 | CFrame = BOMB.CFrame, | |
2859 | MoveToPos = nil, | |
2860 | RotationX = 0, | |
2861 | RotationY = 0, | |
2862 | RotationZ = 0, | |
2863 | Material = "Neon", | |
2864 | Color = BOMB.Color, | |
2865 | SoundID = 1222405264, | |
2866 | SoundPitch = 1, | |
2867 | SoundVolume = 10 | |
2868 | }) | |
2869 | end | |
2870 | local HITFLOOR, HITPOS = Raycast(BOMB.Position, CF(BOMB.Position + VT(0, 5, 0), BOMB.Position - VT(0, 5, 0)).lookVector, 15, Character) | |
2871 | if HITFLOOR then | |
2872 | CreateDebreeRing(HITFLOOR, HITPOS, 85, VT(85, 85, 85), 5) | |
2873 | end | |
2874 | BOMB.Transparency = 1 | |
2875 | for i = 1, 35 do | |
2876 | Swait() | |
2877 | CreateFlyingDebree(BOMB, CF(BOMB.Position), 1, VT(2.5, 2.5, 2.5), 5, 150) | |
2878 | end | |
2879 | BOMB:remove() | |
2880 | end)) | |
2881 | ATTACK = false | |
2882 | Rooted = false | |
2883 | end | |
2884 | ||
2885 | ||
2886 | ||
2887 | function Imperfect_Storm() | |
2888 | ATTACK = true | |
2889 | Rooted = false | |
2890 | for i = 0, 1, 0.1 / Animation_Speed do | |
2891 | Swait() | |
2892 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2893 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2894 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2895 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2896 | if ANIM == "Idle" then | |
2897 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2898 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2899 | elseif ANIM == "Walk" then | |
2900 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2901 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2902 | elseif ANIM == "Jump" or ANIM == "Fall" then | |
2903 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2904 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2905 | end | |
2906 | end | |
2907 | ATTACK = false | |
2908 | Rooted = false | |
2909 | end | |
2910 | ||
2911 | function MouseDown(Mouse) | |
2912 | if ATTACK == false then | |
2913 | end | |
2914 | end | |
2915 | function MouseUp(Mouse) | |
2916 | HOLD = false | |
2917 | end | |
2918 | ||
2919 | function KeyDown(Key) | |
2920 | KEYHOLD = true | |
2921 | if DemonForm == false then | |
2922 | if Key == "z" and ATTACK == false then | |
2923 | Neck_Snap() | |
2924 | end | |
2925 | ||
2926 | if Key == "b" and ATTACK == false then | |
2927 | Imperfect_Command() | |
2928 | end | |
2929 | ||
2930 | if Key == "c" and ATTACK == false then | |
2931 | Fire_At_Will() | |
2932 | end | |
2933 | ||
2934 | if Key == "e" and ATTACK == false then | |
2935 | Warp() | |
2936 | end | |
2937 | ||
2938 | if Key == "f" and ATTACK == false then | |
2939 | Eliminate() | |
2940 | end | |
2941 | ||
2942 | if Key == "t" and ATTACK == false then | |
2943 | Taunt() | |
2944 | end | |
2945 | ||
2946 | if Key == "q" and ATTACK == false then | |
2947 | Orb() | |
2948 | end | |
2949 | ||
2950 | if Key == "p" and ATTACK == false then | |
2951 | DemonWorld() | |
2952 | SKILL2TEXT:remove() | |
2953 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Perfect Command", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
2954 | SKILL3TEXT:remove() | |
2955 | SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Fire at Will", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
2956 | SKILL7TEXT:remove() | |
2957 | SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Return", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
2958 | end | |
2959 | ||
2960 | else | |
2961 | ||
2962 | if Key == "z" and ATTACK == false then | |
2963 | Neck_Snap() | |
2964 | end | |
2965 | if Key == "b" and ATTACK == false then | |
2966 | Perfect_Command() | |
2967 | end | |
2968 | if Key == "c" and ATTACK == false then | |
2969 | end | |
2970 | if Key == "e" and ATTACK == false then | |
2971 | Warp() | |
2972 | end | |
2973 | if Key == "f" and ATTACK == false then | |
2974 | Eliminate() | |
2975 | end | |
2976 | ||
2977 | if Key == "q" and ATTACK == false then | |
2978 | Orb() | |
2979 | end | |
2980 | ||
2981 | if Key == "t" and ATTACK == false then | |
2982 | Taunt2() | |
2983 | end | |
2984 | ||
2985 | if Key == "p" and ATTACK == false then | |
2986 | DemonForm = false | |
2987 | SKILL2TEXT:remove() | |
2988 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Imperfect Command", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
2989 | SKILL3TEXT:remove() | |
2990 | SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Stone Ball", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
2991 | SKILL7TEXT:remove() | |
2992 | SKILL7TEXT = CreateLabel(SKILL7FRAME, "[P] Demon Form", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
2993 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
2994 | sillsky:remove() | |
2995 | back:remove() | |
2996 | game.Lighting.FogEnd = 90000000 | |
2997 | CreateSound(464600985, Character, 99999, 0.8, false) | |
2998 | end | |
2999 | end | |
3000 | end | |
3001 | ||
3002 | function KeyDown2(Key) | |
3003 | KEYHOLD = true | |
3004 | if ChaosForm == false then | |
3005 | if Key == "l" and ATTACK == false then | |
3006 | ChaosWorld() | |
3007 | SKILL8TEXT:remove() | |
3008 | SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Return", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
3009 | end | |
3010 | else | |
3011 | if Key == "l" and ATTACK == false then | |
3012 | ChaosForm = false | |
3013 | SKILL8TEXT:remove() | |
3014 | SKILL8TEXT = CreateLabel(SKILL8FRAME, "[L] Chaos Form", SKILLTEXTCOLOR3, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
3015 | local sillsky2 = Instance.new('Sky', game:GetService'Lighting') | |
3016 | sillsky2:remove() | |
3017 | back2:remove() | |
3018 | game.Lighting.FogEnd = 90000000 | |
3019 | CreateSound(464600985, Character, 99999, 0.8, false) | |
3020 | end | |
3021 | end | |
3022 | end | |
3023 | ||
3024 | function KeyUp(Key) | |
3025 | KEYHOLD = false | |
3026 | end | |
3027 | Mouse.Button1Down:connect(function(NEWKEY) | |
3028 | MouseDown(NEWKEY) | |
3029 | end) | |
3030 | Mouse.Button1Up:connect(function(NEWKEY) | |
3031 | MouseUp(NEWKEY) | |
3032 | end) | |
3033 | Mouse.KeyDown:connect(function(NEWKEY) | |
3034 | KeyDown(NEWKEY) | |
3035 | end) | |
3036 | Mouse.KeyDown:connect(function(NEWKEY) | |
3037 | KeyDown2(NEWKEY) | |
3038 | end) | |
3039 | Mouse.KeyUp:connect(function(NEWKEY) | |
3040 | KeyUp(NEWKEY) | |
3041 | end) | |
3042 | function unanchor() | |
3043 | if UNANCHOR == true then | |
3044 | RootPart.Anchored = false | |
3045 | end | |
3046 | local CHILDREN = Character:GetDescendants() | |
3047 | for index, CHILD in pairs(CHILDREN) do | |
3048 | if CHILD:IsA("BasePart") and CHILD ~= RootPart and CHILD.Parent ~= Effects and CHILD.Parent.Parent ~= Effects then | |
3049 | CHILD.Anchored = false | |
3050 | end | |
3051 | end | |
3052 | end | |
3053 | Humanoid.Changed:connect(function(Jump) | |
3054 | if Jump == "Jump" and Disable_Jump == true then | |
3055 | Humanoid.Jump = false | |
3056 | end | |
3057 | end) | |
3058 | while true do | |
3059 | Swait() | |
3060 | script.Parent = WEAPONGUI | |
3061 | ANIMATE.Parent = nil | |
3062 | if Humanoid then | |
3063 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3064 | IDLEANIMATION:Play() | |
3065 | end | |
3066 | for RW = 1, #RWINGS do | |
3067 | if RWINGS[RW] ~= nil then | |
3068 | RWINGS[RW].C1 = Clerp(RWINGS[RW].C1, CF(-0.25 + 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 + 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3069 | end | |
3070 | end | |
3071 | for LW = 1, #LWINGS do | |
3072 | if LWINGS[LW] ~= nil then | |
3073 | LWINGS[LW].C1 = Clerp(LWINGS[LW].C1, CF(0.25 - 0.25 * COS(SINE / 22), 0, 0 + 0.15 * COS(SINE / 22)) * ANGLES(RAD(2.5 * SIN(SINE / 22)), RAD(0), RAD(0 - 5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3074 | end | |
3075 | end | |
3076 | SINE = SINE + CHANGE | |
3077 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3078 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3079 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 + Humanoid.HipHeight, Character) | |
3080 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
3081 | if FINISHEDINTRO == true then | |
3082 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3083 | ANIM = "Jump" | |
3084 | if ATTACK == false then | |
3085 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3086 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3087 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3088 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3089 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3090 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3091 | end | |
3092 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3093 | ANIM = "Fall" | |
3094 | if ATTACK == false then | |
3095 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3096 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3097 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3098 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3099 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3100 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3101 | end | |
3102 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3103 | ANIM = "Idle" | |
3104 | if ATTACK == false then | |
3105 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3106 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
3107 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3108 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3109 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3110 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3111 | end | |
3112 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3113 | ANIM = "Walk" | |
3114 | if ATTACK == false then | |
3115 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 22)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 22)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
3116 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 22)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 22))), 1 / Animation_Speed) | |
3117 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 22)), RAD(15 + 7.5 * SIN(SINE / 22))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3118 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 22), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 22)), RAD(-15 - 7.5 * SIN(SINE / 22))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3119 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3120 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3121 | end | |
3122 | end | |
3123 | if TORSOVELOCITY > 1 then | |
3124 | Humanoid.HipHeight = 1 | |
3125 | else | |
3126 | Humanoid.HipHeight = 0 | |
3127 | end | |
3128 | elseif FINISHEDINTRO == false then | |
3129 | Humanoid.HipHeight = 0 | |
3130 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3131 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3132 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3133 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3134 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3135 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3136 | end | |
3137 | unanchor() | |
3138 | Humanoid.MaxHealth = 1.0E298 | |
3139 | Humanoid.Health = 1.0E298 | |
3140 | if Rooted == false then | |
3141 | Disable_Jump = false | |
3142 | Humanoid.WalkSpeed = Speed | |
3143 | elseif Rooted == true then | |
3144 | Disable_Jump = true | |
3145 | Humanoid.WalkSpeed = 0 | |
3146 | end | |
3147 | if DemonForm == false then | |
3148 | sick.Parent = Torso | |
3149 | sick.Playing = true | |
3150 | sick.Volume = 5 | |
3151 | sick.Pitch = 1 | |
3152 | else | |
3153 | sick.Parent = Torso | |
3154 | sick.Playing = false | |
3155 | sick.Volume = 0 | |
3156 | sick.Pitch = 1 | |
3157 | end | |
3158 | ||
3159 | if ChaosForm == false then | |
3160 | sick.Parent = Torso | |
3161 | sick.Playing = true | |
3162 | sick.Volume = 5 | |
3163 | sick.Pitch = 1 | |
3164 | else | |
3165 | sick.Parent = Torso | |
3166 | sick.Playing = false | |
3167 | sick.Volume = 0 | |
3168 | sick.Pitch = 1 | |
3169 | end | |
3170 | BLINKLOOP = BLINKLOOP + 1 | |
3171 | if BLINKLOOP >= 325 then | |
3172 | BLINKLOOP = 0 | |
3173 | Blink() | |
3174 | end | |
3175 | if Character:FindFirstChildOfClass("Accessory") then | |
3176 | Character:FindFirstChildOfClass("Accessory"):remove() | |
3177 | end | |
3178 | if Character:FindFirstChildOfClass("Shirt") then | |
3179 | Character:FindFirstChildOfClass("Shirt"):remove() | |
3180 | end | |
3181 | if Character:FindFirstChildOfClass("Pants") then | |
3182 | Character:FindFirstChildOfClass("Pants"):remove() | |
3183 | end | |
3184 | if Character:FindFirstChildOfClass("Cloth") then | |
3185 | Character:FindFirstChildOfClass("Cloth"):remove() | |
3186 | end | |
3187 | if Head:FindFirstChildOfClass("Sound") then | |
3188 | Head:FindFirstChildOfClass("Sound"):remove() | |
3189 | end | |
3190 | if INTROING == false and FINISHEDINTRO == false then | |
3191 | if INSTANT == false then | |
3192 | Intro() | |
3193 | else | |
3194 | FINISHEDINTRO = true | |
3195 | Face() | |
3196 | RightWing() | |
3197 | LeftWing() | |
3198 | end | |
3199 | end | |
3200 | if Head:FindFirstChild("face") then | |
3201 | Head.face:remove() | |
3202 | end | |
3203 | refit() | |
3204 | Humanoid.PlatformStand = false | |
3205 | end | |
3206 | ||
3207 | if Humanoid.Health < 1.0E298 then | |
3208 | refit() | |
3209 | chatfunc("Futile.") | |
3210 | Humanoid.MaxHealth = 1.0E298 | |
3211 | Humanoid.Health = Humanoid.Health + 1.0E298 | |
3212 | end | |
3213 | ||
3214 | --//====================================================\\-- | |
3215 | --|| END OF SCRIPT ||-- | |
3216 | --\\====================================================//-- |