SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | local Player,game,owner = owner,game |
3 | - | --\\====================================================//-- |
3 | + | local RealPlayer = Player |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | local Mouse = Player:GetMouse() | |
68 | local UIS = game:GetService("UserInputService") | |
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | --Since InputObject is a client-side instance, we create and pass table instead | |
72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then | |
95 | return typeof(s[k])=="function" | |
96 | and function(_,...)return s[k](s,...)end or s[k] | |
97 | 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 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return rawget(self,s) or _rg:GetService(s) | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | RunService = FakeService({ | |
120 | _btrs = {}, | |
121 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
122 | BindToRenderStep = function(self,name,_,fun) | |
123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
124 | end, | |
125 | UnbindFromRenderStep = function(self,name) | |
126 | self._btrs[name]:Disconnect() | |
127 | end, | |
128 | },"RunService") | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | FakeService(g,game) | |
133 | --Changing owner to fake player object to support owner:GetMouse() | |
134 | game,owner = g,g.Players.LocalPlayer | |
135 | end | |
136 | ||
137 | wait(0.2) | |
138 | ||
139 | Player = game:GetService("Players").LocalPlayer | |
140 | PlayerGui = Player.PlayerGui | |
141 | Cam = workspace.CurrentCamera | |
142 | Backpack = Player.Backpack | |
143 | Character = Player.Character | |
144 | Humanoid = Character.Humanoid | |
145 | Mouse = Player:GetMouse() | |
146 | RootPart = Character["HumanoidRootPart"] | |
147 | Torso = Character["Torso"] | |
148 | Head = Character["Head"] | |
149 | RightArm = Character["Right Arm"] | |
150 | LeftArm = Character["Left Arm"] | |
151 | RightLeg = Character["Right Leg"] | |
152 | LeftLeg = Character["Left Leg"] | |
153 | RootJoint = RootPart["RootJoint"] | |
154 | Neck = Torso["Neck"] | |
155 | RightShoulder = Torso["Right Shoulder"] | |
156 | LeftShoulder = Torso["Left Shoulder"] | |
157 | RightHip = Torso["Right Hip"] | |
158 | LeftHip = Torso["Left Hip"] | |
159 | ||
160 | IT = Instance.new | |
161 | CF = CFrame.new | |
162 | VT = Vector3.new | |
163 | RAD = math.rad | |
164 | C3 = Color3.new | |
165 | UD2 = UDim2.new | |
166 | BRICKC = BrickColor.new | |
167 | ANGLES = CFrame.Angles | |
168 | EULER = CFrame.fromEulerAnglesXYZ | |
169 | COS = math.cos | |
170 | ACOS = math.acos | |
171 | SIN = math.sin | |
172 | ASIN = math.asin | |
173 | ABS = math.abs | |
174 | MRANDOM = math.random | |
175 | FLOOR = math.floor | |
176 | ||
177 | --//=================================\\ | |
178 | --|| USEFUL VALUES | |
179 | --\\=================================// | |
180 | ||
181 | Animation_Speed = 3 | |
182 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
183 | local Speed = 16 | |
184 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
185 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
186 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
187 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
188 | local DAMAGEMULTIPLIER = 1 | |
189 | local ANIM = "Idle" | |
190 | local ATTACK = false | |
191 | local EQUIPPED = false | |
192 | local HOLD = false | |
193 | local COMBO = 1 | |
194 | local Rooted = false | |
195 | local SINE = 0 | |
196 | local KEYHOLD = false | |
197 | local CHANGE = 2 / Animation_Speed | |
198 | local WALKINGANIM = false | |
199 | local VALUE1 = false | |
200 | local VALUE2 = false | |
201 | local ROBLOXIDLEANIMATION = IT("Animation") | |
202 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
203 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
204 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
205 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
206 | WEAPONGUI.Name = "Weapon GUI" | |
207 | local Weapon = IT("Model") | |
208 | Weapon.Name = "Adds" | |
209 | local Effects = IT("Folder", Weapon) | |
210 | Effects.Name = "Effects" | |
211 | local ANIMATOR = Humanoid.Animator | |
212 | local ANIMATE = Character.Animate | |
213 | local UNANCHOR = true | |
214 | local ENERGYSOUND = 1417051162 | |
215 | local BEAMSOUND = 1417056781 | |
216 | local EXPLOSIONSOUND = 1417056081 | |
217 | ||
218 | --//=================================\\ | |
219 | --\\=================================// | |
220 | ||
221 | ||
222 | --//=================================\\ | |
223 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
224 | --\\=================================// | |
225 | ||
226 | ArtificialHB = Instance.new("BindableEvent", script) | |
227 | ArtificialHB.Name = "ArtificialHB" | |
228 | ||
229 | script:WaitForChild("ArtificialHB") | |
230 | ||
231 | frame = Frame_Speed | |
232 | tf = 0 | |
233 | allowframeloss = false | |
234 | tossremainder = false | |
235 | lastframe = tick() | |
236 | script.ArtificialHB:Fire() | |
237 | ||
238 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
239 | tf = tf + s | |
240 | if tf >= frame then | |
241 | if allowframeloss then | |
242 | script.ArtificialHB:Fire() | |
243 | lastframe = tick() | |
244 | else | |
245 | for i = 1, math.floor(tf / frame) do | |
246 | script.ArtificialHB:Fire() | |
247 | end | |
248 | lastframe = tick() | |
249 | end | |
250 | if tossremainder then | |
251 | tf = 0 | |
252 | else | |
253 | tf = tf - frame * math.floor(tf / frame) | |
254 | end | |
255 | end | |
256 | end) | |
257 | ||
258 | --//=================================\\ | |
259 | --\\=================================// | |
260 | ||
261 | --//=================================\\ | |
262 | --|| SOME FUNCTIONS | |
263 | --\\=================================// | |
264 | ||
265 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
266 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
267 | end | |
268 | ||
269 | function PositiveAngle(NUMBER) | |
270 | if NUMBER >= 0 then | |
271 | NUMBER = 0 | |
272 | end | |
273 | return NUMBER | |
274 | end | |
275 | ||
276 | function NegativeAngle(NUMBER) | |
277 | if NUMBER <= 0 then | |
278 | NUMBER = 0 | |
279 | end | |
280 | return NUMBER | |
281 | end | |
282 | ||
283 | function Swait(NUMBER) | |
284 | if NUMBER == 0 or NUMBER == nil then | |
285 | ArtificialHB.Event:wait() | |
286 | else | |
287 | for i = 1, NUMBER do | |
288 | ArtificialHB.Event:wait() | |
289 | end | |
290 | end | |
291 | end | |
292 | ||
293 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
294 | local NEWMESH = IT(MESH) | |
295 | if MESH == "SpecialMesh" then | |
296 | NEWMESH.MeshType = MESHTYPE | |
297 | if MESHID ~= "nil" and MESHID ~= "" then | |
298 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
299 | end | |
300 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
301 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
302 | end | |
303 | end | |
304 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
305 | NEWMESH.Scale = SCALE | |
306 | NEWMESH.Parent = PARENT | |
307 | return NEWMESH | |
308 | end | |
309 | ||
310 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
311 | local NEWPART = IT("Part") | |
312 | NEWPART.formFactor = FORMFACTOR | |
313 | NEWPART.Reflectance = REFLECTANCE | |
314 | NEWPART.Transparency = TRANSPARENCY | |
315 | NEWPART.CanCollide = false | |
316 | NEWPART.Locked = true | |
317 | NEWPART.Anchored = true | |
318 | if ANCHOR == false then | |
319 | NEWPART.Anchored = false | |
320 | end | |
321 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
322 | NEWPART.Name = NAME | |
323 | NEWPART.Size = SIZE | |
324 | NEWPART.Position = Torso.Position | |
325 | NEWPART.Material = MATERIAL | |
326 | NEWPART:BreakJoints() | |
327 | NEWPART.Parent = PARENT | |
328 | return NEWPART | |
329 | end | |
330 | ||
331 | local function weldBetween(a, b) | |
332 | local weldd = Instance.new("ManualWeld") | |
333 | weldd.Part0 = a | |
334 | weldd.Part1 = b | |
335 | weldd.C0 = CFrame.new() | |
336 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
337 | weldd.Parent = a | |
338 | return weldd | |
339 | end | |
340 | ||
341 | ||
342 | function QuaternionFromCFrame(cf) | |
343 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
344 | local trace = m00 + m11 + m22 | |
345 | if trace > 0 then | |
346 | local s = math.sqrt(1 + trace) | |
347 | local recip = 0.5 / s | |
348 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
349 | else | |
350 | local i = 0 | |
351 | if m11 > m00 then | |
352 | i = 1 | |
353 | end | |
354 | if m22 > (i == 0 and m00 or m11) then | |
355 | i = 2 | |
356 | end | |
357 | if i == 0 then | |
358 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
359 | local recip = 0.5 / s | |
360 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
361 | elseif i == 1 then | |
362 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
363 | local recip = 0.5 / s | |
364 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
365 | elseif i == 2 then | |
366 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
367 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
368 | end | |
369 | end | |
370 | end | |
371 | ||
372 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
373 | local xs, ys, zs = x + x, y + y, z + z | |
374 | local wx, wy, wz = w * xs, w * ys, w * zs | |
375 | local xx = x * xs | |
376 | local xy = x * ys | |
377 | local xz = x * zs | |
378 | local yy = y * ys | |
379 | local yz = y * zs | |
380 | local zz = z * zs | |
381 | 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)) | |
382 | end | |
383 | ||
384 | function QuaternionSlerp(a, b, t) | |
385 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
386 | local startInterp, finishInterp; | |
387 | if cosTheta >= 0.0001 then | |
388 | if (1 - cosTheta) > 0.0001 then | |
389 | local theta = ACOS(cosTheta) | |
390 | local invSinTheta = 1 / SIN(theta) | |
391 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
392 | finishInterp = SIN(t * theta) * invSinTheta | |
393 | else | |
394 | startInterp = 1 - t | |
395 | finishInterp = t | |
396 | end | |
397 | else | |
398 | if (1 + cosTheta) > 0.0001 then | |
399 | local theta = ACOS(-cosTheta) | |
400 | local invSinTheta = 1 / SIN(theta) | |
401 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
402 | finishInterp = SIN(t * theta) * invSinTheta | |
403 | else | |
404 | startInterp = t - 1 | |
405 | finishInterp = t | |
406 | end | |
407 | end | |
408 | 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 | |
409 | end | |
410 | ||
411 | function Clerp(a, b, t) | |
412 | local qa = {QuaternionFromCFrame(a)} | |
413 | local qb = {QuaternionFromCFrame(b)} | |
414 | local ax, ay, az = a.x, a.y, a.z | |
415 | local bx, by, bz = b.x, b.y, b.z | |
416 | local _t = 1 - t | |
417 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
418 | end | |
419 | ||
420 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
421 | local frame = IT("Frame") | |
422 | frame.BackgroundTransparency = TRANSPARENCY | |
423 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
424 | frame.Position = POSITION | |
425 | frame.Size = SIZE | |
426 | frame.BackgroundColor3 = COLOR | |
427 | frame.BorderColor3 = BORDERCOLOR | |
428 | frame.Name = NAME | |
429 | frame.Parent = PARENT | |
430 | return frame | |
431 | end | |
432 | ||
433 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
434 | local label = IT("TextLabel") | |
435 | label.BackgroundTransparency = 1 | |
436 | label.Size = UD2(1, 0, 1, 0) | |
437 | label.Position = UD2(0, 0, 0, 0) | |
438 | label.TextColor3 = TEXTCOLOR | |
439 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
440 | label.TextTransparency = TRANSPARENCY | |
441 | label.FontSize = TEXTFONTSIZE | |
442 | label.Font = TEXTFONT | |
443 | label.BorderSizePixel = BORDERSIZEPIXEL | |
444 | label.TextScaled = false | |
445 | label.Text = TEXT | |
446 | label.Name = NAME | |
447 | label.Parent = PARENT | |
448 | return label | |
449 | end | |
450 | ||
451 | function NoOutlines(PART) | |
452 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
453 | end | |
454 | ||
455 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
456 | local NEWWELD = IT(TYPE) | |
457 | NEWWELD.Part0 = PART0 | |
458 | NEWWELD.Part1 = PART1 | |
459 | NEWWELD.C0 = C0 | |
460 | NEWWELD.C1 = C1 | |
461 | NEWWELD.Parent = PARENT | |
462 | return NEWWELD | |
463 | end | |
464 | ||
465 | local S = IT("Sound") | |
466 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
467 | local NEWSOUND = nil | |
468 | coroutine.resume(coroutine.create(function() | |
469 | NEWSOUND = S:Clone() | |
470 | NEWSOUND.Parent = PARENT | |
471 | NEWSOUND.Volume = VOLUME | |
472 | NEWSOUND.Pitch = PITCH | |
473 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
474 | NEWSOUND:play() | |
475 | if DOESLOOP == true then | |
476 | NEWSOUND.Looped = true | |
477 | else | |
478 | repeat wait(1) until NEWSOUND.Playing == false | |
479 | NEWSOUND:remove() | |
480 | end | |
481 | end)) | |
482 | return NEWSOUND | |
483 | end | |
484 | ||
485 | function CFrameFromTopBack(at, top, back) | |
486 | local right = top:Cross(back) | |
487 | 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) | |
488 | end | |
489 | ||
490 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
491 | function WACKYEFFECT(Table) | |
492 | local TYPE = (Table.EffectType or "Sphere") | |
493 | local SIZE = (Table.Size or VT(1,1,1)) | |
494 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
495 | local TRANSPARENCY = (Table.Transparency or 0) | |
496 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
497 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
498 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
499 | local ROTATION1 = (Table.RotationX or 0) | |
500 | local ROTATION2 = (Table.RotationY or 0) | |
501 | local ROTATION3 = (Table.RotationZ or 0) | |
502 | local MATERIAL = (Table.Material or "Neon") | |
503 | local COLOR = (Table.Color or C3(1,1,1)) | |
504 | local TIME = (Table.Time or 45) | |
505 | local SOUNDID = (Table.SoundID or nil) | |
506 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
507 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
508 | coroutine.resume(coroutine.create(function() | |
509 | local PLAYSSOUND = false | |
510 | local SOUND = nil | |
511 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
512 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
513 | PLAYSSOUND = true | |
514 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
515 | end | |
516 | EFFECT.Color = COLOR | |
517 | local MSH = nil | |
518 | if TYPE == "Sphere" then | |
519 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
520 | elseif TYPE == "Block" then | |
521 | MSH = IT("BlockMesh",EFFECT) | |
522 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
523 | elseif TYPE == "Wave" then | |
524 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
525 | elseif TYPE == "Ring" then | |
526 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
527 | elseif TYPE == "Slash" then | |
528 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
529 | elseif TYPE == "Round Slash" then | |
530 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
531 | elseif TYPE == "Swirl" then | |
532 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
533 | elseif TYPE == "Skull" then | |
534 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
535 | elseif TYPE == "Crystal" then | |
536 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
537 | end | |
538 | if MSH ~= nil then | |
539 | local MOVESPEED = nil | |
540 | if MOVEDIRECTION ~= nil then | |
541 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
542 | end | |
543 | local GROWTH = SIZE - ENDSIZE | |
544 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
545 | if TYPE == "Block" then | |
546 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
547 | else | |
548 | EFFECT.CFrame = CFRAME | |
549 | end | |
550 | for LOOP = 1, TIME+1 do | |
551 | Swait() | |
552 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
553 | if TYPE == "Wave" then | |
554 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
555 | end | |
556 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
557 | if TYPE == "Block" then | |
558 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
559 | else | |
560 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
561 | end | |
562 | if MOVEDIRECTION ~= nil then | |
563 | local ORI = EFFECT.Orientation | |
564 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
565 | EFFECT.Orientation = ORI | |
566 | end | |
567 | end | |
568 | if PLAYSSOUND == false then | |
569 | EFFECT:remove() | |
570 | else | |
571 | repeat Swait() until SOUND.Playing == false | |
572 | EFFECT:remove() | |
573 | end | |
574 | else | |
575 | if PLAYSSOUND == false then | |
576 | EFFECT:remove() | |
577 | else | |
578 | repeat Swait() until SOUND.Playing == false | |
579 | EFFECT:remove() | |
580 | end | |
581 | end | |
582 | end)) | |
583 | end | |
584 | ||
585 | function MakeForm(PART,TYPE) | |
586 | if TYPE == "Cyl" then | |
587 | local MSH = IT("CylinderMesh",PART) | |
588 | elseif TYPE == "Ball" then | |
589 | local MSH = IT("SpecialMesh",PART) | |
590 | MSH.MeshType = "Sphere" | |
591 | elseif TYPE == "Wedge" then | |
592 | local MSH = IT("SpecialMesh",PART) | |
593 | MSH.MeshType = "Wedge" | |
594 | end | |
595 | end | |
596 | ||
597 | Debris = game:GetService("Debris") | |
598 | ||
599 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
600 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
601 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
602 | end | |
603 | ||
604 | function turnto(position) | |
605 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
606 | end | |
607 | ||
608 | --//=================================\\ | |
609 | --|| WEAPON CREATION | |
610 | --\\=================================// | |
611 | ||
612 | local BasePart = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(1.01,0.3,1.01),false) | |
613 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
614 | for i = 1, 3 do | |
615 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
616 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
617 | MakeForm(Part,"Cyl") | |
618 | end | |
619 | for i = 1, 3 do | |
620 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
621 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0)) | |
622 | MakeForm(Part,"Cyl") | |
623 | end | |
624 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
625 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
626 | MakeForm(Part,"Wedge") | |
627 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
628 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
629 | MakeForm(Part,"Wedge") | |
630 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
631 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
632 | MakeForm(Part,"Wedge") | |
633 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
634 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
635 | MakeForm(Part,"Wedge") | |
636 | ||
637 | for _, c in pairs(Weapon:GetChildren()) do | |
638 | if c.ClassName == "Part" then | |
639 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
640 | local AURA = c:Clone() | |
641 | AURA:BreakJoints() | |
642 | AURA.Parent = c | |
643 | AURA.CFrame = c.CFrame | |
644 | AURA.Size = AURA.Size*1.001 | |
645 | AURA.Transparency = 0.3 | |
646 | AURA.BrickColor = BRICKC"Gold" | |
647 | AURA.Material = "Neon" | |
648 | weldBetween(c,AURA) | |
649 | end | |
650 | end | |
651 | ||
652 | local SKILLTEXTCOLOR = BRICKC"Gold".Color | |
653 | local SKILLFONT = "Bodoni" | |
654 | local SKILLTEXTSIZE = 7 | |
655 | ||
656 | Weapon.Parent = Character | |
657 | ||
658 | Humanoid.Died:connect(function() | |
659 | ATTACK = true | |
660 | end) | |
661 | ||
662 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
663 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
664 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
665 | ||
666 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Aether Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") | |
667 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Aether Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
668 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Aether Immobilization", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
669 | ||
670 | --//=================================\\ | |
671 | --|| DAMAGE FUNCTIONS | |
672 | --\\=================================// | |
673 | ||
674 | function StatLabel(CFRAME, TEXT, COLOR) | |
675 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
676 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
677 | local BODYGYRO = IT("BodyGyro", STATPART) | |
678 | game:GetService("Debris"):AddItem(STATPART ,5) | |
679 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
680 | BILLBOARDGUI.Adornee = STATPART | |
681 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
682 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
683 | BILLBOARDGUI.AlwaysOnTop = false | |
684 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
685 | TEXTLABEL.BackgroundTransparency = 1 | |
686 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
687 | TEXTLABEL.Text = TEXT | |
688 | TEXTLABEL.Font = SKILLFONT | |
689 | TEXTLABEL.FontSize="Size42" | |
690 | TEXTLABEL.TextColor3 = COLOR | |
691 | TEXTLABEL.TextStrokeTransparency = 0 | |
692 | TEXTLABEL.TextScaled = true | |
693 | TEXTLABEL.TextWrapped = true | |
694 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
695 | for i = 1, 50 do | |
696 | Swait() | |
697 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
698 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
699 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
700 | end | |
701 | THEPART.Parent = nil | |
702 | end),STATPART, TEXTLABEL) | |
703 | end | |
704 | ||
705 | --//=================================\\ | |
706 | --|| DAMAGING | |
707 | --\\=================================// | |
708 | ||
709 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
710 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
711 | defence.Name = ("HitBy"..Player.Name) | |
712 | game:GetService("Debris"):AddItem(defence, 0.001) | |
713 | Damage = Damage * DAMAGEMULTIPLIER | |
714 | if Humanoid.Health ~= 0 then | |
715 | local CritChance = MRANDOM(1,100) | |
716 | if Damage > Humanoid.Health then | |
717 | Damage = math.ceil(Humanoid.Health) | |
718 | if Damage == 0 then | |
719 | Damage = 0.1 | |
720 | end | |
721 | end | |
722 | Humanoid.Health = Humanoid.Health - Damage | |
723 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
724 | end | |
725 | end | |
726 | ||
727 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,STUNS) | |
728 | local CHILDREN = workspace:GetDescendants() | |
729 | for index, CHILD in pairs(CHILDREN) do | |
730 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
731 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
732 | if HUM then | |
733 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
734 | if TORSO then | |
735 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
736 | if STUNS == true then | |
737 | coroutine.resume(coroutine.create(function() | |
738 | if HUM:FindFirstChild("StunValue") == nil then | |
739 | StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Stunned!", C3(1,1,1)) | |
740 | HUM.PlatformStand = true | |
741 | local STUNVALUE = IT("NumberValue",HUM) | |
742 | STUNVALUE.Name = "StunValue" | |
743 | STUNVALUE.Value = 8 | |
744 | repeat wait(1) STUNVALUE.Value = STUNVALUE.Value - 1 until STUNVALUE.Value <= 0 | |
745 | HUM.PlatformStand = false | |
746 | STUNVALUE:remove() | |
747 | else | |
748 | HUM.StunValue.Value = 8 | |
749 | end | |
750 | end)) | |
751 | end | |
752 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
753 | ApplyDamage(HUM,DMG,TORSO) | |
754 | if FLING > 0 then | |
755 | for _, c in pairs(CHILD:GetChildren()) do | |
756 | if c:IsA("BasePart") then | |
757 | local bv = Instance.new("BodyVelocity") | |
758 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
759 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
760 | bv.Parent = c | |
761 | Debris:AddItem(bv,0.05) | |
762 | end | |
763 | end | |
764 | end | |
765 | end | |
766 | end | |
767 | end | |
768 | end | |
769 | end | |
770 | end | |
771 | ||
772 | --//=================================\\ | |
773 | --|| ATTACK FUNCTIONS AND STUFF | |
774 | --\\=================================// | |
775 | ||
776 | function Charge(TIME,GYRO) | |
777 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
778 | local G = nil | |
779 | if GYRO == true then | |
780 | G = IT("BodyGyro",RootPart) | |
781 | G.D = 250 | |
782 | G.P = 200000 | |
783 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
784 | end | |
785 | for i=0, TIME, 0.1 / Animation_Speed do | |
786 | Swait() | |
787 | if G then | |
788 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
789 | end | |
790 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
791 | 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) | |
792 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
793 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
794 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
795 | 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) | |
796 | 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) | |
797 | end | |
798 | SND:remove() | |
799 | if G then | |
800 | return G | |
801 | end | |
802 | end | |
803 | ||
804 | function Aether_Beam() | |
805 | ATTACK = true | |
806 | Rooted = false | |
807 | local GRAV = IT("BodyPosition",RootPart) | |
808 | GRAV.D = 75 | |
809 | GRAV.P = 20000 | |
810 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
811 | GRAV.Position = RootPart.Position | |
812 | local GYRO = Charge(2,true) | |
813 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(15,15,0)) | |
814 | MakeForm(BEAM,"Ball") | |
815 | CreateSound(BEAMSOUND,BEAM,10,1,false) | |
816 | CreateSound(BEAMSOUND,BEAM,10,0.9,false) | |
817 | CreateSound(BEAMSOUND,BEAM,10,0.8,false) | |
818 | for i = 1, 150 do | |
819 | Swait() | |
820 | BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2) | |
821 | ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,5,8,125,false) | |
822 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
823 | BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2)) | |
824 | 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) | |
825 | 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) | |
826 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
827 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
828 | 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) | |
829 | 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) | |
830 | end | |
831 | GRAV:remove() | |
832 | BEAM:remove() | |
833 | GYRO:remove() | |
834 | ATTACK = false | |
835 | Rooted = false | |
836 | end | |
837 | ||
838 | function Aether_Explosion() | |
839 | ATTACK = true | |
840 | Rooted = true | |
841 | for i=0, 1, 0.1 / Animation_Speed do | |
842 | Swait() | |
843 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed) | |
844 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed) | |
845 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
846 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
847 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
848 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
849 | end | |
850 | for i=0, 0.4, 0.1 / Animation_Speed do | |
851 | Swait() | |
852 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed) | |
853 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed) | |
854 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
855 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
856 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
857 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
858 | end | |
859 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0)) | |
860 | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0)) | |
861 | MakeForm(BEAM,"Ball") | |
862 | MakeForm(BEAM2,"Ball") | |
863 | BEAM.CFrame = CF(RootPart.Position) | |
864 | BEAM2.CFrame = CF(RootPart.Position) | |
865 | CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
866 | for i=1, 100 do | |
867 | Swait() | |
868 | BEAM.Size = BEAM.Size + VT(0.7,8,0.7) | |
869 | BEAM2.Size = BEAM2.Size + VT(2,2,2) | |
870 | ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,1,1,15,false) | |
871 | BEAM.CFrame = CF(RootPart.Position) | |
872 | BEAM2.CFrame = CF(RootPart.Position) | |
873 | WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
874 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed) | |
875 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed) | |
876 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
877 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
878 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
879 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
880 | end | |
881 | WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
882 | WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
883 | BEAM2:remove() | |
884 | BEAM:remove() | |
885 | ATTACK = false | |
886 | Rooted = false | |
887 | end | |
888 | ||
889 | function Aether_Immobilization() | |
890 | ATTACK = true | |
891 | Rooted = true | |
892 | Charge(2,false) | |
893 | local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
894 | local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false) | |
895 | for i = 1, 60 do | |
896 | Swait() | |
897 | ApplyAoE(RootPart.Position,i*1.3,1,1,-200,true) | |
898 | SND.Pitch = SND.Pitch - 1/60 | |
899 | SND2.Pitch = SND.Pitch | |
900 | WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
901 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
902 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
903 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
904 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
905 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
906 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
907 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
908 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
909 | end | |
910 | SND:remove() | |
911 | SND2:remove() | |
912 | ATTACK = false | |
913 | Rooted = false | |
914 | end | |
915 | ||
916 | --//=================================\\ | |
917 | --|| ASSIGN THINGS TO KEYS | |
918 | --\\=================================// | |
919 | ||
920 | function MouseDown(Mouse) | |
921 | if ATTACK == false then | |
922 | end | |
923 | end | |
924 | ||
925 | function MouseUp(Mouse) | |
926 | HOLD = false | |
927 | end | |
928 | ||
929 | function KeyDown(Key) | |
930 | KEYHOLD = true | |
931 | if Key == "z" and ATTACK == false then | |
932 | Aether_Beam() | |
933 | end | |
934 | ||
935 | if Key == "b" and ATTACK == false then | |
936 | Aether_Explosion() | |
937 | end | |
938 | ||
939 | if Key == "c" and ATTACK == false then | |
940 | Aether_Immobilization() | |
941 | end | |
942 | end | |
943 | ||
944 | function KeyUp(Key) | |
945 | KEYHOLD = false | |
946 | end | |
947 | ||
948 | Mouse.Button1Down:connect(function(NEWKEY) | |
949 | MouseDown(NEWKEY) | |
950 | end) | |
951 | Mouse.Button1Up:connect(function(NEWKEY) | |
952 | MouseUp(NEWKEY) | |
953 | end) | |
954 | Mouse.KeyDown:connect(function(NEWKEY) | |
955 | KeyDown(NEWKEY) | |
956 | end) | |
957 | Mouse.KeyUp:connect(function(NEWKEY) | |
958 | KeyUp(NEWKEY) | |
959 | end) | |
960 | ||
961 | --//=================================\\ | |
962 | --\\=================================// | |
963 | ||
964 | function unanchor() | |
965 | if UNANCHOR == true then | |
966 | g = Character:GetChildren() | |
967 | for i = 1, #g do | |
968 | if g[i].ClassName == "Part" then | |
969 | g[i].Anchored = false | |
970 | end | |
971 | end | |
972 | end | |
973 | end | |
974 | ||
975 | --//=================================\\ | |
976 | --|| WRAP THE WHOLE SCRIPT UP | |
977 | --\\=================================// | |
978 | ||
979 | Humanoid.Changed:connect(function(Jump) | |
980 | if Jump == "Jump" and (Disable_Jump == true) then | |
981 | Humanoid.Jump = false | |
982 | end | |
983 | end) | |
984 | ||
985 | while true do | |
986 | Swait() | |
987 | script.Parent = WEAPONGUI | |
988 | ANIMATE.Parent = nil | |
989 | if Humanoid then | |
990 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
991 | IDLEANIMATION:Play() | |
992 | end | |
993 | SINE = SINE + CHANGE | |
994 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
995 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
996 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
997 | local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16) | |
998 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
999 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1000 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1001 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
1002 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
1003 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1004 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1005 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1006 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1007 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1008 | end | |
1009 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1010 | ANIM = "Jump" | |
1011 | if ATTACK == false then | |
1012 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1013 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1014 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1015 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1016 | 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) | |
1017 | 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) | |
1018 | end | |
1019 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1020 | ANIM = "Fall" | |
1021 | if ATTACK == false then | |
1022 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1023 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1024 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1025 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1026 | 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) | |
1027 | 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) | |
1028 | end | |
1029 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1030 | ANIM = "Idle" | |
1031 | if ATTACK == false then | |
1032 | 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) | |
1033 | 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) | |
1034 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1035 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1036 | 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) | |
1037 | 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) | |
1038 | end | |
1039 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1040 | ANIM = "Walk" | |
1041 | if ATTACK == false then | |
1042 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1043 | 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) | |
1044 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1045 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1046 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
1047 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
1048 | end | |
1049 | end | |
1050 | unanchor() | |
1051 | Humanoid.MaxHealth = "inf" | |
1052 | Humanoid.Health = "inf" | |
1053 | if Rooted == false then | |
1054 | Disable_Jump = false | |
1055 | Humanoid.WalkSpeed = Speed | |
1056 | elseif Rooted == true then | |
1057 | Disable_Jump = true | |
1058 | Humanoid.WalkSpeed = 0 | |
1059 | end | |
1060 | end | |
1061 | ||
1062 | --//=================================\\ | |
1063 | --\\=================================// | |
1064 | ||
1065 | ||
1066 | ||
1067 | ||
1068 | ||
1069 | --//====================================================\\-- | |
1070 | --|| END OF SCRIPT | |
1071 | --\\====================================================//-- |