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