SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER EDITED BY ZOMBIESLAYERWTF | |
3 | --\\====================================================//-- | |
4 | ||
5 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
6 | local Player,game,owner = owner,game | |
7 | local RealPlayer = Player | |
8 | do | |
9 | print("FE Compatibility code by Mokiros") | |
10 | local rp = RealPlayer | |
11 | script.Parent = rp.Character | |
12 | ||
13 | --RemoteEvent for communicating | |
14 | local Event = Instance.new("RemoteEvent") | |
15 | Event.Name = "UserInput_Event" | |
16 | ||
17 | --Fake event to make stuff like Mouse.KeyDown work | |
18 | local function fakeEvent() | |
19 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
20 | t.connect = t.Connect | |
21 | return t | |
22 | end | |
23 | ||
24 | --Creating fake input objects with fake variables | |
25 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
26 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
27 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
28 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
29 | end} | |
30 | --Merged 2 functions into one by checking amount of arguments | |
31 | CAS.UnbindAction = CAS.BindAction | |
32 | ||
33 | --This function will trigger the events that have been :Connect()'ed | |
34 | local function te(self,ev,...) | |
35 | local t = m[ev] | |
36 | if t and t._fakeEvent then | |
37 | for _,f in pairs(t.Functions) do | |
38 | f(...) | |
39 | end | |
40 | end | |
41 | end | |
42 | m.TrigEvent = te | |
43 | UIS.TrigEvent = te | |
44 | ||
45 | Event.OnServerEvent:Connect(function(plr,io) | |
46 | if plr~=rp then return end | |
47 | m.Target = io.Target | |
48 | m.Hit = io.Hit | |
49 | if not io.isMouse then | |
50 | local b = io.UserInputState == Enum.UserInputState.Begin | |
51 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
52 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
53 | end | |
54 | for _,t in pairs(CAS.Actions) do | |
55 | for _,k in pairs(t.Keys) do | |
56 | if k==io.KeyCode then | |
57 | t.Function(t.Name,io.UserInputState,io) | |
58 | end | |
59 | end | |
60 | end | |
61 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
62 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
63 | end | |
64 | end) | |
65 | Event.Parent = NLS([==[ | |
66 | local Player = game:GetService("Players").LocalPlayer | |
67 | local Event = script:WaitForChild("UserInput_Event") | |
68 | ||
69 | local Mouse = Player:GetMouse() | |
70 | local UIS = game:GetService("UserInputService") | |
71 | local input = function(io,a) | |
72 | if a then return end | |
73 | --Since InputObject is a client-side instance, we create and pass table instead | |
74 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
75 | end | |
76 | UIS.InputBegan:Connect(input) | |
77 | UIS.InputEnded:Connect(input) | |
78 | ||
79 | local h,t | |
80 | --Give the server mouse data 30 times every second, but only if the values changed | |
81 | --If player is not moving their mouse, client won't fire events | |
82 | while wait(1/30) do | |
83 | if h~=Mouse.Hit or t~=Mouse.Target then | |
84 | h,t=Mouse.Hit,Mouse.Target | |
85 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
86 | end | |
87 | end]==],Player.Character) | |
88 | ||
89 | ----Sandboxed game object that allows the usage of client-side methods and services | |
90 | --Real game object | |
91 | local _rg = game | |
92 | ||
93 | --Metatable for fake service | |
94 | local fsmt = { | |
95 | __index = function(self,k) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then return s[k] end | |
98 | end, | |
99 | __newindex = function(self,k,v) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then s[k]=v end | |
102 | end, | |
103 | __call = function(self,...) | |
104 | local s = rawget(self,"_RealService") | |
105 | if s then return s(...) end | |
106 | end | |
107 | } | |
108 | local function FakeService(t,RealService) | |
109 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
110 | return setmetatable(t,fsmt) | |
111 | end | |
112 | ||
113 | --Fake game object | |
114 | local g = { | |
115 | GetService = function(self,s) | |
116 | return self[s] | |
117 | end, | |
118 | Players = FakeService({ | |
119 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
120 | },"Players"), | |
121 | UserInputService = FakeService(UIS,"UserInputService"), | |
122 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
123 | } | |
124 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
125 | g.service = g.GetService | |
126 | ||
127 | g.RunService = FakeService({ | |
128 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
129 | BindToRenderStep = function(self,name,_,fun) | |
130 | ||
131 | end, | |
132 | UnbindFromRenderStep = function(self,name) | |
133 | self._btrs[name]:Disconnect() | |
134 | end, | |
135 | },"RunService") | |
136 | ||
137 | setmetatable(g,{ | |
138 | __index=function(self,s) | |
139 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
140 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
141 | end, | |
142 | __newindex = fsmt.__newindex, | |
143 | __call = fsmt.__call | |
144 | }) | |
145 | --Changing owner to fake player object to support owner:GetMouse() | |
146 | game,owner = g,g.Players.LocalPlayer | |
147 | end | |
148 | ||
149 | wait(0.2) | |
150 | ||
151 | ||
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 | local sick = Instance.new("Sound",Character) | |
174 | sick.SoundId = "rbxassetid://165704299" | |
175 | sick.Looped = true | |
176 | sick.Pitch = 1 | |
177 | sick.Volume = 1 | |
178 | sick:Play() | |
179 | ||
180 | IT = Instance.new | |
181 | CF = CFrame.new | |
182 | VT = Vector3.new | |
183 | RAD = math.rad | |
184 | C3 = Color3.new | |
185 | UD2 = UDim2.new | |
186 | BRICKC = BrickColor.new | |
187 | ANGLES = CFrame.Angles | |
188 | EULER = CFrame.fromEulerAnglesXYZ | |
189 | COS = math.cos | |
190 | ACOS = math.acos | |
191 | SIN = math.sin | |
192 | ASIN = math.asin | |
193 | ABS = math.abs | |
194 | MRANDOM = math.random | |
195 | FLOOR = math.floor | |
196 | ||
197 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
198 | local NEWMESH = IT(MESH) | |
199 | if MESH == "SpecialMesh" then | |
200 | NEWMESH.MeshType = MESHTYPE | |
201 | if MESHID ~= "nil" and MESHID ~= "" then | |
202 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
203 | end | |
204 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
205 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
206 | end | |
207 | end | |
208 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
209 | NEWMESH.Scale = SCALE | |
210 | NEWMESH.Parent = PARENT | |
211 | return NEWMESH | |
212 | end | |
213 | ||
214 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
215 | local NEWPART = IT("Part") | |
216 | NEWPART.formFactor = FORMFACTOR | |
217 | NEWPART.Reflectance = REFLECTANCE | |
218 | NEWPART.Transparency = TRANSPARENCY | |
219 | NEWPART.CanCollide = false | |
220 | NEWPART.Locked = true | |
221 | NEWPART.Anchored = true | |
222 | if ANCHOR == false then | |
223 | NEWPART.Anchored = false | |
224 | end | |
225 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
226 | NEWPART.Name = NAME | |
227 | NEWPART.Size = SIZE | |
228 | NEWPART.Position = Torso.Position | |
229 | NEWPART.Material = MATERIAL | |
230 | NEWPART:BreakJoints() | |
231 | NEWPART.Parent = PARENT | |
232 | return NEWPART | |
233 | end | |
234 | ||
235 | --//=================================\\ | |
236 | --|| CUSTOMIZATION | |
237 | --\\=================================// | |
238 | ||
239 | Player_Size = 1 --Size of the player. | |
240 | Animation_Speed = 1 | |
241 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
242 | ||
243 | local Speed = 50 | |
244 | local Effects2 = {} | |
245 | ||
246 | --//=================================\\ | |
247 | --|| END OF CUSTOMIZATION | |
248 | --\\=================================// | |
249 | ||
250 | local function weldBetween(a, b) | |
251 | local weldd = Instance.new("ManualWeld") | |
252 | weldd.Part0 = a | |
253 | weldd.Part1 = b | |
254 | weldd.C0 = CFrame.new() | |
255 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
256 | weldd.Parent = a | |
257 | return weldd | |
258 | end | |
259 | ||
260 | --//=================================\\ | |
261 | --|| USEFUL VALUES | |
262 | --\\=================================// | |
263 | ||
264 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
265 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
266 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
267 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
268 | local CHANGEDEFENSE = 0 | |
269 | local CHANGEDAMAGE = 0 | |
270 | local CHANGEMOVEMENT = 0 | |
271 | local ANIM = "Idle" | |
272 | local ATTACK = false | |
273 | local EQUIPPED = false | |
274 | local HOLD = false | |
275 | local COMBO = 1 | |
276 | local Rooted = false | |
277 | local SINE = 0 | |
278 | local KEYHOLD = false | |
279 | local CHANGE = 2 / Animation_Speed | |
280 | local WALKINGANIM = false | |
281 | local WALK = 0 | |
282 | local VALUE1 = false | |
283 | local VALUE2 = false | |
284 | local ROBLOXIDLEANIMATION = IT("Animation") | |
285 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
286 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
287 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
288 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
289 | WEAPONGUI.Name = "Weapon GUI" | |
290 | local Weapon = IT("Model") | |
291 | Weapon.Name = "Adds" | |
292 | local HITFLOOR = nil | |
293 | local Effects = IT("Folder", Weapon) | |
294 | Effects.Name = "Effects" | |
295 | local ANIMATOR = Humanoid.Animator | |
296 | local ANIMATE = Character.Animate | |
297 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
298 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
299 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
300 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
301 | local UNANCHOR = true | |
302 | ||
303 | local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255) | |
304 | ||
305 | --//=================================\\ | |
306 | --\\=================================// | |
307 | ||
308 | ||
309 | --//=================================\\ | |
310 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
311 | --\\=================================// | |
312 | ||
313 | ArtificialHB = Instance.new("BindableEvent", script) | |
314 | ArtificialHB.Name = "ArtificialHB" | |
315 | ||
316 | script:WaitForChild("ArtificialHB") | |
317 | ||
318 | frame = Frame_Speed | |
319 | tf = 0 | |
320 | allowframeloss = false | |
321 | tossremainder = false | |
322 | lastframe = tick() | |
323 | script.ArtificialHB:Fire() | |
324 | ||
325 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
326 | tf = tf + s | |
327 | if tf >= frame then | |
328 | if allowframeloss then | |
329 | script.ArtificialHB:Fire() | |
330 | lastframe = tick() | |
331 | else | |
332 | for i = 1, math.floor(tf / frame) do | |
333 | script.ArtificialHB:Fire() | |
334 | end | |
335 | lastframe = tick() | |
336 | end | |
337 | if tossremainder then | |
338 | tf = 0 | |
339 | else | |
340 | tf = tf - frame * math.floor(tf / frame) | |
341 | end | |
342 | end | |
343 | end) | |
344 | ||
345 | --//=================================\\ | |
346 | --\\=================================// | |
347 | ||
348 | ||
349 | ||
350 | ||
351 | ||
352 | --//=================================\\ | |
353 | --|| SOME FUNCTIONS | |
354 | --\\=================================// | |
355 | ||
356 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
357 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
358 | end | |
359 | ||
360 | function PositiveAngle(NUMBER) | |
361 | if NUMBER >= 0 then | |
362 | NUMBER = 0 | |
363 | end | |
364 | return NUMBER | |
365 | end | |
366 | ||
367 | function NegativeAngle(NUMBER) | |
368 | if NUMBER <= 0 then | |
369 | NUMBER = 0 | |
370 | end | |
371 | return NUMBER | |
372 | end | |
373 | ||
374 | function Swait(NUMBER) | |
375 | if NUMBER == 0 or NUMBER == nil then | |
376 | ArtificialHB.Event:wait() | |
377 | else | |
378 | for i = 1, NUMBER do | |
379 | ArtificialHB.Event:wait() | |
380 | end | |
381 | end | |
382 | end | |
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 | ||
498 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
499 | local NEWWELD = IT(TYPE) | |
500 | NEWWELD.Part0 = PART0 | |
501 | NEWWELD.Part1 = PART1 | |
502 | NEWWELD.C0 = C0 | |
503 | NEWWELD.C1 = C1 | |
504 | NEWWELD.Parent = PARENT | |
505 | return NEWWELD | |
506 | end | |
507 | ||
508 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
509 | local NEWSOUND = nil | |
510 | coroutine.resume(coroutine.create(function() | |
511 | NEWSOUND = IT("Sound", PARENT) | |
512 | NEWSOUND.Volume = VOLUME | |
513 | NEWSOUND.Pitch = PITCH | |
514 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
515 | Swait() | |
516 | NEWSOUND:play() | |
517 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
518 | end)) | |
519 | return NEWSOUND | |
520 | end | |
521 | ||
522 | function CFrameFromTopBack(at, top, back) | |
523 | local right = top:Cross(back) | |
524 | 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) | |
525 | end | |
526 | ||
527 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
528 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
529 | local mesh = IT("SpecialMesh",wave) | |
530 | mesh.MeshType = "FileMesh" | |
531 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
532 | mesh.Scale = SIZE | |
533 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
534 | wave.CFrame = CFRAME | |
535 | coroutine.resume(coroutine.create(function(PART) | |
536 | for i = 1, WAIT do | |
537 | Swait() | |
538 | mesh.Scale = mesh.Scale + GROW | |
539 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
540 | if DOESROT == true then | |
541 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
542 | end | |
543 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
544 | if wave.Transparency > 0.99 then | |
545 | wave:remove() | |
546 | end | |
547 | end | |
548 | end)) | |
549 | end | |
550 | ||
551 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
552 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
553 | local mesh = IT("SpecialMesh",wave) | |
554 | mesh.MeshType = "FileMesh" | |
555 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
556 | mesh.Scale = SIZE | |
557 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
558 | wave.CFrame = CFRAME | |
559 | coroutine.resume(coroutine.create(function(PART) | |
560 | for i = 1, WAIT do | |
561 | Swait() | |
562 | mesh.Scale = mesh.Scale + GROW | |
563 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
564 | if DOESROT == true then | |
565 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
566 | end | |
567 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
568 | if wave.Transparency > 0.99 then | |
569 | wave:remove() | |
570 | end | |
571 | end | |
572 | end)) | |
573 | end | |
574 | ||
575 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
576 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
577 | local mesh = IT("SpecialMesh",wave) | |
578 | mesh.MeshType = "FileMesh" | |
579 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
580 | mesh.Scale = SIZE | |
581 | wave.CFrame = CFRAME | |
582 | coroutine.resume(coroutine.create(function(PART) | |
583 | for i = 1, WAIT do | |
584 | Swait() | |
585 | mesh.Scale = mesh.Scale + GROW | |
586 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
587 | if DOESROT == true then | |
588 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
589 | end | |
590 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
591 | if wave.Transparency > 0.99 then | |
592 | wave:remove() | |
593 | end | |
594 | end | |
595 | end)) | |
596 | end | |
597 | ||
598 | ||
599 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
600 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
601 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
602 | wave.CFrame = CFRAME | |
603 | coroutine.resume(coroutine.create(function(PART) | |
604 | for i = 1, WAIT do | |
605 | Swait() | |
606 | mesh.Scale = mesh.Scale * GROW | |
607 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
608 | if wave.Transparency > 0.99 then | |
609 | wave:remove() | |
610 | end | |
611 | end | |
612 | end)) | |
613 | end | |
614 | ||
615 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
616 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
617 | local mesh = IT("SpecialMesh",wave) | |
618 | mesh.MeshType = "Sphere" | |
619 | mesh.Scale = SIZE | |
620 | mesh.Offset = VT(0,0,0) | |
621 | wave.CFrame = CFRAME | |
622 | coroutine.resume(coroutine.create(function(PART) | |
623 | for i = 1, WAIT do | |
624 | Swait() | |
625 | mesh.Scale = mesh.Scale + GROW | |
626 | wave.Transparency = wave.Transparency + (1/WAIT) | |
627 | if wave.Transparency > 0.99 then | |
628 | wave:remove() | |
629 | end | |
630 | end | |
631 | end)) | |
632 | end | |
633 | ||
634 | function MakeForm(PART,TYPE) | |
635 | if TYPE == "Cyl" then | |
636 | local MSH = IT("CylinderMesh",PART) | |
637 | elseif TYPE == "Ball" then | |
638 | local MSH = IT("SpecialMesh",PART) | |
639 | MSH.MeshType = "Sphere" | |
640 | elseif TYPE == "Wedge" then | |
641 | local MSH = IT("SpecialMesh",PART) | |
642 | MSH.MeshType = "Wedge" | |
643 | end | |
644 | end | |
645 | ||
646 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
647 | if FLOOR ~= nil then | |
648 | coroutine.resume(coroutine.create(function() | |
649 | local PART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
650 | PART.CFrame = CF(POSITION) | |
651 | for i = 1, 45 do | |
652 | local RingPiece = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
653 | RingPiece.Material = FLOOR.Material | |
654 | RingPiece.Color = FLOOR.Color | |
655 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
656 | Debris:AddItem(RingPiece,SWAIT/100) | |
657 | end | |
658 | PART:remove() | |
659 | end)) | |
660 | end | |
661 | end | |
662 | ||
663 | function CheckTableForString(Table, String) | |
664 | for i, v in pairs(Table) do | |
665 | if string.find(string.lower(String), string.lower(v)) then | |
666 | return true | |
667 | end | |
668 | end | |
669 | return false | |
670 | end | |
671 | ||
672 | function CheckIntangible(Hit) | |
673 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
674 | if Hit and Hit.Parent then | |
675 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
676 | return true | |
677 | end | |
678 | end | |
679 | return false | |
680 | end | |
681 | ||
682 | Debris = game:GetService("Debris") | |
683 | ||
684 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
685 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
686 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
687 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
688 | if RayHit and CheckIntangible(RayHit) then | |
689 | if DelayIfHit then | |
690 | wait() | |
691 | end | |
692 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
693 | end | |
694 | return RayHit, RayPos, RayNormal | |
695 | end | |
696 | ||
697 | function turnto(position) | |
698 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
699 | end | |
700 | ||
701 | --//=================================\\ | |
702 | --|| WEAPON CREATION | |
703 | --\\=================================// | |
704 | ||
705 | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false) | |
706 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
707 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false) | |
708 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
709 | ||
710 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
711 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
712 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
713 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
714 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
715 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
716 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false) | |
717 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
718 | ||
719 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false) | |
720 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
721 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Institutional white", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false) | |
722 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
723 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
724 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
725 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
726 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
727 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false) | |
728 | local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
729 | ||
730 | for _, c in pairs(Weapon:GetChildren()) do | |
731 | if c.ClassName == "Part" then | |
732 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
733 | end | |
734 | end | |
735 | ||
736 | Weapon.Parent = Character | |
737 | ||
738 | Humanoid.Died:connect(function() | |
739 | ATTACK = true | |
740 | end) | |
741 | ||
742 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
743 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
744 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
745 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
746 | ||
747 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Guest Punch", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
748 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Guest Grasp", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
749 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Teleport", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
750 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Implosion Collision", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
751 | ||
752 | --//=================================\\ | |
753 | --|| DAMAGE FUNCTIONS | |
754 | --\\=================================// | |
755 | ||
756 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
757 | local STATPART = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Effect", VT()) | |
758 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
759 | local BODYGYRO = IT("BodyGyro", STATPART) | |
760 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
761 | BODYPOSITION.P = 2000 | |
762 | BODYPOSITION.D = 100 | |
763 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
764 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
765 | game:GetService("Debris"):AddItem(STATPART ,5) | |
766 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
767 | BILLBOARDGUI.Adornee = STATPART | |
768 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
769 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
770 | BILLBOARDGUI.AlwaysOnTop = false | |
771 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
772 | TEXTLABEL.BackgroundTransparency = 1 | |
773 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
774 | TEXTLABEL.Text = TEXT | |
775 | TEXTLABEL.Font = "SciFi" | |
776 | TEXTLABEL.FontSize="Size42" | |
777 | TEXTLABEL.TextColor3 = COLOR | |
778 | TEXTLABEL.TextStrokeTransparency = 1 | |
779 | TEXTLABEL.TextScaled = true | |
780 | TEXTLABEL.TextWrapped = true | |
781 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
782 | if LABELTYPE == "Normal" then | |
783 | for i = 1, 30 do | |
784 | Swait() | |
785 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
786 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
787 | end | |
788 | elseif LABELTYPE == "Debuff" then | |
789 | for i = 1, 30 do | |
790 | Swait() | |
791 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
792 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
793 | end | |
794 | elseif LABELTYPE == "Shock" then | |
795 | local ORIGIN = STATPART.Position | |
796 | for i = 1, 30 do | |
797 | Swait() | |
798 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
799 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
800 | end | |
801 | end | |
802 | THEPART.Parent = nil | |
803 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
804 | end | |
805 | ||
806 | --//=================================\\ | |
807 | --|| DAMAGING | |
808 | --\\=================================// | |
809 | ||
810 | function killnearest(position,range,maxstrength,direction) | |
811 | for i,v in ipairs(workspace:GetChildren()) do | |
812 | local body = v:GetChildren() | |
813 | for part = 1, #body do | |
814 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
815 | if(body[part].Position - position).Magnitude < range then | |
816 | if v.ClassName == "Model" then | |
817 | --v:BreakJoints() | |
818 | end | |
819 | local POS = position | |
820 | coroutine.resume(coroutine.create(function() | |
821 | body[part].Anchored = true | |
822 | body[part].Parent = Effects | |
823 | body[part].CanCollide = true | |
824 | local SIZE = body[part].Size | |
825 | body[part].Material = "Neon" | |
826 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
827 | for i = 1, 75 do | |
828 | Swait() | |
829 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
830 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
831 | end | |
832 | coroutine.resume(coroutine.create(function() | |
833 | while true do | |
834 | Swait() | |
835 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
836 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
837 | end | |
838 | end)) | |
839 | body[part].Anchored = false | |
840 | body[part].Velocity = direction.lookVector*maxstrength | |
841 | end)) | |
842 | end | |
843 | end | |
844 | end | |
845 | if v.ClassName == "Part" then | |
846 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
847 | local POS = position | |
848 | coroutine.resume(coroutine.create(function() | |
849 | v.Anchored = true | |
850 | v.Parent = Effects | |
851 | local SIZE = v.Size | |
852 | v.Material = "Neon" | |
853 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
854 | for i = 1, 75 do | |
855 | Swait() | |
856 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
857 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
858 | end | |
859 | coroutine.resume(coroutine.create(function() | |
860 | while true do | |
861 | Swait() | |
862 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
863 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
864 | end | |
865 | end)) | |
866 | v.Anchored = false | |
867 | v.Velocity = direction.lookVector*maxstrength | |
868 | end)) | |
869 | end | |
870 | end | |
871 | end | |
872 | end | |
873 | ||
874 | --//=================================\\ | |
875 | --|| ATTACK FUNCTIONS AND STUFF | |
876 | --\\=================================// | |
877 | ||
878 | function AttackTemplate() | |
879 | ATTACK = true | |
880 | Rooted = false | |
881 | for i=0, 1, 0.1 / Animation_Speed do | |
882 | Swait() | |
883 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
886 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
887 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
888 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
889 | end | |
890 | ATTACK = false | |
891 | Rooted = false | |
892 | end | |
893 | ||
894 | function GuestPunch() | |
895 | ATTACK = true | |
896 | Rooted = false | |
897 | local SPEED = Speed | |
898 | Speed = 100 | |
899 | CreateSound("169445572", RightArm, 10, 1.1) | |
900 | for i=0, 4, 0.1 / Animation_Speed do | |
901 | Swait() | |
902 | turnto(Mouse.Hit.p) | |
903 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Institutional white",VT(-1/15,-1/15,-1/15)) | |
904 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15)) | |
905 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
906 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
907 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
908 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
909 | 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(0)), 0.15 / Animation_Speed) | |
910 | 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(0)), 0.15 / Animation_Speed) | |
911 | end | |
912 | for i=0, 0.15, 0.1 / Animation_Speed do | |
913 | Swait() | |
914 | turnto(Mouse.Hit.p) | |
915 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
916 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
917 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
918 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
919 | 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(0)), 1 / Animation_Speed) | |
920 | 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(0)), 1 / Animation_Speed) | |
921 | end | |
922 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Really black", "Punch", VT(50,50,50),false) | |
923 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
924 | PART.Shape = "Ball" | |
925 | local bv = Instance.new("BodyVelocity") | |
926 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
927 | bv.velocity = RootPart.CFrame.lookVector*600 | |
928 | bv.Parent = PART | |
929 | bv.Name = "PROJECTILEVELOCITY" | |
930 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(2.5,0.2,2.5)) | |
931 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(3,0.2,3)) | |
932 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(2,0.6,2)) | |
933 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(2.2,0.6,2.2)) | |
934 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
935 | coroutine.resume(coroutine.create(function() | |
936 | for i = 1, 10 do | |
937 | Swait() | |
938 | PART.Transparency = PART.Transparency + 0.2/10 | |
939 | PART.Size = PART.Size + VT(5,5,5) | |
940 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
941 | end | |
942 | PART:Destroy() | |
943 | end)) | |
944 | for i=0, 1, 0.1 / Animation_Speed do | |
945 | Swait() | |
946 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
947 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
948 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
949 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
950 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
951 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
952 | end | |
953 | Speed = SPEED | |
954 | ATTACK = false | |
955 | Rooted = false | |
956 | end | |
957 | ||
958 | function GuestGrasp() | |
959 | ATTACK = true | |
960 | Rooted = false | |
961 | local HASGRABBED = false | |
962 | local WELD = nil | |
963 | local TORS = nil | |
964 | local hitting = FIST.Touched:connect(function(hit) | |
965 | if hit.Parent:FindFirstChild("Humanoid") then | |
966 | if hit.Parent.Humanoid.Health ~= 0 then | |
967 | UNANCHOR = false | |
968 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
969 | TORS.Anchored = true | |
970 | TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
971 | WELD = weldBetween(RightArm,TORS) | |
972 | HASGRABBED = true | |
973 | Rooted = true | |
974 | end | |
975 | end | |
976 | end) | |
977 | for i=0, 1, 0.1 / Animation_Speed do | |
978 | Swait() | |
979 | if HASGRABBED == true then | |
980 | break | |
981 | end | |
982 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed) | |
983 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed) | |
984 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
985 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
986 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
987 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed) | |
988 | end | |
989 | hitting:disconnect() | |
990 | if HASGRABBED == true then | |
991 | TORS.Anchored = false | |
992 | RootPart.Anchored = true | |
993 | for i=0, 2, 0.1 / Animation_Speed do | |
994 | Swait() | |
995 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
996 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
997 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
998 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
999 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1000 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1001 | end | |
1002 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5)) | |
1003 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6)) | |
1004 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
1005 | SOUNDPART.CFrame = RootPart.CFrame | |
1006 | Debris:AddItem(SOUNDPART,5) | |
1007 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
1008 | for i = 1, 15 do | |
1009 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15) | |
1010 | end | |
1011 | for i=0, 2, 0.1 / Animation_Speed do | |
1012 | Swait() | |
1013 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1014 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1015 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1016 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1017 | 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) | |
1018 | 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) | |
1019 | end | |
1020 | for i=0, 0.25, 0.1 / Animation_Speed do | |
1021 | Swait() | |
1022 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1023 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1024 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1025 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1026 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1027 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1028 | end | |
1029 | if HITFLOOR ~= nil then | |
1030 | CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85) | |
1031 | end | |
1032 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
1033 | WELD:remove() | |
1034 | for i = 1, 25 do | |
1035 | Swait() | |
1036 | killnearest(RootPart.Position,45,100,Torso.CFrame) | |
1037 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3)) | |
1038 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Really black",VT(1,0.4,1)) | |
1039 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Really black",VT(2.3,0.3,2.3)) | |
1040 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
1041 | Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"Really black", 1 + MRANDOM(1,30)/15) | |
1042 | end | |
1043 | end | |
1044 | UNANCHOR = true | |
1045 | ATTACK = false | |
1046 | Rooted = false | |
1047 | end | |
1048 | ||
1049 | function Mach20() | |
1050 | local ORIGIN = RootPart.Position | |
1051 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1052 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1053 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
1054 | SOUNDPART.CFrame = RootPart.CFrame | |
1055 | Debris:AddItem(SOUNDPART,5) | |
1056 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
1057 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
1058 | Swait() | |
1059 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
1060 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
1061 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
1062 | SOUNDPART.CFrame = RootPart.CFrame | |
1063 | Debris:AddItem(SOUNDPART,5) | |
1064 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
1065 | if MRANDOM(1,8) == 1 then | |
1066 | ATTACK = true | |
1067 | Rooted = true | |
1068 | local FRUITSTABLE = { | |
1069 | {MeshId = "16190555", TextureId = "16190577", Color = "Institutional white"}, | |
1070 | {MeshId = "119574562", TextureId = "64374853", Color = "Really Black"}, | |
1071 | {MeshId = "24394186", TextureId = "24394178", Color = "Mid gray"} | |
1072 | } | |
1073 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
1074 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
1075 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) | |
1076 | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) | |
1077 | weldBetween(RightArm,FRUITMODEL) | |
1078 | for i=0, 4, 0.1 / Animation_Speed do | |
1079 | Swait() | |
1080 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1081 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1082 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1083 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1084 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1085 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1086 | end | |
1087 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) | |
1088 | FRUITMODEL:remove() | |
1089 | for i = 1, 15 do | |
1090 | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
1091 | end | |
1092 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1093 | Swait() | |
1094 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1095 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1096 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1097 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1098 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1099 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1100 | end | |
1101 | ATTACK = false | |
1102 | Rooted = false | |
1103 | end | |
1104 | end | |
1105 | ||
1106 | function ImplosionCollision() | |
1107 | ATTACK = true | |
1108 | Rooted = true | |
1109 | CreateSound("169445572", RightArm, 10, 0.8) | |
1110 | for i=0, 8, 0.1 / Animation_Speed do | |
1111 | Swait() | |
1112 | turnto(Mouse.Hit.p) | |
1113 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Really black",VT(0.2,0,0.2)) | |
1114 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really black", 1.1) | |
1115 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position)," Institutional white",VT(0.001,0.001,1),0) | |
1116 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Really black",VT(0.001,0.001,2),0) | |
1117 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Institutional white",VT(-1/15,-1/15,-1/15)) | |
1118 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Really black",VT(-2/15,-2/15,-2/15)) | |
1119 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
1120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
1121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1123 | 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(0)), 0.15 / Animation_Speed) | |
1124 | 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(0)), 0.15 / Animation_Speed) | |
1125 | end | |
1126 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1127 | Swait() | |
1128 | turnto(Mouse.Hit.p) | |
1129 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
1130 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
1131 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1132 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1133 | 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(0)), 1 / Animation_Speed) | |
1134 | 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(0)), 1 / Animation_Speed) | |
1135 | end | |
1136 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.04,-0.04,-0.04)) | |
1137 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) | |
1138 | coroutine.resume(coroutine.create(function() | |
1139 | Swait(100) | |
1140 | for i = 1, 5 do | |
1141 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Really black",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
1142 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(4.5*i,0.2,4.5*i)) | |
1143 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(5*i,0.2,5*i)) | |
1144 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Really black",VT(4*i,0.6,4*i)) | |
1145 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Really black",VT(5.2*i,0.6,5.2*i)) | |
1146 | end | |
1147 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
1148 | for i = 1, 5 do | |
1149 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
1150 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
1151 | end | |
1152 | coroutine.resume(coroutine.create(function() | |
1153 | for i = 1, 50 do | |
1154 | Swait() | |
1155 | for i = 1, 1 do | |
1156 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
1157 | end | |
1158 | for i = 1, 2 do | |
1159 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Really black", 1 + MRANDOM(1,30)/3) | |
1160 | end | |
1161 | end | |
1162 | end)) | |
1163 | end)) | |
1164 | for i=0, 4, 0.1 / Animation_Speed do | |
1165 | Swait() | |
1166 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
1167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
1168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1170 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1171 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1172 | end | |
1173 | ATTACK = false | |
1174 | Rooted = false | |
1175 | end | |
1176 | ||
1177 | --//=================================\\ | |
1178 | --|| ASSIGN THINGS TO KEYS | |
1179 | --\\=================================// | |
1180 | ||
1181 | function MouseDown(Mouse) | |
1182 | if ATTACK == false then | |
1183 | end | |
1184 | end | |
1185 | ||
1186 | function MouseUp(Mouse) | |
1187 | HOLD = false | |
1188 | end | |
1189 | ||
1190 | function KeyDown(Key) | |
1191 | KEYHOLD = true | |
1192 | if Key == "z" and ATTACK == false then | |
1193 | GuestPunch() | |
1194 | end | |
1195 | ||
1196 | if Key == "b" and ATTACK == false then | |
1197 | GuestGrasp() | |
1198 | end | |
1199 | ||
1200 | if Key == "c" and ATTACK == false then | |
1201 | Teleport() | |
1202 | end | |
1203 | ||
1204 | if Key == "x" and ATTACK == false then | |
1205 | ImplosionCollision() | |
1206 | end | |
1207 | ||
1208 | if Key == "p" and ATTACK == false then | |
1209 | if Speed == 20 then | |
1210 | Speed = 150 | |
1211 | elseif Speed == 150 then | |
1212 | Speed = 20 | |
1213 | end | |
1214 | end | |
1215 | end | |
1216 | ||
1217 | function KeyUp(Key) | |
1218 | KEYHOLD = false | |
1219 | end | |
1220 | ||
1221 | Mouse.Button1Down:connect(function(NEWKEY) | |
1222 | MouseDown(NEWKEY) | |
1223 | end) | |
1224 | Mouse.Button1Up:connect(function(NEWKEY) | |
1225 | MouseUp(NEWKEY) | |
1226 | end) | |
1227 | Mouse.KeyDown:connect(function(NEWKEY) | |
1228 | KeyDown(NEWKEY) | |
1229 | end) | |
1230 | Mouse.KeyUp:connect(function(NEWKEY) | |
1231 | KeyUp(NEWKEY) | |
1232 | end) | |
1233 | ||
1234 | --//=================================\\ | |
1235 | --\\=================================// | |
1236 | ||
1237 | ||
1238 | function unanchor() | |
1239 | if UNANCHOR == true then | |
1240 | g = Character:GetChildren() | |
1241 | for i = 1, #g do | |
1242 | if g[i].ClassName == "Part" then | |
1243 | g[i].Anchored = false | |
1244 | end | |
1245 | end | |
1246 | end | |
1247 | end | |
1248 | ||
1249 | ||
1250 | --//=================================\\ | |
1251 | --|| WRAP THE WHOLE SCRIPT UP | |
1252 | --\\=================================// | |
1253 | ||
1254 | Humanoid.Changed:connect(function(Jump) | |
1255 | if Jump == "Jump" and (Disable_Jump == true) then | |
1256 | Humanoid.Jump = false | |
1257 | end | |
1258 | end) | |
1259 | ||
1260 | while true do | |
1261 | Swait() | |
1262 | ANIMATE.Parent = nil | |
1263 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1264 | IDLEANIMATION:Play() | |
1265 | SINE = SINE + CHANGE | |
1266 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1267 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1268 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1269 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1270 | local WALKSPEEDVALUE = 0 | |
1271 | if Speed < 35 then | |
1272 | WALKSPEEDVALUE = 6 | |
1273 | else | |
1274 | WALKSPEEDVALUE = 3 | |
1275 | end | |
1276 | if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then | |
1277 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed) | |
1278 | 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) | |
1279 | if Speed < 35 then | |
1280 | 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1281 | 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(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1282 | else | |
1283 | 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1284 | 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(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed) | |
1285 | end | |
1286 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then | |
1287 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1288 | 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) | |
1289 | 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) | |
1290 | 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) | |
1291 | end | |
1292 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1293 | ANIM = "Jump" | |
1294 | if ATTACK == false then | |
1295 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1296 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1297 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1298 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1299 | 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) | |
1300 | 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) | |
1301 | end | |
1302 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1303 | ANIM = "Fall" | |
1304 | if ATTACK == false then | |
1305 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1309 | 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) | |
1310 | 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) | |
1311 | end | |
1312 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1313 | ANIM = "Idle" | |
1314 | if ATTACK == false then | |
1315 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1316 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1317 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1318 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1319 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1320 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1321 | end | |
1322 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then | |
1323 | ANIM = "Walk" | |
1324 | WALK = WALK + 1 / Animation_Speed | |
1325 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1326 | WALK = 0 | |
1327 | if WALKINGANIM == true then | |
1328 | WALKINGANIM = false | |
1329 | elseif WALKINGANIM == false then | |
1330 | WALKINGANIM = true | |
1331 | end | |
1332 | end | |
1333 | --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) | |
1334 | --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) | |
1335 | if ATTACK == false then | |
1336 | if Speed < 35 then | |
1337 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1338 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1339 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1340 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1341 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1342 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1343 | else | |
1344 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1345 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1346 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1347 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1348 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1349 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1350 | end | |
1351 | end | |
1352 | end | |
1353 | unanchor() | |
1354 | Humanoid.MaxHealth = "inf" | |
1355 | Humanoid.Health = "inf" | |
1356 | if Rooted == false then | |
1357 | Disable_Jump = false | |
1358 | Humanoid.WalkSpeed = Speed | |
1359 | elseif Rooted == true then | |
1360 | Disable_Jump = true | |
1361 | Humanoid.WalkSpeed = 0 | |
1362 | end | |
1363 | local MATHS = {"0","1"} | |
1364 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
1365 | Humanoid.PlatformStand = false | |
1366 | end | |
1367 | ||
1368 | --//=================================\\ | |
1369 | --\\=================================// | |
1370 | ||
1371 | ||
1372 | ||
1373 | ||
1374 | ||
1375 | --//====================================================\\-- | |
1376 | --|| END OF SCRIPT | |
1377 | --\\====================================================//-- |