SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player,game,owner = owner,game | |
7 | local RealPlayer = Player | |
8 | do | |
9 | print("FE Compatibility code by Mokiros") | |
10 | local rp = RealPlayer | |
11 | script.Parent = rp.Character | |
12 | ||
13 | --RemoteEvent for communicating | |
14 | local Event = Instance.new("RemoteEvent") | |
15 | Event.Name = "UserInput_Event" | |
16 | ||
17 | --Fake event to make stuff like Mouse.KeyDown work | |
18 | local function fakeEvent() | |
19 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
20 | t.connect = t.Connect | |
21 | return t | |
22 | end | |
23 | ||
24 | --Creating fake input objects with fake variables | |
25 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
26 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
27 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
28 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
29 | end} | |
30 | --Merged 2 functions into one by checking amount of arguments | |
31 | CAS.UnbindAction = CAS.BindAction | |
32 | ||
33 | --This function will trigger the events that have been :Connect()'ed | |
34 | local function te(self,ev,...) | |
35 | local t = m[ev] | |
36 | if t and t._fakeEvent then | |
37 | for _,f in pairs(t.Functions) do | |
38 | f(...) | |
39 | end | |
40 | end | |
41 | end | |
42 | m.TrigEvent = te | |
43 | UIS.TrigEvent = te | |
44 | ||
45 | Event.OnServerEvent:Connect(function(plr,io) | |
46 | if plr~=rp then return end | |
47 | m.Target = io.Target | |
48 | m.Hit = io.Hit | |
49 | if not io.isMouse then | |
50 | local b = io.UserInputState == Enum.UserInputState.Begin | |
51 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
52 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
53 | end | |
54 | for _,t in pairs(CAS.Actions) do | |
55 | for _,k in pairs(t.Keys) do | |
56 | if k==io.KeyCode then | |
57 | t.Function(t.Name,io.UserInputState,io) | |
58 | end | |
59 | end | |
60 | end | |
61 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
62 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
63 | end | |
64 | end) | |
65 | Event.Parent = NLS([==[ | |
66 | local Player = game:GetService("Players").LocalPlayer | |
67 | local Event = script:WaitForChild("UserInput_Event") | |
68 | local Mouse = Player:GetMouse() | |
69 | local UIS = game:GetService("UserInputService") | |
70 | local input = function(io,a) | |
71 | if a then return end | |
72 | --Since InputObject is a client-side instance, we create and pass table instead | |
73 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
74 | end | |
75 | UIS.InputBegan:Connect(input) | |
76 | UIS.InputEnded:Connect(input) | |
77 | local h,t | |
78 | --Give the server mouse data 30 times every second, but only if the values changed | |
79 | --If player is not moving their mouse, client won't fire events | |
80 | while wait(1/30) do | |
81 | if h~=Mouse.Hit or t~=Mouse.Target then | |
82 | h,t=Mouse.Hit,Mouse.Target | |
83 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
84 | end | |
85 | end]==],Player.Character) | |
86 | ||
87 | ----Sandboxed game object that allows the usage of client-side methods and services | |
88 | --Real game object | |
89 | local _rg = game | |
90 | ||
91 | --Metatable for fake service | |
92 | local fsmt = { | |
93 | __index = function(self,k) | |
94 | local s = rawget(self,"_RealService") | |
95 | if s then return s[k] end | |
96 | end, | |
97 | __newindex = function(self,k,v) | |
98 | local s = rawget(self,"_RealService") | |
99 | if s then s[k]=v end | |
100 | end, | |
101 | __call = function(self,...) | |
102 | local s = rawget(self,"_RealService") | |
103 | if s then return s(...) end | |
104 | end | |
105 | } | |
106 | local function FakeService(t,RealService) | |
107 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
108 | return setmetatable(t,fsmt) | |
109 | end | |
110 | ||
111 | --Fake game object | |
112 | local g = { | |
113 | GetService = function(self,s) | |
114 | return self[s] | |
115 | end, | |
116 | Players = FakeService({ | |
117 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
118 | },"Players"), | |
119 | UserInputService = FakeService(UIS,"UserInputService"), | |
120 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
121 | } | |
122 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
123 | g.service = g.GetService | |
124 | ||
125 | g.RunService = FakeService({ | |
126 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
127 | BindToRenderStep = function(self,name,_,fun) | |
128 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
129 | end, | |
130 | UnbindFromRenderStep = function(self,name) | |
131 | self._btrs[name]:Disconnect() | |
132 | end, | |
133 | },"RunService") | |
134 | ||
135 | setmetatable(g,{ | |
136 | __index=function(self,s) | |
137 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
138 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
139 | end, | |
140 | __newindex = fsmt.__newindex, | |
141 | __call = fsmt.__call | |
142 | }) | |
143 | --Changing owner to fake player object to support owner:GetMouse() | |
144 | game,owner = g,g.Players.LocalPlayer | |
145 | end | |
146 | ||
147 | wait(0.2) | |
148 | ||
149 | ||
150 | ||
151 | Player = owner | |
152 | PlayerGui = Player.PlayerGui | |
153 | Cam = workspace.CurrentCamera | |
154 | Backpack = Player.Backpack | |
155 | Character = Player.Character | |
156 | Humanoid = Character.Humanoid | |
157 | Mouse = Player:GetMouse() | |
158 | RootPart = Character["HumanoidRootPart"] | |
159 | Torso = Character["Torso"] | |
160 | Head = Character["Head"] | |
161 | RightArm = Character["Right Arm"] | |
162 | LeftArm = Character["Left Arm"] | |
163 | RightLeg = Character["Right Leg"] | |
164 | LeftLeg = Character["Left Leg"] | |
165 | RootJoint = RootPart["RootJoint"] | |
166 | Neck = Torso["Neck"] | |
167 | RightShoulder = Torso["Right Shoulder"] | |
168 | LeftShoulder = Torso["Left Shoulder"] | |
169 | RightHip = Torso["Right Hip"] | |
170 | LeftHip = Torso["Left Hip"] | |
171 | local sick = Instance.new("Sound",Character) | |
172 | sick.SoundId = "rbxassetid://733456981" | |
173 | sick.Looped = true | |
174 | sick.Pitch = 1 | |
175 | sick.Volume = 2 | |
176 | sick.TimePosition = 115.5 | |
177 | Character.Archivable = true | |
178 | Humanoid.DisplayDistanceType = "None" | |
179 | local SIZE = 1 | |
180 | ||
181 | ||
182 | ||
183 | local naeeym2 = Instance.new("BillboardGui",Character) | |
184 | naeeym2.AlwaysOnTop = true | |
185 | naeeym2.Size = UDim2.new(5,35,2,35) | |
186 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
187 | naeeym2.Adornee = Character.Head | |
188 | naeeym2.Name = "Name" | |
189 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
190 | - | tecks2.Text = "Karma" |
190 | + | |
191 | tecks2.TextScaled = true | |
192 | tecks2.BorderSizePixel = 0 | |
193 | tecks2.Text = "MICHEAL THE GOD DESTINY MAKER" | |
194 | tecks2.Font = "Code" | |
195 | tecks2.TextSize = 30 | |
196 | tecks2.TextTransparency = 1 | |
197 | tecks2.TextStrokeTransparency = 1 | |
198 | tecks2.TextColor3 = Color3.new(255/255,0/255,0/255) | |
199 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
200 | tecks2.Parent = naeeym2 | |
201 | ||
202 | IT = Instance.new | |
203 | CF = CFrame.new | |
204 | VT = Vector3.new | |
205 | RAD = math.rad | |
206 | C3 = Color3.new | |
207 | UD2 = UDim2.new | |
208 | BRICKC = BrickColor.new | |
209 | ANGLES = CFrame.Angles | |
210 | EULER = CFrame.fromEulerAnglesXYZ | |
211 | COS = math.cos | |
212 | ACOS = math.acos | |
213 | SIN = math.sin | |
214 | ASIN = math.asin | |
215 | ABS = math.abs | |
216 | MRANDOM = math.random | |
217 | FLOOR = math.floor | |
218 | ||
219 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
220 | local NEWMESH = IT(MESH) | |
221 | if MESH == "SpecialMesh" then | |
222 | NEWMESH.MeshType = MESHTYPE | |
223 | if MESHID ~= "nil" and MESHID ~= "" then | |
224 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
225 | end | |
226 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
227 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
228 | end | |
229 | end | |
230 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
231 | NEWMESH.Scale = SCALE | |
232 | NEWMESH.Parent = PARENT | |
233 | return NEWMESH | |
234 | end | |
235 | ||
236 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
237 | local NEWPART = IT("Part") | |
238 | NEWPART.formFactor = FORMFACTOR | |
239 | NEWPART.Reflectance = REFLECTANCE | |
240 | NEWPART.Transparency = TRANSPARENCY | |
241 | NEWPART.CanCollide = false | |
242 | NEWPART.Locked = true | |
243 | NEWPART.Anchored = true | |
244 | if ANCHOR == false then | |
245 | NEWPART.Anchored = false | |
246 | end | |
247 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
248 | NEWPART.Name = NAME | |
249 | NEWPART.Size = SIZE | |
250 | NEWPART.Position = Torso.Position | |
251 | NEWPART.Material = MATERIAL | |
252 | NEWPART:BreakJoints() | |
253 | NEWPART.Parent = PARENT | |
254 | return NEWPART | |
255 | end | |
256 | ||
257 | --//=================================\\ | |
258 | --|| CUSTOMIZATION | |
259 | --\\=================================// | |
260 | ||
261 | Player_Size = 1 --Size of the player. | |
262 | Animation_Speed = 3 | |
263 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
264 | ||
265 | local Speed = 16 | |
266 | local Effects2 = {} | |
267 | ||
268 | --//=================================\\ | |
269 | --|| END OF CUSTOMIZATION | |
270 | --\\=================================// | |
271 | ||
272 | local function weldBetween(a, b) | |
273 | local weldd = Instance.new("ManualWeld") | |
274 | weldd.Part0 = a | |
275 | weldd.Part1 = b | |
276 | weldd.C0 = CFrame.new() | |
277 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
278 | weldd.Parent = a | |
279 | return weldd | |
280 | end | |
281 | ||
282 | --//=================================\\ | |
283 | --|| USEFUL VALUES | |
284 | --\\=================================// | |
285 | ||
286 | local top = Instance.new("Shirt") | |
287 | top.ShirtTemplate = "rbxassetid://1533635803" | |
288 | top.Parent = Character | |
289 | top.Name = "Cloth" | |
290 | local bottom = Instance.new("Pants") | |
291 | bottom.PantsTemplate = "rbxassetid://1460022985" | |
292 | bottom.Parent = Character | |
293 | bottom.Name = "Cloth" | |
294 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
295 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
296 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
297 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
298 | local CHANGEDEFENSE = 0 | |
299 | local CHANGEDAMAGE = 0 | |
300 | local CHANGEMOVEMENT = 0 | |
301 | local ANIM = "Idle" | |
302 | local ATTACK = false | |
303 | local EQUIPPED = false | |
304 | local HOLD = false | |
305 | local COMBO = 1 | |
306 | local Rooted = false | |
307 | local SINE = 0 | |
308 | local KEYHOLD = false | |
309 | local CHANGE = 2 / Animation_Speed | |
310 | - | Weapon.Name = "Weapon" |
310 | + | |
311 | local WALK = 0 | |
312 | local VALUE1 = false | |
313 | local VALUE2 = false | |
314 | local ROBLOXIDLEANIMATION = IT("Animation") | |
315 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
316 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
317 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
318 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
319 | WEAPONGUI.Name = "Weapon GUI" | |
320 | local Weapon = IT("Model") | |
321 | Weapon.Name = "Adds" | |
322 | local Injustice = IT("Model") | |
323 | Weapon.Name = "Adds" | |
324 | local InjusticeGun = IT("Model") | |
325 | Weapon.Name = "Adds" | |
326 | local InjusticeGun2 = IT("Model") | |
327 | Weapon.Name = "Adds" | |
328 | local Effects = IT("Folder", Weapon) | |
329 | Effects.Name = "Effects" | |
330 | local Delete = IT("Model",Character) | |
331 | Delete.Name = "Banlist" | |
332 | local Effects = IT("Folder", Weapon) | |
333 | Effects.Name = "Effects" | |
334 | local ANIMATOR = Humanoid.Animator | |
335 | local ANIMATE = Character.Animate | |
336 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
337 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
338 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
339 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
340 | local UNANCHOR = true | |
341 | local PLAYMAINANIM = true | |
342 | local INTRO = false | |
343 | local TRANSFORMED = false | |
344 | local INSTANT = false | |
345 | ||
346 | ||
347 | ||
348 | --//=================================\\ | |
349 | --\\=================================// | |
350 | ||
351 | ||
352 | --//=================================\\ | |
353 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
354 | --\\=================================// | |
355 | ||
356 | ArtificialHB = Instance.new("BindableEvent", script) | |
357 | ArtificialHB.Name = "ArtificialHB" | |
358 | ||
359 | script:WaitForChild("ArtificialHB") | |
360 | ||
361 | frame = Frame_Speed | |
362 | tf = 0 | |
363 | allowframeloss = false | |
364 | tossremainder = false | |
365 | lastframe = tick() | |
366 | script.ArtificialHB:Fire() | |
367 | ||
368 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
369 | tf = tf + s | |
370 | if tf >= frame then | |
371 | if allowframeloss then | |
372 | script.ArtificialHB:Fire() | |
373 | lastframe = tick() | |
374 | else | |
375 | for i = 1, math.floor(tf / frame) do | |
376 | script.ArtificialHB:Fire() | |
377 | end | |
378 | lastframe = tick() | |
379 | end | |
380 | if tossremainder then | |
381 | tf = 0 | |
382 | else | |
383 | tf = tf - frame * math.floor(tf / frame) | |
384 | end | |
385 | end | |
386 | end) | |
387 | ||
388 | --//=================================\\ | |
389 | --\\=================================// | |
390 | ||
391 | ||
392 | ||
393 | ||
394 | ||
395 | --//=================================\\ | |
396 | --|| SOME FUNCTIONS | |
397 | --\\=================================// | |
398 | ||
399 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
400 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
401 | end | |
402 | ||
403 | function PositiveAngle(NUMBER) | |
404 | if NUMBER >= 0 then | |
405 | NUMBER = 0 | |
406 | end | |
407 | return NUMBER | |
408 | end | |
409 | ||
410 | function NegativeAngle(NUMBER) | |
411 | if NUMBER <= 0 then | |
412 | NUMBER = 0 | |
413 | end | |
414 | return NUMBER | |
415 | end | |
416 | ||
417 | function Swait(NUMBER) | |
418 | if NUMBER == 0 or NUMBER == nil then | |
419 | ArtificialHB.Event:wait() | |
420 | else | |
421 | for i = 1, NUMBER do | |
422 | ArtificialHB.Event:wait() | |
423 | end | |
424 | end | |
425 | end | |
426 | ||
427 | function QuaternionFromCFrame(cf) | |
428 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
429 | local trace = m00 + m11 + m22 | |
430 | if trace > 0 then | |
431 | local s = math.sqrt(1 + trace) | |
432 | local recip = 0.5 / s | |
433 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
434 | else | |
435 | local i = 0 | |
436 | if m11 > m00 then | |
437 | i = 1 | |
438 | end | |
439 | if m22 > (i == 0 and m00 or m11) then | |
440 | i = 2 | |
441 | end | |
442 | if i == 0 then | |
443 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
444 | local recip = 0.5 / s | |
445 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
446 | elseif i == 1 then | |
447 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
448 | local recip = 0.5 / s | |
449 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
450 | elseif i == 2 then | |
451 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
452 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
453 | end | |
454 | end | |
455 | end | |
456 | ||
457 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
458 | local xs, ys, zs = x + x, y + y, z + z | |
459 | local wx, wy, wz = w * xs, w * ys, w * zs | |
460 | local xx = x * xs | |
461 | local xy = x * ys | |
462 | local xz = x * zs | |
463 | local yy = y * ys | |
464 | local yz = y * zs | |
465 | local zz = z * zs | |
466 | 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)) | |
467 | end | |
468 | ||
469 | function QuaternionSlerp(a, b, t) | |
470 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
471 | local startInterp, finishInterp; | |
472 | if cosTheta >= 0.0001 then | |
473 | if (1 - cosTheta) > 0.0001 then | |
474 | local theta = ACOS(cosTheta) | |
475 | local invSinTheta = 1 / SIN(theta) | |
476 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
477 | finishInterp = SIN(t * theta) * invSinTheta | |
478 | else | |
479 | startInterp = 1 - t | |
480 | finishInterp = t | |
481 | end | |
482 | else | |
483 | if (1 + cosTheta) > 0.0001 then | |
484 | local theta = ACOS(-cosTheta) | |
485 | local invSinTheta = 1 / SIN(theta) | |
486 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
487 | finishInterp = SIN(t * theta) * invSinTheta | |
488 | else | |
489 | startInterp = t - 1 | |
490 | finishInterp = t | |
491 | end | |
492 | end | |
493 | 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 | |
494 | end | |
495 | ||
496 | function Clerp(a, b, t) | |
497 | local qa = {QuaternionFromCFrame(a)} | |
498 | local qb = {QuaternionFromCFrame(b)} | |
499 | local ax, ay, az = a.x, a.y, a.z | |
500 | local bx, by, bz = b.x, b.y, b.z | |
501 | local _t = 1 - t | |
502 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
503 | end | |
504 | ||
505 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
506 | local frame = IT("Frame") | |
507 | frame.BackgroundTransparency = TRANSPARENCY | |
508 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
509 | frame.Position = POSITION | |
510 | frame.Size = SIZE | |
511 | frame.BackgroundColor3 = COLOR | |
512 | frame.BorderColor3 = BORDERCOLOR | |
513 | frame.Name = NAME | |
514 | frame.Parent = PARENT | |
515 | return frame | |
516 | end | |
517 | ||
518 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
519 | local label = IT("TextLabel") | |
520 | label.BackgroundTransparency = 1 | |
521 | label.Size = UD2(1, 0, 1, 0) | |
522 | label.Position = UD2(0, 0, 0, 0) | |
523 | label.TextColor3 = TEXTCOLOR | |
524 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
525 | label.TextTransparency = TRANSPARENCY | |
526 | label.FontSize = TEXTFONTSIZE | |
527 | label.Font = TEXTFONT | |
528 | label.BorderSizePixel = BORDERSIZEPIXEL | |
529 | label.TextScaled = false | |
530 | label.Text = TEXT | |
531 | label.Name = NAME | |
532 | label.Parent = PARENT | |
533 | return label | |
534 | end | |
535 | ||
536 | function NoOutlines(PART) | |
537 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
538 | end | |
539 | ||
540 | ||
541 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
542 | local NEWWELD = IT(TYPE) | |
543 | NEWWELD.Part0 = PART0 | |
544 | NEWWELD.Part1 = PART1 | |
545 | NEWWELD.C0 = C0 | |
546 | NEWWELD.C1 = C1 | |
547 | NEWWELD.Parent = PARENT | |
548 | return NEWWELD | |
549 | end | |
550 | ||
551 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
552 | local NEWSOUND = nil | |
553 | coroutine.resume(coroutine.create(function() | |
554 | NEWSOUND = IT("Sound", PARENT) | |
555 | NEWSOUND.Volume = VOLUME | |
556 | NEWSOUND.Pitch = PITCH | |
557 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
558 | Swait() | |
559 | NEWSOUND:play() | |
560 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
561 | end)) | |
562 | return NEWSOUND | |
563 | end | |
564 | ||
565 | function CFrameFromTopBack(at, top, back) | |
566 | local right = top:Cross(back) | |
567 | 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) | |
568 | end | |
569 | ||
570 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
571 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
572 | local mesh = IT("SpecialMesh",wave) | |
573 | mesh.MeshType = "FileMesh" | |
574 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
575 | mesh.Scale = SIZE | |
576 | mesh.Offset = VT(0,0,0) | |
577 | wave.CFrame = CFRAME | |
578 | coroutine.resume(coroutine.create(function(PART) | |
579 | for i = 1, WAIT do | |
580 | Swait() | |
581 | mesh.Scale = mesh.Scale + GROW | |
582 | if DOESROT == true then | |
583 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
584 | end | |
585 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
586 | if wave.Transparency > 0.99 then | |
587 | wave:remove() | |
588 | end | |
589 | end | |
590 | end)) | |
591 | end | |
592 | ||
593 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
594 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
595 | local mesh = IT("SpecialMesh",wave) | |
596 | mesh.MeshType = "Sphere" | |
597 | mesh.Scale = SIZE | |
598 | mesh.Offset = VT(0,0,0) | |
599 | wave.CFrame = CFRAME | |
600 | coroutine.resume(coroutine.create(function(PART) | |
601 | for i = 1, WAIT do | |
602 | Swait() | |
603 | mesh.Scale = mesh.Scale + GROW | |
604 | wave.Transparency = wave.Transparency + (1/WAIT) | |
605 | if wave.Transparency > 0.99 then | |
606 | wave:remove() | |
607 | end | |
608 | end | |
609 | end)) | |
610 | end | |
611 | ||
612 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
613 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
614 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
615 | wave.CFrame = CFRAME | |
616 | coroutine.resume(coroutine.create(function(PART) | |
617 | for i = 1, WAIT do | |
618 | Swait() | |
619 | mesh.Scale = mesh.Scale * GROW | |
620 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
621 | if wave.Transparency > 0.99 then | |
622 | wave:remove() | |
623 | end | |
624 | end | |
625 | end)) | |
626 | end | |
627 | ||
628 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW) | |
629 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
630 | local mesh = IT("BlockMesh",wave) | |
631 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
632 | coroutine.resume(coroutine.create(function(PART) | |
633 | for i = 1, WAIT do | |
634 | Swait() | |
635 | mesh.Scale = mesh.Scale + GROW | |
636 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
637 | wave.Transparency = wave.Transparency + (1/WAIT) | |
638 | if wave.Transparency > 0.99 then | |
639 | wave:remove() | |
640 | end | |
641 | end | |
642 | end)) | |
643 | end | |
644 | ||
645 | function MakeForm(PART,TYPE) | |
646 | if TYPE == "Cyl" then | |
647 | local MSH = IT("CylinderMesh",PART) | |
648 | elseif TYPE == "Ball" then | |
649 | local MSH = IT("SpecialMesh",PART) | |
650 | MSH.MeshType = "Sphere" | |
651 | elseif TYPE == "Wedge" then | |
652 | local MSH = IT("SpecialMesh",PART) | |
653 | MSH.MeshType = "Wedge" | |
654 | end | |
655 | end | |
656 | ||
657 | function CheckTableForString(Table, String) | |
658 | for i, v in pairs(Table) do | |
659 | if string.find(string.lower(String), string.lower(v)) then | |
660 | return true | |
661 | end | |
662 | end | |
663 | return false | |
664 | end | |
665 | ||
666 | function CheckIntangible(Hit) | |
667 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
668 | if Hit and Hit.Parent then | |
669 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
670 | return true | |
671 | end | |
672 | end | |
673 | return false | |
674 | end | |
675 | ||
676 | Debris = game:GetService("Debris") | |
677 | ||
678 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
679 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
680 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
681 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
682 | if RayHit and CheckIntangible(RayHit) then | |
683 | if DelayIfHit then | |
684 | wait() | |
685 | end | |
686 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
687 | end | |
688 | return RayHit, RayPos, RayNormal | |
689 | end | |
690 | ||
691 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
692 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
693 | end | |
694 | ||
695 | function turnto(position) | |
696 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
697 | end | |
698 | ||
699 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
700 | PLAYMAINANIM = false | |
701 | if WhichPose == "Cast1" then | |
702 | - | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
702 | + | |
703 | Swait() | |
704 | if Magic == true then | |
705 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
706 | end | |
707 | if Gyro ~= nil and Gyro ~= false then | |
708 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
709 | end | |
710 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
711 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
712 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
713 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
714 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
715 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
716 | end | |
717 | elseif WhichPose == "Cast2" then | |
718 | for i=0, Time, 0.1 / Animation_Speed do | |
719 | Swait() | |
720 | if Magic == true then | |
721 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
722 | end | |
723 | if Gyro ~= nil and Gyro ~= false then | |
724 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
725 | end | |
726 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
727 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
728 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
729 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
730 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
731 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
732 | end | |
733 | elseif WhichPose == "RightArmUp" then | |
734 | for i=0, Time, 0.1 / Animation_Speed do | |
735 | Swait() | |
736 | if Magic == true then | |
737 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
738 | end | |
739 | if Gyro ~= nil and Gyro ~= false then | |
740 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
741 | end | |
742 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
743 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
744 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
745 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
746 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
747 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
748 | end | |
749 | elseif WhichPose == "Taunt" then | |
750 | for i=0, Time, 0.1 / Animation_Speed do | |
751 | Swait() | |
752 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
753 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
754 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
755 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
756 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
757 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
758 | end | |
759 | CreateSound(221057812,Torso,10,1,false) | |
760 | for i=0, Time*2, 0.1 / Animation_Speed do | |
761 | Swait() | |
762 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
763 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
764 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
765 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
766 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
767 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
768 | end | |
769 | for i=0, Time, 0.1 / Animation_Speed do | |
770 | Swait() | |
771 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
772 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
773 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
774 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
775 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
776 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
777 | end | |
778 | elseif WhichPose == "Prepare key" then | |
779 | for i=0, Time, 0.1 / Animation_Speed do | |
780 | Swait() | |
781 | if Gyro ~= nil and Gyro ~= false then | |
782 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
783 | end | |
784 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
785 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
786 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
787 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
788 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
789 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
790 | end | |
791 | elseif WhichPose == "Turn key" then | |
792 | for i=0, Time, 0.1 / Animation_Speed do | |
793 | Swait() | |
794 | if Gyro ~= nil and Gyro ~= false then | |
795 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
796 | end | |
797 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
798 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
799 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
800 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
801 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
802 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
803 | end | |
804 | end | |
805 | PLAYMAINANIM = true | |
806 | end | |
807 | ||
808 | --//=================================\\ | |
809 | --|| SPEECH | |
810 | --\\=================================// | |
811 | ||
812 | function Chatter(Text,Timer) | |
813 | local chat = coroutine.wrap(function() | |
814 | if Character:FindFirstChild("SpeechBoard")~= nil then | |
815 | Character:FindFirstChild("SpeechBoard"):destroy() | |
816 | end | |
817 | local naeeym2 = IT("BillboardGui",Character) | |
818 | naeeym2.Size = UD2(0,100,0,40) | |
819 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
820 | naeeym2.Adornee = Character.Head | |
821 | naeeym2.Name = "SpeechBoard" | |
822 | naeeym2.AlwaysOnTop = true | |
823 | local tecks2 = IT("TextLabel",naeeym2) | |
824 | tecks2.BackgroundTransparency = 1 | |
825 | tecks2.BorderSizePixel = 0 | |
826 | tecks2.Text = "" | |
827 | tecks2.Font = "Legacy" | |
828 | tecks2.TextSize = 15 | |
829 | tecks2.TextStrokeTransparency = 1 | |
830 | tecks2.TextColor3 = Color3.new(255,0,0) | |
831 | tecks2.TextStrokeColor3 = Color3.new(255,0,0) | |
832 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
833 | for i = 1,string.len(Text),1 do | |
834 | CreateSound(418252437, Head, 3, MRANDOM(8,12)/15, false) | |
835 | tecks2.Text = string.sub(Text,1,i) | |
836 | wait(Timer) | |
837 | end | |
838 | wait(1) | |
839 | naeeym2:Destroy() | |
840 | end) | |
841 | chat() | |
842 | end | |
843 | ||
844 | function chatfunc(text,waitt) | |
845 | local chat = coroutine.wrap(function() | |
846 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
847 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
848 | end | |
849 | local naeeym2 = Instance.new("BillboardGui",Character) | |
850 | naeeym2.Size = UDim2.new(0,100,0,40) | |
851 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
852 | naeeym2.Adornee = Character.Head | |
853 | naeeym2.Name = "TalkingBillBoard" | |
854 | naeeym2.AlwaysOnTop = true | |
855 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
856 | tecks2.BackgroundTransparency = 1 | |
857 | tecks2.BorderSizePixel = 0 | |
858 | tecks2.Text = "" | |
859 | tecks2.Font = "SciFi" | |
860 | tecks2.TextSize = 30 | |
861 | tecks2.TextStrokeTransparency = 1 | |
862 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
863 | tecks2.TextStrokeColor3 = Color3.new(255/255,0/255,0/255) | |
864 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
865 | for i = 1,string.len(text),1 do | |
866 | tecks2.Text = string.sub(text,1,i) | |
867 | Swait() | |
868 | end | |
869 | wait(waitt) | |
870 | coroutine.resume(coroutine.create(function() | |
871 | for i = 1, 10 do | |
872 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
873 | Swait() | |
874 | end | |
875 | naeeym2:Destroy() | |
876 | end)) | |
877 | end) | |
878 | chat() | |
879 | end | |
880 | ||
881 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
882 | local CHILDREN = workspace:GetDescendants() | |
883 | for index, CHILD in pairs(CHILDREN) do | |
884 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
885 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
886 | if HUM then | |
887 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
888 | if TORSO then | |
889 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
890 | if ISBANISH == true then | |
891 | Banish(CHILD) | |
892 | else | |
893 | if ISBANISH == "Gravity" then | |
894 | HUM.PlatformStand = true | |
895 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
896 | local grav = Instance.new("BodyPosition",TORSO) | |
897 | grav.D = 15 | |
898 | grav.P = 20000 | |
899 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
900 | grav.position = TORSO.Position | |
901 | grav.Name = "V3BanishForce"..Player.Name | |
902 | else | |
903 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
904 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
905 | end | |
906 | else | |
907 | HUM.PlatformStand = false | |
908 | end | |
909 | end | |
910 | elseif ISBANISH == "Gravity" then | |
911 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
912 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
913 | HUM.PlatformStand = false | |
914 | end | |
915 | end | |
916 | end | |
917 | end | |
918 | end | |
919 | end | |
920 | end | |
921 | ||
922 | function CreateFlyingDebree(FLOOR, POSITION, AMOUNT, BLOCKSIZE, SWAIT, STRENGTH) | |
923 | if FLOOR ~= nil then | |
924 | for i = 1, AMOUNT do | |
925 | do | |
926 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
927 | DEBREE.Material = FLOOR.Material | |
928 | DEBREE.Color = FLOOR.Color | |
929 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))) | |
930 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH), MRANDOM(-STRENGTH, STRENGTH)) | |
931 | coroutine.resume(coroutine.create(function() | |
932 | Swait(15) | |
933 | DEBREE.Parent = workspace | |
934 | DEBREE.CanCollide = true | |
935 | Debris:AddItem(DEBREE, SWAIT) | |
936 | end)) | |
937 | end | |
938 | end | |
939 | end | |
940 | end | |
941 | --// Start Stuff for Banishing \\-- | |
942 | ||
943 | local TOBANISH = {} | |
944 | ||
945 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
946 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
947 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
948 | end | |
949 | ||
950 | function printbye(Name) | |
951 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your life is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
952 | chatfunc(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
953 | end | |
954 | ||
955 | function Banish(Foe) | |
956 | if Foe then | |
957 | coroutine.resume(coroutine.create(function() | |
958 | --if game.Players:FindFirstChild(Foe.Name) then | |
959 | table.insert(TOBANISH,Foe.Name) | |
960 | printbye(Foe.Name) | |
961 | --end | |
962 | Foe.Archivable = true | |
963 | local CLONE = Foe:Clone() | |
964 | Foe:Destroy() | |
965 | CLONE.Parent = Effects | |
966 | CLONE:BreakJoints() | |
967 | local MATERIALS = {"Glass","Neon"} | |
968 | for _, c in pairs(CLONE:GetDescendants()) do | |
969 | if c:IsA("BasePart") then | |
970 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
971 | CreateSound(340722848, c, 10, 1, false) | |
972 | end | |
973 | c.Anchored = true | |
974 | c.Transparency = c.Transparency + 0.2 | |
975 | c.Material = MATERIALS[MRANDOM(1,2)] | |
976 | c.Color = C3(0,255,0) | |
977 | if c.ClassName == "MeshPart" then | |
978 | c.TextureID = "" | |
979 | end | |
980 | if c:FindFirstChildOfClass("SpecialMesh") then | |
981 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
982 | end | |
983 | if c:FindFirstChildOfClass("Decal") then | |
984 | c:FindFirstChildOfClass("Decal"):remove() | |
985 | end | |
986 | c.Name = "Banished" | |
987 | c.CanCollide = false | |
988 | else | |
989 | c:remove() | |
990 | end | |
991 | end | |
992 | local A = false | |
993 | for i = 1, 35 do | |
994 | if A == false then | |
995 | A = true | |
996 | elseif A == true then | |
997 | A = false | |
998 | end | |
999 | for _, c in pairs(CLONE:GetDescendants()) do | |
1000 | if c:IsA("BasePart") then | |
1001 | c.Anchored = true | |
1002 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1003 | c.Transparency = c.Transparency + 0.8/35 | |
1004 | if A == false then | |
1005 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1006 | elseif A == true then | |
1007 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1008 | end | |
1009 | end | |
1010 | end | |
1011 | Swait() | |
1012 | end | |
1013 | CLONE:remove() | |
1014 | end)) | |
1015 | end | |
1016 | end | |
1017 | ||
1018 | function BANNEAREST(POS,RANGE) | |
1019 | for i,v in ipairs(workspace:GetChildren()) do | |
1020 | local body = v:GetChildren() | |
1021 | for part = 1, #body do | |
1022 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1023 | if(body[part].Position - POS).Magnitude < RANGE then | |
1024 | if v:FindFirstChildOfClass("Humanoid") then | |
1025 | Banish(v) | |
1026 | if game.Players:FindFirstChild(v.Name) then | |
1027 | local Value = IT("BoolValue",Delete) | |
1028 | Value.Name = v.Name | |
1029 | end | |
1030 | end | |
1031 | end | |
1032 | end | |
1033 | end | |
1034 | end | |
1035 | end | |
1036 | ||
1037 | workspace.ChildAdded:connect(function(instance) | |
1038 | for BANISH = 1, #TOBANISH do | |
1039 | if TOBANISH[BANISH] ~= nil then | |
1040 | if instance.Name == TOBANISH[BANISH] then | |
1041 | coroutine.resume(coroutine.create(function() | |
1042 | printbye(instance.Name) | |
1043 | instance:ClearAllChildren() | |
1044 | Debris:AddItem(instance,0.0005) | |
1045 | end)) | |
1046 | end | |
1047 | end | |
1048 | end | |
1049 | end) | |
1050 | ||
1051 | function SpawnTrail(FROM,TO,BIG) | |
1052 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
1053 | MakeForm(TRAIL,"Cyl") | |
1054 | local DIST = (FROM - TO).Magnitude | |
1055 | if BIG == true then | |
1056 | TRAIL.Size = VT(10,DIST,10) | |
1057 | else | |
1058 | TRAIL.Size = VT(0.25,DIST,0.25) | |
1059 | end | |
1060 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1061 | coroutine.resume(coroutine.create(function() | |
1062 | for i = 1, 5 do | |
1063 | Swait() | |
1064 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
1065 | end | |
1066 | TRAIL:remove() | |
1067 | end)) | |
1068 | end | |
1069 | ||
1070 | function WACKYEFFECT(Table) | |
1071 | local TYPE = (Table.EffectType or "Sphere") | |
1072 | local SIZE = (Table.Size or VT(1,1,1)) | |
1073 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1074 | local TRANSPARENCY = (Table.Transparency or 0) | |
1075 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1076 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1077 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1078 | local ROTATION1 = (Table.RotationX or 0) | |
1079 | local ROTATION2 = (Table.RotationY or 0) | |
1080 | local ROTATION3 = (Table.RotationZ or 0) | |
1081 | local MATERIAL = (Table.Material or "Neon") | |
1082 | local COLOR = (Table.Color or C3(0,255,0)) | |
1083 | local TIME = (Table.Time or 45) | |
1084 | local SOUNDID = (Table.SoundID or nil) | |
1085 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1086 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1087 | coroutine.resume(coroutine.create(function() | |
1088 | local PLAYSSOUND = false | |
1089 | local SOUND = nil | |
1090 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1091 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1092 | PLAYSSOUND = true | |
1093 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1094 | end | |
1095 | EFFECT.Color = COLOR | |
1096 | local MSH = nil | |
1097 | if TYPE == "Sphere" then | |
1098 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1099 | elseif TYPE == "Block" then | |
1100 | MSH = IT("BlockMesh",EFFECT) | |
1101 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1102 | elseif TYPE == "Wave" then | |
1103 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1104 | elseif TYPE == "Ring" then | |
1105 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1106 | elseif TYPE == "Slash" then | |
1107 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1108 | elseif TYPE == "Round Slash" then | |
1109 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1110 | elseif TYPE == "Swirl" then | |
1111 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1112 | elseif TYPE == "Skull" then | |
1113 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1114 | elseif TYPE == "Crystal" then | |
1115 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1116 | end | |
1117 | if MSH ~= nil then | |
1118 | local MOVESPEED = nil | |
1119 | if MOVEDIRECTION ~= nil then | |
1120 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1121 | end | |
1122 | local GROWTH = SIZE - ENDSIZE | |
1123 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1124 | if TYPE == "Block" then | |
1125 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1126 | else | |
1127 | EFFECT.CFrame = CFRAME | |
1128 | end | |
1129 | for LOOP = 1, TIME+1 do | |
1130 | Swait() | |
1131 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1132 | if TYPE == "Wave" then | |
1133 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1134 | end | |
1135 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1136 | if TYPE == "Block" then | |
1137 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1138 | else | |
1139 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1140 | end | |
1141 | if MOVEDIRECTION ~= nil then | |
1142 | local ORI = EFFECT.Orientation | |
1143 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1144 | EFFECT.Orientation = ORI | |
1145 | end | |
1146 | end | |
1147 | if PLAYSSOUND == false then | |
1148 | EFFECT:remove() | |
1149 | else | |
1150 | SOUND.Stopped:Connect(function() | |
1151 | EFFECT:remove() | |
1152 | end) | |
1153 | end | |
1154 | else | |
1155 | if PLAYSSOUND == false then | |
1156 | EFFECT:remove() | |
1157 | else | |
1158 | repeat Swait() until SOUND.Playing == false | |
1159 | EFFECT:remove() | |
1160 | end | |
1161 | end | |
1162 | end)) | |
1163 | end | |
1164 | ||
1165 | -- \\ End Stuff for Banishing //-- | |
1166 | ||
1167 | --//=================================\\ | |
1168 | --|| WEAPON CREATION | |
1169 | --\\=================================// | |
1170 | print("hello this is Epticallity and you're watching Disney Channel") | |
1171 | warn("let dreamer suck you off VengefulProgram") | |
1172 | local EyeSizes={ | |
1173 | NumberSequenceKeypoint.new(0,1,0), | |
1174 | NumberSequenceKeypoint.new(1,0,0) | |
1175 | } | |
1176 | local EyeTrans={ | |
1177 | NumberSequenceKeypoint.new(0,0.8,0), | |
1178 | NumberSequenceKeypoint.new(1,1,0) | |
1179 | } | |
1180 | local PE=Instance.new("ParticleEmitter") | |
1181 | PE.LightEmission=.8 | |
1182 | PE.Color = ColorSequence.new(BRICKC("Really red").Color) | |
1183 | PE.Size=NumberSequence.new(EyeSizes) | |
1184 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1185 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
1186 | PE.Rotation=NumberRange.new(0,360) | |
1187 | PE.Rate=999 | |
1188 | PE.VelocitySpread = 10000 | |
1189 | PE.Acceleration = Vector3.new(0,0,0) | |
1190 | PE.Drag = 5 | |
1191 | PE.Speed = NumberRange.new(0,0,0) | |
1192 | PE.Texture="http://www.roblox.com/asset/?id=0" | |
1193 | PE.ZOffset = -1.5 | |
1194 | PE.Name = "PE" | |
1195 | PE.Enabled = false | |
1196 | ||
1197 | function particles(art) | |
1198 | local PARTICLES = PE:Clone() | |
1199 | PARTICLES.Parent = art | |
1200 | end | |
1201 | ||
1202 | local SCYTHE = IT("Model",Character) | |
1203 | SCYTHE.Name = "SCYTHE" | |
1204 | ||
1205 | local B = SCYTHE | |
1206 | local HandlePart = CreatePart(3, B, "Neon", 0, 1, "Really red", "HandPart", VT(0.3,0.3,0.3),false) | |
1207 | particles(HandlePart) | |
1208 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Character, Torso, HandlePart, CF(0,1,1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1209 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,3.5,0.2),false) | |
1210 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-1.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1211 | MakeForm(part,"Ball") | |
1212 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1,0.3),false) | |
1213 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1214 | MakeForm(part,"Ball") | |
1215 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.25,1,0.25),false) | |
1216 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1217 | MakeForm(part,"Ball") | |
1218 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,2,0.15),false) | |
1219 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warp", BrickColor.new("Really red").Color, 8, "Code", 0, 2, 0, "Text 1") |
1219 | + | |
1220 | - | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Deadly Dash", BrickColor.new("Really blue").Color, 8, "Code", 0, 2, 0, "Text 2") |
1220 | + | |
1221 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Key To Hell", BrickColor.new("Lime green").Color, 8, "Code", 0, 2, 0, "Text 3") |
1221 | + | |
1222 | - | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Fatal Wave", BrickColor.new("Pink").Color, 8, "Code", 0, 2, 0, "Text 4") |
1222 | + | |
1223 | - | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Reap", BrickColor.new("White").Color, 8, "Code", 0, 2, 0, "Text 5") |
1223 | + | |
1224 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.5,0.15),false) | |
1225 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.15,1) * ANGLES(RAD(40), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1226 | MakeForm(part,"Ball") | |
1227 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.45,0.15),false) | |
1228 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.125,1.25) * ANGLES(RAD(40), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1229 | MakeForm(part,"Ball") | |
1230 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,2,0.3),false) | |
1231 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1232 | MakeForm(part,"Ball") | |
1233 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,0.8,0.3),false) | |
1234 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.2,-3.2) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1235 | MakeForm(part,"Ball") | |
1236 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,0.3,0.3),false) | |
1237 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.025,-2.8) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1238 | MakeForm(part,"Ball") | |
1239 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.8,0.15),false) | |
1240 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.5,-3.5) * ANGLES(RAD(160), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1241 | MakeForm(part,"Ball") | |
1242 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,0.8,0.2),false) | |
1243 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.85,-3.8) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1244 | MakeForm(part,"Ball") | |
1245 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.4,1.3,0.8),false) | |
1246 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.6,-4.2) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1247 | MakeForm(part,"Ball") | |
1248 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1.3,0.6),false) | |
1249 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.3,-4.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1250 | MakeForm(part,"Ball") | |
1251 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,2,0.4),false) | |
1252 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.2,-4.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1253 | MakeForm(part,"Ball") | |
1254 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.1,2,0.4),false) | |
1255 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.6,-4.1) * ANGLES(RAD(-25), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1256 | MakeForm(part,"Ball") | |
1257 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.05,2,0.2),false) | |
1258 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-1.6,-3.475) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1259 | MakeForm(part,"Ball") | |
1260 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1.3,0.6),false) | |
1261 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.5,-4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1262 | MakeForm(part,"Ball") | |
1263 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,1,0.4),false) | |
1264 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.1,-4) * ANGLES(RAD(-35), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1265 | MakeForm(part,"Ball") | |
1266 | local part = CreatePart(3, B, "Granite", 0, 1, "Really red", "ScythePart", VT(0.15,1,0.2),false) | |
1267 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.45,-3.8) * ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1268 | MakeForm(part,"Ball") | |
1269 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.1,0.5,0.1),false) | |
1270 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.1,-3.3) * ANGLES(RAD(-25), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1271 | MakeForm(part,"Ball") | |
1272 | local HitBox = CreatePart(3, B, "Neon", 0, 1, "Really red", "Hitbox", VT(5,1.3,0.6),false) | |
1273 | local weld = CreateWeldOrSnapOrMotor("Weld", HitBox, HandlePart, HitBox, CF(0,0,-3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1274 | for i = 1, 15 do | |
1275 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) | |
1276 | FACE.Color = C3(0,0,0) | |
1277 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1278 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) | |
1279 | end | |
1280 | ||
1281 | for _, c in pairs(SCYTHE:GetChildren()) do | |
1282 | if c.ClassName == "Part" then | |
1283 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1284 | end | |
1285 | end | |
1286 | ||
1287 | for i = 1, 20 do | |
1288 | local MATH = (1-(i/25)) | |
1289 | if LASTPART == Head then | |
1290 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1291 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1292 | LASTPART = Horn | |
1293 | Horn.Color = C3(0,0,0) | |
1294 | else | |
1295 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1296 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
1297 | LASTPART = Horn | |
1298 | Horn.Color = C3(0,0,0) | |
1299 | end | |
1300 | end | |
1301 | local LASTPART = Head | |
1302 | for i = 1, 20 do | |
1303 | local MATH = (1-(i/25)) | |
1304 | if LASTPART == Head then | |
1305 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1306 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
1307 | LASTPART = Horn | |
1308 | Horn.Color = C3(0,0,0) | |
1309 | else | |
1310 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Royal purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1311 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
1312 | LASTPART = Horn | |
1313 | Horn.Color = C3(0,0,0) | |
1314 | end | |
1315 | end | |
1316 | ||
1317 | -- IdleGun(Injustice) -- | |
1318 | ||
1319 | local Handle = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false) | |
1320 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, Torso, Handle, CF(-1.6, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1321 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
1322 | MakeForm(Part,"Wedge") | |
1323 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1324 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false) | |
1325 | MakeForm(Part,"Wedge") | |
1326 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1327 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false) | |
1328 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1329 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
1330 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1331 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
1332 | MakeForm(Part,"Cyl") | |
1333 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1334 | for i = 1, 8 do | |
1335 | local Piece = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
1336 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1337 | end | |
1338 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false) | |
1339 | MakeForm(Part,"Cyl") | |
1340 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1341 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false) | |
1342 | MakeForm(Part,"Ball") | |
1343 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1344 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false) | |
1345 | MakeForm(Part,"Wedge") | |
1346 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1347 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false) | |
1348 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1349 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false) | |
1350 | MakeForm(Part,"Cyl") | |
1351 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1352 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false) | |
1353 | MakeForm(Part,"Cyl") | |
1354 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1355 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false) | |
1356 | MakeForm(Part,"Cyl") | |
1357 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1358 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
1359 | MakeForm(Part,"Wedge") | |
1360 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1361 | local LASTPART = Handle | |
1362 | for i = 1, 10 do | |
1363 | if LASTPART == Handle then | |
1364 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false) | |
1365 | LASTPART = Part | |
1366 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1367 | else | |
1368 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false) | |
1369 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1370 | LASTPART = Part | |
1371 | end | |
1372 | end | |
1373 | ||
1374 | local Barrel = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false) | |
1375 | MakeForm(Barrel,"Cyl") | |
1376 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1377 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false) | |
1378 | MakeForm(Part,"Cyl") | |
1379 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1380 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false) | |
1381 | MakeForm(Part,"Wedge") | |
1382 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1383 | local Hole = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false) | |
1384 | MakeForm(Hole,"Cyl") | |
1385 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1386 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false) | |
1387 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1388 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1389 | local Part = CreatePart(3, InjusticeGun, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false) | |
1390 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1391 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1392 | coroutine.resume(coroutine.create(function() | |
1393 | while wait() do | |
1394 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1395 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1396 | end | |
1397 | end)) | |
1398 | -- UsedGun(Injustice) -- | |
1399 | ||
1400 | local Handle2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.6,0.2),false) | |
1401 | local LeftArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle2, RightArm, Handle2, CF(0, -1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1402 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
1403 | MakeForm(Part,"Wedge") | |
1404 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1405 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.3,0.2),false) | |
1406 | MakeForm(Part,"Wedge") | |
1407 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1408 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.3,0.3),false) | |
1409 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1410 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.5),false) | |
1411 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1412 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false) | |
1413 | MakeForm(Part,"Cyl") | |
1414 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1415 | for i = 1, 8 do | |
1416 | local Piece = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0,0.35,0.41),false) | |
1417 | CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1418 | end | |
1419 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Eye", VT(0.38,0.41,0.38),false) | |
1420 | MakeForm(Part,"Cyl") | |
1421 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1422 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.37,0.5,0.37),false) | |
1423 | MakeForm(Part,"Ball") | |
1424 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1425 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.7,0.4),false) | |
1426 | MakeForm(Part,"Wedge") | |
1427 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1428 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.4,0.2),false) | |
1429 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1430 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.35,0.35,0.35),false) | |
1431 | MakeForm(Part,"Cyl") | |
1432 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1433 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.5),false) | |
1434 | MakeForm(Part,"Cyl") | |
1435 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1436 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.5,0.1,0.45),false) | |
1437 | MakeForm(Part,"Cyl") | |
1438 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1439 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false) | |
1440 | MakeForm(Part,"Wedge") | |
1441 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1442 | local LASTPART = Handle2 | |
1443 | for i = 1, 10 do | |
1444 | if LASTPART == Handle then | |
1445 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.2,0),false) | |
1446 | LASTPART = Part | |
1447 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1448 | else | |
1449 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0.1,0.05,0),false) | |
1450 | CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1451 | LASTPART = Part | |
1452 | end | |
1453 | end | |
1454 | ||
1455 | local Barrel2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.15,2,0.15),false) | |
1456 | MakeForm(Barrel,"Cyl") | |
1457 | CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel2, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1458 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0.25,1,0.25),false) | |
1459 | MakeForm(Part,"Cyl") | |
1460 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1461 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "Really black", "Part", VT(0,0.1,0.2),false) | |
1462 | MakeForm(Part,"Wedge") | |
1463 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1464 | local Hole2 = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Eye", VT(0.125,0,0.125),false) | |
1465 | MakeForm(Hole,"Cyl") | |
1466 | CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel2, Hole2, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1467 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0, "New Yeller", "Part", VT(0,0,0),false) | |
1468 | local GEARWELD3 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1469 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1470 | local Part = CreatePart(3, InjusticeGun2, "Metal", 0, 0.5, "New Yeller", "Eye", VT(0,0,0),false) | |
1471 | local GEARWELD4 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1472 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1473 | coroutine.resume(coroutine.create(function() | |
1474 | while wait() do | |
1475 | GEARWELD3.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1476 | GEARWELD4.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1477 | end | |
1478 | end)) | |
1479 | ||
1480 | ||
1481 | ||
1482 | Weapon.Parent = Character | |
1483 | ||
1484 | Humanoid.Died:connect(function() | |
1485 | KillChildren(Character) | |
1486 | SCYTHE:ClearAllChildren() | |
1487 | for i = 1, 100 do | |
1488 | Swait() | |
1489 | sick.Volume = sick.Volume - 0.02 | |
1490 | end | |
1491 | end) | |
1492 | ||
1493 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1494 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1495 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1496 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1497 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1498 | ||
1499 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] GET OUT FROM THEM", BrickColor.new("Really red").Color, 8, "Code", 0, 2, 0, "Text 1") | |
1500 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] AHHHHHHHHHHH!", BrickColor.new("Really blue").Color, 8, "Code", 0, 2, 0, "Text 2") | |
1501 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] CLOSE THEM FOREVER", BrickColor.new("Lime green").Color, 8, "Code", 0, 2, 0, "Text 3") | |
1502 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] KNIFE SWING OF DEATH", BrickColor.new("Pink").Color, 8, "Code", 0, 2, 0, "Text 4") | |
1503 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] FLOOR OF DEATH", BrickColor.new("White").Color, 8, "Code", 0, 2, 0, "Text 5") | |
1504 | ||
1505 | --//=================================\\ | |
1506 | --|| DAMAGING | |
1507 | --\\=================================// | |
1508 | ||
1509 | function KillChildren(v) | |
1510 | v:BreakJoints() | |
1511 | for _, c in pairs(v:GetChildren()) do | |
1512 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1513 | if c.Transparency < 1 then | |
1514 | if c:FindFirstChildOfClass("Decal") then | |
1515 | c:FindFirstChildOfClass("Decal"):remove() | |
1516 | end | |
1517 | particles(c) | |
1518 | c.PE.Enabled = true | |
1519 | c.Parent = Effects | |
1520 | c.CanCollide = false | |
1521 | c.Material = "Neon" | |
1522 | c.Color = C3(0,0,0) | |
1523 | c.Transparency = 0.5 | |
1524 | local grav = Instance.new("BodyPosition",c) | |
1525 | grav.P = 20000 | |
1526 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1527 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1528 | grav.Name = "GravityForce" | |
1529 | coroutine.resume(coroutine.create(function() | |
1530 | for i = 1, 50 do | |
1531 | Swait() | |
1532 | c.Transparency = c.Transparency + 0.01 | |
1533 | end | |
1534 | c.PE.Enabled = false | |
1535 | Debris:AddItem(c,2) | |
1536 | end)) | |
1537 | end | |
1538 | end | |
1539 | end | |
1540 | end | |
1541 | ||
1542 | function killnearest(position,range) | |
1543 | for i,v in ipairs(workspace:GetChildren()) do | |
1544 | local body = v:GetChildren() | |
1545 | for part = 1, #body do | |
1546 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1547 | if(body[part].Position - position).Magnitude < range then | |
1548 | if v.ClassName == "Model" then | |
1549 | KillChildren(v) | |
1550 | end | |
1551 | end | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end | |
1556 | ||
1557 | function ApplyDamage(Humanoid,Damage) | |
1558 | Damage = Damage * 1 | |
1559 | local DEAD = false | |
1560 | if Humanoid.Health < 2000 then | |
1561 | if Humanoid.Health - Damage > 0 then | |
1562 | Humanoid.Health = Humanoid.Health - Damage | |
1563 | else | |
1564 | DEAD = true | |
1565 | Humanoid.Parent:BreakJoints() | |
1566 | end | |
1567 | else | |
1568 | DEAD = true | |
1569 | Humanoid.Parent:BreakJoints() | |
1570 | end | |
1571 | if DEAD == true then | |
1572 | Chatter("That's your fault. Isn't it.",0) | |
1573 | end | |
1574 | end | |
1575 | ||
1576 | --//=================================\\ | |
1577 | --|| ATTACK FUNCTIONS AND STUFF | |
1578 | --\\=================================// | |
1579 | ||
1580 | function Intro() | |
1581 | ATTACK = true | |
1582 | Rooted = true | |
1583 | repeat | |
1584 | Swait() | |
1585 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1586 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1587 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1588 | LeftShoulder.C0 = Clerp(LeftShoulder.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)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1589 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
1590 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
1591 | until sick.TimePosition > 120 | |
1592 | repeat | |
1593 | Swait() | |
1594 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1595 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1596 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1597 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1598 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1599 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1600 | until sick.TimePosition > 129 | |
1601 | repeat | |
1602 | Swait() | |
1603 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1604 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1605 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1606 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1607 | 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) | |
1608 | 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) | |
1609 | until sick.TimePosition > 130.5 | |
1610 | tecks2.TextTransparency = 0 | |
1611 | Head.Color = C3(0,0,0) | |
1612 | Torso.Color = C3(0,0,0) | |
1613 | LeftArm.Color = C3(0,0,0) | |
1614 | LeftLeg.Color = C3(0,0,0) | |
1615 | RightArm.Color = C3(0,0,0) | |
1616 | RightLeg.Color = C3(0,0,0) | |
1617 | HandleWeld.Part0 = RightArm | |
1618 | for i = 1, 100 do | |
1619 | Swait() | |
1620 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
1621 | for _, c in pairs(Character:GetChildren()) do | |
1622 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
1623 | c.Transparency = 0 | |
1624 | end | |
1625 | end | |
1626 | for _, c in pairs(Weapon:GetChildren()) do | |
1627 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
1628 | c.Transparency = 0 | |
1629 | end | |
1630 | end | |
1631 | for _, c in pairs(SCYTHE:GetChildren()) do | |
1632 | if c.ClassName == "Part" then | |
1633 | if c.Material ~= Enum.Material.Neon then | |
1634 | c.Transparency = c.Transparency - 0.01 | |
1635 | end | |
1636 | c.Color = C3(0,0,0) | |
1637 | end | |
1638 | end | |
1639 | end | |
1640 | HandleWeld.Part0 = Torso | |
1641 | TRANSFORMED = true | |
1642 | ATTACK = false | |
1643 | Rooted = false | |
1644 | end | |
1645 | ||
1646 | function AttackTemplate() | |
1647 | ATTACK = true | |
1648 | Rooted = false | |
1649 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1650 | HandleWeld.Part0 = RightArm | |
1651 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1652 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1653 | for i=0, 1, 0.1 / Animation_Speed do | |
1654 | Swait() | |
1655 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1656 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1657 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1658 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1659 | 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) | |
1660 | 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) | |
1661 | - | function Banisher_Bullet() |
1661 | + | |
1662 | HandleWeld.Part0 = Torso | |
1663 | ATTACK = false | |
1664 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
1664 | + | |
1665 | end | |
1666 | ||
1667 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1667 | + | |
1668 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
1668 | + | |
1669 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1669 | + | |
1670 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1670 | + | |
1671 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1671 | + | |
1672 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1672 | + | |
1673 | HandleWeld.Part0 = RightArm | |
1674 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
1675 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
1675 | + | |
1676 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1677 | - | turnto(Mouse.Hit.p) |
1677 | + | |
1678 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1678 | + | |
1679 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) |
1679 | + | |
1680 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1680 | + | |
1681 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1681 | + | |
1682 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1682 | + | |
1683 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1683 | + | |
1684 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1685 | - | local HIT,POS = CastProperRay(RightArm.Position, Mouse.Hit.p, 1000, Character) |
1685 | + | |
1686 | - | SpawnTrail(RightArm.Position,POS,true) |
1686 | + | |
1687 | - | if HIT ~= nil then |
1687 | + | |
1688 | - | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then |
1688 | + | |
1689 | - | Banish(HIT.Parent) |
1689 | + | |
1690 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
1691 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
1692 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,0,10), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = RightArm.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255,0/255,0/255), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1692 | + | |
1693 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,0,10), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(255/255,0/255,0/255), SoundID = 340722848, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
1693 | + | |
1694 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,0,10), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255,0/255,0/255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
1694 | + | |
1695 | - | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(10,0,10), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(255/255,0/255,0/255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) |
1695 | + | |
1696 | - | for i=0, 0.05, 0.1 / Animation_Speed do |
1696 | + | |
1697 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2) | |
1698 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) |
1698 | + | |
1699 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) |
1699 | + | |
1700 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) |
1700 | + | |
1701 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) |
1701 | + | |
1702 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1702 | + | |
1703 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) |
1703 | + | |
1704 | end | |
1705 | - | until KEYHOLD == false |
1705 | + | |
1706 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),ORIGIN) | |
1707 | for i=0, 1, 0.1 / Animation_Speed do | |
1708 | Swait() | |
1709 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
1710 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
1711 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2) | |
1712 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1713 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1714 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1715 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1716 | 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) | |
1717 | 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) | |
1718 | end | |
1719 | UNANCHOR = true | |
1720 | RootPart.Anchored = false | |
1721 | - | local SOUND = CreateSound("134978657", Head, 10, 1.3) |
1721 | + | |
1722 | Swait() | |
1723 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
1724 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
1725 | end | |
1726 | HandleWeld.Part0 = Torso | |
1727 | ATTACK = false | |
1728 | Rooted = false | |
1729 | end | |
1730 | ||
1731 | function Maniac_Wave() | |
1732 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1733 | if HITFLOOR ~= nil then | |
1734 | ATTACK = true | |
1735 | Rooted = false | |
1736 | local GYRO = IT("BodyGyro",RootPart) | |
1737 | GYRO.D = 100 | |
1738 | GYRO.P = 2000 | |
1739 | GYRO.MaxTorque = VT(0,4000000,0) | |
1740 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1741 | for i=0, 1, 0.1 / Animation_Speed do | |
1742 | Swait() | |
1743 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1744 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1745 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1746 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1747 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1748 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1749 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1750 | end | |
1751 | GYRO:remove() | |
1752 | coroutine.resume(coroutine.create(function() | |
1753 | local PITS = {} | |
1754 | local FRAME = RootPart.CFrame | |
1755 | for i = 1, 120 do | |
1756 | Swait() | |
1757 | local CFRAME = FRAME*CF(MRANDOM(-10,10)/10,0,5-(i)).p | |
1758 | local HITFLOOR,HITPOS,NORMAL = Raycast(CFRAME, (CF(CFRAME, CFRAME + VT(0, -1, 0))).lookVector, 25, Character) | |
1759 | if HITFLOOR ~= nil then | |
1760 | if MRANDOM(1, 2) == 1 then | |
1761 | local ICICLE = IT("CornerWedgePart",Effects) | |
1762 | ICICLE.Locked = true | |
1763 | ICICLE.CanCollide = false | |
1764 | ICICLE.Anchored = true | |
1765 | ICICLE.BrickColor = BRICKC"Really black" | |
1766 | ICICLE.Material = "Marble" | |
1767 | ICICLE.Size = VT(i/10,i/2,i/10) | |
1768 | ICICLE.CFrame = CF(HITPOS)*CF(MRANDOM(-i/10,i/10),0,MRANDOM(-i/10,i/10))*ANGLES(RAD(MRANDOM(-25,25)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-25,25))) | |
1769 | table.insert(PITS,ICICLE) | |
1770 | CreateSound("588693156", ICICLE, 3, MRANDOM(8,12)/10, false) | |
1771 | ApplyAoE(ICICLE.Position,ICICLE.Size.X,12.5,30,25,false) | |
1772 | end | |
1773 | else | |
1774 | break | |
1775 | end | |
1776 | end | |
1777 | wait(2) | |
1778 | coroutine.resume(coroutine.create(function() | |
1779 | for i = 1, 10 do | |
1780 | Swait() | |
1781 | for e=1,#PITS do | |
1782 | if PITS[e]~=nil then | |
1783 | local E = PITS[e] | |
1784 | E.Transparency = E.Transparency + 0.1 | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | for e=1,#PITS do | |
1789 | if PITS[e]~=nil then | |
1790 | local E = PITS[e] | |
1791 | E:remove() | |
1792 | end | |
1793 | end | |
1794 | end)) | |
1795 | end)) | |
1796 | ATTACK = false | |
1797 | Rooted = false | |
1798 | end | |
1799 | end | |
1800 | ||
1801 | function DeathlyDash() | |
1802 | ATTACK = true | |
1803 | Rooted = false | |
1804 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1805 | HandleWeld.Part0 = RightArm | |
1806 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
1807 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1808 | for i=0, 1, 0.1 / Animation_Speed do | |
1809 | Swait() | |
1810 | turnto(Mouse.Hit.p) | |
1811 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)), 0.2) | |
1812 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5 / Animation_Speed) | |
1813 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5 / Animation_Speed) | |
1814 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1815 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1816 | 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.5 / Animation_Speed) | |
1817 | 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.5 / Animation_Speed) | |
1818 | end | |
1819 | local TRAILS = {} | |
1820 | local FOUND = false | |
1821 | for i = 1, 75 do | |
1822 | Swait() | |
1823 | local TRAIL = Character:Clone() | |
1824 | for _, c in pairs(TRAIL:GetChildren()) do | |
1825 | if c.ClassName == "Part" then | |
1826 | c.Anchored = true | |
1827 | c.Color = C3(0,0,0) | |
1828 | c.Transparency = 0.5 | |
1829 | c.Material = "Neon" | |
1830 | c.CanCollide = false | |
1831 | else | |
1832 | c:remove() | |
1833 | end | |
1834 | end | |
1835 | TRAIL.Parent = Effects | |
1836 | table.insert(TRAILS,TRAIL) | |
1837 | Debris:AddItem(TRAIL,0.08) | |
1838 | for _, c in pairs(workspace:GetChildren()) do | |
1839 | if c.ClassName == "Model" then | |
1840 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then | |
1841 | local HUMANOID = c:FindFirstChildOfClass("Humanoid") | |
1842 | local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) | |
1843 | if (TORSO.Position - (Torso.CFrame*CF(0,0,-8).p)).Magnitude < 15 then | |
1844 | BANNEAREST(TORSO.Position,25) | |
1845 | FOUND = true | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | end | |
1850 | if FOUND == true then | |
1851 | for i = 1, 65 do | |
1852 | BANNEAREST(Torso.CFrame*CF(0,0,-8).p,25) | |
1853 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-1) | |
1854 | end | |
1855 | local SOUND = CreateSound("62339698", HitBox, 10, 0.3) | |
1856 | Slice(2,25,RootPart.CFrame *CF(0,0,-5)*ANGLES(RAD(90),RAD(90),RAD(0)),"Really red",1) | |
1857 | for i=0, 1, 0.1 / Animation_Speed do | |
1858 | Swait() | |
1859 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1) | |
1860 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(25)), 3 / Animation_Speed) | |
1861 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 3 / Animation_Speed) | |
1862 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1863 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1864 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1865 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1866 | end | |
1867 | break | |
1868 | end | |
1869 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2.5) | |
1870 | end | |
1871 | HandleWeld.Part0 = Torso | |
1872 | ATTACK = false | |
1873 | Rooted = false | |
1874 | end | |
1875 | ||
1876 | function FatalWave() | |
1877 | ATTACK = true | |
1878 | Rooted = true | |
1879 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1880 | HandleWeld.Part0 = RightArm | |
1881 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1882 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1883 | for i=0, 1, 0.1 / Animation_Speed do | |
1884 | Swait() | |
1885 | CreateRing(VT(0,0,0),false,0,5,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(1,1,0)) | |
1886 | turnto(Mouse.Hit.p) | |
1887 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)), 0.2) | |
1888 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5 / Animation_Speed) | |
1889 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5 / Animation_Speed) | |
1890 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1891 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1892 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1893 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1894 | end | |
1895 | for i=0,0.1, 0.1 / Animation_Speed do | |
1896 | Swait() | |
1897 | turnto(Mouse.Hit.p) | |
1898 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.2) | |
1899 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5) | |
1900 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5) | |
1901 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
1902 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5) | |
1903 | 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.5) | |
1904 | 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.5) | |
1905 | end | |
1906 | local angle = - 30 | |
1907 | for i = 1, 5 do | |
1908 | coroutine.resume(coroutine.create(function() | |
1909 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
1910 | local SpawnPosition = RayPos | |
1911 | local floor = RayHit | |
1912 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
1913 | local LastPosition = RayPos | |
1914 | local Delay = 1 | |
1915 | for i = 1, 15 do | |
1916 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace}) | |
1917 | local End = RayPos | |
1918 | LastPosition = End | |
1919 | if SpawnPosition then | |
1920 | BANNEAREST(End,25) | |
1921 | CreateRing(VT(0,0,0),false,0,15,needcframe * CF(0,0,-5*i)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(0.4,0.4,0)*i) | |
1922 | Slice(2+(i/5),25, needcframe * CF(0,0,-5*i)*ANGLES(RAD(90),RAD(90),RAD(0)),"Really red",1) | |
1923 | end | |
1924 | Swait() | |
1925 | end | |
1926 | end)) | |
1927 | angle = angle + 15 | |
1928 | end | |
1929 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HitBox, 5, 0.6) | |
1930 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
1931 | CreateSound("62339698", HitBox, 10, 0.4) | |
1932 | for i=0, 1, 0.1 / Animation_Speed do | |
1933 | Swait() | |
1934 | turnto(Mouse.Hit.p) | |
1935 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.2) | |
1936 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5) | |
1937 | - | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(LEFTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,0,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7}) |
1937 | + | |
1938 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 0.5) | |
1939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5) | |
1940 | 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.5) | |
1941 | 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.5) | |
1942 | end | |
1943 | HandleWeld.Part0 = Torso | |
1944 | ATTACK = false | |
1945 | Rooted = false | |
1946 | end | |
1947 | ||
1948 | function Reap() | |
1949 | ATTACK = true | |
1950 | Rooted = true | |
1951 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1952 | HandleWeld.Part0 = RightArm | |
1953 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1954 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
1955 | for i=0, 3, 0.1 / Animation_Speed do | |
1956 | Swait() | |
1957 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(5), RAD(0), RAD(45)), 0.2) | |
1958 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1959 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1960 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(125), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1961 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1962 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1963 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1964 | end | |
1965 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HitBox, 5, 0.6) | |
1966 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
1967 | local SOUND = CreateSound("135017578", Effects, 5, 1) | |
1968 | Swait() | |
1969 | repeat | |
1970 | Swait() | |
1971 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-35), RAD(0), RAD(45)), 0.2) | |
1972 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1973 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1974 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1975 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1976 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(25), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1977 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1978 | until SOUND.playing == false | |
1979 | local FLOOR = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Blood", VT(800,0,800)) | |
1980 | MakeForm(FLOOR,"Cyl") | |
1981 | FLOOR.CFrame = CF(RootPart.Position+VT(0,-3,0)) | |
1982 | CreateSound("289315275", Effects, 5, 0.3) | |
1983 | for i = 1, 400 do | |
1984 | Swait() | |
1985 | FLOOR.Transparency = FLOOR.Transparency - (1/400) | |
1986 | if i > 100 then | |
1987 | if MRANDOM(1,2) == 1 then | |
1988 | local SPHERE = CreatePart(3, Head, "Neon", 0, 0, "Really red", "Magic", VT(1,1,1)*MRANDOM(2,35)/10) | |
1989 | SPHERE.CFrame = CF(FLOOR.Position) * CF(MRANDOM(-285,285),-5,MRANDOM(-285,285)) | |
1990 | MakeForm(SPHERE,"Ball") | |
1991 | coroutine.resume(coroutine.create(function() | |
1992 | for i = 1, 100 do | |
1993 | Swait() | |
1994 | - | if Key == "b" and ATTACK == false then |
1994 | + | |
1995 | SPHERE.Transparency = (i/100) | |
1996 | end | |
1997 | SPHERE:remove() | |
1998 | end)) | |
1999 | end | |
2000 | end | |
2001 | end | |
2002 | CreateSound("62339698", Effects, 10, 0.3) | |
2003 | BANNEAREST(FLOOR.Position,FLOOR.Size.Z/2) | |
2004 | FLOOR:ClearAllChildren() | |
2005 | MakeForm(FLOOR,"Ball") | |
2006 | for i = 1, 50 do | |
2007 | Swait() | |
2008 | FLOOR.Size = FLOOR.Size + VT(-16,1,-16) | |
2009 | FLOOR.Transparency = FLOOR.Transparency + (1/50) | |
2010 | end | |
2011 | - | Banisher_Bullet() |
2011 | + | |
2012 | HandleWeld.Part0 = Torso | |
2013 | ATTACK = false | |
2014 | Rooted = false | |
2015 | end | |
2016 | ||
2017 | function Bullet() | |
2018 | ATTACK = true | |
2019 | Rooted = false | |
2020 | InjusticeGun2.Parent = Character | |
2021 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2022 | InjusticeGun.Parent = nil | |
2023 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2024 | Swait() | |
2025 | turnto(Mouse.Hit.p) | |
2026 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2027 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2028 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2029 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2030 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2031 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2032 | end | |
2033 | repeat | |
2034 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2035 | Swait() | |
2036 | turnto(Mouse.Hit.p) | |
2037 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed) | |
2038 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(-10), RAD(0), RAD(-32)), 0.5 / Animation_Speed) | |
2039 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2040 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2042 | end | |
2043 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000000, Character) | |
2044 | SpawnTrail(Hole2.Position,POS) | |
2045 | ApplyAoE(POS,3,5,3000,3000,0,1,false) | |
2046 | if HIT ~= nil then | |
2047 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2048 | end | |
2049 | end | |
2050 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2051 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2052 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2053 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2054 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2055 | Swait() | |
2056 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(40)), 1 / Animation_Speed) | |
2057 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.4) * ANGLES(RAD(5), RAD(0), RAD(-32)), 0.25 / Animation_Speed) | |
2058 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(15), RAD(40)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2059 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.6*SIZE, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2060 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2061 | end | |
2062 | until KEYHOLD == false | |
2063 | InjusticeGun2.Parent = nil | |
2064 | InjusticeGun.Parent = Character | |
2065 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2066 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Barrel2.CFrame, ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2067 | ATTACK = false | |
2068 | Rooted = false | |
2069 | end | |
2070 | ||
2071 | function Forgive_Sins() | |
2072 | chatfunc("You are forgiven.") | |
2073 | ||
2074 | for p,v in next, TOBANISH do | |
2075 | TOBANISH[p] = nil | |
2076 | end | |
2077 | end | |
2078 | ||
2079 | function Fury() | |
2080 | ATTACK = true | |
2081 | Rooted = false | |
2082 | if EQUIPPED == false then | |
2083 | Rooted = true | |
2084 | - | SINE = SINE + CHANGE |
2084 | + | for i = 0, 0.3, 0.1 / Animation_Speed do |
2085 | - | ANIMATE.Parent = nil |
2085 | + | Swait() |
2086 | - | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) |
2086 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0.01 * SIZE, -0.01 * SIZE) * ANGLES(RAD(-5), RAD(0), RAD(15)), 1 / Animation_Speed) |
2087 | - | IDLEANIMATION:Play() |
2087 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) |
2088 | - | if TRANSFORMED == true then |
2088 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2089 | - | tecks2.TextTransparency = 0 |
2089 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2090 | - | for _, c in pairs(Character:GetChildren()) do |
2090 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, 0.2 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(5), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
2091 | - | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then |
2091 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(-5), RAD(-75), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) |
2092 | - | c.Anchored = false |
2092 | + | end |
2093 | - | c.Transparency = 0 |
2093 | + | local TOUCH = RightLeg.Touched:Connect(function(HIT) |
2094 | if HIT.Anchored == false and (HIT.Parent:FindFirstChildOfClass("Humanoid") or HIT.Parent.Parent:FindFirstChildOfClass("Humanoid")) then | |
2095 | HIT:BreakJoints() | |
2096 | - | for _, c in pairs(Weapon:GetChildren()) do |
2096 | + | end |
2097 | - | if c.ClassName == "Part" then |
2097 | + | end) |
2098 | - | c.Transparency = 0 |
2098 | + | for i = 0, 0.1, 0.1 / Animation_Speed do |
2099 | Swait() | |
2100 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2101 | - | for _, c in pairs(SCYTHE:GetChildren()) do |
2101 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) |
2102 | - | if c.ClassName == "Part" then |
2102 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2103 | - | if c.Material ~= Enum.Material.Neon then |
2103 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2104 | - | c.Transparency = 0 |
2104 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
2105 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2106 | - | c.Color = C3(0,0,0) |
2106 | + | end |
2107 | - | if c:FindFirstChild("PE") then |
2107 | + | local HITFLOOR, HITPOS = Raycast(RightLeg.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 2 * SIZE, Character) |
2108 | - | c.PE.Enabled = true |
2108 | + | if HITFLOOR then |
2109 | for i = 1, 5 do | |
2110 | WACKYEFFECT({ | |
2111 | Time = 25, | |
2112 | - | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
2112 | + | EffectType = "Wave", |
2113 | - | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
2113 | + | Size = VT(0, 0, 5), |
2114 | - | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) |
2114 | + | Size2 = VT(15 + i * 3, 0, 15 + i * 3), |
2115 | - | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) |
2115 | + | Transparency = 0.7, |
2116 | - | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) |
2116 | + | Transparency2 = 1, |
2117 | - | if ATTACK == false and VALUE2 == false then |
2117 | + | CFrame = CF(RightLeg.CFrame * CF(0, -1.05 * SIZE, 0).p) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), |
2118 | - | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(2, 3 + 0.35 * COS(SINE / 12), 1) * ANGLES(RAD(45 + 15 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.2 / Animation_Speed) |
2118 | + | MoveToPos = nil, |
2119 | RotationX = 0, | |
2120 | - | if ANIM == "Walk" and TORSOVELOCITY > 1 then |
2120 | + | RotationY = 0, |
2121 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2121 | + | RotationZ = 0, |
2122 | - | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2122 | + | Material = "Neon", |
2123 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2123 | + | Color = C3(1, 1, 1), |
2124 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2124 | + | SoundID = nil, |
2125 | - | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then |
2125 | + | SoundPitch = nil, |
2126 | - | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2126 | + | SoundVolume = nil |
2127 | - | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2127 | + | }) |
2128 | - | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2128 | + | end |
2129 | - | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2129 | + | ApplyAoE(HITPOS, 25, 35, 45, 45, false) |
2130 | CreateSound(765590102, RightLeg, 6, 1, false) | |
2131 | - | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then |
2131 | + | CreateFlyingDebree(HITFLOOR, CF(HITPOS), 10, VT(2, 2, 2), 5, 75, false) |
2132 | - | ANIM = "Jump" |
2132 | + | end |
2133 | - | if ATTACK == false then |
2133 | + | TOUCH:Disconnect() |
2134 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2134 | + | for i = 0, 0.2, 0.1 / Animation_Speed do |
2135 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2135 | + | Swait() |
2136 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2136 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, -0.4 * SIZE, -0.1 * SIZE) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) |
2137 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2137 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(25 - 5 * COS(SINE / 24)), RAD(-5), RAD(-5)), 1 / Animation_Speed) |
2138 | - | 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) |
2138 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2139 | - | 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) |
2139 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(-25), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2140 | - | end |
2140 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -0.7 * SIZE, -0.5 * SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1.5 / Animation_Speed) |
2141 | - | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then |
2141 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1.1 * SIZE, -0.01 * SIZE) * ANGLES(RAD(25), RAD(-75), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) |
2142 | - | ANIM = "Fall" |
2142 | + | end |
2143 | - | if ATTACK == false then |
2143 | + | else |
2144 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2144 | + | do |
2145 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
2145 | + | local GYRO = IT("BodyGyro", RootPart) |
2146 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
2146 | + | GYRO.D = 2 |
2147 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
2147 | + | GYRO.P = 20000 |
2148 | - | 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) |
2148 | + | GYRO.MaxTorque = VT(0, 4000000, 0) |
2149 | - | 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) |
2149 | + | coroutine.resume(coroutine.create(function() |
2150 | repeat | |
2151 | - | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then |
2151 | + | Swait() |
2152 | - | ANIM = "Idle" |
2152 | + | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
2153 | - | if ATTACK == false then |
2153 | + | until ATTACK == false |
2154 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2154 | + | GYRO:Remove() |
2155 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2155 | + | end)) |
2156 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2156 | + | local FIRING = true |
2157 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) |
2157 | + | local SHOOTING = false |
2158 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2158 | + | local TIMER = 70 |
2159 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2159 | + | CreateSound(1498950813, HELDGUN, 6, 1, false) |
2160 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
2161 | - | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then |
2161 | + | Swait() |
2162 | - | ANIM = "Walk" |
2162 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) |
2163 | - | WALK = WALK + 1 / Animation_Speed |
2163 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) |
2164 | - | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then |
2164 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
2165 | - | WALK = 0 |
2165 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
2166 | - | if WALKINGANIM == true then |
2166 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
2167 | - | WALKINGANIM = false |
2167 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) |
2168 | - | elseif WALKINGANIM == false then |
2168 | + | end |
2169 | - | WALKINGANIM = true |
2169 | + | local MOUSE = Mouse.Button1Down:connect(function(NEWKEY) |
2170 | if SHOOTING == false then | |
2171 | HOLD = true | |
2172 | - | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2172 | + | repeat |
2173 | - | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) |
2173 | + | SHOOTING = true |
2174 | - | if ATTACK == false then |
2174 | + | local GUNPOS = HELDGUN.CFrame * GUNOFFSET.p |
2175 | - | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2175 | + | local HIT, POS, NORMAL = CastProperRay(GUNPOS, Mouse.Hit.p, 1000, Character) |
2176 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
2176 | + | local DISTANCE = (POS - GUNPOS).Magnitude |
2177 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) |
2177 | + | if HIT then |
2178 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) |
2178 | + | if HIT.Parent:FindFirstChildOfClass("Humanoid") then |
2179 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) |
2179 | + | if HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then |
2180 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) |
2180 | + | HIT.CFrame = HIT.CFrame * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
2181 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], HIT, 10, 1, false) | |
2182 | ApplyDamage(HIT.Parent:FindFirstChildOfClass("Humanoid"), 99) | |
2183 | CreateFlyingDebree(HIT, CF(POS), 7, VT(0.1, 0.1, 0.1), 5, 35, true) | |
2184 | - | --end |
2184 | + | end |
2185 | elseif HIT.Anchored == true then | |
2186 | CreateFlyingDebree(HIT, CF(POS), 7, VT(0.2, 0.2, 0.2), 5, 35, true) | |
2187 | end | |
2188 | end | |
2189 | SHAKECAM(GUNPOS, 8, 5, 3) | |
2190 | SHAKECAM(POS, 10, 6, 6) | |
2191 | WACKYEFFECT({ | |
2192 | Time = 6, | |
2193 | EffectType = "Block", | |
2194 | Size = VT(2, 2, 2), | |
2195 | Size2 = VT(4, 4, 4), | |
2196 | Transparency = 0, | |
2197 | Transparency2 = 1, | |
2198 | - | if Head:FindFirstChild("face") then |
2198 | + | CFrame = CF(GUNPOS), |
2199 | - | Head.face:remove() |
2199 | + | MoveToPos = nil, |
2200 | RotationX = 0, | |
2201 | - | local MATHS = {"0","1"} |
2201 | + | RotationY = 0, |
2202 | RotationZ = 0, | |
2203 | Material = "Neon", | |
2204 | Color = C3(1, 1, 0), | |
2205 | SoundID = 213603013, | |
2206 | SoundPitch = 0.9, | |
2207 | SoundVolume = 10 | |
2208 | }) | |
2209 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
2210 | Swait() | |
2211 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2212 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
2213 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(100), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2214 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2215 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2216 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2217 | end | |
2218 | for i = 0, 0.5, 0.1 / Animation_Speed do | |
2219 | Swait() | |
2220 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2221 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
2222 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2223 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2224 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2225 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2226 | end | |
2227 | until HOLD == false | |
2228 | SHOOTING = false | |
2229 | end | |
2230 | end) | |
2231 | repeat | |
2232 | Swait() | |
2233 | if SHOOTING == false then | |
2234 | TIMER = TIMER - 1 | |
2235 | if TIMER <= 0 then | |
2236 | FIRING = false | |
2237 | end | |
2238 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 + 0.05 * SIZE * COS(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2239 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + (1 * SIZE - 1)) * ANGLES(RAD(15 - 5 * COS(SINE / 24)), RAD(-5), RAD(-25)), 1 / Animation_Speed) | |
2240 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), -0.5 * SIZE) * ANGLES(RAD(80), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2241 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE - 0.05 * SIZE * SIN(SINE / 24), 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2242 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2243 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE - 0.05 * SIZE * COS(SINE / 24), -0.01 * SIZE) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2244 | end | |
2245 | until FIRING == false and SHOOTING == false | |
2246 | MOUSE:Disconnect() | |
2247 | end | |
2248 | end | |
2249 | ATTACK = false | |
2250 | Rooted = false | |
2251 | end | |
2252 | ||
2253 | function Taunt() | |
2254 | ATTACK = true | |
2255 | Rooted = true | |
2256 | Chatter("HA HA HA HA HA HA",0) | |
2257 | local SOUND = CreateSound("134978657", Head, 10, 1.3) | |
2258 | Swait() | |
2259 | repeat | |
2260 | Swait() | |
2261 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2262 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2263 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2264 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2265 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2266 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2267 | until SOUND.Playing == false | |
2268 | ATTACK = false | |
2269 | Rooted = false | |
2270 | end | |
2271 | ||
2272 | function Prison_Key() | |
2273 | if Mouse.Target ~= nil then | |
2274 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2275 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2276 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2277 | local GYRO = IT("BodyGyro",RootPart) | |
2278 | GYRO.D = 750 | |
2279 | GYRO.P = 20000 | |
2280 | GYRO.MaxTorque = VT(0,40000000,0) | |
2281 | local grav = Instance.new("BodyPosition",TORSO) | |
2282 | grav.D = 15 | |
2283 | grav.P = 20000 | |
2284 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2285 | grav.position = TORSO.Position | |
2286 | local GYRO2 = IT("BodyGyro",TORSO) | |
2287 | GYRO2.D = 750 | |
2288 | GYRO2.P = 20000 | |
2289 | GYRO2.MaxTorque = VT(0,40000000,0) | |
2290 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2291 | grav.Name = "Jail" | |
2292 | local LOCKPARTS = {} | |
2293 | ATTACK = true | |
2294 | Rooted = false | |
2295 | local LOCK = IT("Model",Effects) | |
2296 | LOCK.Name = "Lock" | |
2297 | local LOCK2 = IT("Model",LOCK) | |
2298 | LOCK2.Name = "Metal" | |
2299 | --CREATE LOCK-- | |
2300 | local BASE = CreatePart(3, LOCK, "Neon", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) | |
2301 | LOCK.PrimaryPart = BASE | |
2302 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
2303 | local PRT = CreatePart(3, LOCK, "Neon", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) | |
2304 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2305 | MakeForm(PRT,"Cyl") | |
2306 | local PRT = CreatePart(3, LOCK, "Neon", 0, 0, "Gold", "Hole", VT(1, 1, 1)) | |
2307 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2308 | MakeForm(PRT,"Cyl") | |
2309 | local PRT = CreatePart(3, LOCK, "Neon", 0, 0, "Gold", "Hole", VT(0.5, 1, 1)) | |
2310 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
2311 | for i = 1, 45 do | |
2312 | local PRT = CreatePart(3, LOCK2, "Neon", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2313 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
2314 | end | |
2315 | local PRT = CreatePart(3, LOCK2, "Neon", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2316 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
2317 | LOCK2.PrimaryPart = PRT | |
2318 | --------------- | |
2319 | local CHILDREN = LOCK:GetDescendants() | |
2320 | for index, CHILD in pairs(CHILDREN) do | |
2321 | if CHILD:IsA("BasePart") then | |
2322 | CHILD.Transparency = 1 | |
2323 | end | |
2324 | end | |
2325 | for i = 1, 75 do | |
2326 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
2327 | Swait() | |
2328 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2329 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2330 | local CHILDREN = LOCK:GetDescendants() | |
2331 | for index, CHILD in pairs(CHILDREN) do | |
2332 | if CHILD:IsA("BasePart") then | |
2333 | CHILD.Transparency = CHILD.Transparency - 1/75 | |
2334 | end | |
2335 | end | |
2336 | end | |
2337 | HUM.DisplayDistanceType = "None" | |
2338 | local KEY = IT("Model",Effects) | |
2339 | KEY.Name = "Key" | |
2340 | --CREATE KEY-- | |
2341 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, BrickColor.Random(), "KeyBase", VT(0.1, 1, 0.1),false) | |
2342 | KEY.PrimaryPart = KBASE | |
2343 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
2344 | local WLD = weldBetween(RightArm,KBASE) | |
2345 | for i = 1, 45 do | |
2346 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, BrickColor.Random(), "Key", VT(0.1, 0.1, 0.1),false) | |
2347 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
2348 | weldBetween(KBASE,PRT) | |
2349 | end | |
2350 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, BrickColor.Random(), "Key", VT(0.3, 0.1, 0.1),false) | |
2351 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
2352 | weldBetween(KBASE,PRT) | |
2353 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, BrickColor.Random(), "Key", VT(0.3, 0.1, 0.1),false) | |
2354 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
2355 | weldBetween(KBASE,PRT) | |
2356 | -------------- | |
2357 | Rooted = true | |
2358 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
2359 | coroutine.resume(coroutine.create(function() | |
2360 | for i = 1, 10 do | |
2361 | Swait() | |
2362 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2363 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2364 | end | |
2365 | CreateSound(1149318312,BASE,5,1,false) | |
2366 | CreateSound(160772554,BASE,3,1,false) | |
2367 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
2368 | for i = 1, 4 do | |
2369 | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.Random().Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2370 | end | |
2371 | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BrickColor.Random().Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2372 | wait(1) | |
2373 | TORSO.Parent.Parent = LOCK | |
2374 | for i = 1, 75 do | |
2375 | Swait() | |
2376 | local CHILDREN = KEY:GetDescendants() | |
2377 | for index, CHILD in pairs(CHILDREN) do | |
2378 | if CHILD:IsA("BasePart") then | |
2379 | CHILD.Transparency = i/25 | |
2380 | end | |
2381 | end | |
2382 | local CHILDREN = LOCK:GetDescendants() | |
2383 | for index, CHILD in pairs(CHILDREN) do | |
2384 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
2385 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2386 | elseif CHILD.ClassName == "Decal" then | |
2387 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2388 | end | |
2389 | end | |
2390 | end | |
2391 | TORSO.Parent:ClearAllChildren() | |
2392 | KEY:remove() | |
2393 | LOCK:remove() | |
2394 | end)) | |
2395 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
2396 | GYRO:remove() | |
2397 | ATTACK = false | |
2398 | Rooted = false | |
2399 | end | |
2400 | end | |
2401 | end | |
2402 | ||
2403 | function Cuffs() | |
2404 | local TARGET = Mouse.Target | |
2405 | if TARGET ~= nil then | |
2406 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2407 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2408 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2409 | if ROOT and HUM.Health > 0 then | |
2410 | local FOE = Mouse.Target.Parent | |
2411 | ATTACK = true | |
2412 | Rooted = true | |
2413 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
2414 | ROOT.Anchored = true | |
2415 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
2416 | Chatter("Stay down.",0) | |
2417 | for i=0, 2, 0.1 / Animation_Speed do | |
2418 | Swait() | |
2419 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2420 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2421 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2422 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2423 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2424 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2425 | end | |
2426 | local RIGHTCUFF = nil | |
2427 | local LEFTCUFF = nil | |
2428 | local ChainLink = nil | |
2429 | CreateSound(1279090548, ROOT, 10, 1.4, false) | |
2430 | for _, c in pairs(FOE:GetChildren()) do | |
2431 | if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then | |
2432 | LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
2433 | LEFTCUFF.CFrame = c.CFrame | |
2434 | weldBetween(c,LEFTCUFF) | |
2435 | end | |
2436 | end | |
2437 | for _, c in pairs(FOE:GetChildren()) do | |
2438 | if c.Name == "Right Arm" or c.Name == "RightLowerArm" then | |
2439 | RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
2440 | RIGHTCUFF.CFrame = c.CFrame | |
2441 | weldBetween(c,RIGHTCUFF) | |
2442 | end | |
2443 | end | |
2444 | if RIGHTCUFF and LEFTCUFF then | |
2445 | local A = IT("Attachment",RIGHTCUFF) | |
2446 | local B = IT("Attachment",LEFTCUFF) | |
2447 | ChainLink = IT("Beam",FOE) | |
2448 | ChainLink.Texture = "rbxassetid://73042633" | |
2449 | ChainLink.Color = ColorSequence.new(C3(0.8,0.8,0.8)) | |
2450 | ChainLink.TextureSpeed = 0 | |
2451 | ChainLink.Width0 = 1 | |
2452 | ChainLink.Width1 = 1 | |
2453 | ChainLink.Segments = 25 | |
2454 | ChainLink.TextureLength = 3 | |
2455 | ChainLink.Attachment0 = B | |
2456 | ChainLink.Attachment1 = A | |
2457 | ChainLink.FaceCamera = true | |
2458 | ChainLink.Transparency = NumberSequence.new(0) | |
2459 | end | |
2460 | coroutine.resume(coroutine.create(function() | |
2461 | wait(4) | |
2462 | if RIGHTCUFF and LEFTCUFF then | |
2463 | RIGHTCUFF:remove() | |
2464 | LEFTCUFF:remove() | |
2465 | ChainLink:remove() | |
2466 | local bv = Instance.new("BodyVelocity",ROOT) | |
2467 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2468 | bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70 | |
2469 | Debris:AddItem(bv,0.05) | |
2470 | ApplyDamage(HUM,100e10) | |
2471 | HUM.PlatformStand = false | |
2472 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(RIGHTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Glass = C3(1,1,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 7}) | |
2473 | end | |
2474 | end)) | |
2475 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2476 | Swait() | |
2477 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2478 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed) | |
2479 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2480 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2481 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2482 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2483 | end | |
2484 | HUM.PlatformStand = true | |
2485 | ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0)) | |
2486 | ROOT.Anchored = false | |
2487 | Chatter("Begone.",0) | |
2488 | for i=0, 3, 0.1 / Animation_Speed do | |
2489 | Swait() | |
2490 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
2491 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2492 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2493 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2494 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2495 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2496 | end | |
2497 | ATTACK = false | |
2498 | Rooted = false | |
2499 | end | |
2500 | end | |
2501 | end | |
2502 | end | |
2503 | ||
2504 | --//=================================\\ | |
2505 | --|| ASSIGN THINGS TO KEYS | |
2506 | --\\=================================// | |
2507 | ||
2508 | function MouseDown(Mouse) | |
2509 | if ATTACK == false then | |
2510 | ||
2511 | end | |
2512 | end | |
2513 | ||
2514 | function MouseUp(Mouse) | |
2515 | HOLD = false | |
2516 | end | |
2517 | ||
2518 | function KeyDown(Key) | |
2519 | KEYHOLD = true | |
2520 | if TRANSFORMED == true and Rooted == false then | |
2521 | if Key == "t" and ATTACK == false then | |
2522 | Taunt() | |
2523 | end | |
2524 | ||
2525 | if Key == "z" and ATTACK == false then | |
2526 | Warp() | |
2527 | end | |
2528 | ||
2529 | if Key == "y" and ATTACK == false then | |
2530 | Maniac_Wave() | |
2531 | end | |
2532 | ||
2533 | if Key == "k" and ATTACK == false then | |
2534 | Fury() | |
2535 | end | |
2536 | ||
2537 | ||
2538 | if Key == "b" and ATTACK == false then | |
2539 | DeathlyDash() | |
2540 | end | |
2541 | ||
2542 | if Key == "c" and ATTACK == false then | |
2543 | Prison_Key() | |
2544 | end | |
2545 | ||
2546 | if Key == "v" and ATTACK == false then | |
2547 | FatalWave() | |
2548 | end | |
2549 | ||
2550 | if Key == "x" and ATTACK == false then | |
2551 | Reap() | |
2552 | end | |
2553 | ||
2554 | if Key == "e" and ATTACK == false then | |
2555 | Bullet() | |
2556 | end | |
2557 | ||
2558 | if Key == "q" and ATTACK == false then | |
2559 | Forgive_Sins() | |
2560 | end | |
2561 | ||
2562 | if Key == "f" and ATTACK == false then | |
2563 | Cuffs() | |
2564 | end | |
2565 | end | |
2566 | ||
2567 | if Key == "9" and ATTACK == false then | |
2568 | CreateSound("135017578", Effects, 5, 1) | |
2569 | end | |
2570 | end | |
2571 | ||
2572 | function KeyUp(Key) | |
2573 | KEYHOLD = false | |
2574 | end | |
2575 | ||
2576 | Mouse.Button1Down:connect(function(NEWKEY) | |
2577 | MouseDown(NEWKEY) | |
2578 | end) | |
2579 | Mouse.Button1Up:connect(function(NEWKEY) | |
2580 | MouseUp(NEWKEY) | |
2581 | end) | |
2582 | Mouse.KeyDown:connect(function(NEWKEY) | |
2583 | KeyDown(NEWKEY) | |
2584 | end) | |
2585 | Mouse.KeyUp:connect(function(NEWKEY) | |
2586 | KeyUp(NEWKEY) | |
2587 | end) | |
2588 | ||
2589 | --//=================================\\ | |
2590 | --\\=================================// | |
2591 | ||
2592 | ||
2593 | function unanchor() | |
2594 | if UNANCHOR == true then | |
2595 | RootPart.Anchored = false | |
2596 | end | |
2597 | for _, c in pairs(SCYTHE:GetChildren()) do | |
2598 | if c.ClassName == "Part" then | |
2599 | c.Anchored = false | |
2600 | end | |
2601 | end | |
2602 | for _, c in pairs(Weapon:GetChildren()) do | |
2603 | if c.ClassName == "Part" then | |
2604 | c.Anchored = false | |
2605 | end | |
2606 | end | |
2607 | end | |
2608 | ||
2609 | ||
2610 | --//=================================\\ | |
2611 | --|| WRAP THE WHOLE SCRIPT UP | |
2612 | --\\=================================// | |
2613 | ||
2614 | Humanoid.Changed:connect(function(Jump) | |
2615 | if Jump == "Jump" and (Disable_Jump == true) then | |
2616 | Humanoid.Jump = false | |
2617 | end | |
2618 | end) | |
2619 | ||
2620 | local FF = IT("ForceField",Character) | |
2621 | FF.Visible = false | |
2622 | ||
2623 | INSTANT = false | |
2624 | Speed = 20 | |
2625 | ||
2626 | while true do | |
2627 | Swait() | |
2628 | SINE = SINE + CHANGE | |
2629 | ANIMATE.Parent = nil | |
2630 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2631 | IDLEANIMATION:Play() | |
2632 | if TRANSFORMED == true then | |
2633 | tecks2.TextTransparency = 0 | |
2634 | for _, c in pairs(Character:GetChildren()) do | |
2635 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2636 | c.Anchored = false | |
2637 | c.Transparency = 0 | |
2638 | end | |
2639 | end | |
2640 | for _, c in pairs(Weapon:GetChildren()) do | |
2641 | if c.ClassName == "Part" then | |
2642 | c.Transparency = 0 | |
2643 | end | |
2644 | end | |
2645 | for _, c in pairs(SCYTHE:GetChildren()) do | |
2646 | if c.ClassName == "Part" then | |
2647 | if c.Material ~= Enum.Material.Neon then | |
2648 | c.Transparency = 0 | |
2649 | end | |
2650 | c.Color = C3(0,0,0) | |
2651 | if c:FindFirstChild("PE") then | |
2652 | c.PE.Enabled = true | |
2653 | end | |
2654 | end | |
2655 | end | |
2656 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2657 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2658 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2659 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2660 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2661 | if ATTACK == false and VALUE2 == false then | |
2662 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(2, 3 + 0.35 * COS(SINE / 12), 1) * ANGLES(RAD(45 + 15 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.2 / Animation_Speed) | |
2663 | end | |
2664 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2665 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2666 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2667 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2668 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2669 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2670 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2671 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2672 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2673 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2674 | end | |
2675 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2676 | ANIM = "Jump" | |
2677 | if ATTACK == false then | |
2678 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2679 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2680 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2681 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2682 | 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) | |
2683 | 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) | |
2684 | end | |
2685 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2686 | ANIM = "Fall" | |
2687 | if ATTACK == false then | |
2688 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2689 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2690 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2691 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2692 | 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) | |
2693 | 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) | |
2694 | end | |
2695 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2696 | ANIM = "Idle" | |
2697 | if ATTACK == false then | |
2698 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2699 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2700 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2701 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2702 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2703 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2704 | end | |
2705 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2706 | ANIM = "Walk" | |
2707 | WALK = WALK + 1 / Animation_Speed | |
2708 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2709 | WALK = 0 | |
2710 | if WALKINGANIM == true then | |
2711 | WALKINGANIM = false | |
2712 | elseif WALKINGANIM == false then | |
2713 | WALKINGANIM = true | |
2714 | end | |
2715 | end | |
2716 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2717 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2718 | if ATTACK == false then | |
2719 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2720 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2721 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2722 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
2723 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2724 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2725 | end | |
2726 | end | |
2727 | end | |
2728 | --end | |
2729 | Humanoid.DisplayDistanceType = "None" | |
2730 | unanchor() | |
2731 | tecks2.TextColor3 = BrickColor.Random().Color | |
2732 | tecks2.TextStrokeColor3 = BrickColor.Random().Color | |
2733 | Humanoid.MaxHealth = "inf" | |
2734 | Humanoid.Health = "inf" | |
2735 | if Rooted == false then | |
2736 | Disable_Jump = false | |
2737 | Humanoid.WalkSpeed = Speed | |
2738 | elseif Rooted == true then | |
2739 | Disable_Jump = true | |
2740 | Humanoid.WalkSpeed = 0 | |
2741 | end | |
2742 | if Head:FindFirstChild("face") then | |
2743 | Head.face.Texture = "rbxassetid://403870689" | |
2744 | end | |
2745 | for _, c in pairs(Character:GetChildren()) do | |
2746 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2747 | c.Material = "Fabric" | |
2748 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2749 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2750 | end | |
2751 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2752 | c:remove() | |
2753 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2754 | c:remove() | |
2755 | end | |
2756 | end | |
2757 | ||
2758 | local MATHS = {"0","1"} | |
2759 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
2760 | Humanoid.PlatformStand = false | |
2761 | if INTRO == false and INSTANT == false then | |
2762 | INTRO = true | |
2763 | coroutine.resume(coroutine.create(function() | |
2764 | sick:Play() | |
2765 | Intro() | |
2766 | end)) | |
2767 | end | |
2768 | if INSTANT == true then | |
2769 | if TRANSFORMED == false then | |
2770 | sick.TimePosition = 60 | |
2771 | sick:Play() | |
2772 | end | |
2773 | TRANSFORMED = true | |
2774 | end | |
2775 | script.Parent = PlayerGui | |
2776 | Character.Parent = workspace | |
2777 | Humanoid.Parent = Character | |
2778 | end | |
2779 | --//=================================\\ | |
2780 | --\\=================================// | |
2781 | ||
2782 | ||
2783 | ||
2784 | ||
2785 | ||
2786 | --//====================================================\\-- | |
2787 | --|| END OF SCRIPT | |
2788 | --\\====================================================//-- |