SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| Templates BY Aom[WCR] | |
3 | --\\====================================================//-- | |
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,game,owner = owner,game | |
6 | local RealPlayer = Player | |
7 | do | |
8 | print("FE Compatibility code by Mokiros") | |
9 | local rp = RealPlayer | |
10 | script.Parent = rp.Character | |
11 | ||
12 | --RemoteEvent for communicating | |
13 | local Event = Instance.new("RemoteEvent") | |
14 | Event.Name = "UserInput_Event" | |
15 | ||
16 | --Fake event to make stuff like Mouse.KeyDown work | |
17 | local function fakeEvent() | |
18 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
19 | t.connect = t.Connect | |
20 | return t | |
21 | end | |
22 | ||
23 | --Creating fake input objects with fake variables | |
24 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
25 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
27 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
28 | end} | |
29 | --Merged 2 functions into one by checking amount of arguments | |
30 | CAS.UnbindAction = CAS.BindAction | |
31 | ||
32 | --This function will trigger the events that have been :Connect()'ed | |
33 | local function te(self,ev,...) | |
34 | local t = m[ev] | |
35 | if t and t._fakeEvent then | |
36 | for _,f in pairs(t.Functions) do | |
37 | f(...) | |
38 | end | |
39 | end | |
40 | end | |
41 | m.TrigEvent = te | |
42 | UIS.TrigEvent = te | |
43 | ||
44 | Event.OnServerEvent:Connect(function(plr,io) | |
45 | if plr~=rp then return end | |
46 | m.Target = io.Target | |
47 | m.Hit = io.Hit | |
48 | if not io.isMouse then | |
49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | ||
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 | ||
78 | local h,t | |
79 | --Give the server mouse data 30 times every second, but only if the values changed | |
80 | --If player is not moving their mouse, client won't fire events | |
81 | while wait(1/30) do | |
82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
83 | h,t=Mouse.Hit,Mouse.Target | |
84 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
85 | end | |
86 | end]==],Player.Character) | |
87 | ||
88 | ----Sandboxed game object that allows the usage of client-side methods and services | |
89 | --Real game object | |
90 | local _rg = game | |
91 | ||
92 | --Metatable for fake service | |
93 | local fsmt = { | |
94 | __index = function(self,k) | |
95 | local s = rawget(self,"_RealService") | |
96 | if s then return s[k] end | |
97 | end, | |
98 | __newindex = function(self,k,v) | |
99 | local s = rawget(self,"_RealService") | |
100 | if s then s[k]=v end | |
101 | end, | |
102 | __call = function(self,...) | |
103 | local s = rawget(self,"_RealService") | |
104 | if s then return s(...) end | |
105 | end | |
106 | } | |
107 | local function FakeService(t,RealService) | |
108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
109 | return setmetatable(t,fsmt) | |
110 | end | |
111 | ||
112 | --Fake game object | |
113 | local g = { | |
114 | GetService = function(self,s) | |
115 | return self[s] | |
116 | end, | |
117 | Players = FakeService({ | |
118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
119 | },"Players"), | |
120 | UserInputService = FakeService(UIS,"UserInputService"), | |
121 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
122 | } | |
123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
124 | g.service = g.GetService | |
125 | ||
126 | g.RunService = FakeService({ | |
127 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
128 | BindToRenderStep = function(self,name,_,fun) | |
129 | ||
130 | end, | |
131 | UnbindFromRenderStep = function(self,name) | |
132 | self._btrs[name]:Disconnect() | |
133 | end, | |
134 | },"RunService") | |
135 | ||
136 | setmetatable(g,{ | |
137 | __index=function(self,s) | |
138 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
139 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
140 | end, | |
141 | __newindex = fsmt.__newindex, | |
142 | __call = fsmt.__call | |
143 | }) | |
144 | --Changing owner to fake player object to support owner:GetMouse() | |
145 | game,owner = g,g.Players.LocalPlayer | |
146 | end | |
147 | --//====================================================\\-- | |
148 | --|| CREATED BY SHACKLUSTER | |
149 | --\\====================================================//-- | |
150 | ||
151 | wait(0.2) | |
152 | ||
153 | Player = game:GetService("Players").LocalPlayer | |
154 | PlayerGui = Player.PlayerGui | |
155 | Cam = workspace.CurrentCamera | |
156 | Backpack = Player.Backpack | |
157 | Character = Player.Character | |
158 | Humanoid = Character.Humanoid | |
159 | Mouse = Player:GetMouse() | |
160 | RootPart = Character["HumanoidRootPart"] | |
161 | Torso = Character["Torso"] | |
162 | Head = Character["Head"] | |
163 | RightArm = Character["Right Arm"] | |
164 | LeftArm = Character["Left Arm"] | |
165 | RightLeg = Character["Right Leg"] | |
166 | LeftLeg = Character["Left Leg"] | |
167 | RootJoint = RootPart["RootJoint"] | |
168 | Neck = Torso["Neck"] | |
169 | RightShoulder = Torso["Right Shoulder"] | |
170 | LeftShoulder = Torso["Left Shoulder"] | |
171 | RightHip = Torso["Right Hip"] | |
172 | LeftHip = Torso["Left Hip"] | |
173 | ||
174 | IT = Instance.new | |
175 | CF = CFrame.new | |
176 | VT = Vector3.new | |
177 | RAD = math.rad | |
178 | C3 = Color3.new | |
179 | UD2 = UDim2.new | |
180 | BRICKC = BrickColor.new | |
181 | ANGLES = CFrame.Angles | |
182 | EULER = CFrame.fromEulerAnglesXYZ | |
183 | COS = math.cos | |
184 | ACOS = math.acos | |
185 | SIN = math.sin | |
186 | ASIN = math.asin | |
187 | ABS = math.abs | |
188 | MRANDOM = math.random | |
189 | FLOOR = math.floor | |
190 | ||
191 | --//=================================\\ | |
192 | --|| USEFUL VALUES | |
193 | --\\=================================// | |
194 | ||
195 | Animation_Speed = 3 | |
196 | local FORCERESET = false | |
197 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
198 | local SIZE = 1 | |
199 | local Speed = 16 | |
200 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
201 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
202 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
203 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
204 | local DAMAGEMULTIPLIER = 1 | |
205 | local ANIM = "Idle" | |
206 | local ATTACK = false | |
207 | local EQUIPPED = false | |
208 | local HOLD = false | |
209 | local COMBO = 1 | |
210 | local Rooted = false | |
211 | local SINE = 0 | |
212 | local KEYHOLD = false | |
213 | local CHANGE = 2 / Animation_Speed | |
214 | local WALKINGANIM = false | |
215 | local VALUE1 = false | |
216 | local VALUE2 = false | |
217 | local ROBLOXIDLEANIMATION = IT("Animation") | |
218 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
219 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
220 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
221 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
222 | WEAPONGUI.Name = "BanishV3Gui" | |
223 | local Weapon = IT("Folder", Character) | |
224 | Weapon.Name = "Weapon" | |
225 | local Weapon2 = IT("Folder", Character) | |
226 | Weapon2.Name = "Weapon2" | |
227 | local DeadEye = IT("Folder", Character) | |
228 | DeadEye.Name = "DeadEye" | |
229 | local HM = IT("Folder", Character) | |
230 | HM.Name = "HM" | |
231 | local Pan = IT("Folder", Character) | |
232 | Pan.Name = "Pan" | |
233 | local Pan2 = IT("Folder", Character) | |
234 | Pan2.Name = "Pan2" | |
235 | local FaceGradient = IT("Folder", Character) | |
236 | FaceGradient.Name = "FaceGradient" | |
237 | local black = IT("Folder", Character) | |
238 | black.Name = "black" | |
239 | local Heads = IT("Folder", Character) | |
240 | Heads.Name = "Heads" | |
241 | local Effects = IT("Folder", Character) | |
242 | Effects.Name = "Effects" | |
243 | local ANIMATOR = Humanoid.Animator | |
244 | local ANIMATE = Character:FindFirstChild("Animate") | |
245 | local UNANCHOR = true | |
246 | local CLOCKLOOP = 0 | |
247 | local CLOCKTARGET = nil | |
248 | local CLOCKSPEED = 1 | |
249 | script.Parent = WEAPONGUI | |
250 | local HITFLOOR = nil | |
251 | local INTRO = false | |
252 | local INSTANT = false | |
253 | local LEFTWINGS = {} | |
254 | local RIGHTWINGS = {} | |
255 | local BODY = {} | |
256 | local TOBANISH = {} | |
257 | script.Parent = PlayerGui | |
258 | local MODE = "GoodCop" | |
259 | ||
260 | --//=================================\\ | |
261 | --\\=================================// | |
262 | ||
263 | ||
264 | --//=================================\\ | |
265 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
266 | --\\=================================// | |
267 | ||
268 | ArtificialHB = Instance.new("BindableEvent", script) | |
269 | ArtificialHB.Name = "ArtificialHB" | |
270 | ||
271 | script:WaitForChild("ArtificialHB") | |
272 | ||
273 | frame = Frame_Speed | |
274 | tf = 0 | |
275 | allowframeloss = false | |
276 | tossremainder = false | |
277 | lastframe = tick() | |
278 | script.ArtificialHB:Fire() | |
279 | ||
280 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
281 | tf = tf + s | |
282 | if tf >= frame then | |
283 | if allowframeloss then | |
284 | script.ArtificialHB:Fire() | |
285 | lastframe = tick() | |
286 | else | |
287 | for i = 1, math.floor(tf / frame) do | |
288 | script.ArtificialHB:Fire() | |
289 | end | |
290 | lastframe = tick() | |
291 | end | |
292 | if tossremainder then | |
293 | tf = 0 | |
294 | else | |
295 | tf = tf - frame * math.floor(tf / frame) | |
296 | end | |
297 | end | |
298 | end) | |
299 | ||
300 | --//=================================\\ | |
301 | --\\=================================// | |
302 | ||
303 | --//=================================\\ | |
304 | --|| SOME FUNCTIONS | |
305 | --\\=================================// | |
306 | ||
307 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
308 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
309 | end | |
310 | ||
311 | function PositiveAngle(NUMBER) | |
312 | if NUMBER >= 0 then | |
313 | NUMBER = 0 | |
314 | end | |
315 | return NUMBER | |
316 | end | |
317 | ||
318 | function NegativeAngle(NUMBER) | |
319 | if NUMBER <= 0 then | |
320 | NUMBER = 0 | |
321 | end | |
322 | return NUMBER | |
323 | end | |
324 | ||
325 | function Swait(NUMBER) | |
326 | if NUMBER == 0 or NUMBER == nil then | |
327 | ArtificialHB.Event:wait() | |
328 | else | |
329 | for i = 1, NUMBER do | |
330 | ArtificialHB.Event:wait() | |
331 | end | |
332 | end | |
333 | end | |
334 | ||
335 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
336 | local NEWMESH = IT(MESH) | |
337 | if MESH == "SpecialMesh" then | |
338 | NEWMESH.MeshType = MESHTYPE | |
339 | if MESHID ~= "nil" and MESHID ~= "" then | |
340 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
341 | end | |
342 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
343 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
344 | end | |
345 | end | |
346 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
347 | NEWMESH.Scale = SCALE | |
348 | NEWMESH.Parent = PARENT | |
349 | return NEWMESH | |
350 | end | |
351 | ||
352 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
353 | local NEWPART = IT("Part") | |
354 | NEWPART.formFactor = FORMFACTOR | |
355 | NEWPART.Reflectance = REFLECTANCE | |
356 | NEWPART.Transparency = TRANSPARENCY | |
357 | NEWPART.CanCollide = false | |
358 | NEWPART.Locked = true | |
359 | NEWPART.Anchored = true | |
360 | if ANCHOR == false then | |
361 | NEWPART.Anchored = false | |
362 | end | |
363 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
364 | NEWPART.Name = NAME | |
365 | NEWPART.Size = SIZE | |
366 | NEWPART.Position = Torso.Position | |
367 | NEWPART.Material = MATERIAL | |
368 | NEWPART:BreakJoints() | |
369 | NEWPART.Parent = PARENT | |
370 | return NEWPART | |
371 | end | |
372 | ||
373 | local function weldBetween(a, b) | |
374 | local weldd = Instance.new("ManualWeld") | |
375 | weldd.Part0 = a | |
376 | weldd.Part1 = b | |
377 | weldd.C0 = CFrame.new() | |
378 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
379 | weldd.Parent = a | |
380 | return weldd | |
381 | end | |
382 | ||
383 | ||
384 | function QuaternionFromCFrame(cf) | |
385 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
386 | local trace = m00 + m11 + m22 | |
387 | if trace > 0 then | |
388 | local s = math.sqrt(1 + trace) | |
389 | local recip = 0.5 / s | |
390 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
391 | else | |
392 | local i = 0 | |
393 | if m11 > m00 then | |
394 | i = 1 | |
395 | end | |
396 | if m22 > (i == 0 and m00 or m11) then | |
397 | i = 2 | |
398 | end | |
399 | if i == 0 then | |
400 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
401 | local recip = 0.5 / s | |
402 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
403 | elseif i == 1 then | |
404 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
405 | local recip = 0.5 / s | |
406 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
407 | elseif i == 2 then | |
408 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
409 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
410 | end | |
411 | end | |
412 | end | |
413 | ||
414 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
415 | local xs, ys, zs = x + x, y + y, z + z | |
416 | local wx, wy, wz = w * xs, w * ys, w * zs | |
417 | local xx = x * xs | |
418 | local xy = x * ys | |
419 | local xz = x * zs | |
420 | local yy = y * ys | |
421 | local yz = y * zs | |
422 | local zz = z * zs | |
423 | 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)) | |
424 | end | |
425 | ||
426 | function QuaternionSlerp(a, b, t) | |
427 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
428 | local startInterp, finishInterp; | |
429 | if cosTheta >= 0.0001 then | |
430 | if (1 - cosTheta) > 0.0001 then | |
431 | local theta = ACOS(cosTheta) | |
432 | local invSinTheta = 1 / SIN(theta) | |
433 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
434 | finishInterp = SIN(t * theta) * invSinTheta | |
435 | else | |
436 | startInterp = 1 - t | |
437 | finishInterp = t | |
438 | end | |
439 | else | |
440 | if (1 + cosTheta) > 0.0001 then | |
441 | local theta = ACOS(-cosTheta) | |
442 | local invSinTheta = 1 / SIN(theta) | |
443 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
444 | finishInterp = SIN(t * theta) * invSinTheta | |
445 | else | |
446 | startInterp = t - 1 | |
447 | finishInterp = t | |
448 | end | |
449 | end | |
450 | 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 | |
451 | end | |
452 | ||
453 | function Clerp(a, b, t) | |
454 | local qa = {QuaternionFromCFrame(a)} | |
455 | local qb = {QuaternionFromCFrame(b)} | |
456 | local ax, ay, az = a.x, a.y, a.z | |
457 | local bx, by, bz = b.x, b.y, b.z | |
458 | local _t = 1 - t | |
459 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
460 | end | |
461 | ||
462 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
463 | local frame = IT("Frame") | |
464 | frame.BackgroundTransparency = TRANSPARENCY | |
465 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
466 | frame.Position = POSITION | |
467 | frame.Size = SIZE | |
468 | frame.BackgroundColor3 = COLOR | |
469 | frame.BorderColor3 = BORDERCOLOR | |
470 | frame.Name = NAME | |
471 | frame.Parent = PARENT | |
472 | return frame | |
473 | end | |
474 | ||
475 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
476 | local label = IT("TextLabel") | |
477 | label.BackgroundTransparency = 1 | |
478 | label.Size = UD2(1, 0, 1, 0) | |
479 | label.Position = UD2(0, 0, 0, 0) | |
480 | label.TextColor3 = TEXTCOLOR | |
481 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
482 | label.TextTransparency = TRANSPARENCY | |
483 | label.FontSize = TEXTFONTSIZE | |
484 | label.Font = TEXTFONT | |
485 | label.BorderSizePixel = BORDERSIZEPIXEL | |
486 | label.TextScaled = false | |
487 | label.Text = TEXT | |
488 | label.Name = NAME | |
489 | label.Parent = PARENT | |
490 | return label | |
491 | end | |
492 | ||
493 | function NoOutlines(PART) | |
494 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
495 | end | |
496 | ||
497 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
498 | local NEWWELD = IT(TYPE) | |
499 | NEWWELD.Part0 = PART0 | |
500 | NEWWELD.Part1 = PART1 | |
501 | NEWWELD.C0 = C0 | |
502 | NEWWELD.C1 = C1 | |
503 | NEWWELD.Parent = PARENT | |
504 | return NEWWELD | |
505 | end | |
506 | ||
507 | local S = IT("Sound") | |
508 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
509 | local NEWSOUND = nil | |
510 | coroutine.resume(coroutine.create(function() | |
511 | NEWSOUND = S:Clone() | |
512 | NEWSOUND.Parent = PARENT | |
513 | NEWSOUND.Volume = VOLUME | |
514 | NEWSOUND.Pitch = PITCH | |
515 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
516 | NEWSOUND:play() | |
517 | if DOESLOOP == true then | |
518 | NEWSOUND.Looped = true | |
519 | else | |
520 | repeat wait(1) until NEWSOUND.Playing == false | |
521 | NEWSOUND:remove() | |
522 | end | |
523 | end)) | |
524 | return NEWSOUND | |
525 | end | |
526 | ||
527 | function CFrameFromTopBack(at, top, back) | |
528 | local right = top:Cross(back) | |
529 | 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) | |
530 | end | |
531 | ||
532 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
533 | function WACKYEFFECT(Table) | |
534 | local TYPE = (Table.EffectType or "Sphere") | |
535 | local SIZE = (Table.Size or VT(1,1,1)) | |
536 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
537 | local TRANSPARENCY = (Table.Transparency or 0) | |
538 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
539 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
540 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
541 | local ROTATION1 = (Table.RotationX or 0) | |
542 | local ROTATION2 = (Table.RotationY or 0) | |
543 | local ROTATION3 = (Table.RotationZ or 0) | |
544 | local MATERIAL = (Table.Material or "Neon") | |
545 | local COLOR = (Table.Color or C3(1,1,1)) | |
546 | local TIME = (Table.Time or 45) | |
547 | local SOUNDID = (Table.SoundID or nil) | |
548 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
549 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
550 | coroutine.resume(coroutine.create(function() | |
551 | local PLAYSSOUND = false | |
552 | local SOUND = nil | |
553 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
554 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
555 | PLAYSSOUND = true | |
556 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
557 | end | |
558 | EFFECT.Color = COLOR | |
559 | local MSH = nil | |
560 | if TYPE == "Sphere" then | |
561 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
562 | elseif TYPE == "Block" then | |
563 | MSH = IT("BlockMesh",EFFECT) | |
564 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
565 | elseif TYPE == "Wave" then | |
566 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
567 | elseif TYPE == "Ring" then | |
568 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
569 | elseif TYPE == "Slash" then | |
570 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
571 | elseif TYPE == "Round Slash" then | |
572 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
573 | elseif TYPE == "Swirl" then | |
574 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
575 | elseif TYPE == "Skull" then | |
576 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
577 | elseif TYPE == "Crystal" then | |
578 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
579 | end | |
580 | if MSH ~= nil then | |
581 | local MOVESPEED = nil | |
582 | if MOVEDIRECTION ~= nil then | |
583 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
584 | end | |
585 | local GROWTH = SIZE - ENDSIZE | |
586 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
587 | if TYPE == "Block" then | |
588 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
589 | else | |
590 | EFFECT.CFrame = CFRAME | |
591 | end | |
592 | for LOOP = 1, TIME+1 do | |
593 | Swait() | |
594 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
595 | if TYPE == "Wave" then | |
596 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
597 | end | |
598 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
599 | if TYPE == "Block" then | |
600 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
601 | else | |
602 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
603 | end | |
604 | if MOVEDIRECTION ~= nil then | |
605 | local ORI = EFFECT.Orientation | |
606 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
607 | EFFECT.Orientation = ORI | |
608 | end | |
609 | end | |
610 | if PLAYSSOUND == false then | |
611 | EFFECT:remove() | |
612 | else | |
613 | repeat Swait() until SOUND.Playing == false | |
614 | EFFECT:remove() | |
615 | end | |
616 | else | |
617 | if PLAYSSOUND == false then | |
618 | EFFECT:remove() | |
619 | else | |
620 | repeat Swait() until SOUND.Playing == false | |
621 | EFFECT:remove() | |
622 | end | |
623 | end | |
624 | end)) | |
625 | end | |
626 | ||
627 | function MakeForm(PART,TYPE) | |
628 | if TYPE == "Cyl" then | |
629 | local MSH = IT("CylinderMesh",PART) | |
630 | elseif TYPE == "Ball" then | |
631 | local MSH = IT("SpecialMesh",PART) | |
632 | MSH.MeshType = "Sphere" | |
633 | elseif TYPE == "Wedge" then | |
634 | local MSH = IT("SpecialMesh",PART) | |
635 | MSH.MeshType = "Wedge" | |
636 | end | |
637 | end | |
638 | ||
639 | Debris = game:GetService("Debris") | |
640 | ||
641 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
642 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
643 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
644 | end | |
645 | ||
646 | function CharacterFade(COLOR,TIMER) | |
647 | coroutine.resume(coroutine.create(function() | |
648 | local FADE = IT("Model",Effects) | |
649 | for _, c in pairs(Character:GetChildren()) do | |
650 | if c.ClassName == "Part" and c ~= RootPart then | |
651 | local FADER = c:Clone() | |
652 | FADER.Color = COLOR | |
653 | FADER.CFrame = c.CFrame | |
654 | FADER.Parent = FADE | |
655 | FADER.Anchored = true | |
656 | FADER.Transparency = 0.25 | |
657 | FADER:BreakJoints() | |
658 | FADER.Material = "Glass" | |
659 | FADER:ClearAllChildren() | |
660 | if FADER.Name == "Head" then | |
661 | FADER.Size = VT(1,1,1) | |
662 | end | |
663 | end | |
664 | end | |
665 | local TRANS = 0.75/TIMER | |
666 | for i = 1, TIMER do | |
667 | Swait() | |
668 | for _, c in pairs(FADE:GetChildren()) do | |
669 | if c.ClassName == "Part" then | |
670 | c.Transparency = c.Transparency + TRANS | |
671 | end | |
672 | end | |
673 | end | |
674 | FADE:remove() | |
675 | end)) | |
676 | end | |
677 | ||
678 | local PE=Instance.new("ParticleEmitter") | |
679 | PE.LightEmission=0.3 | |
680 | PE.Size=NumberSequence.new(0) | |
681 | PE.Transparency=NumberSequence.new(0,1) | |
682 | PE.Rotation=NumberRange.new(0,360) | |
683 | PE.LockedToPart = false | |
684 | PE.Speed = NumberRange.new(0,0,0) | |
685 | PE.ZOffset = 0.3 | |
686 | PE.Rate = 999 | |
687 | PE.VelocitySpread = 25 | |
688 | PE.Name = "Particles" | |
689 | ||
690 | function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed) | |
691 | local particle = nil | |
692 | coroutine.resume(coroutine.create(function(PART) | |
693 | particle = PE:Clone() | |
694 | Swait() | |
695 | particle.Rate = 999 | |
696 | particle.Parent = art | |
697 | particle.Acceleration = accel | |
698 | if type == "Fire" then | |
699 | local EyeSizes={ | |
700 | NumberSequenceKeypoint.new(0,size,size/2), | |
701 | NumberSequenceKeypoint.new(1,size/4,size/8) | |
702 | } | |
703 | particle.Size = NumberSequence.new(EyeSizes) | |
704 | elseif type == "Smoke" then | |
705 | local EyeSizes={ | |
706 | NumberSequenceKeypoint.new(0,size/5,0), | |
707 | NumberSequenceKeypoint.new(1,size*2,0.5) | |
708 | } | |
709 | particle.Size = NumberSequence.new(EyeSizes) | |
710 | elseif type == "Solid" then | |
711 | local EyeSizes={ | |
712 | NumberSequenceKeypoint.new(0,size,0), | |
713 | NumberSequenceKeypoint.new(1,size,0) | |
714 | } | |
715 | particle.Size = NumberSequence.new(EyeSizes) | |
716 | end | |
717 | particle.Lifetime=NumberRange.new(lifetime) | |
718 | particle.Drag = drag | |
719 | if locked == true then | |
720 | particle.LockedToPart = true | |
721 | end | |
722 | particle.Speed = NumberRange.new(speed*0.8,speed) | |
723 | particle.Texture = "http://www.roblox.com/asset/?id=1179557490" | |
724 | particle.Enabled = isenabledbydefault | |
725 | particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0)) | |
726 | end)) | |
727 | return particle | |
728 | end | |
729 | ||
730 | --//=================================\\ | |
731 | --|| RAGDOLL STUFF | |
732 | --\\=================================// | |
733 | ||
734 | function recurse(root,callback,i) | |
735 | i= i or 0 | |
736 | for _,v in pairs(root:GetChildren()) do | |
737 | i = i + 1 | |
738 | callback(i,v) | |
739 | ||
740 | if #v:GetChildren() > 0 then | |
741 | i = recurse(v,callback,i) | |
742 | end | |
743 | end | |
744 | ||
745 | return i | |
746 | end | |
747 | ||
748 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
749 | attachmentName = attachmentName.."RigAttachment" | |
750 | local constraint = Instance.new(className.."Constraint") | |
751 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
752 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
753 | constraint.Name = "RagdollConstraint"..part1.Name | |
754 | ||
755 | for _,propertyData in next,properties or {} do | |
756 | constraint[propertyData[1]] = propertyData[2] | |
757 | end | |
758 | ||
759 | constraint.Parent = character | |
760 | end | |
761 | ||
762 | function getAttachment0(character, attachmentName) | |
763 | for _,child in next,character:GetChildren() do | |
764 | local attachment = child:FindFirstChild(attachmentName) | |
765 | if attachment then | |
766 | return attachment | |
767 | end | |
768 | end | |
769 | end | |
770 | ||
771 | function ArtificialHitbox(Part) | |
772 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
773 | HITBOX.CanCollide = true | |
774 | HITBOX.CFrame = Part.CFrame | |
775 | weldBetween(Part,HITBOX) | |
776 | end | |
777 | ||
778 | function R15Ragdoll(character,KeepArms) | |
779 | character:BreakJoints() | |
780 | coroutine.resume(coroutine.create(function() | |
781 | recurse(character, function(_,v) | |
782 | if v:IsA("Attachment") then | |
783 | v.Axis = Vector3.new(0, 1, 0) | |
784 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
785 | v.Rotation = Vector3.new(0, 0, 0) | |
786 | end | |
787 | end) | |
788 | for _,child in next,character:GetChildren() do | |
789 | if child:IsA("Accoutrement") then | |
790 | for _,part in next,child:GetChildren() do | |
791 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
792 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
793 | local attachment0 = getAttachment0(character,attachment1.Name) | |
794 | if attachment0 and attachment1 then | |
795 | local constraint = Instance.new("HingeConstraint") | |
796 | constraint.Attachment0 = attachment0 | |
797 | constraint.Attachment1 = attachment1 | |
798 | constraint.LimitsEnabled = true | |
799 | constraint.UpperAngle = 0 | |
800 | constraint.LowerAngle = 0 | |
801 | constraint.Parent = character | |
802 | end | |
803 | ArtificialHitbox(part) | |
804 | elseif part.Name == "HumanoidRootPart" then | |
805 | part:remove() | |
806 | end | |
807 | end | |
808 | end | |
809 | end | |
810 | ||
811 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
812 | {"LimitsEnabled",true}; | |
813 | {"UpperAngle",5}; | |
814 | }) | |
815 | if character:FindFirstChild("Head") then | |
816 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
817 | {"LimitsEnabled",true}; | |
818 | {"UpperAngle",15}; | |
819 | }) | |
820 | end | |
821 | ||
822 | local handProperties = { | |
823 | {"LimitsEnabled", true}; | |
824 | {"UpperAngle",0}; | |
825 | {"LowerAngle",0}; | |
826 | } | |
827 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
828 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
829 | ||
830 | local shinProperties = { | |
831 | {"LimitsEnabled", true}; | |
832 | {"UpperAngle", 0}; | |
833 | {"LowerAngle", -75}; | |
834 | } | |
835 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
836 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
837 | ||
838 | local footProperties = { | |
839 | {"LimitsEnabled", true}; | |
840 | {"UpperAngle", 15}; | |
841 | {"LowerAngle", -45}; | |
842 | } | |
843 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
844 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
845 | if KeepArms == true then | |
846 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
847 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
848 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
849 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
850 | end | |
851 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
852 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
853 | Debris:AddItem(character,5) | |
854 | end)) | |
855 | end | |
856 | ||
857 | function Ragdoll(Character2,CharTorso,KeepArms) | |
858 | coroutine.resume(coroutine.create(function() | |
859 | Character2:BreakJoints() | |
860 | local hum = Character2:findFirstChild("Humanoid") | |
861 | hum:remove() | |
862 | local function Scan(ch) | |
863 | local e | |
864 | for e = 1,#ch do | |
865 | Scan(ch[e]:GetChildren()) | |
866 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
867 | ch[e]:remove() | |
868 | end | |
869 | end | |
870 | end | |
871 | local NEWHUM = IT("Humanoid") | |
872 | NEWHUM.Name = "Corpse" | |
873 | NEWHUM.Health = 0 | |
874 | NEWHUM.MaxHealth = 0 | |
875 | NEWHUM.PlatformStand = true | |
876 | NEWHUM.Parent = Character2 | |
877 | NEWHUM.DisplayDistanceType = "None" | |
878 | ||
879 | local ch = Character2:GetChildren() | |
880 | local i | |
881 | for i = 1,#ch do | |
882 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
883 | ch[i]:remove() | |
884 | end | |
885 | end | |
886 | ||
887 | local Torso2 = Character2.Torso | |
888 | local movevector = Vector3.new() | |
889 | ||
890 | if Torso2 then | |
891 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
892 | local Head = Character2:FindFirstChild("Head") | |
893 | if Head then | |
894 | local Neck = Instance.new("Weld") | |
895 | Neck.Name = "Neck" | |
896 | Neck.Part0 = Torso2 | |
897 | Neck.Part1 = Head | |
898 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
899 | Neck.C1 = CFrame.new() | |
900 | Neck.Parent = Torso2 | |
901 | ||
902 | end | |
903 | local Limb = Character2:FindFirstChild("Right Arm") | |
904 | if Limb and KeepArms == true then | |
905 | ||
906 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
907 | local Joint = Instance.new("Glue") | |
908 | Joint.Name = "RightShoulder" | |
909 | Joint.Part0 = Torso2 | |
910 | Joint.Part1 = Limb | |
911 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
912 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
913 | Joint.Parent = Torso2 | |
914 | ||
915 | local B = Instance.new("Part") | |
916 | B.TopSurface = 0 | |
917 | B.BottomSurface = 0 | |
918 | B.formFactor = "Symmetric" | |
919 | B.Size = Vector3.new(1, 1, 1) | |
920 | B.Transparency = 1 | |
921 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
922 | B.Parent = Character2 | |
923 | local W = Instance.new("Weld") | |
924 | W.Part0 = Limb | |
925 | W.Part1 = B | |
926 | W.C0 = CFrame.new(0, -0.5, 0) | |
927 | W.Parent = Limb | |
928 | ||
929 | end | |
930 | local Limb = Character2:FindFirstChild("Left Arm") | |
931 | if Limb and KeepArms == true then | |
932 | ||
933 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
934 | local Joint = Instance.new("Glue") | |
935 | Joint.Name = "LeftShoulder" | |
936 | Joint.Part0 = Torso2 | |
937 | Joint.Part1 = Limb | |
938 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
939 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
940 | Joint.Parent = Torso2 | |
941 | ||
942 | local B = Instance.new("Part") | |
943 | B.TopSurface = 0 | |
944 | B.BottomSurface = 0 | |
945 | B.formFactor = "Symmetric" | |
946 | B.Size = Vector3.new(1, 1, 1) | |
947 | B.Transparency = 1 | |
948 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
949 | B.Parent = Character2 | |
950 | local W = Instance.new("Weld") | |
951 | W.Part0 = Limb | |
952 | W.Part1 = B | |
953 | W.C0 = CFrame.new(0, -0.5, 0) | |
954 | W.Parent = Limb | |
955 | ||
956 | end | |
957 | local Limb = Character2:FindFirstChild("Right Leg") | |
958 | if Limb then | |
959 | ||
960 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
961 | local Joint = Instance.new("Glue") | |
962 | Joint.Name = "RightHip" | |
963 | Joint.Part0 = Torso2 | |
964 | Joint.Part1 = Limb | |
965 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
966 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
967 | Joint.Parent = Torso2 | |
968 | ||
969 | local B = Instance.new("Part") | |
970 | B.TopSurface = 0 | |
971 | B.BottomSurface = 0 | |
972 | B.formFactor = "Symmetric" | |
973 | B.Size = Vector3.new(1, 1, 1) | |
974 | B.Transparency = 1 | |
975 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
976 | B.Parent = Character2 | |
977 | local W = Instance.new("Weld") | |
978 | W.Part0 = Limb | |
979 | W.Part1 = B | |
980 | W.C0 = CFrame.new(0, -0.5, 0) | |
981 | W.Parent = Limb | |
982 | ||
983 | end | |
984 | local Limb = Character2:FindFirstChild("Left Leg") | |
985 | if Limb then | |
986 | ||
987 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
988 | local Joint = Instance.new("Glue") | |
989 | Joint.Name = "LeftHip" | |
990 | Joint.Part0 = Torso2 | |
991 | Joint.Part1 = Limb | |
992 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
993 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
994 | Joint.Parent = Torso2 | |
995 | ||
996 | local B = Instance.new("Part") | |
997 | B.TopSurface = 0 | |
998 | B.BottomSurface = 0 | |
999 | B.formFactor = "Symmetric" | |
1000 | B.Size = Vector3.new(1, 1, 1) | |
1001 | B.Transparency = 1 | |
1002 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1003 | B.Parent = Character2 | |
1004 | local W = Instance.new("Weld") | |
1005 | W.Part0 = Limb | |
1006 | W.Part1 = B | |
1007 | W.C0 = CFrame.new(0, -0.5, 0) | |
1008 | W.Parent = Limb | |
1009 | ||
1010 | end | |
1011 | --[ | |
1012 | local Bar = Instance.new("Part") | |
1013 | Bar.TopSurface = 0 | |
1014 | Bar.BottomSurface = 0 | |
1015 | Bar.formFactor = "Symmetric" | |
1016 | Bar.Size = Vector3.new(1, 1, 1) | |
1017 | Bar.Transparency = 1 | |
1018 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1019 | Bar.Parent = Character2 | |
1020 | local Weld = Instance.new("Weld") | |
1021 | Weld.Part0 = Torso2 | |
1022 | Weld.Part1 = Bar | |
1023 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1024 | Weld.Parent = Torso2 | |
1025 | --]] | |
1026 | end | |
1027 | Character2.Parent = workspace | |
1028 | Debris:AddItem(Character2,5) | |
1029 | ||
1030 | return Character2,Torso2 | |
1031 | end)) | |
1032 | end | |
1033 | ||
1034 | --//=================================\\ | |
1035 | --|| WEAPON CREATION | |
1036 | --\\=================================// | |
1037 | ||
1038 | --Heads-- | |
1039 | ||
1040 | local PRT = CreatePart(3, Heads, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
1041 | --HM-- | |
1042 | - | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) |
1042 | + | |
1043 | - | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) |
1043 | + | |
1044 | for i = 1, 20 do | |
1045 | local MATH = (1-(i/25)) | |
1046 | if LASTPART == Head then | |
1047 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1048 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
1049 | LASTPART = Horn | |
1050 | Horn.Color = C3((i*3-3)/255,0,0) | |
1051 | else | |
1052 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1053 | 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)) | |
1054 | LASTPART = Horn | |
1055 | Horn.Color = C3((i*3-3)/255,0,0) | |
1056 | end | |
1057 | end | |
1058 | local LASTPART = Head | |
1059 | for i = 1, 20 do | |
1060 | local MATH = (1-(i/25)) | |
1061 | if LASTPART == Head then | |
1062 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1063 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
1064 | LASTPART = Horn | |
1065 | Horn.Color = C3((i*3-3)/255,0,0) | |
1066 | else | |
1067 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
1068 | 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)) | |
1069 | LASTPART = Horn | |
1070 | Horn.Color = C3((i*3-3)/255,0,0) | |
1071 | end | |
1072 | end | |
1073 | --- | |
1074 | ||
1075 | for i = 1, 35 do | |
1076 | local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
1077 | FACE.Color = C3(0,0,0) | |
1078 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1079 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0)) | |
1080 | end | |
1081 | ||
1082 | --- | |
1083 | local PRT = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1084 | CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1085 | local PRT = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1086 | CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1087 | MakeForm(PRT,"Cyl") | |
1088 | local PRT = CreatePart(3, Pan, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1089 | CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1090 | MakeForm(PRT,"Cyl") | |
1091 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1092 | local RING = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1093 | CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1094 | MakeForm(RING,"Cyl") | |
1095 | RING.Color = C3(0,0,0) | |
1096 | for i = 1, 12 do | |
1097 | local PRT = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
1098 | PRT.Color = C3(0,0,0) | |
1099 | local MSH = IT("BlockMesh",PRT) | |
1100 | MSH.Scale = VT(0.6,1,1) | |
1101 | CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1102 | end | |
1103 | local PRT = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1104 | PRT.Color = C3(0,0,0) | |
1105 | local MSH = IT("BlockMesh",PRT) | |
1106 | MSH.Scale = VT(0.4,1,1) | |
1107 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
1108 | local PRT = CreatePart(3, Pan, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
1109 | PRT.Color = C3(0,0,0) | |
1110 | local MSH = IT("BlockMesh",PRT) | |
1111 | MSH.Scale = VT(0.4,1,1) | |
1112 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightLeg, RightLeg, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
1113 | coroutine.resume(coroutine.create(function() | |
1114 | while true do | |
1115 | Swait() | |
1116 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
1117 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
1118 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
1119 | if CLOCKLOOP <= -150 then | |
1120 | if MODE == "black" then | |
1121 | CLOCKLOOP = 0 | |
1122 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 1}) | |
1123 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1124 | ApplyAoE3(HITPOS,10,15,45,75,false) | |
1125 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1126 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1127 | if CLOCKTARGET ~= nil then | |
1128 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
1129 | if CLOCKTARGET.Torso ~= nil then | |
1130 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
1131 | end | |
1132 | if CLOCKTARGET.Health == 0 then | |
1133 | CLOCKTARGET = nil | |
1134 | end | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | end | |
1139 | end)) | |
1140 | ||
1141 | --EXE-- | |
1142 | local EXE = Instance.new("Shirt") | |
1143 | EXE.ShirtTemplate = "rbxassetid://338740550" | |
1144 | EXE.Parent = Character | |
1145 | EXE.Name = "Cloth" | |
1146 | local LOL = Instance.new("Pants") | |
1147 | LOL.PantsTemplate = "rbxassetid://338750779" | |
1148 | LOL.Parent = Character | |
1149 | LOL.Name = "Cloth" | |
1150 | ||
1151 | for _, c in pairs(Character:GetDescendants()) do | |
1152 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1153 | c.Material = "Glass" | |
1154 | c.Transparency = 0 | |
1155 | RootPart.Transparency = 10 | |
1156 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1157 | c.Material = "Neon" | |
1158 | c.Transparency = 0 | |
1159 | RootPart.Transparency = 10 | |
1160 | end | |
1161 | end | |
1162 | ||
1163 | for _, c in pairs(Pan:GetDescendants()) do | |
1164 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1165 | c.Color = C3(0,0,0) | |
1166 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1167 | c.Color = C3(1,0,0) | |
1168 | end | |
1169 | end | |
1170 | ||
1171 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1172 | local SKILLFONT = "SciFi" | |
1173 | local SKILLTEXTSIZE = 5 | |
1174 | ||
1175 | Weapon.Parent = Character | |
1176 | ||
1177 | Humanoid.Died:connect(function() | |
1178 | ATTACK = true | |
1179 | end) | |
1180 | ||
1181 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1182 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1183 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1184 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1185 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1186 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1187 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.66, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1188 | ||
1189 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
1190 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1191 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1192 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1193 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1194 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1195 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[F - GoodBye All]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 7") | |
1196 | ||
1197 | --//=================================\\ | |
1198 | --|| DAMAGING | |
1199 | --\\=================================// | |
1200 | --Pan-- | |
1201 | ||
1202 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1203 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1204 | defence.Name = ("HitBy"..Player.Name) | |
1205 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1206 | Damage = Damage * DAMAGEMULTIPLIER | |
1207 | if Humanoid.Health ~= 0 then | |
1208 | local CritChance = MRANDOM(1,100) | |
1209 | if Damage > Humanoid.Health then | |
1210 | Damage = math.ceil(Humanoid.Health) | |
1211 | if Damage == 0 then | |
1212 | Damage = 0.1 | |
1213 | end | |
1214 | end | |
1215 | Humanoid.Health = Humanoid.Health - Damage | |
1216 | end | |
1217 | end | |
1218 | ||
1219 | function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1220 | local CHILDREN = workspace:GetDescendants() | |
1221 | for index, CHILD in pairs(CHILDREN) do | |
1222 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1223 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1224 | if HUM then | |
1225 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1226 | if TORSO then | |
1227 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1228 | if INSTAKILL == true then | |
1229 | CHILD:BreakJoints() | |
1230 | else | |
1231 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1232 | ApplyDamage(HUM,DMG,TORSO) | |
1233 | end | |
1234 | if FLING > 0 then | |
1235 | for _, c in pairs(CHILD:GetChildren()) do | |
1236 | if c:IsA("BasePart") then | |
1237 | local bv = Instance.new("BodyVelocity") | |
1238 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1239 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1240 | bv.Parent = c | |
1241 | Debris:AddItem(bv,0.05) | |
1242 | end | |
1243 | end | |
1244 | end | |
1245 | end | |
1246 | end | |
1247 | end | |
1248 | end | |
1249 | end | |
1250 | end | |
1251 | ||
1252 | --//=================================\\ | |
1253 | --|| ATTACK FUNCTIONS AND STUFF | |
1254 | --\\=================================// | |
1255 | ||
1256 | function Warp() | |
1257 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character) | |
1258 | if HITFLOOR then | |
1259 | CharacterFade(C3(0.5,0,0),50) | |
1260 | HITPOS = HITPOS + VT(0,3.5,0) | |
1261 | local POS = RootPart.Position | |
1262 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1263 | CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false) | |
1264 | end | |
1265 | end | |
1266 | ||
1267 | function SuperStomp() | |
1268 | ATTACK = true | |
1269 | Rooted = true | |
1270 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1271 | coroutine.resume(coroutine.create(function() | |
1272 | Swait(65) | |
1273 | CreateSound(262562442,RightLeg,60,1,false) | |
1274 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0.55,0)*SIZE, Size2 = VT(90,3,90), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.96, SoundVolume = 10}) | |
1275 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,7.5,0)*SIZE, Size2 = VT(60,6.5,60), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.96, SoundVolume = 10}) | |
1276 | ApplyAoE3(HITPOS,35,35,50,75,false) | |
1277 | end)) | |
1278 | CreateSound(163619849,RightLeg,10,1,false) | |
1279 | for i=0, 2, 0.1 / Animation_Speed do | |
1280 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightLeg.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1281 | Swait() | |
1282 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-15), RAD(0), RAD(40)), 0.5 / Animation_Speed) | |
1283 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-40)), 0.5 / Animation_Speed) | |
1284 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(90), RAD(-45), RAD(-55)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1285 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(30), RAD(85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1286 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.4*SIZE - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1287 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1288 | end | |
1289 | for i=0, 1, 0.1 / Animation_Speed do | |
1290 | Swait() | |
1291 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1292 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1293 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(105), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1294 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.2*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(-105), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1295 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.7*SIZE - 0.05 * COS(SINE / 12), -0.4) * ANGLES(RAD(10), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
1296 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), 0.13) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1297 | end | |
1298 | ATTACK = false | |
1299 | Rooted = false | |
1300 | end | |
1301 | ||
1302 | function Dash() | |
1303 | ATTACK = true | |
1304 | Rooted = true | |
1305 | local SOUND = CreateSound(1165167610, Torso, 1, 1, true) | |
1306 | local LOOP = 0 | |
1307 | repeat | |
1308 | LOOP = LOOP + 1 | |
1309 | Swait() | |
1310 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, 5, workspace) | |
1311 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 100, Character) | |
1312 | if HITFLOOR then | |
1313 | CharacterFade(C3(0.5,0,0),35) | |
1314 | HITPOS = HITPOS + VT(0,3.5,0) | |
1315 | local POS = RootPart.Position | |
1316 | RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p) | |
1317 | RootPart.Velocity = VT(0,0,0) | |
1318 | RootPart.RotVelocity = VT(0,0,0) | |
1319 | end | |
1320 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(75), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1321 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1322 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1323 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1324 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1325 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1326 | until KEYHOLD == false | |
1327 | coroutine.resume(coroutine.create(function() | |
1328 | for i = 1, 20 do | |
1329 | Swait() | |
1330 | SOUND.Volume = SOUND.Volume - 1/20 | |
1331 | end | |
1332 | SOUND:remove() | |
1333 | end)) | |
1334 | if LOOP > 50 then | |
1335 | CreateSound(772085046,Torso,5,MRANDOM(8,13)/10,false) | |
1336 | for i = 1, 100 do | |
1337 | Swait() | |
1338 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-(1-(i/100))/3) | |
1339 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(RightLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1340 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,0.5,1), Size2 = VT(2,0,2), Transparency = 0.7, Transparency2 = 1, CFrame = CF(LeftLeg.CFrame*CF(0,-1,0).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.3,0.3,0.3), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1341 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1342 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1343 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1344 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1345 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1346 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1347 | end | |
1348 | end | |
1349 | ATTACK = false | |
1350 | Rooted = false | |
1351 | end | |
1352 | ||
1353 | function LimbRip() | |
1354 | ATTACK = true | |
1355 | Rooted = false | |
1356 | local TARGET = nil | |
1357 | local ROOT = nil | |
1358 | local HUMAN = nil | |
1359 | local DIST = 4 | |
1360 | Speed = 12 | |
1361 | for i=0, 1, 0.1 / Animation_Speed do | |
1362 | Swait() | |
1363 | local CHILDREN = workspace:GetDescendants() | |
1364 | for index, CHILD in pairs(CHILDREN) do | |
1365 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1366 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1367 | if HUM then | |
1368 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1369 | if TORSO and HUM.Health > 0 then | |
1370 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1371 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1372 | ROOT = TORSO | |
1373 | HUMAN = HUM | |
1374 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1375 | end | |
1376 | end | |
1377 | end | |
1378 | end | |
1379 | end | |
1380 | if ROOT then | |
1381 | break | |
1382 | end | |
1383 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1384 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1385 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1386 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1387 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1388 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1389 | end | |
1390 | Speed = 16 | |
1391 | if ROOT then | |
1392 | CreateSound(305685800,Torso,5,1.3,false) | |
1393 | Rooted = true | |
1394 | local GORED = false | |
1395 | coroutine.resume(coroutine.create(function() | |
1396 | repeat | |
1397 | Swait() | |
1398 | ROOT.Anchored = true | |
1399 | until GORED == true | |
1400 | ROOT.Anchored = false | |
1401 | end)) | |
1402 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.25) | |
1403 | if TARGET.Name == "Torso" then | |
1404 | local RARM = TARGET.Parent:FindFirstChild("Right Arm") | |
1405 | local LARM = TARGET.Parent:FindFirstChild("Left Arm") | |
1406 | if RARM and LARM then | |
1407 | for i=0, 1, 0.1 / Animation_Speed do | |
1408 | Swait() | |
1409 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1410 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1413 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1414 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1415 | end | |
1416 | for _, c in pairs(TARGET.Parent:GetDescendants()) do | |
1417 | if c:IsA("JointInstance") then | |
1418 | if c.Part1 == RARM or c.Part1 == LARM or c.Part0 == RARM or c.Part0 == LARM then | |
1419 | c:remove() | |
1420 | end | |
1421 | end | |
1422 | end | |
1423 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1424 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1425 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1426 | for i=0, 1, 0.1 / Animation_Speed do | |
1427 | Swait() | |
1428 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1429 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1430 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1431 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1432 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1433 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1434 | end | |
1435 | for i=0, 1, 0.1 / Animation_Speed do | |
1436 | Swait() | |
1437 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1438 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1439 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1440 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1441 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1442 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1443 | end | |
1444 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1445 | Swait() | |
1446 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1447 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1448 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1449 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1450 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1451 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1452 | end | |
1453 | GORED = true | |
1454 | Ragdoll(TARGET.Parent,Torso) | |
1455 | if ROOT.Name ~= "Torso" then | |
1456 | ROOT:remove() | |
1457 | end | |
1458 | local RGRAB = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1459 | local LGRAB = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, LARM, CF(0,-1.35,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1460 | local bv = Instance.new("BodyVelocity",TARGET) | |
1461 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1462 | bv.velocity = TARGET.CFrame.lookVector*75 | |
1463 | Debris:AddItem(bv,0.05) | |
1464 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1465 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1466 | Swait() | |
1467 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1468 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1469 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1470 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(160), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1471 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1472 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1473 | end | |
1474 | for i=0, 1, 0.1 / Animation_Speed do | |
1475 | Swait() | |
1476 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1477 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1478 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed) | |
1479 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.6 / Animation_Speed) | |
1480 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1481 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1482 | end | |
1483 | local HITBOX = CreatePart(3, RARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1484 | HITBOX.CFrame = RARM.CFrame | |
1485 | HITBOX.CanCollide = true | |
1486 | weldBetween(RARM,HITBOX) | |
1487 | local HITBOX = CreatePart(3, LARM, "Metal", 0, 1, "Really black", "Part", RARM.Size, false) | |
1488 | HITBOX.CFrame = LARM.CFrame | |
1489 | HITBOX.CanCollide = true | |
1490 | weldBetween(LARM,HITBOX) | |
1491 | RGRAB:remove() | |
1492 | LGRAB:remove() | |
1493 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1494 | Swait() | |
1495 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1496 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1497 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1498 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1499 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1500 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1501 | end | |
1502 | end | |
1503 | elseif TARGET.Name == "UpperTorso" then | |
1504 | if TARGET.Parent:FindFirstChild("RightUpperArm") and TARGET.Parent:FindFirstChild("LeftUpperArm") then | |
1505 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1506 | Swait() | |
1507 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1508 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1509 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1510 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1511 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1512 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1513 | end | |
1514 | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
1515 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1516 | local BLADE = true | |
1517 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(1,1,1), VT(0,0,0)) | |
1518 | coroutine.resume(coroutine.create(function() | |
1519 | repeat | |
1520 | Swait() | |
1521 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
1522 | until BLADE == false | |
1523 | SAWBLADE:remove() | |
1524 | end)) | |
1525 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
1526 | for i=0, 1, 0.1 / Animation_Speed do | |
1527 | Swait() | |
1528 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1529 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1530 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(140), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(25), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1531 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1532 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1534 | end | |
1535 | for i=0, 3, 0.1 / Animation_Speed do | |
1536 | Swait() | |
1537 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1538 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1539 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-25), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1540 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1541 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1542 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1543 | end | |
1544 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1545 | TARGET.Parent:FindFirstChild("RightUpperArm").RightShoulder:remove() | |
1546 | for i=0, 1, 0.1 / Animation_Speed do | |
1547 | Swait() | |
1548 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0.3) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
1549 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1550 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1551 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1552 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1553 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1554 | end | |
1555 | for i=0, 3, 0.1 / Animation_Speed do | |
1556 | Swait() | |
1557 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
1558 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed) | |
1559 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1560 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1561 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1562 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1563 | end | |
1564 | CreateSound(363808674, TARGET, 3, MRANDOM(7,9)/10, false) | |
1565 | TARGET.Parent:FindFirstChild("LeftUpperArm").LeftShoulder:remove() | |
1566 | BLADE = false | |
1567 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1568 | Swait() | |
1569 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.25) * ANGLES(RAD(-25), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1570 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1571 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1572 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1573 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,1.5,0), 1 / Animation_Speed) | |
1574 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1575 | end | |
1576 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1577 | Swait() | |
1578 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1579 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1580 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1581 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1582 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1583 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1584 | end | |
1585 | GORED = true | |
1586 | TARGET.Parent:BreakJoints() | |
1587 | R15Ragdoll(TARGET.Parent) | |
1588 | if ROOT.Name ~= "Torso" then | |
1589 | ROOT:remove() | |
1590 | end | |
1591 | local bv = Instance.new("BodyVelocity",TARGET) | |
1592 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1593 | bv.velocity = TARGET.CFrame.lookVector*75 | |
1594 | Debris:AddItem(bv,0.05) | |
1595 | CreateSound(621557962, RightLeg, 1, MRANDOM(7,9)/10, false) | |
1596 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1597 | Swait() | |
1598 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0.25) * ANGLES(RAD(-35), RAD(0), RAD(80)), 1 / Animation_Speed) | |
1599 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-30)), 1 / Animation_Speed) | |
1600 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(-32), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1601 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1602 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.6) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-65), RAD(0), RAD(0)) * CF(0,-0.3,0), 1 / Animation_Speed) | |
1603 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-45), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1604 | end | |
1605 | end | |
1606 | end | |
1607 | end | |
1608 | ATTACK = false | |
1609 | Rooted = false | |
1610 | end | |
1611 | ||
1612 | function Buzzsaw() | |
1613 | ATTACK = true | |
1614 | Rooted = false | |
1615 | local ARMSPEED = 0.1 | |
1616 | local TARGET = nil | |
1617 | local ROOT = nil | |
1618 | local HUMAN = nil | |
1619 | local DIST = 4 | |
1620 | local SAWBLADE = CreatePart(3, Weapon, "Neon", 0, 0.5, "Really red", "Part", VT(0,0,0),false) | |
1621 | local WELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, SAWBLADE, CF(0,-1,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1622 | local BLADE = true | |
1623 | CreateMesh("SpecialMesh", SAWBLADE, "FileMesh", "74322089", "", VT(2,2,1), VT(0,0,0)) | |
1624 | coroutine.resume(coroutine.create(function() | |
1625 | repeat | |
1626 | Swait() | |
1627 | WELD.C1 = WELD.C1 * ANGLES(RAD(0), RAD(0), RAD(25)) | |
1628 | until BLADE == false | |
1629 | SAWBLADE:remove() | |
1630 | end)) | |
1631 | CreateSound(1165167936, SAWBLADE, 2, 1, true) | |
1632 | for i=0, 1, 0.1 / Animation_Speed do | |
1633 | Swait() | |
1634 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1635 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1636 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(175), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1637 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1638 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1639 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1640 | end | |
1641 | for i=0, 2, 0.1 / Animation_Speed do | |
1642 | Swait() | |
1643 | local CHILDREN = workspace:GetDescendants() | |
1644 | for index, CHILD in pairs(CHILDREN) do | |
1645 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1646 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1647 | if HUM then | |
1648 | local TORSO = CHILD:FindFirstChild("HumanoidRootPart") or CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1649 | if TORSO and HUM.Health > 0 then | |
1650 | if (TORSO.Position - RightArm.Position).Magnitude <= DIST then | |
1651 | DIST = (TORSO.Position - RightArm.Position).Magnitude | |
1652 | ROOT = TORSO | |
1653 | HUMAN = HUM | |
1654 | TARGET = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1655 | end | |
1656 | end | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | if ROOT then | |
1661 | break | |
1662 | end | |
1663 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1664 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1665 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.55, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
1666 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1667 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1668 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1669 | end | |
1670 | if ROOT then | |
1671 | ARMSPEED = 0.03 | |
1672 | Rooted = true | |
1673 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2.5) | |
1674 | repeat | |
1675 | HUMAN.Health = HUMAN.Health - 0.5 | |
1676 | Swait() | |
1677 | ROOT.Anchored = true | |
1678 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(1, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1679 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1680 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, ARMSPEED / Animation_Speed) | |
1681 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1682 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1683 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1684 | until RightArm.Position.Y < Torso.Position.Y-0.15 or HUMAN.Health == 0 | |
1685 | ROOT.Anchored = false | |
1686 | if HUMAN.Health == 0 then | |
1687 | if ROOT.Name ~= "Torso" then | |
1688 | ROOT:remove() | |
1689 | end | |
1690 | if TARGET.Name == "Torso" then | |
1691 | Ragdoll(HUMAN.Parent,Torso,true) | |
1692 | elseif TARGET.Name == "UpperTorso" then | |
1693 | R15Ragdoll(HUMAN.Parent,true) | |
1694 | end | |
1695 | end | |
1696 | end | |
1697 | BLADE = false | |
1698 | ATTACK = false | |
1699 | Rooted = false | |
1700 | end | |
1701 | ||
1702 | function ReeeEEEEEE() | |
1703 | ATTACK = true | |
1704 | Rooted = false | |
1705 | Speed = 12 | |
1706 | local FX = CreateSound(198165368, Head, 4, 0.5, false) | |
1707 | repeat | |
1708 | Swait() | |
1709 | FX.Parent = Head | |
1710 | local CHILDREN = workspace:GetDescendants() | |
1711 | for index, CHILD in pairs(CHILDREN) do | |
1712 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1713 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1714 | if HUM then | |
1715 | local TORSO = CHILD:FindFirstChild("Head") | |
1716 | if TORSO then | |
1717 | if (TORSO.Position - Head.Position).Magnitude <= 25 then | |
1718 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1719 | TORSO:remove() | |
1720 | if CHILD:FindFirstChild("Torso") then | |
1721 | Ragdoll(CHILD,Torso,true) | |
1722 | elseif CHILD:FindFirstChild("UpperTorso") then | |
1723 | R15Ragdoll(CHILD,true) | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | end | |
1729 | end | |
1730 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1731 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1732 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1733 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1734 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1735 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1736 | until FX.Playing == false | |
1737 | Speed = 16 | |
1738 | ATTACK = false | |
1739 | Rooted = false | |
1740 | end | |
1741 | ||
1742 | function Needle() | |
1743 | ATTACK = true | |
1744 | Rooted = true | |
1745 | local GYRO = IT("BodyGyro",RootPart) | |
1746 | GYRO.D = 2 | |
1747 | GYRO.P = 2000 | |
1748 | GYRO.MaxTorque = VT(0,4000000,0) | |
1749 | local NEEDGYRO = true | |
1750 | coroutine.resume(coroutine.create(function() | |
1751 | repeat | |
1752 | Swait() | |
1753 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1754 | until NEEDGYRO == false | |
1755 | GYRO:Remove() | |
1756 | end)) | |
1757 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1758 | Swait() | |
1759 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1760 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1761 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1762 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1763 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1764 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1765 | end | |
1766 | for i=0, 1, 0.1 / Animation_Speed do | |
1767 | Swait() | |
1768 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1769 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) | |
1770 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1771 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1772 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1773 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1774 | end | |
1775 | local HIT,POS = CastProperRay(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p,300,Character) | |
1776 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 2}) | |
1777 | NEEDGYRO = false | |
1778 | if HIT then | |
1779 | local NEEDLE = IT("Model",Effects) | |
1780 | local BASE = CreatePart(3, NEEDLE, "Glass", 0, 0.5, "Pearl", "Part", VT(0.3,0.6,0.3), false) | |
1781 | MakeForm(BASE,"Cyl") | |
1782 | BASE.CFrame = CF(POS,RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(90), RAD(0), RAD(0))*CF(0,-0.35,0) | |
1783 | weldBetween(BASE,HIT) | |
1784 | local FLUID = CreatePart(3, NEEDLE, "Neon", 0, 0, "Lime green", "Part", VT(0.28,0.58,0.28), false) | |
1785 | MakeForm(FLUID,"Cyl") | |
1786 | FLUID.CFrame = BASE.CFrame | |
1787 | weldBetween(BASE,FLUID) | |
1788 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0,0.2,0), false) | |
1789 | PART.CFrame = BASE.CFrame*CF(0,0.4,0) | |
1790 | weldBetween(BASE,PART) | |
1791 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.1,0.1,0.1), false) | |
1792 | PART.CFrame = BASE.CFrame*CF(0,-0.35,0) | |
1793 | weldBetween(BASE,PART) | |
1794 | local PART = CreatePart(3, NEEDLE, "Metal", 0, 0, "Pearl", "Part", VT(0.2,0.1,0.2), false) | |
1795 | PART.CFrame = BASE.CFrame*CF(0,-0.4,0) | |
1796 | weldBetween(BASE,PART) | |
1797 | Debris:AddItem(NEEDLE,7) | |
1798 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1799 | local HUMAN = HIT.Parent:FindFirstChildOfClass("Humanoid") | |
1800 | coroutine.resume(coroutine.create(function() | |
1801 | for i = 1, 500 do | |
1802 | HUMAN.Health = HUMAN.Health - MRANDOM(1,6)/5 | |
1803 | if HUMAN.Health == 0 then | |
1804 | break | |
1805 | end | |
1806 | Swait(2) | |
1807 | end | |
1808 | if HUMAN.Health == 0 then | |
1809 | local CHILD = HUMAN.Parent | |
1810 | if CHILD:FindFirstChild("Torso") then | |
1811 | CHILD:FindFirstChild("Torso").CFrame = CHILD:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0)) | |
1812 | Ragdoll(CHILD,Torso,true) | |
1813 | elseif CHILD:FindFirstChild("UpperTorso") then | |
1814 | R15Ragdoll(CHILD,true) | |
1815 | end | |
1816 | end | |
1817 | end)) | |
1818 | end | |
1819 | end | |
1820 | for i=0, 1, 0.1 / Animation_Speed do | |
1821 | Swait() | |
1822 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1823 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(15), RAD(-45)), 1 / Animation_Speed) | |
1824 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1825 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(25), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1826 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1827 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, 0) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1828 | end | |
1829 | ATTACK = false | |
1830 | Rooted = false | |
1831 | end | |
1832 | ||
1833 | function ScrewThis() | |
1834 | ATTACK = true | |
1835 | Rooted = true | |
1836 | CreateSound("1238240145", Character, 6, 0.9) | |
1837 | CreateSound(363808674, Character, 6, 1, false) | |
1838 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1839 | Swait() | |
1840 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1841 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1842 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1843 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1844 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1845 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1846 | end | |
1847 | CreateSound(363808674, Character, 6, 1, false) | |
1848 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1849 | Swait() | |
1850 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1856 | end | |
1857 | CreateSound(363808674, Character, 6, 1, false) | |
1858 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1859 | Swait() | |
1860 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1861 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1862 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1863 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1864 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1865 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1866 | end | |
1867 | CreateSound(363808674, Character, 6, 1, false) | |
1868 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1869 | Swait() | |
1870 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1871 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1872 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1873 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1874 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1875 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1876 | end | |
1877 | CreateSound(363808674, Character, 6, 1, false) | |
1878 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1879 | Swait() | |
1880 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1881 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1882 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1883 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1884 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1885 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1886 | end | |
1887 | CreateSound(363808674, Character, 6, 1, false) | |
1888 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1889 | Swait() | |
1890 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1891 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed) | |
1892 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1893 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1894 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1895 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1896 | end | |
1897 | ATTACK = false | |
1898 | Rooted = false | |
1899 | end | |
1900 | ||
1901 | --//=================================\\ | |
1902 | --|| ASSIGN THINGS TO KEYS | |
1903 | --\\=================================// | |
1904 | ||
1905 | function MouseDown(Mouse) | |
1906 | if ATTACK == false then | |
1907 | end | |
1908 | end | |
1909 | ||
1910 | function MouseUp(Mouse) | |
1911 | HOLD = false | |
1912 | end | |
1913 | ||
1914 | function KeyDown(Key) | |
1915 | KEYHOLD = true | |
1916 | if Key == "z" and ATTACK == false then | |
1917 | SuperStomp() | |
1918 | end | |
1919 | ||
1920 | if Key == "q" and ATTACK == false then | |
1921 | Warp() | |
1922 | end | |
1923 | ||
1924 | if Key == "b" and ATTACK == false then | |
1925 | Dash() | |
1926 | end | |
1927 | ||
1928 | if Key == "f" and ATTACK == false then | |
1929 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 10}) | |
1930 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1931 | ApplyAoE3(HITPOS,9999999,9999999,9999999,9999999,false) | |
1932 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1933 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1934 | end | |
1935 | ||
1936 | if Key == "c" and ATTACK == false then | |
1937 | LimbRip() | |
1938 | end | |
1939 | ||
1940 | if Key == "v" and ATTACK == false then | |
1941 | Buzzsaw() | |
1942 | end | |
1943 | ||
1944 | if Key == "e" and ATTACK == false then | |
1945 | ReeeEEEEEE() | |
1946 | end | |
1947 | ||
1948 | if Key == "x" and ATTACK == false then | |
1949 | Needle() | |
1950 | end | |
1951 | ||
1952 | if Key == "t" and ATTACK == false then | |
1953 | ScrewThis() | |
1954 | end | |
1955 | end | |
1956 | ||
1957 | function KeyUp(Key) | |
1958 | KEYHOLD = false | |
1959 | end | |
1960 | ||
1961 | Mouse.Button1Down:connect(function(NEWKEY) | |
1962 | MouseDown(NEWKEY) | |
1963 | end) | |
1964 | Mouse.Button1Up:connect(function(NEWKEY) | |
1965 | MouseUp(NEWKEY) | |
1966 | end) | |
1967 | Mouse.KeyDown:connect(function(NEWKEY) | |
1968 | KeyDown(NEWKEY) | |
1969 | end) | |
1970 | Mouse.KeyUp:connect(function(NEWKEY) | |
1971 | KeyUp(NEWKEY) | |
1972 | end) | |
1973 | ||
1974 | --//=================================\\ | |
1975 | --\\=================================// | |
1976 | ||
1977 | function AntiTimeStop() | |
1978 | for _, c in pairs(Character:GetChildren()) do | |
1979 | if c:IsA("BasePart") then | |
1980 | c.Anchored = false | |
1981 | end | |
1982 | end | |
1983 | for _, c in pairs(Weapon:GetChildren()) do | |
1984 | if c:IsA("BasePart") then | |
1985 | c.Anchored = false | |
1986 | end | |
1987 | end | |
1988 | end | |
1989 | ||
1990 | --//=================================\\ | |
1991 | --|| WRAP THE WHOLE SCRIPT UP | |
1992 | --\\=================================// | |
1993 | ||
1994 | Humanoid.Changed:connect(function(Jump) | |
1995 | if Jump == "Jump" and (Disable_Jump == true) then | |
1996 | Humanoid.Jump = false | |
1997 | end | |
1998 | end) | |
1999 | ||
2000 | local sick = Instance.new("Sound",Torso) | |
2001 | ||
2002 | while true do | |
2003 | Swait() | |
2004 | ANIMATE.Parent = nil | |
2005 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2006 | Humanoid = IT("Humanoid",Character) | |
2007 | end | |
2008 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2009 | v:Stop(); | |
2010 | end | |
2011 | SINE = SINE + CHANGE | |
2012 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2013 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2014 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2015 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2016 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2017 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2018 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2019 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * 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) | |
2020 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * 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) | |
2021 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2022 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2023 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2024 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2025 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2026 | end | |
2027 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2028 | ANIM = "Jump" | |
2029 | if ATTACK == false then | |
2030 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2031 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2032 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2033 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2034 | 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) | |
2035 | 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) | |
2036 | end | |
2037 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2038 | ANIM = "Fall" | |
2039 | if ATTACK == false then | |
2040 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2041 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2042 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2043 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2044 | 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) | |
2045 | 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) | |
2046 | end | |
2047 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2048 | ANIM = "Idle" | |
2049 | if ATTACK == false then | |
2050 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2051 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.15*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(15 - 3)), 1 / Animation_Speed) | |
2052 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.7*SIZE, -0.5*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2053 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.3*SIZE) * ANGLES(RAD(9.71), RAD(3.14 - -2.5 * SIN(SINE / 12)), RAD(0.2 - -2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2054 | 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) | |
2055 | 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) | |
2056 | end | |
2057 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2058 | ANIM = "Walk" | |
2059 | if ATTACK == false then | |
2060 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2061 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.15*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2062 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.9*SIZE, 0.5*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2063 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.9*SIZE, 0.25*SIZE + 0.05*SIZE * SIN(SINE / 12), -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2064 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2065 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2066 | end | |
2067 | end | |
2068 | sick.SoundId = "rbxassetid://1873219898" | |
2069 | sick.Looped = true | |
2070 | sick.Pitch = 1.2 | |
2071 | sick.Volume = 5 | |
2072 | sick.Playing = true | |
2073 | sick.Parent = Effects | |
2074 | AntiTimeStop() | |
2075 | if Rooted == false then | |
2076 | Disable_Jump = false | |
2077 | Humanoid.WalkSpeed = Speed | |
2078 | elseif Rooted == true then | |
2079 | Disable_Jump = true | |
2080 | Humanoid.WalkSpeed = 0 | |
2081 | end | |
2082 | if Character:FindFirstChildOfClass("Accessory") then | |
2083 | Character:FindFirstChildOfClass("Accessory"):remove() | |
2084 | elseif Character:FindFirstChildOfClass("Hat") then | |
2085 | Character:FindFirstChildOfClass("Hat"):remove() | |
2086 | end | |
2087 | for _, c in pairs(Character:GetChildren()) do | |
2088 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
2089 | c.Color = C3(21,71,109) | |
2090 | c.Material = "Neon" | |
2091 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2092 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2093 | end | |
2094 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2095 | c:remove() | |
2096 | end | |
2097 | end | |
2098 | if Head:FindFirstChild("face") then | |
2099 | Head.face.Texture = "rbxassetid://900134257" | |
2100 | end | |
2101 | end | |
2102 | ||
2103 | - | Head.face.Texture = "rbxassetid://403870689" |
2103 | + | |
2104 | --\\=================================// | |
2105 | ||
2106 | --//====================================================\\-- | |
2107 | --|| END OF SCRIPT | |
2108 | --\\====================================================//-- |