SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | ||
10 | ||
11 | Player = game:GetService("Players").LocalPlayer | |
12 | PlayerGui = Player.PlayerGui | |
13 | Cam = workspace.CurrentCamera | |
14 | Backpack = Player.Backpack | |
15 | Character = Player.Character | |
16 | Humanoid = Character.Humanoid | |
17 | Mouse = Player:GetMouse() | |
18 | RootPart = Character["HumanoidRootPart"] | |
19 | Torso = Character["Torso"] | |
20 | Head = Character["Head"] | |
21 | RightArm = Character["Right Arm"] | |
22 | LeftArm = Character["Left Arm"] | |
23 | RightLeg = Character["Right Leg"] | |
24 | LeftLeg = Character["Left Leg"] | |
25 | RootJoint = RootPart["RootJoint"] | |
26 | Neck = Torso["Neck"] | |
27 | RightShoulder = Torso["Right Shoulder"] | |
28 | LeftShoulder = Torso["Left Shoulder"] | |
29 | RightHip = Torso["Right Hip"] | |
30 | LeftHip = Torso["Left Hip"] | |
31 | local sick = Instance.new("Sound",Character) | |
32 | - | sick.SoundId = "rbxassetid://522909160" |
32 | + | sick.SoundId = "rbxassetid://676779397" |
33 | sick.Looped = true | |
34 | sick.Pitch = 1 | |
35 | sick.Volume = 2 | |
36 | sick:Play() | |
37 | Humanoid.DisplayDistanceType = "None" | |
38 | script.Name = "CREEP" | |
39 | ||
40 | IT = Instance.new | |
41 | CF = CFrame.new | |
42 | VT = Vector3.new | |
43 | RAD = math.rad | |
44 | C3 = Color3.new | |
45 | UD2 = UDim2.new | |
46 | BRICKC = BrickColor.new | |
47 | ANGLES = CFrame.Angles | |
48 | EULER = CFrame.fromEulerAnglesXYZ | |
49 | COS = math.cos | |
50 | ACOS = math.acos | |
51 | SIN = math.sin | |
52 | ASIN = math.asin | |
53 | ABS = math.abs | |
54 | MRANDOM = math.random | |
55 | FLOOR = math.floor | |
56 | ||
57 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
58 | local NEWMESH = IT(MESH) | |
59 | if MESH == "SpecialMesh" then | |
60 | NEWMESH.MeshType = MESHTYPE | |
61 | if MESHID ~= "nil" and MESHID ~= "" then | |
62 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
63 | end | |
64 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
65 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
66 | end | |
67 | end | |
68 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
69 | NEWMESH.Scale = SCALE | |
70 | NEWMESH.Parent = PARENT | |
71 | return NEWMESH | |
72 | end | |
73 | ||
74 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
75 | local NEWPART = IT("Part") | |
76 | NEWPART.formFactor = FORMFACTOR | |
77 | NEWPART.Reflectance = REFLECTANCE | |
78 | NEWPART.Transparency = TRANSPARENCY | |
79 | NEWPART.CanCollide = false | |
80 | NEWPART.Locked = true | |
81 | NEWPART.Anchored = true | |
82 | if ANCHOR == false then | |
83 | NEWPART.Anchored = false | |
84 | end | |
85 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
86 | NEWPART.Name = NAME | |
87 | NEWPART.Size = SIZE | |
88 | NEWPART.Position = Torso.Position | |
89 | NEWPART.Material = MATERIAL | |
90 | NEWPART:BreakJoints() | |
91 | NEWPART.Parent = PARENT | |
92 | return NEWPART | |
93 | end | |
94 | ||
95 | --//=================================\\ | |
96 | --|| CUSTOMIZATION | |
97 | --\\=================================// | |
98 | ||
99 | Player_Size = 2 --Size of the player. | |
100 | Animation_Speed = 3 | |
101 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
102 | ||
103 | local Speed = 16 | |
104 | local Effects2 = {} | |
105 | ||
106 | --//=================================\\ | |
107 | --|| END OF CUSTOMIZATION | |
108 | --\\=================================// | |
109 | ||
110 | local function weldBetween(a, b) | |
111 | local weldd = Instance.new("ManualWeld") | |
112 | weldd.Part0 = a | |
113 | weldd.Part1 = b | |
114 | weldd.C0 = CFrame.new() | |
115 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
116 | weldd.Parent = a | |
117 | return weldd | |
118 | end | |
119 | ||
120 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
121 | if TYPE == "Gem" then | |
122 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
123 | acs.Anchored = false | |
124 | acs.CanCollide = false | |
125 | acs.CFrame = PART.CFrame | |
126 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
127 | weldBetween(PART,acs) | |
128 | elseif TYPE == "Skull" then | |
129 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
130 | acs.Anchored = false | |
131 | acs.CanCollide = false | |
132 | acs.CFrame = PART.CFrame | |
133 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
134 | weldBetween(PART,acs) | |
135 | elseif TYPE == "Eye" then | |
136 | local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
137 | acs.Anchored = false | |
138 | acs.CanCollide = false | |
139 | acs.CFrame = PART.CFrame | |
140 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
141 | weldBetween(PART,acs) | |
142 | end | |
143 | end | |
144 | ||
145 | --//=================================\\ | |
146 | --|| USEFUL VALUES | |
147 | --\\=================================// | |
148 | ||
149 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
150 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
151 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
152 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
153 | local CHANGEDEFENSE = 0 | |
154 | local CHANGEDAMAGE = 0 | |
155 | local CHANGEMOVEMENT = 0 | |
156 | local ANIM = "Idle" | |
157 | local ATTACK = false | |
158 | local EQUIPPED = false | |
159 | local HOLD = false | |
160 | local COMBO = 1 | |
161 | local Rooted = false | |
162 | local SINE = 0 | |
163 | local KEYHOLD = false | |
164 | local CHANGE = 2 / Animation_Speed | |
165 | local WALKINGANIM = false | |
166 | local WALK = 0 | |
167 | local VALUE1 = false | |
168 | local VALUE2 = false | |
169 | local ROBLOXIDLEANIMATION = IT("Animation") | |
170 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
171 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
172 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
173 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
174 | WEAPONGUI.Name = "Weapon GUI" | |
175 | local Weapon = IT("Model") | |
176 | Weapon.Name = "Adds" | |
177 | local Effects = IT("Folder", Weapon) | |
178 | Effects.Name = "Effects" | |
179 | local ANIMATOR = Humanoid.Animator | |
180 | local ANIMATE = Character.Animate | |
181 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
182 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
183 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
184 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
185 | local UNANCHOR = true | |
186 | local TAUNTS = {"368794227","368794903","368794985"} | |
187 | ||
188 | local SKILLTEXTCOLOR = C3(0,0,0) | |
189 | ||
190 | --//=================================\\ | |
191 | --\\=================================// | |
192 | ||
193 | ||
194 | --//=================================\\ | |
195 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
196 | --\\=================================// | |
197 | ||
198 | ArtificialHB = Instance.new("BindableEvent", script) | |
199 | ArtificialHB.Name = "ArtificialHB" | |
200 | ||
201 | script:WaitForChild("ArtificialHB") | |
202 | ||
203 | frame = Frame_Speed | |
204 | tf = 0 | |
205 | allowframeloss = false | |
206 | tossremainder = false | |
207 | lastframe = tick() | |
208 | script.ArtificialHB:Fire() | |
209 | ||
210 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
211 | tf = tf + s | |
212 | if tf >= frame then | |
213 | if allowframeloss then | |
214 | script.ArtificialHB:Fire() | |
215 | lastframe = tick() | |
216 | else | |
217 | for i = 1, math.floor(tf / frame) do | |
218 | script.ArtificialHB:Fire() | |
219 | end | |
220 | lastframe = tick() | |
221 | end | |
222 | if tossremainder then | |
223 | tf = 0 | |
224 | else | |
225 | tf = tf - frame * math.floor(tf / frame) | |
226 | end | |
227 | end | |
228 | end) | |
229 | ||
230 | --//=================================\\ | |
231 | --\\=================================// | |
232 | ||
233 | ||
234 | ||
235 | ||
236 | ||
237 | --//=================================\\ | |
238 | --|| SOME FUNCTIONS | |
239 | --\\=================================// | |
240 | ||
241 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
242 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
243 | end | |
244 | ||
245 | function PositiveAngle(NUMBER) | |
246 | if NUMBER >= 0 then | |
247 | NUMBER = 0 | |
248 | end | |
249 | return NUMBER | |
250 | end | |
251 | ||
252 | function NegativeAngle(NUMBER) | |
253 | if NUMBER <= 0 then | |
254 | NUMBER = 0 | |
255 | end | |
256 | return NUMBER | |
257 | end | |
258 | ||
259 | function Swait(NUMBER) | |
260 | if NUMBER == 0 or NUMBER == nil then | |
261 | ArtificialHB.Event:wait() | |
262 | else | |
263 | for i = 1, NUMBER do | |
264 | ArtificialHB.Event:wait() | |
265 | end | |
266 | end | |
267 | end | |
268 | ||
269 | function QuaternionFromCFrame(cf) | |
270 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
271 | local trace = m00 + m11 + m22 | |
272 | if trace > 0 then | |
273 | local s = math.sqrt(1 + trace) | |
274 | local recip = 0.5 / s | |
275 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
276 | else | |
277 | local i = 0 | |
278 | if m11 > m00 then | |
279 | i = 1 | |
280 | end | |
281 | if m22 > (i == 0 and m00 or m11) then | |
282 | i = 2 | |
283 | end | |
284 | if i == 0 then | |
285 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
286 | local recip = 0.5 / s | |
287 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
288 | elseif i == 1 then | |
289 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
290 | local recip = 0.5 / s | |
291 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
292 | elseif i == 2 then | |
293 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
294 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
295 | end | |
296 | end | |
297 | end | |
298 | ||
299 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
300 | local xs, ys, zs = x + x, y + y, z + z | |
301 | local wx, wy, wz = w * xs, w * ys, w * zs | |
302 | local xx = x * xs | |
303 | local xy = x * ys | |
304 | local xz = x * zs | |
305 | local yy = y * ys | |
306 | local yz = y * zs | |
307 | local zz = z * zs | |
308 | 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)) | |
309 | end | |
310 | ||
311 | function QuaternionSlerp(a, b, t) | |
312 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
313 | local startInterp, finishInterp; | |
314 | if cosTheta >= 0.0001 then | |
315 | if (1 - cosTheta) > 0.0001 then | |
316 | local theta = ACOS(cosTheta) | |
317 | local invSinTheta = 1 / SIN(theta) | |
318 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
319 | finishInterp = SIN(t * theta) * invSinTheta | |
320 | else | |
321 | startInterp = 1 - t | |
322 | finishInterp = t | |
323 | end | |
324 | else | |
325 | if (1 + cosTheta) > 0.0001 then | |
326 | local theta = ACOS(-cosTheta) | |
327 | local invSinTheta = 1 / SIN(theta) | |
328 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
329 | finishInterp = SIN(t * theta) * invSinTheta | |
330 | else | |
331 | startInterp = t - 1 | |
332 | finishInterp = t | |
333 | end | |
334 | end | |
335 | 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 | |
336 | end | |
337 | ||
338 | function Clerp(a, b, t) | |
339 | local qa = {QuaternionFromCFrame(a)} | |
340 | local qb = {QuaternionFromCFrame(b)} | |
341 | local ax, ay, az = a.x, a.y, a.z | |
342 | local bx, by, bz = b.x, b.y, b.z | |
343 | local _t = 1 - t | |
344 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
345 | end | |
346 | ||
347 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
348 | local frame = IT("Frame") | |
349 | frame.BackgroundTransparency = TRANSPARENCY | |
350 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
351 | frame.Position = POSITION | |
352 | frame.Size = SIZE | |
353 | frame.BackgroundColor3 = COLOR | |
354 | frame.BorderColor3 = BORDERCOLOR | |
355 | frame.Name = NAME | |
356 | frame.Parent = PARENT | |
357 | return frame | |
358 | end | |
359 | ||
360 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
361 | local label = IT("TextLabel") | |
362 | label.BackgroundTransparency = 1 | |
363 | label.Size = UD2(1, 0, 1, 0) | |
364 | label.Position = UD2(0, 0, 0, 0) | |
365 | label.TextColor3 = TEXTCOLOR | |
366 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
367 | label.TextTransparency = TRANSPARENCY | |
368 | label.FontSize = TEXTFONTSIZE | |
369 | label.Font = TEXTFONT | |
370 | label.BorderSizePixel = BORDERSIZEPIXEL | |
371 | label.TextScaled = false | |
372 | label.Text = TEXT | |
373 | label.Name = NAME | |
374 | label.Parent = PARENT | |
375 | return label | |
376 | end | |
377 | ||
378 | function NoOutlines(PART) | |
379 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
380 | end | |
381 | ||
382 | ||
383 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
384 | local NEWWELD = IT(TYPE) | |
385 | NEWWELD.Part0 = PART0 | |
386 | NEWWELD.Part1 = PART1 | |
387 | NEWWELD.C0 = C0 | |
388 | NEWWELD.C1 = C1 | |
389 | NEWWELD.Parent = PARENT | |
390 | return NEWWELD | |
391 | end | |
392 | ||
393 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
394 | local NEWSOUND = nil | |
395 | coroutine.resume(coroutine.create(function() | |
396 | NEWSOUND = IT("Sound", PARENT) | |
397 | NEWSOUND.Volume = VOLUME | |
398 | NEWSOUND.Pitch = PITCH | |
399 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
400 | Swait() | |
401 | NEWSOUND:play() | |
402 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
403 | end)) | |
404 | return NEWSOUND | |
405 | end | |
406 | ||
407 | function CFrameFromTopBack(at, top, back) | |
408 | local right = top:Cross(back) | |
409 | 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) | |
410 | end | |
411 | ||
412 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
413 | local wave = CreatePart(3, Effects, "Neon", 0, 0.9, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
414 | local mesh = IT("SpecialMesh",wave) | |
415 | mesh.MeshType = "Sphere" | |
416 | mesh.Scale = SIZE | |
417 | mesh.Offset = VT(0,0,0) | |
418 | wave.CFrame = CFRAME | |
419 | coroutine.resume(coroutine.create(function(PART) | |
420 | for i = 1, WAIT do | |
421 | Swait() | |
422 | mesh.Scale = mesh.Scale + GROW | |
423 | wave.Transparency = wave.Transparency + (0.1/WAIT) | |
424 | if wave.Transparency > 0.99 then | |
425 | wave:remove() | |
426 | end | |
427 | end | |
428 | end)) | |
429 | end | |
430 | ||
431 | function MakeForm(PART,TYPE) | |
432 | if TYPE == "Cyl" then | |
433 | local MSH = IT("CylinderMesh",PART) | |
434 | elseif TYPE == "Ball" then | |
435 | local MSH = IT("SpecialMesh",PART) | |
436 | MSH.MeshType = "Sphere" | |
437 | elseif TYPE == "Wedge" then | |
438 | local MSH = IT("SpecialMesh",PART) | |
439 | MSH.MeshType = "Wedge" | |
440 | end | |
441 | end | |
442 | ||
443 | function CheckTableForString(Table, String) | |
444 | for i, v in pairs(Table) do | |
445 | if string.find(string.lower(String), string.lower(v)) then | |
446 | return true | |
447 | end | |
448 | end | |
449 | return false | |
450 | end | |
451 | ||
452 | function CheckIntangible(Hit) | |
453 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
454 | if Hit and Hit.Parent then | |
455 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
456 | return true | |
457 | end | |
458 | end | |
459 | return false | |
460 | end | |
461 | ||
462 | Debris = game:GetService("Debris") | |
463 | ||
464 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
465 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
466 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
467 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
468 | if RayHit and CheckIntangible(RayHit) then | |
469 | if DelayIfHit then | |
470 | wait() | |
471 | end | |
472 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
473 | end | |
474 | return RayHit, RayPos, RayNormal | |
475 | end | |
476 | ||
477 | function turnto(position) | |
478 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
479 | end | |
480 | ||
481 | --//=================================\\ | |
482 | --|| SPEECH | |
483 | --\\=================================// | |
484 | ||
485 | function chatfunc(text,waitt) | |
486 | local chat = coroutine.wrap(function() | |
487 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
488 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
489 | end | |
490 | local naeeym2 = Instance.new("BillboardGui",Character) | |
491 | naeeym2.Size = UDim2.new(0,100,0,40) | |
492 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
493 | naeeym2.Adornee = Character.Head | |
494 | naeeym2.Name = "TalkingBillBoard" | |
495 | naeeym2.AlwaysOnTop = true | |
496 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
497 | tecks2.BackgroundTransparency = 1 | |
498 | tecks2.BorderSizePixel = 0 | |
499 | tecks2.Text = "" | |
500 | tecks2.Font = "SciFi" | |
501 | tecks2.TextSize = 30 | |
502 | tecks2.TextStrokeTransparency = 1 | |
503 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
504 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
505 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
506 | for i = 1,string.len(text),1 do | |
507 | tecks2.Text = string.sub(text,1,i) | |
508 | Swait() | |
509 | end | |
510 | wait(waitt) | |
511 | coroutine.resume(coroutine.create(function() | |
512 | for i = 1, 10 do | |
513 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
514 | Swait() | |
515 | end | |
516 | naeeym2:Destroy() | |
517 | end)) | |
518 | end) | |
519 | chat() | |
520 | end | |
521 | ||
522 | --//=================================\\ | |
523 | --|| WEAPON CREATION | |
524 | --\\=================================// | |
525 | ||
526 | if Player_Size ~= 1 then | |
527 | RootPart.Size = RootPart.Size * Player_Size | |
528 | Torso.Size = Torso.Size * Player_Size | |
529 | Head.Size = Head.Size * Player_Size | |
530 | RightArm.Size = RightArm.Size * Player_Size | |
531 | LeftArm.Size = LeftArm.Size * Player_Size | |
532 | RightLeg.Size = RightLeg.Size * Player_Size | |
533 | LeftLeg.Size = LeftLeg.Size * Player_Size | |
534 | RootJoint.Parent = RootPart | |
535 | Neck.Parent = Torso | |
536 | RightShoulder.Parent = Torso | |
537 | LeftShoulder.Parent = Torso | |
538 | RightHip.Parent = Torso | |
539 | LeftHip.Parent = Torso | |
540 | ||
541 | RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
542 | RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
543 | Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
544 | Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
545 | RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0 | |
546 | LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0 | |
547 | --if Disable_Moving_Arms == false then | |
548 | RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
549 | LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5) | |
550 | --else | |
551 | --RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
552 | --LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) | |
553 | --end | |
554 | RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
555 | LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
556 | RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
557 | LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
558 | end | |
559 | ||
560 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
561 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
562 | MakeForm(part,"Ball") | |
563 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
564 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
565 | MakeForm(part,"Ball") | |
566 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
567 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
568 | MakeForm(part,"Ball") | |
569 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
570 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
571 | MakeForm(part,"Ball") | |
572 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
573 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
574 | MakeForm(part,"Ball") | |
575 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
576 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, 0, 0)) | |
577 | MakeForm(part,"Ball") | |
578 | local CLAW1 = part | |
579 | CLAW1.CanCollide = true | |
580 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
581 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(-0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
582 | MakeForm(part,"Ball") | |
583 | ||
584 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
585 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
586 | MakeForm(part,"Ball") | |
587 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
588 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
589 | MakeForm(part,"Ball") | |
590 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
591 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.7,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
592 | MakeForm(part,"Ball") | |
593 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
594 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
595 | MakeForm(part,"Ball") | |
596 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
597 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
598 | MakeForm(part,"Ball") | |
599 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.2,1,0.2)*2,false) | |
600 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(-0.44,-3.2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
601 | MakeForm(part,"Ball") | |
602 | local CLAW2 = part | |
603 | CLAW2.CanCollide = true | |
604 | local part = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Claw part", VT(0.3,1,0.3)*2,false) | |
605 | local weld = CreateWeldOrSnapOrMotor("Weld", part, LeftArm, part, CF(0.50,-2,-0.6) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
606 | MakeForm(part,"Ball") | |
607 | ||
608 | for _, c in pairs(Weapon:GetChildren()) do | |
609 | if c.ClassName == "Part" then | |
610 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
611 | end | |
612 | end | |
613 | ||
614 | Weapon.Parent = Character | |
615 | ||
616 | Humanoid.Died:connect(function() | |
617 | ATTACK = true | |
618 | end) | |
619 | ||
620 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
621 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
622 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
623 | ||
624 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shriek", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1") | |
625 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Devour", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2") | |
626 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Neck snap", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2") | |
627 | ||
628 | --//=================================\\ | |
629 | --|| DAMAGE FUNCTIONS | |
630 | --\\=================================// | |
631 | ||
632 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
633 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
634 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
635 | local BODYGYRO = IT("BodyGyro", STATPART) | |
636 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
637 | BODYPOSITION.P = 2000 | |
638 | BODYPOSITION.D = 100 | |
639 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
640 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
641 | game:GetService("Debris"):AddItem(STATPART ,5) | |
642 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
643 | BILLBOARDGUI.Adornee = STATPART | |
644 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
645 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
646 | BILLBOARDGUI.AlwaysOnTop = false | |
647 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
648 | TEXTLABEL.BackgroundTransparency = 1 | |
649 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
650 | TEXTLABEL.Text = TEXT | |
651 | TEXTLABEL.Font = "SciFi" | |
652 | TEXTLABEL.FontSize="Size42" | |
653 | TEXTLABEL.TextColor3 = COLOR | |
654 | TEXTLABEL.TextStrokeTransparency = 1 | |
655 | TEXTLABEL.TextScaled = true | |
656 | TEXTLABEL.TextWrapped = true | |
657 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
658 | if LABELTYPE == "Normal" then | |
659 | for i = 1, 30 do | |
660 | Swait() | |
661 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
662 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
663 | end | |
664 | elseif LABELTYPE == "Debuff" then | |
665 | for i = 1, 30 do | |
666 | Swait() | |
667 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
668 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
669 | end | |
670 | elseif LABELTYPE == "Shock" then | |
671 | local ORIGIN = STATPART.Position | |
672 | for i = 1, 30 do | |
673 | Swait() | |
674 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
675 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
676 | end | |
677 | end | |
678 | THEPART.Parent = nil | |
679 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
680 | end | |
681 | ||
682 | --//=================================\\ | |
683 | --|| DAMAGING | |
684 | --\\=================================// | |
685 | ||
686 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
687 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
688 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
689 | local dmg = math.random(min,max) | |
690 | if humanoid.Health > 0 then | |
691 | if beserk == true then | |
692 | humanoid.Health = 0 | |
693 | else | |
694 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], hit, 3, MRANDOM(7, 12) / 10) | |
695 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
696 | if math.random(1,100) < critrate+1 then | |
697 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
698 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
699 | else | |
700 | humanoid.Health = humanoid.Health - dmg | |
701 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
702 | end | |
703 | local defence = Instance.new("BoolValue",hit.Parent) | |
704 | defence.Name = ("HitBy"..Player.Name) | |
705 | game:GetService("Debris"):AddItem(defence, 0.5) | |
706 | end | |
707 | end | |
708 | end | |
709 | end | |
710 | ||
711 | function AoEStun(POS,RANGE,LAST) | |
712 | for i,v in ipairs(workspace:GetChildren()) do | |
713 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
714 | local body = v:GetChildren() | |
715 | for part = 1, #body do | |
716 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
717 | if(body[part].Position - POS).Magnitude < RANGE then | |
718 | if v.ClassName == "Model" then | |
719 | if v:FindFirstChild("Humanoid") then | |
720 | if v.Humanoid.Health ~= 0 then | |
721 | Stun(v.Humanoid,LAST) | |
722 | local defence = Instance.new("BoolValue",v) | |
723 | defence.Name = ("StunnedBy"..Player.Name) | |
724 | game:GetService("Debris"):AddItem(defence, 0.1) | |
725 | end | |
726 | end | |
727 | end | |
728 | end | |
729 | end | |
730 | end | |
731 | end | |
732 | end | |
733 | end | |
734 | ||
735 | function Stun(HUMANOID,LAST) | |
736 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
737 | HUMANOID.PlatformStand = true | |
738 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
739 | defence.Name = ("StunnedBy"..Player.Name) | |
740 | game:GetService("Debris"):AddItem(defence, LAST) | |
741 | if HUMANOID.Parent:FindFirstChild("Head") then | |
742 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
743 | end | |
744 | coroutine.resume(coroutine.create(function() | |
745 | Swait(LAST*50) | |
746 | HUMANOID.PlatformStand = false | |
747 | end)) | |
748 | end | |
749 | end | |
750 | ||
751 | --//=================================\\ | |
752 | --|| ATTACK FUNCTIONS AND STUFF | |
753 | --\\=================================// | |
754 | ||
755 | function AttackTemplate() | |
756 | ATTACK = true | |
757 | Rooted = false | |
758 | for i=0, 1, 0.1 / Animation_Speed do | |
759 | Swait() | |
760 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
761 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
762 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
763 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
764 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
765 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
766 | end | |
767 | ATTACK = false | |
768 | Rooted = false | |
769 | end | |
770 | ||
771 | function Strike() | |
772 | ATTACK = true | |
773 | Rooted = false | |
774 | CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 3, 2) | |
775 | for i=0, 0.5, 0.1 / Animation_Speed do | |
776 | Swait() | |
777 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
778 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
779 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
780 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
781 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.5 / Animation_Speed) | |
782 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.5 / Animation_Speed) | |
783 | end | |
784 | local HIT1 = CLAW1.Touched:Connect(function(hit) | |
785 | dealdamage(hit,25,65,6,false,5,2) | |
786 | end) | |
787 | local HIT2 = CLAW2.Touched:Connect(function(hit) | |
788 | dealdamage(hit,25,65,6,false,5,2) | |
789 | end) | |
790 | for i=0, 0.5, 0.1 / Animation_Speed do | |
791 | Swait() | |
792 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
793 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
794 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(75), RAD(-22)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
795 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, 0.5*2, -1) * ANGLES(RAD(55), RAD(-75), RAD(22)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
796 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-5)), 0.75 / Animation_Speed) | |
797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12*2), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-25)), 0.75 / Animation_Speed) | |
798 | end | |
799 | HIT1:disconnect() | |
800 | HIT2:disconnect() | |
801 | ATTACK = false | |
802 | Rooted = false | |
803 | end | |
804 | ||
805 | function Shriek() | |
806 | ATTACK = true | |
807 | Rooted = false | |
808 | for i=0, 2.5, 0.1 / Animation_Speed do | |
809 | Swait() | |
810 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
811 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
812 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
813 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
814 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
815 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
816 | end | |
817 | Rooted = true | |
818 | CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 1) | |
819 | for i=0, 4, 0.1 / Animation_Speed do | |
820 | Swait() | |
821 | AoEStun(Head.Position,40,12) | |
822 | MagicSphere(VT(0,0,0),5,Head.CFrame,"Pearl",VT(15,15,15)) | |
823 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.4*2, -0.65*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(55), RAD(0), RAD(0)), 0.7 / Animation_Speed) | |
824 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-35+MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,1))), 1) | |
825 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
826 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(-15), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
827 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(15)), 0.75 / Animation_Speed) | |
828 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-55)), 0.75 / Animation_Speed) | |
829 | end | |
830 | ATTACK = false | |
831 | Rooted = false | |
832 | end | |
833 | ||
834 | local asd = Instance.new("ParticleEmitter") | |
835 | asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0)) | |
836 | asd.LightEmission = .1 | |
837 | asd.Size = NumberSequence.new(0.2) | |
838 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
839 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)}) | |
840 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
841 | asd.Transparency = bbb | |
842 | asd.Size = aaa | |
843 | asd.ZOffset = .9 | |
844 | asd.Acceleration = Vector3.new(0, -15, 0) | |
845 | asd.LockedToPart = false | |
846 | asd.EmissionDirection = "Back" | |
847 | asd.Lifetime = NumberRange.new(1, 2) | |
848 | asd.Rotation = NumberRange.new(-100, 100) | |
849 | asd.RotSpeed = NumberRange.new(-100, 100) | |
850 | asd.Speed = NumberRange.new(2,6) | |
851 | asd.Enabled = false | |
852 | asd.VelocitySpread = 5 | |
853 | ||
854 | function getbloody(victim,amount) | |
855 | local PART = IT("Part",Effects) | |
856 | PART.Transparency = 1 | |
857 | PART.Size = victim.Size | |
858 | PART.Anchored = true | |
859 | PART.CanCollide = false | |
860 | PART.CFrame = CF(victim.Position,victim.CFrame*CF(0,1,0).p) | |
861 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
862 | Debris:AddItem(PART,5) | |
863 | local prtcl = asd:Clone() | |
864 | prtcl.Parent = PART | |
865 | prtcl:Emit(amount*10) | |
866 | end | |
867 | ||
868 | function Devour() | |
869 | ATTACK = true | |
870 | Rooted = false | |
871 | local TORS = nil | |
872 | local WELD = nil | |
873 | local HIT1 = CLAW1.Touched:Connect(function(hit) | |
874 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
875 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
876 | if TORS ~= nil then | |
877 | UNANCHOR = false | |
878 | Rooted = true | |
879 | RootPart.Anchored = true | |
880 | WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
881 | end | |
882 | end | |
883 | end) | |
884 | for i=1, 45 do | |
885 | Swait() | |
886 | if TORS ~= nil then | |
887 | break | |
888 | end | |
889 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
890 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
891 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
892 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
893 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
894 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
895 | end | |
896 | HIT1:disconnect() | |
897 | if TORS ~= nil then | |
898 | for i=0, 2, 0.1 / Animation_Speed do | |
899 | Swait() | |
900 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
901 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
902 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
903 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
904 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
905 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
906 | end | |
907 | for i=0, 0.3, 0.1 / Animation_Speed do | |
908 | Swait() | |
909 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed) | |
910 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed) | |
911 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.5) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
912 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed) | |
913 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed) | |
914 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed) | |
915 | end | |
916 | local HITPLAYERSOUNDS2 = {"356551938","264486467"} | |
917 | if TORS ~= nil then | |
918 | if TORS.Parent:FindFirstChild("Head") then | |
919 | CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], Head, 1, (math.random(8,12)/10)) | |
920 | CreateSound("230346233", Head, 10, (math.random(5,7)/10)) | |
921 | getbloody(TORS,4) | |
922 | TORS.Parent.Head:remove() | |
923 | TORS.Parent:remove() | |
924 | for i=0, 1, 0.1 / Animation_Speed do | |
925 | Swait() | |
926 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1.5 / Animation_Speed) | |
927 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1.15 / Animation_Speed) | |
928 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, -1, -1.2) * ANGLES(RAD(170), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
929 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15*2, -1, -1.2) * ANGLES(RAD(160), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1.15 / Animation_Speed) | |
930 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1.15 / Animation_Speed) | |
931 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1.15 / Animation_Speed) | |
932 | end | |
933 | end | |
934 | end | |
935 | UNANCHOR = true | |
936 | end | |
937 | ATTACK = false | |
938 | Rooted = false | |
939 | end | |
940 | ||
941 | function Snap() | |
942 | ATTACK = true | |
943 | Rooted = false | |
944 | local TORS = nil | |
945 | local WELD = nil | |
946 | local HIT1 = CLAW1.Touched:Connect(function(hit) | |
947 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Parent ~= Effects then | |
948 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
949 | if TORS ~= nil then | |
950 | UNANCHOR = false | |
951 | Rooted = true | |
952 | RootPart.Anchored = true | |
953 | WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
954 | end | |
955 | end | |
956 | end) | |
957 | for i=1, 45 do | |
958 | Swait() | |
959 | if TORS ~= nil then | |
960 | break | |
961 | end | |
962 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
963 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
964 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
965 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
966 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
967 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
968 | end | |
969 | HIT1:disconnect() | |
970 | if TORS ~= nil then | |
971 | local CLONE = IT("Model",Weapon) | |
972 | CLONE.Name = "Corpse" | |
973 | for i=0, 2, 0.1 / Animation_Speed do | |
974 | Swait() | |
975 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
976 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
977 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
978 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
979 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
980 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
981 | end | |
982 | for i=0, 2, 0.1 / Animation_Speed do | |
983 | Swait() | |
984 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
985 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
986 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
987 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.5) * ANGLES(RAD(80), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
988 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
989 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
990 | end | |
991 | for i=0, 3, 0.1 / Animation_Speed do | |
992 | Swait() | |
993 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
994 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
995 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
996 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(70), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
997 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
998 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
999 | end | |
1000 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1001 | local DummyHead = nil | |
1002 | local q = TORS.Parent:GetChildren() | |
1003 | for i = 1,#q do | |
1004 | if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then | |
1005 | q[i].Parent = CLONE | |
1006 | if q[i].ClassName == "Humanoid" then | |
1007 | q[i].PlatformStand = true | |
1008 | end | |
1009 | if q[i].Name == "Head" then | |
1010 | DummyHead = CLONE.Head:Clone() | |
1011 | q[i]:ClearAllChildren() | |
1012 | q[i].Transparency = 1 | |
1013 | end | |
1014 | else | |
1015 | q[i]:remove() | |
1016 | end | |
1017 | end | |
1018 | local TORS2 = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso") | |
1019 | DummyHead.Parent = Effects | |
1020 | local WELD1 = CreateWeldOrSnapOrMotor("Weld", DummyHead, LeftArm, DummyHead, CF(0,-2.5,0) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1021 | local WELD2 = CreateWeldOrSnapOrMotor("Weld", TORS2, RightArm, TORS2, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1022 | local HITPLAYERSOUNDS2 = {"356551938","264486467"} | |
1023 | CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], TORS2, 1, (math.random(8,12)/10)) | |
1024 | getbloody(DummyHead,5) | |
1025 | for i=0, 3, 0.1 / Animation_Speed do | |
1026 | Swait() | |
1027 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1028 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.15 / Animation_Speed) | |
1029 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1030 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(120), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1031 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1032 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1033 | end | |
1034 | for i=0, 1, 0.1 / Animation_Speed do | |
1035 | Swait() | |
1036 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1040 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1042 | end | |
1043 | WELD1:remove() | |
1044 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1045 | Swait() | |
1046 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1047 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1048 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1049 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1050 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1051 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1052 | end | |
1053 | local GROWLS = {"368795088","368795352","368795492","368795580"} | |
1054 | CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10)) | |
1055 | repeat | |
1056 | Swait() | |
1057 | turnto(Mouse.Hit.p) | |
1058 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1059 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1060 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1061 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1062 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1063 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1064 | until HOLD == true | |
1065 | WELD2:remove() | |
1066 | local bv = Instance.new("BodyVelocity") | |
1067 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1068 | bv.velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300 | |
1069 | bv.Parent = TORS2 | |
1070 | bv.Name = "MOVE" | |
1071 | coroutine.resume(coroutine.create(function() | |
1072 | local HIT1 = TORS2.Touched:Connect(function(hit) | |
1073 | dealdamage(hit,25,65,3,false,5,2) | |
1074 | end) | |
1075 | Swait(2) | |
1076 | HIT1:disconnect() | |
1077 | end)) | |
1078 | Debris:AddItem(bv,0.2) | |
1079 | TORS2.Velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300 | |
1080 | for i=0, 1, 0.1 / Animation_Speed do | |
1081 | Swait() | |
1082 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1) | |
1083 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1) | |
1084 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, 0) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1) | |
1085 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1) | |
1086 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1) | |
1087 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1) | |
1088 | end | |
1089 | end | |
1090 | UNANCHOR = true | |
1091 | ATTACK = false | |
1092 | Rooted = false | |
1093 | end | |
1094 | ||
1095 | --//=================================\\ | |
1096 | --|| ASSIGN THINGS TO KEYS | |
1097 | --\\=================================// | |
1098 | ||
1099 | function MouseDown(Mouse) | |
1100 | HOLD = true | |
1101 | if ATTACK == false then | |
1102 | Strike() | |
1103 | end | |
1104 | end | |
1105 | ||
1106 | function MouseUp(Mouse) | |
1107 | HOLD = false | |
1108 | end | |
1109 | ||
1110 | function KeyDown(Key) | |
1111 | KEYHOLD = true | |
1112 | if Key == "z" and ATTACK == false then | |
1113 | Shriek() | |
1114 | end | |
1115 | ||
1116 | if Key == "b" and ATTACK == false then | |
1117 | Devour() | |
1118 | end | |
1119 | ||
1120 | if Key == "c" and ATTACK == false then | |
1121 | Snap() | |
1122 | end | |
1123 | ||
1124 | if Key == "q" and ATTACK == false then | |
1125 | if VALUE1 == false then | |
1126 | VALUE1 = true | |
1127 | Speed = 75 | |
1128 | CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Effects, 10, 2) | |
1129 | elseif VALUE1 == true then | |
1130 | VALUE1 = false | |
1131 | Speed = 20 | |
1132 | local GROWLS = {"368795088","368795352","368795492","368795580"} | |
1133 | CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10)) | |
1134 | end | |
1135 | end | |
1136 | ||
1137 | if Key == "t" and ATTACK == false then | |
1138 | local GROWLS = {"368795088","368795352","368795492","368795580"} | |
1139 | CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10)) | |
1140 | end | |
1141 | end | |
1142 | ||
1143 | function KeyUp(Key) | |
1144 | KEYHOLD = false | |
1145 | end | |
1146 | ||
1147 | Mouse.Button1Down:connect(function(NEWKEY) | |
1148 | MouseDown(NEWKEY) | |
1149 | end) | |
1150 | Mouse.Button1Up:connect(function(NEWKEY) | |
1151 | MouseUp(NEWKEY) | |
1152 | end) | |
1153 | Mouse.KeyDown:connect(function(NEWKEY) | |
1154 | KeyDown(NEWKEY) | |
1155 | end) | |
1156 | Mouse.KeyUp:connect(function(NEWKEY) | |
1157 | KeyUp(NEWKEY) | |
1158 | end) | |
1159 | ||
1160 | --//=================================\\ | |
1161 | --\\=================================// | |
1162 | ||
1163 | ||
1164 | function unanchor() | |
1165 | if UNANCHOR == true then | |
1166 | g = Character:GetChildren() | |
1167 | for i = 1, #g do | |
1168 | if g[i].ClassName == "Part" then | |
1169 | g[i].Anchored = false | |
1170 | end | |
1171 | end | |
1172 | end | |
1173 | end | |
1174 | ||
1175 | ||
1176 | --//=================================\\ | |
1177 | --|| WRAP THE WHOLE SCRIPT UP | |
1178 | --\\=================================// | |
1179 | ||
1180 | Humanoid.Changed:connect(function(Jump) | |
1181 | if Jump == "Jump" and (Disable_Jump == true) then | |
1182 | Humanoid.Jump = false | |
1183 | end | |
1184 | end) | |
1185 | ||
1186 | createbodypart("Eye","Bright green",Head,VT(0, 0.6, -1.2),VT(12,10,4)) | |
1187 | createbodypart("Eye","Really black",Head,VT(0, 0.6, -1.2),VT(7,9,5)) | |
1188 | ||
1189 | Speed = 20 | |
1190 | ||
1191 | while true do | |
1192 | Swait() | |
1193 | ANIMATE.Parent = nil | |
1194 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1195 | IDLEANIMATION:Play() | |
1196 | SINE = SINE + CHANGE | |
1197 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1198 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1199 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1200 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1201 | local WALKSPEEDVALUE = 5 | |
1202 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1203 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1204 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1205 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1206 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1207 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1208 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1209 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1210 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1211 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1212 | end | |
1213 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1214 | ANIM = "Jump" | |
1215 | if ATTACK == false then | |
1216 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1217 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1218 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
1219 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(130), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1220 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1221 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1222 | end | |
1223 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil and ATTACK == false then | |
1224 | ANIM = "Fall" | |
1225 | if ATTACK == false then | |
1226 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1227 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1228 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(45), RAD(12)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed) | |
1229 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(160), RAD(-45), RAD(-12)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
1230 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1231 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1232 | end | |
1233 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1234 | ANIM = "Idle" | |
1235 | if ATTACK == false then | |
1236 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1237 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1238 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1239 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1240 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1241 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1242 | if MRANDOM(1,35) == 1 then | |
1243 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
1244 | end | |
1245 | end | |
1246 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1247 | ANIM = "Walk" | |
1248 | WALK = WALK + 1 / Animation_Speed | |
1249 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1250 | WALK = 0 | |
1251 | if WALKINGANIM == true then | |
1252 | WALKINGANIM = false | |
1253 | elseif WALKINGANIM == false then | |
1254 | WALKINGANIM = true | |
1255 | end | |
1256 | end | |
1257 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1258 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1259 | if ATTACK == false then | |
1260 | if VALUE1 == false then | |
1261 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1262 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1263 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(15+60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1264 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1265 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(25)), 0.15 / Animation_Speed) | |
1266 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-25)), 0.15 / Animation_Speed) | |
1267 | elseif VALUE1 == true then | |
1268 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)*2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1269 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-55 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1270 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1271 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(35), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1272 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-3), RAD(-15), RAD(65)), 0.15 / Animation_Speed) | |
1273 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12)*2, -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-3), RAD(15), RAD(-65)), 0.15 / Animation_Speed) | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | if #Effects2>0 then | |
1278 | for e=1,#Effects2 do | |
1279 | if Effects2[e]~=nil then | |
1280 | local Thing=Effects2[e] | |
1281 | if Thing~=nil then | |
1282 | local Part=Thing[1] | |
1283 | local Mode=Thing[2] | |
1284 | local Delay=Thing[3] | |
1285 | local IncX=Thing[4] | |
1286 | local IncY=Thing[5] | |
1287 | local IncZ=Thing[6] | |
1288 | local Part2=Thing[8] | |
1289 | if Thing[1].Transparency<=1 then | |
1290 | if Thing[2]=="Block1" then | |
1291 | Thing[1].CFrame=Thing[1].CFrame | |
1292 | Mesh=Thing[1].Mesh | |
1293 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1294 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1295 | elseif Thing[2]=="Cylinder" then | |
1296 | Mesh=Thing[1].Mesh | |
1297 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1298 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1299 | elseif Thing[2]=="Blood" then | |
1300 | Mesh=Thing[7] | |
1301 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
1302 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1303 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1304 | elseif Thing[2]=="Elec" then | |
1305 | Mesh=Thing[1].Mesh | |
1306 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
1307 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1308 | elseif Thing[2]=="Disappear" then | |
1309 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1310 | end | |
1311 | else | |
1312 | Part.Parent=nil | |
1313 | table.remove(Effects2,e) | |
1314 | end | |
1315 | end | |
1316 | end | |
1317 | end | |
1318 | end | |
1319 | unanchor() | |
1320 | Humanoid.MaxHealth = "inf" | |
1321 | Humanoid.Health = "inf" | |
1322 | if Rooted == false then | |
1323 | Disable_Jump = false | |
1324 | Humanoid.WalkSpeed = Speed | |
1325 | elseif Rooted == true then | |
1326 | Disable_Jump = true | |
1327 | Humanoid.WalkSpeed = 0 | |
1328 | end | |
1329 | q = Character:GetChildren() | |
1330 | for u = 1, #q do | |
1331 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
1332 | q[u]:remove() | |
1333 | elseif q[u].ClassName == "Shirt" then | |
1334 | q[u]:Destroy() | |
1335 | elseif q[u].ClassName == "Pants" then | |
1336 | q[u]:Destroy() | |
1337 | elseif q[u].ClassName == "CharacterMesh" then | |
1338 | q[u]:remove() | |
1339 | elseif q[u].ClassName == "ShirtGraphic" then | |
1340 | q[u]:remove() | |
1341 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
1342 | q[u].Color = Color3.new(0,0,0) | |
1343 | end | |
1344 | end | |
1345 | if Head:FindFirstChild("face") then | |
1346 | Head.face:remove() | |
1347 | end | |
1348 | Humanoid.Name = "REEE" | |
1349 | end | |
1350 | ||
1351 | --//=================================\\ | |
1352 | --\\=================================// | |
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | --//====================================================\\-- | |
1359 | --|| END OF SCRIPT | |
1360 | --\\====================================================//-- |