SHOW:
|
|
- or go back to the newest paste.
1 | - | print("Footplanting math by 123jl123 so yes") |
1 | + | |
2 | - | print("Same with Holiday Feelings") |
2 | + | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code by Mokiros") | |
7 | local rp = RealPlayer | |
8 | script.Parent = rp.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent then | |
34 | for _,f in pairs(t.Functions) do | |
35 | f(...) | |
36 | end | |
37 | end | |
38 | end | |
39 | m.TrigEvent = te | |
40 | UIS.TrigEvent = te | |
41 | ||
42 | Event.OnServerEvent:Connect(function(plr,io) | |
43 | if plr~=rp then return end | |
44 | m.Target = io.Target | |
45 | m.Hit = io.Hit | |
46 | if not io.isMouse then | |
47 | local b = io.UserInputState == Enum.UserInputState.Begin | |
48 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
49 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
50 | end | |
51 | for _,t in pairs(CAS.Actions) do | |
52 | for _,k in pairs(t.Keys) do | |
53 | if k==io.KeyCode then | |
54 | t.Function(t.Name,io.UserInputState,io) | |
55 | end | |
56 | end | |
57 | end | |
58 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
59 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
60 | end | |
61 | end) | |
62 | Event.Parent = NLS([==[ | |
63 | local Player = game:GetService("Players").LocalPlayer | |
64 | local Event = script:WaitForChild("UserInput_Event") | |
65 | ||
66 | local Mouse = Player:GetMouse() | |
67 | local UIS = game:GetService("UserInputService") | |
68 | local input = function(io,a) | |
69 | if a then return end | |
70 | --Since InputObject is a client-side instance, we create and pass table instead | |
71 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
72 | end | |
73 | UIS.InputBegan:Connect(input) | |
74 | UIS.InputEnded:Connect(input) | |
75 | ||
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.PlayerGui) | |
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 return s[k] end | |
95 | end, | |
96 | __newindex = function(self,k,v) | |
97 | local s = rawget(self,"_RealService") | |
98 | if s then s[k]=v end | |
99 | end, | |
100 | __call = function(self,...) | |
101 | local s = rawget(self,"_RealService") | |
102 | if s then return s(...) end | |
103 | end | |
104 | } | |
105 | local function FakeService(t,RealService) | |
106 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
107 | return setmetatable(t,fsmt) | |
108 | end | |
109 | ||
110 | --Fake game object | |
111 | local g = { | |
112 | GetService = function(self,s) | |
113 | return self[s] | |
114 | end, | |
115 | Players = FakeService({ | |
116 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
117 | },"Players"), | |
118 | UserInputService = FakeService(UIS,"UserInputService"), | |
119 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
120 | } | |
121 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
122 | g.service = g.GetService | |
123 | ||
124 | g.RunService = FakeService({ | |
125 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
126 | BindToRenderStep = function(self,name,_,fun) | |
127 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
128 | end, | |
129 | UnbindFromRenderStep = function(self,name) | |
130 | self._btrs[name]:Disconnect() | |
131 | end, | |
132 | },"RunService") | |
133 | ||
134 | setmetatable(g,{ | |
135 | __index=function(self,s) | |
136 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
137 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
138 | end, | |
139 | __newindex = fsmt.__newindex, | |
140 | __call = fsmt.__call | |
141 | }) | |
142 | --Changing owner to fake player object to support owner:GetMouse() | |
143 | game,owner = g,g.Players.LocalPlayer | |
144 | end | |
145 | --[[ | |
146 | I had a good friend who i gave it as a birthday present.. | |
147 | But he betrayed me and decided to give it to a person who i hated most.. | |
148 | ||
149 | Enjoy,skids! | |
150 | ]] | |
151 | --Demoralized | |
152 | --Made by //TameDoNotClick// | |
153 | - | --Made by //vlad20020// |
153 | + | |
154 | print("Demoralized") | |
155 | print("editied by TameDoNotClick") | |
156 | - | print("Made by vlad20020") |
156 | + | |
157 | warn( | |
158 | [[ | |
159 | Click - Punch | |
160 | Q - Switch Mode | |
161 | X - TP | |
162 | R - Plasma Shard | |
163 | T - Taunt(Demoralized/DEMORALIZATION mode) | |
164 | N - Spec Attack | |
165 | F - Plasma Beam | |
166 | E - Sky Strike | |
167 | M - Mute Music]]) | |
168 | print( | |
169 | [[Modes: | |
170 | Normal | |
171 | Demoralized | |
172 | DEMORALIZATION | |
173 | Star]]) | |
174 | --Services | |
175 | local plrs = game:GetService("Players") | |
176 | local tweens = game:GetService("TweenService") | |
177 | local debrs = game:GetService("Debris") | |
178 | local runservice = game:GetService("RunService") | |
179 | ||
180 | --Variables | |
181 | local plr = plrs.LocalPlayer | |
182 | local mouse = plr:GetMouse() | |
183 | local char = plr.Character | |
184 | local h = char.Head | |
185 | local t = char.Torso | |
186 | local ra = char["Right Arm"] | |
187 | local la = char["Left Arm"] | |
188 | local rl = char["Right Leg"] | |
189 | local ll = char["Left Leg"] | |
190 | local rut = char.HumanoidRootPart | |
191 | local hum = char:FindFirstChildOfClass("Humanoid") | |
192 | local nec = t.Neck | |
193 | local rutj = rut.RootJoint | |
194 | local rs = t["Right Shoulder"] | |
195 | local ls = t["Left Shoulder"] | |
196 | local rh = t["Right Hip"] | |
197 | local lh = t["Left Hip"] | |
198 | local cf1 = nec.C1 | |
199 | local cf2 = rutj.C1 | |
200 | local cf3 = rs.C1 | |
201 | local cf4 = ls.C1 | |
202 | local cf5 = rh.C1 | |
203 | local cf6 = lh.C1 | |
204 | local cf01 = nec.C0 | |
205 | local cf02 = rutj.C0 | |
206 | local cf03 = rs.C0 | |
207 | local cf04 = ls.C0 | |
208 | local cf05 = rh.C0 | |
209 | local cf06 = lh.C0 | |
210 | local p0,p1 = nec.Part0,nec.Part1 | |
211 | local rsp0,rsp1 = rs.Part0,rs.Part1 | |
212 | local lsp0,lsp1 = ls.Part0,ls.Part1 | |
213 | local rhp0,rhp1 = rh.Part0,rh.Part1 | |
214 | local lhp0,lhp1 = lh.Part0,lh.Part1 | |
215 | local phit | |
216 | local wristband | |
217 | local bandhandle | |
218 | ||
219 | --Bools | |
220 | local using = false | |
221 | local landed = false | |
222 | local readytoland = false | |
223 | local cangrabthecorner = false | |
224 | local grabbedc = false | |
225 | local roaring = false | |
226 | local superattackcooldown1 = false | |
227 | local superattackcooldown2 = false | |
228 | local superattackcooldown3 = false | |
229 | local superattackcooldown4 = false | |
230 | local lookinaround = false | |
231 | local deafen = false | |
232 | ||
233 | --Values/Strings/Tables | |
234 | -- | |
235 | local aa = 10 | |
236 | local aaa = aa*3 | |
237 | local change = 0 | |
238 | local lchange = 0 | |
239 | local sine = 1 | |
240 | local animspeed = .005 | |
241 | local animspeed1 = 1.5 | |
242 | local walkanimspeed = .1 | |
243 | local walkspeed = 16 | |
244 | local sumthin = walkspeed/8 | |
245 | local idlenum = 0 | |
246 | local lsvol = 4 | |
247 | - | local lsvol = 2 |
247 | + | |
248 | local timepos = 0 | |
249 | local idlenum = 0 | |
250 | local lchange = 0 | |
251 | local vol = 1.5 | |
252 | - | local vol = .75 |
252 | + | |
253 | local whenbored = math.random(3,6) | |
254 | local maxhealthuntilinstakill = 100000 | |
255 | -- | |
256 | local songid = "rbxassetid://149820574" | |
257 | local anim = "idle" | |
258 | local mode = "Normal" | |
259 | -- | |
260 | local ids = { | |
261 | normalmode = "rbxassetid://149820574", | |
262 | demoralizedmode = "rbxassetid://1561410944", | |
263 | demoralizationmode = "rbxassetid://1837111398", | |
264 | starmode = "rbxassetid://436405140"} | |
265 | ||
266 | local modecolors = { | |
267 | normalcolors = {color1 = "Sea green",color2 = "Camo",neoncolor ="White"}, | |
268 | demoralizedcolors = {color1 = "Black",color2 = "Really black",neoncolor ="Maroon"}, | |
269 | demoralizationcolors = {color1 = "Really red",color2 = "Cocoa",neoncolor ="Maroon"}, | |
270 | starcolors = {color1 = "Cool yellow",color2 = "Deep orange",neoncolor ="CGA brown"} | |
271 | } | |
272 | ||
273 | --Tweening styles and directions | |
274 | local directions = {In = Enum.EasingDirection.In, | |
275 | Out = Enum.EasingDirection.Out, | |
276 | InOut = Enum.EasingDirection.InOut | |
277 | } | |
278 | local styles = {Linear = Enum.EasingStyle.Linear, | |
279 | Back = Enum.EasingStyle.Back, | |
280 | Bounce = Enum.EasingStyle.Bounce, | |
281 | Sine = Enum.EasingStyle.Sine, | |
282 | Quad = Enum.EasingStyle.Quad, | |
283 | Elastic = Enum.EasingStyle.Elastic, | |
284 | Quart = Enum.EasingStyle.Quart, | |
285 | Quint = Enum.EasingStyle.Quint | |
286 | } | |
287 | ||
288 | --BasicFunctions | |
289 | local ins = Instance.new | |
290 | local v3 = Vector3.new | |
291 | local cf = CFrame.new | |
292 | local angles = CFrame.Angles | |
293 | local rad = math.rad | |
294 | local huge = math.huge | |
295 | local cos = math.cos | |
296 | local sin = math.sin | |
297 | local tan = math.tan | |
298 | local ray = Ray.new | |
299 | local random = math.random | |
300 | local ud = UDim.new | |
301 | local ud2 = UDim2.new | |
302 | local c3 = Color3.new | |
303 | local rgb = Color3.fromRGB | |
304 | local bc = BrickColor.new | |
305 | ||
306 | --CFrames | |
307 | cf5 = cf5 * CFrame.Angles(rad(2),rad(0),rad(0)) | |
308 | cf6 = cf6 * CFrame.Angles(rad(2),rad(0),rad(0)) | |
309 | cff5 = cf5 * CFrame.Angles(rad(2),rad(3),rad(0)) | |
310 | cff6 = cf6 * CFrame.Angles(rad(2),rad(-3),rad(0)) | |
311 | ||
312 | --Stopping animations | |
313 | for i,v in pairs(hum:GetPlayingAnimationTracks()) do | |
314 | v:Stop() | |
315 | end | |
316 | if char:FindFirstChild("Animate") then | |
317 | char.Animate:Destroy() | |
318 | end | |
319 | if hum:FindFirstChildOfClass("Animator") then | |
320 | char.Humanoid.Animator:Destroy() | |
321 | end | |
322 | hum.MaxHealth = 5000 | |
323 | hum.Health = 5000 | |
324 | ||
325 | --Model | |
326 | --Converted with ttyyuu12345's model to script plugin v4 | |
327 | function sandbox(var,func) | |
328 | local env = getfenv(func) | |
329 | local newenv = setmetatable({},{ | |
330 | __index = function(self,k) | |
331 | if k=="script" then | |
332 | return var | |
333 | else | |
334 | return env[k] | |
335 | end | |
336 | end, | |
337 | }) | |
338 | setfenv(func,newenv) | |
339 | return func | |
340 | end | |
341 | cors = {} | |
342 | mas = Instance.new("Model",game:GetService("Lighting")) | |
343 | Model0 = Instance.new("Model") | |
344 | Part1 = Instance.new("Part") | |
345 | Part2 = Instance.new("Part") | |
346 | SpecialMesh3 = Instance.new("SpecialMesh") | |
347 | Part4 = Instance.new("Part") | |
348 | Part5 = Instance.new("Part") | |
349 | Part6 = Instance.new("Part") | |
350 | Part7 = Instance.new("Part") | |
351 | Part8 = Instance.new("Part") | |
352 | Part9 = Instance.new("Part") | |
353 | WeldConstraint10 = Instance.new("WeldConstraint") | |
354 | WeldConstraint11 = Instance.new("WeldConstraint") | |
355 | WeldConstraint12 = Instance.new("WeldConstraint") | |
356 | WeldConstraint13 = Instance.new("WeldConstraint") | |
357 | WeldConstraint14 = Instance.new("WeldConstraint") | |
358 | WeldConstraint15 = Instance.new("WeldConstraint") | |
359 | WeldConstraint16 = Instance.new("Weld") | |
360 | Model0.Name = "Wristband" | |
361 | Model0.Parent = mas | |
362 | Model0.PrimaryPart = Part9 | |
363 | Part1.Name = "LighterPart" | |
364 | Part1.Parent = Model0 | |
365 | Part1.CFrame = CFrame.new(104.866997, 26.2399998, -119.177498, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
366 | Part1.Orientation = Vector3.new(0, 90, 0) | |
367 | Part1.Position = Vector3.new(104.866997, 26.2399998, -119.177498) | |
368 | Part1.Rotation = Vector3.new(0, 90, 0) | |
369 | Part1.Color = Color3.new(0.203922, 0.556863, 0.25098) | |
370 | Part1.Size = Vector3.new(0.075000003, 0.649999976, 0.649999976) | |
371 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
372 | Part1.BrickColor = BrickColor.new("Sea green") | |
373 | Part1.CanCollide = false | |
374 | Part1.Material = Enum.Material.SmoothPlastic | |
375 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
376 | Part1.brickColor = BrickColor.new("Sea green") | |
377 | Part1.Shape = Enum.PartType.Cylinder | |
378 | Part2.Name = "Sign" | |
379 | Part2.Parent = Model0 | |
380 | Part2.CFrame = CFrame.new(104.866997, 26.2399998, -119.177002, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
381 | Part2.Orientation = Vector3.new(0, 180, 0) | |
382 | Part2.Position = Vector3.new(104.866997, 26.2399998, -119.177002) | |
383 | Part2.Rotation = Vector3.new(-180, 0, -180) | |
384 | Part2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007) | |
385 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
386 | Part2.CanCollide = false | |
387 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
388 | SpecialMesh3.Parent = Part2 | |
389 | SpecialMesh3.MeshId = "rbxassetid://443493147" | |
390 | SpecialMesh3.Offset = Vector3.new(0, 0, 0.0350000001) | |
391 | SpecialMesh3.Scale = Vector3.new(0.00749999983, 0.00749999983, 0.00100000005) | |
392 | SpecialMesh3.MeshType = Enum.MeshType.FileMesh | |
393 | Part4.Name = "DarkerPart" | |
394 | Part4.Parent = Model0 | |
395 | Part4.CFrame = CFrame.new(104.866997, 26.2399998, -119.164993, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
396 | Part4.Orientation = Vector3.new(0, 90, 0) | |
397 | Part4.Position = Vector3.new(104.866997, 26.2399998, -119.164993) | |
398 | Part4.Rotation = Vector3.new(0, 90, 0) | |
399 | Part4.Color = Color3.new(0.227451, 0.490196, 0.0823529) | |
400 | Part4.Size = Vector3.new(0.0500000007, 0.699999988, 0.699999988) | |
401 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
402 | Part4.BrickColor = BrickColor.new("Camo") | |
403 | Part4.CanCollide = false | |
404 | Part4.Material = Enum.Material.SmoothPlastic | |
405 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
406 | Part4.brickColor = BrickColor.new("Camo") | |
407 | Part4.Shape = Enum.PartType.Cylinder | |
408 | Part5.Name = "DarkerPart" | |
409 | Part5.Parent = Model0 | |
410 | Part5.CFrame = CFrame.new(104.862, 26.2400093, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
411 | Part5.Position = Vector3.new(104.862, 26.2400093, -118.660004) | |
412 | Part5.Color = Color3.new(0.227451, 0.490196, 0.0823529) | |
413 | Part5.Size = Vector3.new(1.05999994, 0.100000001, 1.05999994) | |
414 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
415 | Part5.BrickColor = BrickColor.new("Camo") | |
416 | Part5.CanCollide = false | |
417 | Part5.Material = Enum.Material.SmoothPlastic | |
418 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
419 | Part5.brickColor = BrickColor.new("Camo") | |
420 | Part6.Name = "NeonPart" | |
421 | Part6.Parent = Model0 | |
422 | Part6.CFrame = CFrame.new(104.862, 26.3150082, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
423 | Part6.Position = Vector3.new(104.862, 26.3150082, -118.660004) | |
424 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
425 | Part6.Size = Vector3.new(1.05999994, 0.0500000007, 1.05999994) | |
426 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
427 | Part6.BrickColor = BrickColor.new("Pearl") | |
428 | Part6.CanCollide = false | |
429 | Part6.Material = Enum.Material.Neon | |
430 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
431 | Part6.brickColor = BrickColor.new("Pearl") | |
432 | Part7.Name = "NeonPart" | |
433 | Part7.Parent = Model0 | |
434 | Part7.CFrame = CFrame.new(104.862, 26.1650105, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
435 | Part7.Position = Vector3.new(104.862, 26.1650105, -118.660004) | |
436 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
437 | Part7.Size = Vector3.new(1.05999994, 0.0500000007, 1.05999994) | |
438 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
439 | Part7.BrickColor = BrickColor.new("Pearl") | |
440 | Part7.CanCollide = false | |
441 | Part7.Material = Enum.Material.Neon | |
442 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
443 | Part7.brickColor = BrickColor.new("Pearl") | |
444 | Part8.Name = "LighterPart" | |
445 | Part8.Parent = Model0 | |
446 | Part8.CFrame = CFrame.new(104.862, 26.2400093, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
447 | Part8.Position = Vector3.new(104.862, 26.2400093, -118.660004) | |
448 | Part8.Color = Color3.new(0.203922, 0.556863, 0.25098) | |
449 | Part8.Size = Vector3.new(1.04999995, 0.299999833, 1.04999995) | |
450 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
451 | Part8.BrickColor = BrickColor.new("Sea green") | |
452 | Part8.CanCollide = false | |
453 | Part8.Material = Enum.Material.SmoothPlastic | |
454 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
455 | Part8.brickColor = BrickColor.new("Sea green") | |
456 | Part9.Name = "FakeArm" | |
457 | Part9.Parent = Model0 | |
458 | Part9.CFrame = CFrame.new(104.862312, 26.8397083, -118.660202, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
459 | Part9.Position = Vector3.new(104.862312, 26.8397083, -118.660202) | |
460 | Part9.Transparency = 1 | |
461 | Part9.Size = Vector3.new(1, 2, 1) | |
462 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
463 | Part9.CanCollide = false | |
464 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
465 | WeldConstraint10.Parent = Part9 | |
466 | WeldConstraint10.Part0 = Part9 | |
467 | WeldConstraint10.Part1 = Part8 | |
468 | WeldConstraint11.Parent = Part9 | |
469 | WeldConstraint11.Part0 = Part9 | |
470 | WeldConstraint11.Part1 = Part5 | |
471 | WeldConstraint12.Parent = Part9 | |
472 | WeldConstraint12.Part0 = Part9 | |
473 | WeldConstraint12.Part1 = Part6 | |
474 | WeldConstraint13.Parent = Part9 | |
475 | WeldConstraint13.Part0 = Part9 | |
476 | WeldConstraint13.Part1 = Part7 | |
477 | WeldConstraint14.Parent = Part9 | |
478 | WeldConstraint14.Part0 = Part9 | |
479 | WeldConstraint14.Part1 = Part4 | |
480 | WeldConstraint15.Parent = Part9 | |
481 | WeldConstraint15.Part0 = Part9 | |
482 | WeldConstraint15.Part1 = Part1 | |
483 | WeldConstraint16.Parent = Part9 | |
484 | WeldConstraint16.Part0 = Part1 | |
485 | WeldConstraint16.Part1 = Part2 | |
486 | Part1.Transparency = 1 | |
487 | Part2.Transparency = 1 | |
488 | Part4.Transparency = 1 | |
489 | for i,v in pairs(mas:GetChildren()) do | |
490 | v.Parent = workspace | |
491 | pcall(function() v:MakeJoints() end) | |
492 | end | |
493 | mas:Destroy() | |
494 | for i,v in pairs(cors) do | |
495 | spawn(function() | |
496 | pcall(v) | |
497 | end) | |
498 | end | |
499 | function reviveband() | |
500 | function sandbox(var,func) | |
501 | local env = getfenv(func) | |
502 | local newenv = setmetatable({},{ | |
503 | __index = function(self,k) | |
504 | if k=="script" then | |
505 | return var | |
506 | else | |
507 | return env[k] | |
508 | end | |
509 | end, | |
510 | }) | |
511 | setfenv(func,newenv) | |
512 | return func | |
513 | end | |
514 | cors = {} | |
515 | mas = Instance.new("Model",game:GetService("Lighting")) | |
516 | Model0 = Instance.new("Model") | |
517 | Part1 = Instance.new("Part") | |
518 | Part2 = Instance.new("Part") | |
519 | SpecialMesh3 = Instance.new("SpecialMesh") | |
520 | Part4 = Instance.new("Part") | |
521 | Part5 = Instance.new("Part") | |
522 | Part6 = Instance.new("Part") | |
523 | Part7 = Instance.new("Part") | |
524 | Part8 = Instance.new("Part") | |
525 | Part9 = Instance.new("Part") | |
526 | WeldConstraint10 = Instance.new("WeldConstraint") | |
527 | WeldConstraint11 = Instance.new("WeldConstraint") | |
528 | WeldConstraint12 = Instance.new("WeldConstraint") | |
529 | WeldConstraint13 = Instance.new("WeldConstraint") | |
530 | WeldConstraint14 = Instance.new("WeldConstraint") | |
531 | WeldConstraint15 = Instance.new("WeldConstraint") | |
532 | WeldConstraint16 = Instance.new("Weld") | |
533 | Model0.Name = "Wristband" | |
534 | Model0.Parent = mas | |
535 | Model0.PrimaryPart = Part9 | |
536 | Part1.Name = "LighterPart" | |
537 | Part1.Parent = Model0 | |
538 | Part1.CFrame = CFrame.new(104.866997, 26.2399998, -119.177498, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
539 | Part1.Orientation = Vector3.new(0, 90, 0) | |
540 | Part1.Position = Vector3.new(104.866997, 26.2399998, -119.177498) | |
541 | Part1.Rotation = Vector3.new(0, 90, 0) | |
542 | Part1.Color = Color3.new(0.203922, 0.556863, 0.25098) | |
543 | Part1.Size = Vector3.new(0.075000003, 0.649999976, 0.649999976) | |
544 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
545 | Part1.BrickColor = BrickColor.new("Sea green") | |
546 | Part1.CanCollide = false | |
547 | Part1.Material = Enum.Material.SmoothPlastic | |
548 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
549 | Part1.brickColor = BrickColor.new("Sea green") | |
550 | Part1.Shape = Enum.PartType.Cylinder | |
551 | Part2.Name = "Sign" | |
552 | Part2.Parent = Model0 | |
553 | Part2.CFrame = CFrame.new(104.866997, 26.2399998, -119.177002, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
554 | Part2.Orientation = Vector3.new(0, 180, 0) | |
555 | Part2.Position = Vector3.new(104.866997, 26.2399998, -119.177002) | |
556 | Part2.Rotation = Vector3.new(-180, 0, -180) | |
557 | Part2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007) | |
558 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
559 | Part2.CanCollide = false | |
560 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
561 | SpecialMesh3.Parent = Part2 | |
562 | SpecialMesh3.MeshId = "rbxassetid://443493147" | |
563 | SpecialMesh3.Offset = Vector3.new(0, 0, 0.0350000001) | |
564 | SpecialMesh3.Scale = Vector3.new(0.00749999983, 0.00749999983, 0.00100000005) | |
565 | SpecialMesh3.MeshType = Enum.MeshType.FileMesh | |
566 | Part4.Name = "DarkerPart" | |
567 | Part4.Parent = Model0 | |
568 | Part4.CFrame = CFrame.new(104.866997, 26.2399998, -119.164993, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
569 | Part4.Orientation = Vector3.new(0, 90, 0) | |
570 | Part4.Position = Vector3.new(104.866997, 26.2399998, -119.164993) | |
571 | Part4.Rotation = Vector3.new(0, 90, 0) | |
572 | Part4.Color = Color3.new(0.227451, 0.490196, 0.0823529) | |
573 | Part4.Size = Vector3.new(0.0500000007, 0.699999988, 0.699999988) | |
574 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
575 | Part4.BrickColor = BrickColor.new("Camo") | |
576 | Part4.CanCollide = false | |
577 | Part4.Material = Enum.Material.SmoothPlastic | |
578 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
579 | Part4.brickColor = BrickColor.new("Camo") | |
580 | Part4.Shape = Enum.PartType.Cylinder | |
581 | Part5.Name = "DarkerPart" | |
582 | Part5.Parent = Model0 | |
583 | Part5.CFrame = CFrame.new(104.862, 26.2400093, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
584 | Part5.Position = Vector3.new(104.862, 26.2400093, -118.660004) | |
585 | Part5.Color = Color3.new(0.227451, 0.490196, 0.0823529) | |
586 | Part5.Size = Vector3.new(1.05999994, 0.100000001, 1.05999994) | |
587 | Part5.BottomSurface = Enum.SurfaceType.Smooth | |
588 | Part5.BrickColor = BrickColor.new("Camo") | |
589 | Part5.CanCollide = false | |
590 | Part5.Material = Enum.Material.SmoothPlastic | |
591 | Part5.TopSurface = Enum.SurfaceType.Smooth | |
592 | Part5.brickColor = BrickColor.new("Camo") | |
593 | Part6.Name = "NeonPart" | |
594 | Part6.Parent = Model0 | |
595 | Part6.CFrame = CFrame.new(104.862, 26.3150082, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
596 | Part6.Position = Vector3.new(104.862, 26.3150082, -118.660004) | |
597 | Part6.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
598 | Part6.Size = Vector3.new(1.05999994, 0.0500000007, 1.05999994) | |
599 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
600 | Part6.BrickColor = BrickColor.new("Pearl") | |
601 | Part6.CanCollide = false | |
602 | Part6.Material = Enum.Material.Neon | |
603 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
604 | Part6.brickColor = BrickColor.new("Pearl") | |
605 | Part7.Name = "NeonPart" | |
606 | Part7.Parent = Model0 | |
607 | Part7.CFrame = CFrame.new(104.862, 26.1650105, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
608 | Part7.Position = Vector3.new(104.862, 26.1650105, -118.660004) | |
609 | Part7.Color = Color3.new(0.905882, 0.905882, 0.92549) | |
610 | Part7.Size = Vector3.new(1.05999994, 0.0500000007, 1.05999994) | |
611 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
612 | Part7.BrickColor = BrickColor.new("Pearl") | |
613 | Part7.CanCollide = false | |
614 | Part7.Material = Enum.Material.Neon | |
615 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
616 | Part7.brickColor = BrickColor.new("Pearl") | |
617 | Part8.Name = "LighterPart" | |
618 | Part8.Parent = Model0 | |
619 | Part8.CFrame = CFrame.new(104.862, 26.2400093, -118.660004, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
620 | Part8.Position = Vector3.new(104.862, 26.2400093, -118.660004) | |
621 | Part8.Color = Color3.new(0.203922, 0.556863, 0.25098) | |
622 | Part8.Size = Vector3.new(1.04999995, 0.299999833, 1.04999995) | |
623 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
624 | Part8.BrickColor = BrickColor.new("Sea green") | |
625 | Part8.CanCollide = false | |
626 | Part8.Material = Enum.Material.SmoothPlastic | |
627 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
628 | Part8.brickColor = BrickColor.new("Sea green") | |
629 | Part9.Name = "FakeArm" | |
630 | Part9.Parent = Model0 | |
631 | Part9.CFrame = CFrame.new(104.862312, 26.8397083, -118.660202, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
632 | Part9.Position = Vector3.new(104.862312, 26.8397083, -118.660202) | |
633 | Part9.Transparency = 1 | |
634 | Part9.Size = Vector3.new(1, 2, 1) | |
635 | Part9.BottomSurface = Enum.SurfaceType.Smooth | |
636 | Part9.CanCollide = false | |
637 | Part9.TopSurface = Enum.SurfaceType.Smooth | |
638 | WeldConstraint10.Parent = Part9 | |
639 | WeldConstraint10.Part0 = Part9 | |
640 | WeldConstraint10.Part1 = Part8 | |
641 | WeldConstraint11.Parent = Part9 | |
642 | WeldConstraint11.Part0 = Part9 | |
643 | WeldConstraint11.Part1 = Part5 | |
644 | WeldConstraint12.Parent = Part9 | |
645 | WeldConstraint12.Part0 = Part9 | |
646 | WeldConstraint12.Part1 = Part6 | |
647 | WeldConstraint13.Parent = Part9 | |
648 | WeldConstraint13.Part0 = Part9 | |
649 | WeldConstraint13.Part1 = Part7 | |
650 | WeldConstraint14.Parent = Part9 | |
651 | WeldConstraint14.Part0 = Part9 | |
652 | WeldConstraint14.Part1 = Part4 | |
653 | WeldConstraint15.Parent = Part9 | |
654 | WeldConstraint15.Part0 = Part9 | |
655 | WeldConstraint15.Part1 = Part1 | |
656 | WeldConstraint16.Parent = Part9 | |
657 | WeldConstraint16.Part0 = Part1 | |
658 | WeldConstraint16.Part1 = Part2 | |
659 | Part1.Transparency = 1 | |
660 | Part2.Transparency = 1 | |
661 | Part4.Transparency = 1 | |
662 | for i,v in pairs(mas:GetChildren()) do | |
663 | v.Parent = workspace | |
664 | pcall(function() v:MakeJoints() end) | |
665 | end | |
666 | mas:Destroy() | |
667 | for i,v in pairs(cors) do | |
668 | spawn(function() | |
669 | pcall(v) | |
670 | end) | |
671 | end | |
672 | wristband = Model0 | |
673 | bandhandle = Part5 | |
674 | wristband.Parent = char | |
675 | end | |
676 | local signweld = WeldConstraint16 | |
677 | wristband = Model0 | |
678 | bandhandle = Part5 | |
679 | wristband.Parent = char | |
680 | local weld = ins("Weld",ra) | |
681 | weld.Part0 = ra | |
682 | weld.Part1 = wristband.PrimaryPart | |
683 | weld.C0 = angles(rad(0),rad(-90),rad(0)) | |
684 | local effpart = Instance.new("Part") | |
685 | effpart.Size = Vector3.new(2,.1,1) | |
686 | effpart.Massless = true | |
687 | effpart.Transparency = 1 | |
688 | effpart.CanCollide = false | |
689 | effpart.Anchored = false | |
690 | effpart.Parent = char | |
691 | local grabpart = Instance.new("Part") | |
692 | grabpart.Size = Vector3.new(.001,.001,.001) | |
693 | grabpart.Massless = true | |
694 | grabpart.Transparency = 1 | |
695 | grabpart.CanCollide = false | |
696 | grabpart.Anchored = false | |
697 | grabpart.Material = "Neon" | |
698 | grabpart.Parent = char | |
699 | local pweld = Instance.new("Weld",effpart) | |
700 | pweld.Part0 = t | |
701 | pweld.Part1 = effpart | |
702 | pweld.C0 = CFrame.new(0,-2.2,-.5) | |
703 | local gweld = Instance.new("Weld",grabpart) | |
704 | gweld.Part0 = rut | |
705 | gweld.Part1 = grabpart | |
706 | gweld.C0 = CFrame.new(0,3,-1.4) | |
707 | local lsound = Instance.new("Sound",effpart) | |
708 | lsound.Volume = lsvol | |
709 | lsound.SoundId = "rbxassetid://1161221108" | |
710 | local effects = ins("Model",char) | |
711 | effects.Name = "Effects" | |
712 | local music = ins("Sound",t) | |
713 | music.Volume = vol | |
714 | music.SoundId = songid | |
715 | music.Looped = true | |
716 | music.EmitterSize = 35 | |
717 | music:Play() | |
718 | local ff = ins("ForceField",char) | |
719 | ff.Visible = false | |
720 | local roar = ins("Sound",rut) | |
721 | roar.Volume = 5 | |
722 | roar.SoundId = "rbxassetid://2631687985" | |
723 | roar.EmitterSize = 100 | |
724 | local roar2 = ins("Sound",rut) | |
725 | roar2.Volume = 5 | |
726 | roar2.SoundId = "rbxassetid://2631687985" | |
727 | roar2.EmitterSize = 100 | |
728 | local billboard = ins("BillboardGui",h) | |
729 | billboard.Adornee = h | |
730 | billboard.Size = ud2(2,0,1,0) | |
731 | billboard.StudsOffset = v3(0,2,0) | |
732 | billboard.AlwaysOnTop = true | |
733 | billboard.MaxDistance = 15 | |
734 | local text = ins("TextBox",billboard) | |
735 | text.BackgroundTransparency = 1 | |
736 | text.TextStrokeTransparency = 0 | |
737 | text.Size = ud2(1,0,1,0) | |
738 | text.TextScaled = true | |
739 | text.TextColor = Part4.BrickColor | |
740 | text.TextStrokeColor3 = Part1.BrickColor.Color | |
741 | text.Text = mode | |
742 | local billboard2 = ins("BillboardGui",h) | |
743 | billboard2.Adornee = h | |
744 | billboard2.Size = ud2(1.5,0,.75,0) | |
745 | billboard2.StudsOffset = v3(0,1.5,0) | |
746 | billboard2.AlwaysOnTop = true | |
747 | billboard2.MaxDistance = 15 | |
748 | local text2 = ins("TextBox",billboard2) | |
749 | text2.BackgroundTransparency = 1 | |
750 | text2.TextStrokeTransparency = 0 | |
751 | text2.Size = ud2(1,0,1,0) | |
752 | text2.TextScaled = true | |
753 | text2.TextColor = bc("Smoky grey") | |
754 | text2.TextStrokeColor3 = bc("Fossil").Color | |
755 | text2.Text = "<Demoralized>" | |
756 | local raw = ins("WeldConstraint",rut) | |
757 | raw.Part1 = rl | |
758 | local law = ins("WeldConstraint",rut) | |
759 | law.Part1 = ll | |
760 | ||
761 | --Functions | |
762 | function swait() | |
763 | runservice.Stepped:Wait() | |
764 | end | |
765 | function remove(instance,time) | |
766 | debrs:AddItem(instance,time) | |
767 | end | |
768 | function removedescendantsof(parent,type,descendants) | |
769 | if type == "isa" then | |
770 | for i,v in pairs(parent:GetDescendants()) do | |
771 | if v:IsA(descendants) then | |
772 | v:Destroy() | |
773 | end | |
774 | end | |
775 | elseif type == "name" then | |
776 | for i,v in pairs(parent:GetDescendants()) do | |
777 | if v.Name == descendants then | |
778 | v:Destroy() | |
779 | end | |
780 | end | |
781 | end | |
782 | end | |
783 | function turnto(to) | |
784 | rut.CFrame = cf(rut.Position,v3(to.x,rut.Position.y,to.z)) | |
785 | end | |
786 | function sound(id,vol,pitch,parent) | |
787 | pcall(function() | |
788 | local newsound = Instance.new("Sound",parent) | |
789 | newsound.Volume = vol | |
790 | newsound.SoundId = "rbxassetid://"..id | |
791 | newsound.Pitch = pitch | |
792 | newsound:Play() | |
793 | coroutine.resume(coroutine.create(function() | |
794 | wait(.1) | |
795 | remove(newsound,newsound.TimeLength/newsound.Pitch) | |
796 | end)) | |
797 | return newsound | |
798 | end) | |
799 | end | |
800 | function rayc(spos,direc,ignore,dist) | |
801 | local rai = ray(spos,direc.Unit * dist) | |
802 | local rhit,rpos,rrot = workspace:FindPartOnRayWithIgnoreList(rai,ignore,false,false) | |
803 | return rhit,rpos,rrot | |
804 | end | |
805 | local tlerp = function(part,tablee,leinght,easingstyle,easingdirec) | |
806 | local info = TweenInfo.new( | |
807 | leinght, | |
808 | easingstyle, | |
809 | easingdirec, | |
810 | 0, | |
811 | false, | |
812 | 0 | |
813 | ) | |
814 | local lerp = tweens:Create(part,info,tablee) | |
815 | lerp:Play() | |
816 | end | |
817 | function removewithfade(part,timebeforefade,randc) | |
818 | pcall(function() | |
819 | coroutine.resume(coroutine.create(function() | |
820 | wait(timebeforefade) | |
821 | part:BreakJoints() | |
822 | part.Name = "JustGoingAwayOk?" | |
823 | part.Parent = effects | |
824 | for i = 1,25 do | |
825 | if randc then | |
826 | part.BrickColor = BrickColor.Random() | |
827 | end | |
828 | part.Transparency = part.Transparency +.04 | |
829 | wait() | |
830 | end | |
831 | part:Destroy() | |
832 | end)) | |
833 | end) | |
834 | end | |
835 | function fadewithfly(part,color,randc) | |
836 | pcall(function() | |
837 | part:ClearAllChildren() | |
838 | part.CanCollide = false | |
839 | part.Anchored = false | |
840 | part.Massless = true | |
841 | part.Locked = false | |
842 | part.Archivable = true | |
843 | part.Material = "Neon" | |
844 | part.BrickColor = BrickColor.new(color) | |
845 | local vel = Instance.new("BodyVelocity") | |
846 | vel.MaxForce = v3(huge,huge,huge) | |
847 | vel.P = 10000 | |
848 | vel.Velocity = v3(math.random(-3,3),math.random(1,3),math.random(-3,3)) | |
849 | local avel = Instance.new("BodyAngularVelocity") | |
850 | avel.MaxTorque = v3(huge,huge,huge) | |
851 | avel.AngularVelocity = v3(math.random(-2,2),math.random(-2,2),math.random(-2,2)) | |
852 | avel.Parent = part | |
853 | vel.Parent = part | |
854 | if randc then | |
855 | removewithfade(part,0,true) | |
856 | else | |
857 | removewithfade(part,0,false) | |
858 | end | |
859 | end) | |
860 | end | |
861 | function sphereefx(pos,ssize,osize,colour,time) | |
862 | local sphere = ins("Part") | |
863 | sphere.Anchored = true | |
864 | sphere.CanCollide = false | |
865 | sphere.Material = "Neon" | |
866 | sphere.CFrame = pos | |
867 | sphere.Size = v3(.1,.1,.1) | |
868 | sphere.BrickColor = bc(tostring(colour)) | |
869 | sphere.Parent = effects | |
870 | local spheremesh = ins("SpecialMesh",sphere) | |
871 | spheremesh.MeshType = "Sphere" | |
872 | spheremesh.Scale = v3(ssize,ssize,ssize)*10 | |
873 | tlerp(spheremesh,{Scale = v3(osize,osize,osize)*10},time,styles.Quad,directions.In) | |
874 | tlerp(sphere,{Transparency = 1},time,styles.Quad,directions.In) | |
875 | remove(sphere,time) | |
876 | return sphere | |
877 | end | |
878 | function changecolors(speed,maincolor,secondcolor,neoncolor) | |
879 | for i,v in pairs(wristband:GetChildren()) do | |
880 | if v.Name == "LighterPart" and maincolor ~= nil then | |
881 | tlerp(v,{Color = BrickColor.new(tostring(maincolor)).Color},speed,styles.Linear,directions.In) | |
882 | tlerp(text,{TextColor3 = BrickColor.new(tostring(maincolor)).Color},speed,styles.Linear,directions.In) | |
883 | end | |
884 | if v.Name == "DarkerPart" and secondcolor ~= nil then | |
885 | tlerp(v,{Color = BrickColor.new(tostring(secondcolor)).Color},speed,styles.Linear,directions.In) | |
886 | tlerp(text,{TextStrokeColor3 = BrickColor.new(tostring(secondcolor)).Color},speed,styles.Linear,directions.In) | |
887 | end | |
888 | if v.Name == "NeonPart" and neoncolor ~= nil then | |
889 | tlerp(v,{Color = BrickColor.new(tostring(neoncolor)).Color},speed,styles.Linear,directions.In) | |
890 | end | |
891 | end | |
892 | end | |
893 | function fire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise,followchar) | |
894 | local part = Instance.new("Part",parent) part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20)) | |
895 | if followchar then | |
896 | onlyraise = false | |
897 | part.CFrame = CFrame.new(part.Position,rut.Position) * angles(rad(-90),rad(0),rad(0)) | |
898 | end | |
899 | if onlyraise == true then | |
900 | part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z)) | |
901 | end | |
902 | local pcf = part.CFrame | |
903 | tlerp(part,{CFrame = pcf * CFrame.new(math.random(-spread,spread)/math.random(2,4),math.random(minr,maxr),math.random(-spread,spread)/math.random(2,4)) * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))),Size = Vector3.new(osize,osize,osize),Color = BrickColor.new(color2).Color,Transparency = ot},leinght,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut) | |
904 | game:GetService("Debris"):AddItem(part,leinght) | |
905 | end | |
906 | function wedgefire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,spread,st,ot,onlyraise,followchar) | |
907 | local part = Instance.new("WedgePart",parent) part.Size = Vector3.new(.1,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20)) | |
908 | if followchar then | |
909 | onlyraise = false | |
910 | part.CFrame = CFrame.new(part.Position,rut.Position) * angles(rad(-90),rad(0),rad(0)) | |
911 | end | |
912 | if onlyraise == true then | |
913 | part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z)) | |
914 | end | |
915 | local pcf = part.CFrame | |
916 | tlerp(part,{CFrame = pcf * CFrame.new(math.random(-spread,spread)/math.random(2,4),math.random(minr,maxr),math.random(-spread,spread)/math.random(2,4)) * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))),Size = Vector3.new(.1,osize,osize),Color = BrickColor.new(color2).Color,Transparency = ot},leinght,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut) | |
917 | game:GetService("Debris"):AddItem(part,leinght) | |
918 | end | |
919 | function damagingfire(partp,parent,color1,color2,ssize,osize,leinght,material,minr,maxr,shape,spread,st,ot,onlyraise,damage) | |
920 | local deb = false | |
921 | local part = Instance.new("Part",parent) part.Size = Vector3.new(ssize,ssize,ssize) part.Transparency = st part.CanCollide = false part.Anchored = true part.Shape = shape part.Material = material part.BrickColor = BrickColor.new(color1) part.CFrame = partp.CFrame * CFrame.new(partp.Size.x/math.random(-20,20),partp.Size.y/math.random(-20,20),partp.Size.z/math.random(-20,20)) | |
922 | if onlyraise == true then | |
923 | part.CFrame = CFrame.new(part.CFrame.p,Vector3.new(nil,part.CFrame.y,part.CFrame.z)) | |
924 | end | |
925 | part.Touched:Connect(function(hit) | |
926 | if not deb then | |
927 | local newhum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
928 | if newhum and newhum ~= hum then | |
929 | deb = true | |
930 | if newhum.Health >maxhealthuntilinstakill then | |
931 | death(newhum.Parent,part.BrickColor) | |
932 | showdamage(part.CFrame,"Too much health...",1) | |
933 | return | |
934 | end | |
935 | local rand = random(1,10) | |
936 | if rand == 8 then | |
937 | lesserfirepart(hit) | |
938 | end | |
939 | newhum.Health = newhum.Health -damage | |
940 | if newhum.Health <.01 then | |
941 | death(newhum.Parent,part.BrickColor) | |
942 | return | |
943 | end | |
944 | showdamage(part.CFrame,"-"..damage,.1) | |
945 | end | |
946 | end | |
947 | end) | |
948 | local pcf = part.CFrame | |
949 | tlerp(part,{CFrame = pcf * CFrame.new(math.random(-spread,spread)/math.random(2,4),math.random(minr,maxr),math.random(-spread,spread)/math.random(2,4)) * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180))),Size = Vector3.new(osize,osize,osize),Color = BrickColor.new(color2).Color,Transparency = ot},leinght,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut) | |
950 | game:GetService("Debris"):AddItem(part,leinght) | |
951 | end | |
952 | function partray(from,to,colour,wideness,time) | |
953 | pcall(function() | |
954 | local antime = time or .25 | |
955 | local raypart = ins("Part") | |
956 | raypart.Anchored = true | |
957 | raypart.CanCollide = false | |
958 | raypart.Material = "Neon" | |
959 | raypart.BrickColor = bc(tostring(colour)) | |
960 | raypart.CFrame = from | |
961 | local dista = (from.p-to).Magnitude | |
962 | raypart.CFrame = cf(raypart.Position,to) * cf(0,0,-dista/2) * angles(rad(0),rad(0),rad(math.random(-180,180))) | |
963 | raypart.Size = v3(wideness,wideness,dista) | |
964 | raypart.Parent = effects | |
965 | local endcf = raypart.CFrame * cf(0,0,-raypart.Size.z/2) | |
966 | coroutine.resume(coroutine.create(function() | |
967 | tlerp(raypart,{Size = v3(.1,.1,raypart.Size.z/10),Transparency = 1,CFrame = endcf},antime,styles.Quad,directions.In) | |
968 | remove(raypart,antime) | |
969 | end)) | |
970 | end) | |
971 | end | |
972 | function knockback(part,force,timeb) | |
973 | local vel = ins("BodyVelocity",part) | |
974 | vel.MaxForce = v3(huge,huge,huge) | |
975 | vel.Velocity = rut.CFrame.LookVector * force | |
976 | remove(vel,timeb) | |
977 | end | |
978 | function showdamage(pos,text,timebeforefade) | |
979 | local dpart = ins("Part") | |
980 | dpart.Anchored = true | |
981 | dpart.CanCollide = false | |
982 | dpart.Size = v3(.01,.01,.01) | |
983 | dpart.Transparency = 1 | |
984 | dpart.CFrame = pos | |
985 | dpart.Parent = effects | |
986 | dpart.CFrame = cf(dpart.Position,v3(nil,dpart.Position.y,dpart.Position.z)) | |
987 | local bil = ins("BillboardGui",dpart) | |
988 | bil.Size = ud2(2,0,2,0) | |
989 | bil.AlwaysOnTop = true | |
990 | local label = ins("TextBox",bil) | |
991 | label.Size = ud2(1,0,1,0) | |
992 | label.Text = text | |
993 | label.BackgroundTransparency = 1 | |
994 | label.TextScaled = true | |
995 | label.TextColor3 = Part4.Color | |
996 | coroutine.resume(coroutine.create(function() | |
997 | tlerp(dpart,{CFrame = dpart.CFrame * cf(random(-1,1),random(-1,1),random(-1,1))},.5,styles.Back,directions.Out) | |
998 | wait(timebeforefade) | |
999 | tlerp(label,{TextTransparency = 1},.5,styles.Back,directions.Out) | |
1000 | remove(dpart,.5) | |
1001 | end)) | |
1002 | end | |
1003 | function death(character,colour) | |
1004 | coroutine.resume(coroutine.create(function() | |
1005 | character:BreakJoints() | |
1006 | local fc = false | |
1007 | local mindd = 1 | |
1008 | local maxdd = 3 | |
1009 | if mode == "DEMORALIZATION" then | |
1010 | fc = true | |
1011 | end | |
1012 | wait(1) | |
1013 | local spheree = sphereefx(character:FindFirstChildOfClass("Part").CFrame,0,0,Part1.BrickColor,5) | |
1014 | sound(297569488,1,1.2,spheree) | |
1015 | for i,v in pairs(character:GetDescendants()) do | |
1016 | if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("UnionOperation") or v:IsA("WedgePart") or v:IsA("CornerWedgePart") then | |
1017 | for i = 1,random(1,2) do | |
1018 | wedgefire(v,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/4,math.random(3,6)/4,math.random(6,10)/12,"Neon",-25,25,35,.3,1,true) | |
1019 | end | |
1020 | if fc then | |
1021 | mindd = (rut.Position-v.Position).Magnitude | |
1022 | maxdd = (rut.Position-v.Position).Magnitude | |
1023 | end | |
1024 | fire(v,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/5,"Neon",tonumber(mindd),tonumber(maxdd),"Block",0,0,1,true,fc) | |
1025 | remove(v,0) | |
1026 | end | |
1027 | end | |
1028 | remove(character,0) | |
1029 | end)) | |
1030 | end | |
1031 | function firepart(parttofire) | |
1032 | coroutine.resume(coroutine.create(function() | |
1033 | for i = 1,random(20,30) do | |
1034 | if not parttofire or not parttofire.Parent then | |
1035 | break | |
1036 | end | |
1037 | parttofire.BrickColor = Part4.BrickColor | |
1038 | if mode == "Normal" then | |
1039 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,false,random(2,5)) | |
1040 | elseif mode == "Demoralized" then | |
1041 | if parttofire.Size.x >2 then | |
1042 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),parttofire.Size.x/5,parttofire.Size.x/15,math.random(6,10)/12,"Neon",parttofire.Size.x/5,parttofire.Size.x/1.5,"Block",3,.2,1,false,random(5,8)) | |
1043 | else | |
1044 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,false,random(5,8)) | |
1045 | end | |
1046 | elseif mode == "DEMORALIZATION" then | |
1047 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),parttofire.Size.x/5,parttofire.Size.x/15,math.random(6,10)/12,"Neon",parttofire.Size.x/5,parttofire.Size.x/1.5,"Block",3,.75,1,false,random(40,99)) | |
1048 | elseif mode == "Star" then | |
1049 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,false,random(3,6)) | |
1050 | end | |
1051 | wait(.15) | |
1052 | end | |
1053 | if parttofire.Name == "Impact" or parttofire.Name == "Shard" then | |
1054 | tlerp(parttofire,{Size = v3(.1,.1,.1),Transparency = 1},.1,styles.Quad,directions.In) | |
1055 | remove(parttofire,.1) | |
1056 | end | |
1057 | end)) | |
1058 | end | |
1059 | function lesserfirepart(parttofire) | |
1060 | coroutine.resume(coroutine.create(function() | |
1061 | for i = 1,random(6,12) do | |
1062 | if not parttofire or not parttofire.Parent then | |
1063 | break | |
1064 | end | |
1065 | if parttofire.Name == "Impact" then | |
1066 | parttofire.BrickColor = Part4.BrickColor | |
1067 | end | |
1068 | if mode == "Normal" then | |
1069 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,true,random(2,5)) | |
1070 | elseif mode == "Demoralized" then | |
1071 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,true,random(5,8)) | |
1072 | elseif mode == "DEMORALIZATION" then | |
1073 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.75,1,true,random(40,99)) | |
1074 | elseif mode == "Star" then | |
1075 | damagingfire(parttofire,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/5,math.random(3,6)/5,math.random(6,10)/12,"Neon",2,6,"Block",3,.2,1,false,random(3,6)) | |
1076 | end | |
1077 | wait(.25) | |
1078 | end | |
1079 | if parttofire.Name == "Impact" then | |
1080 | tlerp(parttofire,{Size = v3(.1,.1,.1),Transparency = 1},.1,styles.Quad,directions.In) | |
1081 | remove(parttofire,.1) | |
1082 | end | |
1083 | end)) | |
1084 | end | |
1085 | function placefirepart(pos,size) | |
1086 | local part = ins("Part") | |
1087 | part.Anchored = true | |
1088 | part.CanCollide = false | |
1089 | part.Transparency = .4 | |
1090 | part.Material = "Neon" | |
1091 | part.Name = "Impact" | |
1092 | part.CFrame = pos | |
1093 | part.Size = v3(.1,.1,.1) | |
1094 | tlerp(part,{Size = v3(size,.1,size)},.1,styles.Quad,directions.In) | |
1095 | part.Parent = effects | |
1096 | local mesh = ins("CylinderMesh",part) | |
1097 | local vol = 7 | |
1098 | local amo = 1 | |
1099 | if mode == "Demoralized" then | |
1100 | vol = 10 | |
1101 | amo = 3 | |
1102 | elseif mode == "DEMORALIZATION" then | |
1103 | vol = 10 | |
1104 | amo = 5 | |
1105 | end | |
1106 | coroutine.resume(coroutine.create(function() | |
1107 | pcall(function() | |
1108 | if size < 50 then | |
1109 | sound(539294959,vol,1,part) | |
1110 | else | |
1111 | for i = 1,amo do | |
1112 | sound(142885319,vol or 10,.4,char) | |
1113 | end | |
1114 | part.Transparency = .7 | |
1115 | end | |
1116 | end) | |
1117 | local sphere = sphereefx(part.CFrame,size/6,size*2,tostring(Part4.BrickColor),.25) | |
1118 | for i = 1,4 do | |
1119 | fire(part,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/(35-size*2.5),math.random(3,6)/(35-size*20),math.random(6,10)/20,"Neon",-size*1.5,size*1.5,"Block",size*1.5,.2,1,true) | |
1120 | for i = 1,random(2,3) do | |
1121 | wedgefire(part,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),size/5,size/15,math.random(6,10)/12,"Neon",-size*1.5,size*1.5,size*2,.3,1,true) | |
1122 | end | |
1123 | end | |
1124 | for i = 1,5 do | |
1125 | sphere = sphereefx(part.CFrame,size/2,size*2,tostring(Part4.BrickColor),.25) | |
1126 | if mode == "Normal" then | |
1127 | magdamage(sphere.Position,size,random(2,5),851453784,2) | |
1128 | if size <75 then | |
1129 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),1) | |
1130 | else | |
1131 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),3.5) | |
1132 | end | |
1133 | elseif mode == "Demoralized" then | |
1134 | if size >120 then | |
1135 | magdamage(sphere.Position,size,random(15,30),851453784,2) | |
1136 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),15) | |
1137 | else | |
1138 | magdamage(sphere.Position,size,random(4,9),851453784,2) | |
1139 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),1.5) | |
1140 | end | |
1141 | elseif mode == "DEMORALIZATION" then | |
1142 | if size == huge then | |
1143 | killeveryone() | |
1144 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),15) | |
1145 | else | |
1146 | magdamage(sphere.Position,size,random(30,60),851453784,2) | |
1147 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),1.5) | |
1148 | end | |
1149 | elseif mode == "Star" then | |
1150 | magdamage(sphere.Position,size,random(3,6),851453784,2) | |
1151 | if size <75 then | |
1152 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),1) | |
1153 | else | |
1154 | partray(part.CFrame * cf(random(-size,size),random(0,size),random(-size,size)),part.Position,tostring(Part4.BrickColor),3.5) | |
1155 | end | |
1156 | end | |
1157 | swait() | |
1158 | end | |
1159 | end)) | |
1160 | firepart(part) | |
1161 | end | |
1162 | function placeweakfirepart(pos,size) | |
1163 | local part = ins("Part") | |
1164 | part.Anchored = true | |
1165 | part.CanCollide = false | |
1166 | part.Transparency = .4 | |
1167 | part.Material = "Neon" | |
1168 | part.Name = "Impact" | |
1169 | part.CFrame = pos | |
1170 | part.Size = v3(.1,.1,.1) | |
1171 | tlerp(part,{Size = v3(size,.1,size)},.1,styles.Quad,directions.In) | |
1172 | part.Parent = effects | |
1173 | local mesh = ins("CylinderMesh",part) | |
1174 | lesserfirepart(part) | |
1175 | end | |
1176 | function throwfire(from,direc,maxdist) | |
1177 | local part = ins("Part") | |
1178 | part.Name = "Shard" | |
1179 | part.Size = v3(1,1,1) | |
1180 | part.Anchored = true | |
1181 | part.CanCollide = false | |
1182 | part.Transparency = .7 | |
1183 | part.Material = "Neon" | |
1184 | part.CFrame = from | |
1185 | part.CFrame = cf(part.Position,direc) | |
1186 | part.Parent = effects | |
1187 | firepart(part) | |
1188 | local speed = 3 | |
1189 | if mode == "Demoralized" then | |
1190 | speed = 6 | |
1191 | elseif mode == "DEMORALIZATION" then | |
1192 | speed = 12 | |
1193 | elseif mode == "Star" then | |
1194 | speed = 4.5 | |
1195 | end | |
1196 | coroutine.resume(coroutine.create(function() | |
1197 | for i = 1,maxdist do | |
1198 | local hit,pos,rot = rayc(part.Position,part.CFrame.LookVector,{char},speed+1) | |
1199 | part.CFrame = part.CFrame * cf(0,0,-speed) * angles(rad(-.35),rad(0),rad(0)) | |
1200 | if hit then | |
1201 | local size = 10 | |
1202 | if mode == "Demoralized" then | |
1203 | size = 15 | |
1204 | elseif mode == "DEMORALIZATION" then | |
1205 | size = 25 | |
1206 | end | |
1207 | placefirepart(cf(pos,pos+rot) * angles(rad(-90),rad(0),rad(0)),size) | |
1208 | break | |
1209 | end | |
1210 | wait() | |
1211 | end | |
1212 | part:Destroy() | |
1213 | end)) | |
1214 | end | |
1215 | function magdamage(pos,maxrange,damage,id,vol,breakafterhit) | |
1216 | for i,v in pairs(workspace:GetDescendants()) do | |
1217 | if v:IsA("Humanoid") and v.Parent ~= char and v.Health >.01 then | |
1218 | local tors = v.Parent:FindFirstChild("Torso") or v.Parent:FindFirstChild("UpperTorso") | |
1219 | if tors and (pos-tors.Position).Magnitude <= maxrange then | |
1220 | v.Health = v.Health - damage | |
1221 | if mode == "Demoralized" or mode == "DEMORALIZATION" then | |
1222 | hum.Health = hum.Health +damage | |
1223 | end | |
1224 | local knock = 10 | |
1225 | if mode == "DEMORALIZATION" then | |
1226 | knock = 50 | |
1227 | end | |
1228 | knockback(tors,knock,.2) | |
1229 | pcall(function() | |
1230 | sound(id,vol,1,ra) | |
1231 | end) | |
1232 | showdamage(tors.CFrame * cf(random(-1,1),random(-1,1),random(-1,1)),"-"..damage,1) | |
1233 | if v.Health > maxhealthuntilinstakill then | |
1234 | death(v.Parent,Part4.BrickColor) | |
1235 | showdamage(tors.CFrame * cf(random(-1,1),random(-1,1),random(-1,1)),"Too much health...",2) | |
1236 | return | |
1237 | end | |
1238 | if v.Health < .01 then | |
1239 | death(v.Parent,Part4.BrickColor) | |
1240 | return | |
1241 | end | |
1242 | if breakafterhit == true then | |
1243 | break | |
1244 | end | |
1245 | end | |
1246 | end | |
1247 | end | |
1248 | end | |
1249 | function killeveryone() | |
1250 | pcall(function() | |
1251 | for i,v in pairs(workspace:GetDescendants()) do | |
1252 | if v:IsA("Humanoid") and v.Parent ~= char then | |
1253 | v.Parent:BreakJoints() | |
1254 | death(v.Parent,Part4.BrickColor) | |
1255 | end | |
1256 | end | |
1257 | end) | |
1258 | end | |
1259 | function laser(from,to) | |
1260 | local hit,pos,rot = rayc(from.Position,to-h.Position,{char},600) | |
1261 | if mode == "Normal" then | |
1262 | magdamage(pos,7.5,math.random(10,15),851453784,2,false) | |
1263 | partray(from.CFrame,pos,tostring(Part4.BrickColor),2) | |
1264 | local rand = random(1,11) | |
1265 | if rand == 9 then | |
1266 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),5) | |
1267 | end | |
1268 | local sphere = sphereefx(cf(pos),1,10,tostring(Part4.BrickColor),.3) | |
1269 | for i = 1,random(3,5) do | |
1270 | wedgefire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),3,.1,math.random(6,10)/12,"Neon",-5,20,25,.3,1,true) | |
1271 | end | |
1272 | elseif mode == "Demoralized" then | |
1273 | local rand = random(1,11) | |
1274 | if rand == 9 then | |
1275 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),10) | |
1276 | end | |
1277 | magdamage(pos,15,math.random(15,30),851453784,2,false) | |
1278 | local sphere = sphereefx(cf(pos),1,20,tostring(Part4.BrickColor),.3) | |
1279 | for i = 1,random(3,5) do | |
1280 | wedgefire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),4.5,.3,math.random(6,10)/12,"Neon",-5,25,35,.3,1,true) | |
1281 | end | |
1282 | partray(t.CFrame,pos,tostring(Part4.BrickColor),3.5) | |
1283 | elseif mode == "DEMORALIZATION" then | |
1284 | local rand = random(1,7) | |
1285 | if rand == 7 then | |
1286 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),25) | |
1287 | end | |
1288 | magdamage(pos,15,math.random(45,90),851453784,3.5,false) | |
1289 | local sphere = sphereefx(cf(pos),6,35,tostring(Part4.BrickColor),.3) | |
1290 | for i = 1,random(3,5) do | |
1291 | wedgefire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),12.5,0,math.random(6,10)/12,"Neon",-45,45,45,0,1,true) | |
1292 | end | |
1293 | partray(Part8.CFrame,pos,tostring(Part4.BrickColor),5) | |
1294 | elseif mode == "Star" then | |
1295 | magdamage(pos,8,math.random(12,18),851453784,2,false) | |
1296 | partray(from.CFrame,pos,tostring(Part4.BrickColor),2) | |
1297 | local rand = random(1,9) | |
1298 | if rand == 9 then | |
1299 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),7.5) | |
1300 | end | |
1301 | local sphere = sphereefx(cf(pos),2,12.5,tostring(Part4.BrickColor),.3) | |
1302 | for i = 1,random(3,5) do | |
1303 | wedgefire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),3,.1,math.random(6,10)/12,"Neon",-5,20,25,.3,1,true) | |
1304 | end | |
1305 | end | |
1306 | end | |
1307 | function skybeam(pos) | |
1308 | local size = 10 | |
1309 | local damage = random(2,5) | |
1310 | if mode == "Demoralized" then | |
1311 | size = 15 | |
1312 | damage = random(6,12) | |
1313 | elseif mode == "DEMORALIZATION" then | |
1314 | size = 35 | |
1315 | damage = random(60,120) | |
1316 | end | |
1317 | sound(142885319,10,.5,char) | |
1318 | local hit,poss,rot = rayc(v3(pos.x,pos.y,pos.z)+v3(0,2,0),v3(pos.x,-700,pos.z),{char},500) | |
1319 | partray(pos*cf(0,500,0),poss,Part4.BrickColor,size,.5) | |
1320 | placefirepart(cf(poss,poss+rot)*angles(rad(-90),0,0),size*1.5) | |
1321 | end | |
1322 | ||
1323 | --Creates | |
1324 | for i,v in pairs(char:GetDescendants()) do | |
1325 | if v:IsA("Part") then | |
1326 | v.Locked = true | |
1327 | end | |
1328 | end | |
1329 | nec = ins("Weld",t) nec.Part0 = p0 nec.Part1 = p1 nec.C0 = cf01 nec.C1 = cf1 | |
1330 | rs = ins("Weld",t) rs.Part0 = rsp0 rs.Part1 = rsp1 rs.C0 = cf03 rs.C1 = cf3 | |
1331 | ls = ins("Weld",t) ls.Part0 = lsp0 ls.Part1 = lsp1 ls.C0 = cf04 ls.C1 = cf4 | |
1332 | rh = ins("Weld",t) rh.Part0 = rhp0 rh.Part1 = rhp1 rh.C0 = cf05 rh.C1 = cf5 | |
1333 | lh = ins("Weld",t) lh.Part0 = lhp0 lh.Part1 = lhp1 lh.C0 = cf06 lh.C1 = cf6 | |
1334 | ||
1335 | --Animation functions | |
1336 | function land() | |
1337 | if phit then | |
1338 | readytoland = false | |
1339 | landed = true | |
1340 | local oldspeed = hum.WalkSpeed | |
1341 | hum.WalkSpeed = 1.5 | |
1342 | hum.JumpPower = 0 | |
1343 | lsound:Play() | |
1344 | for i = 0,1,.1 do | |
1345 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.5,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i) | |
1346 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.5,-.3) * CFrame.Angles(rad(11),rad(90),rad(0)),i) | |
1347 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.5,-.25) * CFrame.Angles(rad(9),rad(-90),rad(0)),i) | |
1348 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(10)),i) | |
1349 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.35,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(-10)),i) | |
1350 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i) | |
1351 | swait() | |
1352 | end | |
1353 | for i = 1,math.random(5,8) do | |
1354 | fire(effpart,effects,tostring(phit.BrickColor),tostring(phit.BrickColor),math.random(7,13)/10,math.random(3,6)/10,math.random(4,6)/10,phit.Material,0,0,"Block",5,0,1,true) | |
1355 | end | |
1356 | wait(.3) | |
1357 | landed = false | |
1358 | hum.WalkSpeed = oldspeed | |
1359 | hum.JumpPower = 50 | |
1360 | end | |
1361 | end | |
1362 | function punch1() | |
1363 | using = true | |
1364 | local speed1 = .075 | |
1365 | local speed2 = .095 | |
1366 | if mode == "Star" then | |
1367 | speed1 = .095 | |
1368 | speed2 = .115 | |
1369 | end | |
1370 | for i = 0,.75,speed1 do | |
1371 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(10),rad(150)),i) | |
1372 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(85),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1373 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-80),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1374 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(30),rad(90)),i) | |
1375 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-10),rad(0),rad(10)),i) | |
1376 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(210)),i) | |
1377 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1378 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1379 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1380 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1381 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1382 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1383 | swait() | |
1384 | end | |
1385 | if mode == "Normal" then | |
1386 | magdamage(t.Position,3,random(6,15),743886825,1.5,true) | |
1387 | elseif mode == "Demoralized" then | |
1388 | magdamage(t.Position,4,random(12,25),743886825,1.5,true) | |
1389 | elseif mode == "DEMORALIZATION" then | |
1390 | magdamage(t.Position,5,random(35,75),386946017,3.5,true) | |
1391 | elseif mode == "Star" then | |
1392 | magdamage(t.Position,3.5,random(8,18),743886825,1.5,true) | |
1393 | end | |
1394 | pcall(function() | |
1395 | sound(145487017,1,1,ra) | |
1396 | end) | |
1397 | for i = 0,1,speed2 do | |
1398 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(-10),rad(210)),i) | |
1399 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(95),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1400 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-80),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1401 | rs.C0 = rs.C0:Lerp(CFrame.new(.85,.5,-.35) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-10),rad(90)),i) | |
1402 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-20),rad(0),rad(-10)),i) | |
1403 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(165)),i) | |
1404 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1405 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1406 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1407 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1408 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1409 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1410 | swait() | |
1411 | end | |
1412 | using = false | |
1413 | end | |
1414 | function punch2() | |
1415 | using = true | |
1416 | local speed1 = .075 | |
1417 | local speed2 = .095 | |
1418 | if mode == "Star" then | |
1419 | speed1 = .095 | |
1420 | speed2 = .115 | |
1421 | end | |
1422 | for i = 0,.75,speed1 do | |
1423 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(-10),rad(210)),i) | |
1424 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(80),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1425 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-85),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1426 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-10),rad(0),rad(0)),i) | |
1427 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(-30),rad(-90)),i) | |
1428 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(150)),i) | |
1429 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1430 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1431 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1432 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1433 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1434 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1435 | swait() | |
1436 | end | |
1437 | if mode == "Normal" then | |
1438 | magdamage(t.Position,3,random(6,15),743886825,1.5,true) | |
1439 | elseif mode == "Demoralized" then | |
1440 | magdamage(t.Position,3,random(12,25),743886825,1.5,true) | |
1441 | elseif mode == "DEMORALIZATION" then | |
1442 | magdamage(t.Position,5,random(35,75),386946017,3.5,true) | |
1443 | elseif mode == "Star" then | |
1444 | magdamage(t.Position,3.5,random(8,18),743886825,1.5,true) | |
1445 | end | |
1446 | pcall(function() | |
1447 | sound(145487017,1,1,ra) | |
1448 | end) | |
1449 | for i = 0,1,speed2 do | |
1450 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(10),rad(150)),i) | |
1451 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(95),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1452 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-80),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1453 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-20),rad(-10),rad(0)),i) | |
1454 | ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.5,-.35) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(10),rad(-90)),i) | |
1455 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(195)),i) | |
1456 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1457 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1458 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1459 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1460 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1461 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1462 | swait() | |
1463 | end | |
1464 | using = false | |
1465 | end | |
1466 | function punch3() | |
1467 | using = true | |
1468 | local speed1 = .075 | |
1469 | local speed2 = .095 | |
1470 | if mode == "Star" then | |
1471 | speed1 = .095 | |
1472 | speed2 = .115 | |
1473 | end | |
1474 | for i = 0,.75,speed1 do | |
1475 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i) | |
1476 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
1477 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-10)),i) | |
1478 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(60),rad(60)),i) | |
1479 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(-60),rad(-60)),i) | |
1480 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1481 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1482 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1483 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1484 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1485 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1486 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1487 | swait() | |
1488 | end | |
1489 | if mode == "Normal" then | |
1490 | pcall(function() | |
1491 | sound(539294959,3,1,ra) | |
1492 | end) | |
1493 | local sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,6,Part4.BrickColor,.3) | |
1494 | magdamage(sphere.Position,6,random(3,5),851453784,1.5,true) | |
1495 | coroutine.resume(coroutine.create(function() | |
1496 | for i = 1,4 do | |
1497 | fire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/10,math.random(3,6)/10,math.random(6,10)/20,"Neon",-7,7,"Block",10,.2,1,true) | |
1498 | for i = 1,random(1,2) do | |
1499 | wedgefire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/4,math.random(3,6)/4,math.random(6,10)/12,"Neon",-25,25,35,.3,1,true) | |
1500 | end | |
1501 | end | |
1502 | for i = 1,3 do | |
1503 | sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,6,Part4.BrickColor,.3) | |
1504 | magdamage(sphere.Position,6,random(3,5),851453784,1.5,true) | |
1505 | swait() | |
1506 | end | |
1507 | end)) | |
1508 | elseif mode == "Demoralized" then | |
1509 | pcall(function() | |
1510 | sound(539294959,3,1,ra) | |
1511 | end) | |
1512 | local sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,9,Part4.BrickColor,.3) | |
1513 | magdamage(sphere.Position,9,random(6,9),851453784,1.5,true) | |
1514 | coroutine.resume(coroutine.create(function() | |
1515 | for i = 1,4 do | |
1516 | fire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/6,math.random(3,6)/5,math.random(6,10)/17,"Neon",-12,12,"Block",15,.2,1,true) | |
1517 | end | |
1518 | for i = 1,3 do | |
1519 | sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,9,Part4.BrickColor,.3) | |
1520 | magdamage(sphere.Position,9,random(6,9),851453784,1.5,true) | |
1521 | swait() | |
1522 | end | |
1523 | end)) | |
1524 | elseif mode == "DEMORALIZATION" then | |
1525 | pcall(function() | |
1526 | sound(539294959,6,1,ra) | |
1527 | end) | |
1528 | local sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,14,Part4.BrickColor,.3) | |
1529 | magdamage(sphere.Position,10,random(25,60),851453784,1.5,true) | |
1530 | coroutine.resume(coroutine.create(function() | |
1531 | for i = 1,4 do | |
1532 | fire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/6,math.random(3,6)/5,math.random(6,10)/17,"Neon",-12,12,"Block",15,.2,1,true) | |
1533 | end | |
1534 | for i = 1,3 do | |
1535 | sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.5,14,Part4.BrickColor,.3) | |
1536 | magdamage(sphere.Position,14,random(25,60),851453784,1.5,true) | |
1537 | swait() | |
1538 | end | |
1539 | end)) | |
1540 | elseif mode == "Star" then | |
1541 | pcall(function() | |
1542 | sound(539294959,3,1,ra) | |
1543 | end) | |
1544 | local sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.7,7,Part4.BrickColor,.3) | |
1545 | magdamage(sphere.Position,7,random(4,6),851453784,1.5,true) | |
1546 | coroutine.resume(coroutine.create(function() | |
1547 | for i = 1,4 do | |
1548 | fire(sphere,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/10,math.random(3,6)/10,math.random(6,10)/20,"Neon",-7,7,"Block",10,.2,1,true) | |
1549 | for i = 1,random(1,2) do | |
1550 | wedgefire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/4,math.random(3,6)/4,math.random(6,10)/12,"Neon",-25,25,35,.3,1,true) | |
1551 | end | |
1552 | end | |
1553 | for i = 1,3 do | |
1554 | sphere = sphereefx(rut.CFrame * cf(0,0,-1.5),.7,7,Part4.BrickColor,.3) | |
1555 | magdamage(sphere.Position,7,random(4,6),851453784,1.5,true) | |
1556 | swait() | |
1557 | end | |
1558 | end)) | |
1559 | end | |
1560 | for i = 0,1,speed2 do | |
1561 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i) | |
1562 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-10)),i) | |
1563 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
1564 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-60),rad(80)),i) | |
1565 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(60),rad(-80)),i) | |
1566 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
1567 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1568 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1569 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1570 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1571 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1572 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1573 | swait() | |
1574 | end | |
1575 | using = false | |
1576 | end | |
1577 | function tp() | |
1578 | pcall(function() | |
1579 | if mouse.Hit then | |
1580 | local oldtorsocf = t.CFrame | |
1581 | local sphere = sphereefx(rut.CFrame,3,9,Part4.BrickColor,.3) | |
1582 | if mode == "Normal" then | |
1583 | magdamage(sphere.Position,12,random(3,5),851453784,1.5,true) | |
1584 | elseif mode == "Demoralized" then | |
1585 | magdamage(sphere.Position,12,random(6,9),851453784,1.5,true) | |
1586 | elseif mode == "DEMORALIZATION" then | |
1587 | magdamage(sphere.Position,18,random(30,75),851453784,1.5,true) | |
1588 | elseif mode == "Star" then | |
1589 | magdamage(sphere.Position,10,random(4,6),851453784,1.5,true) | |
1590 | end | |
1591 | for i = 1,4 do | |
1592 | fire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/6,math.random(3,6)/5,math.random(6,10)/17,"Neon",-12,12,"Block",15,.2,1,true) | |
1593 | for i = 1,random(1,2) do | |
1594 | wedgefire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/4,math.random(3,6)/4,math.random(6,10)/12,"Neon",-25,25,35,.3,1,true) | |
1595 | end | |
1596 | end | |
1597 | pcall(function() | |
1598 | sound(2346156347,6,1,t) | |
1599 | end) | |
1600 | rut.CFrame = cf(mouse.Hit.x,mouse.Hit.y,mouse.Hit.z) * cf(0,3,0) | |
1601 | local wideness = 1 | |
1602 | if mode == "DEMORALIZATION" then | |
1603 | wideness = 2.5 | |
1604 | end | |
1605 | partray(oldtorsocf,t.Position,Part4.BrickColor,wideness) | |
1606 | for i = 1,4 do | |
1607 | fire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/6,math.random(3,6)/5,math.random(6,10)/17,"Neon",-12,12,"Block",15,.2,1,true) | |
1608 | for i = 1,random(1,2) do | |
1609 | wedgefire(rut,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/4,math.random(3,6)/4,math.random(6,10)/12,"Neon",-25,25,35,.3,1,true) | |
1610 | end | |
1611 | end | |
1612 | for i = 1,3 do | |
1613 | sphere = sphereefx(rut.CFrame,5,12,Part4.BrickColor,.3) | |
1614 | if mode == "Normal" then | |
1615 | magdamage(sphere.Position,12,random(3,5),851453784,1.5,true) | |
1616 | elseif mode == "Demoralized" then | |
1617 | magdamage(sphere.Position,12,random(6,9),851453784,1.5,true) | |
1618 | elseif mode == "DEMORALIZATION" then | |
1619 | magdamage(sphere.Position,18,random(30,75),851453784,1.5,true) | |
1620 | elseif mode == "Star" then | |
1621 | magdamage(sphere.Position,10,random(4,6),851453784,1.5,true) | |
1622 | end | |
1623 | swait() | |
1624 | end | |
1625 | end | |
1626 | end) | |
1627 | end | |
1628 | function throwfireanim() | |
1629 | using = true | |
1630 | local speed1 = .035 | |
1631 | local speed2 = .095 | |
1632 | if mode == "Star" then | |
1633 | speed1 = .055 | |
1634 | speed2 = .095 | |
1635 | end | |
1636 | for i = 0,.7,speed1 do | |
1637 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(145)),i) | |
1638 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1639 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1640 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,-.5) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(10),rad(-70),rad(110)),i) | |
1641 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-10),rad(0),rad(-10)),i) | |
1642 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(195)),i) | |
1643 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1644 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1645 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1646 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1647 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1648 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1649 | swait() | |
1650 | end | |
1651 | throwfire(ra.CFrame*cf(0,-1.5,0),mouse.Hit.p,100) | |
1652 | for i = 0,.8,speed2 do | |
1653 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(215)),i) | |
1654 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1655 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1656 | rs.C0 = rs.C0:Lerp(CFrame.new(.85,.5,-.25) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-20),rad(40),rad(100)),i) | |
1657 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(10)),i) | |
1658 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(165)),i) | |
1659 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1660 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1661 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1662 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1663 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1664 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1665 | swait() | |
1666 | end | |
1667 | using = false | |
1668 | end | |
1669 | local sou = Instance.new("Sound") | |
1670 | ||
1671 | function roaranim() | |
1672 | using = true | |
1673 | roar.TimePosition = .3 | |
1674 | roar.Volume = 5 | |
1675 | local siez = 25 | |
1676 | if mode == "DEMORALIZATION" then | |
1677 | roar.Volume = 10 | |
1678 | siez = 40 | |
1679 | end | |
1680 | roar:Play() | |
1681 | roaring = true | |
1682 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
1683 | if hit then | |
1684 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),siez) | |
1685 | end | |
1686 | for i,v in pairs(char:GetChildren()) do | |
1687 | if v:IsA("BasePart") then | |
1688 | lesserfirepart(v) | |
1689 | end | |
1690 | end | |
1691 | for i = 0,.8,.065 do | |
1692 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-70),rad(0),rad(180)),i) | |
1693 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-20)),i) | |
1694 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(20)),i) | |
1695 | rs.C0 = rs.C0:Lerp(CFrame.new(1.5,.5,-.4) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-110),rad(75)),i) | |
1696 | ls.C0 = ls.C0:Lerp(CFrame.new(-1.5,.5,-.4) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(110),rad(-75)),i) | |
1697 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-50),rad(0),rad(180)),i) | |
1698 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1699 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1700 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1701 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1702 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1703 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1704 | swait() | |
1705 | end | |
1706 | repeat | |
1707 | change = change+sine | |
1708 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-70),rad(0),rad(180)) * angles(-cos(change/aa/2.5) * rad(10),0,0),.1) | |
1709 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-20)) * angles(0,0,-cos(change/aa/2.5) * rad(10)),.1) | |
1710 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(20)) * angles(0,0,cos(change/aa/2.5) * rad(10)),.1) | |
1711 | rs.C0 = rs.C0:Lerp(CFrame.new(1.5,.5,-.4) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-110),rad(75)),.1) | |
1712 | ls.C0 = ls.C0:Lerp(CFrame.new(-1.5,.5,-.4) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(110),rad(-75)),.1) | |
1713 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-50),rad(0),rad(180)) * angles(cos(change/aa/1.5)*rad(10),sin(change/aa/1.5)*rad(2.5),sin(change/aa/1)*rad(10)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
1714 | swait() | |
1715 | until roar.TimePosition >=5 | |
1716 | roar:Stop() | |
1717 | roaring = false | |
1718 | using = false | |
1719 | end | |
1720 | function giantkickorstompanim() | |
1721 | if mode == "Normal" and not superattackcooldown1 then | |
1722 | superattackcooldown1 = true | |
1723 | using = true | |
1724 | hum.WalkSpeed = 0 | |
1725 | hum.JumpPower = 0 | |
1726 | for i = 0,.8,.045 do | |
1727 | hum.WalkSpeed = 0 | |
1728 | hum.JumpPower = 0 | |
1729 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i) | |
1730 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.35,-.5) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-10)),i) | |
1731 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
1732 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(125)),i) | |
1733 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(-40),rad(-125)),i) | |
1734 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i) | |
1735 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1736 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1737 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1738 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1739 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1740 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1741 | swait() | |
1742 | end | |
1743 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
1744 | if hit then | |
1745 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),75) | |
1746 | end | |
1747 | for i = 0,.8,.065 do | |
1748 | hum.WalkSpeed = 0 | |
1749 | hum.JumpPower = 0 | |
1750 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),i) | |
1751 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,-.5) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
1752 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-10)),i) | |
1753 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(-45)),i) | |
1754 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(-40),rad(45)),i) | |
1755 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),i) | |
1756 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1757 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1758 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1759 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1760 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1761 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1762 | swait() | |
1763 | end | |
1764 | using = false | |
1765 | superattackcooldown1 = false | |
1766 | elseif mode == "Demoralized" and not superattackcooldown2 then | |
1767 | superattackcooldown2 = true | |
1768 | using = true | |
1769 | hum.WalkSpeed = 0 | |
1770 | hum.JumpPower = 0 | |
1771 | for i = 0,1.6,.045 do | |
1772 | hum.WalkSpeed = 0 | |
1773 | hum.JumpPower = 0 | |
1774 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(-20),rad(160)) * CFrame.Angles(rad(60),rad(0),rad(0)),i) | |
1775 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.3,-.6) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(30),rad(15)),i) | |
1776 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,.7,.1) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(-35)),i) | |
1777 | rs.C0 = rs.C0:Lerp(CFrame.new(.9,.35,.15) * cf(random(-2,2)/20,random(-2,2)/20,random(-2,2)/20) * CFrame.Angles(rad(0),rad(60),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(110)),i) | |
1778 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.4,-.5) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-60)),i) | |
1779 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-120),rad(0),rad(200)),i) | |
1780 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1781 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1782 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1783 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1784 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1785 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1786 | swait() | |
1787 | end | |
1788 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
1789 | if hit then | |
1790 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),200) | |
1791 | end | |
1792 | for i = 0,.6,.06 do | |
1793 | hum.WalkSpeed = 0 | |
1794 | hum.JumpPower = 0 | |
1795 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(10),rad(200)) * CFrame.Angles(rad(60),rad(0),rad(0)),i) | |
1796 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.3,-.6) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-10),rad(5)),i) | |
1797 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.7,.1) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(-35)),i) | |
1798 | rs.C0 = rs.C0:Lerp(CFrame.new(.9,.25,-.75) * cf(random(-2,2)/20,random(-2,2)/20,random(-2,2)/20) * CFrame.Angles(rad(0),rad(60),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(60)),i) | |
1799 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.4,-.5) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(10),rad(-50)),i) | |
1800 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-120),rad(0),rad(160)),i) | |
1801 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1802 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1803 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1804 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1805 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1806 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1807 | swait() | |
1808 | end | |
1809 | using = false | |
1810 | wait(7) | |
1811 | superattackcooldown2 = false | |
1812 | elseif mode == "DEMORALIZATION" and not superattackcooldown3 then | |
1813 | superattackcooldown3 = true | |
1814 | using = true | |
1815 | hum.WalkSpeed = 0 | |
1816 | hum.JumpPower = 0 | |
1817 | for i = 0,1.6,.045 do | |
1818 | hum.WalkSpeed = 0 | |
1819 | hum.JumpPower = 0 | |
1820 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(-20),rad(160)) * CFrame.Angles(rad(60),rad(0),rad(0)),i) | |
1821 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.3,-.6) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(30),rad(15)),i) | |
1822 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,.7,.1) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(-35)),i) | |
1823 | rs.C0 = rs.C0:Lerp(CFrame.new(.9,.35,.15) * cf(random(-2,2)/20,random(-2,2)/20,random(-2,2)/20) * CFrame.Angles(rad(0),rad(60),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(110)),i) | |
1824 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.4,-.5) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-60)),i) | |
1825 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-120),rad(0),rad(200)),i) | |
1826 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1827 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1828 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1829 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1830 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1831 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1832 | swait() | |
1833 | end | |
1834 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
1835 | if hit then | |
1836 | placefirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),huge) | |
1837 | end | |
1838 | for i = 0,.6,.06 do | |
1839 | hum.WalkSpeed = 0 | |
1840 | hum.JumpPower = 0 | |
1841 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-1,0) * CFrame.Angles(rad(-90),rad(10),rad(200)) * CFrame.Angles(rad(60),rad(0),rad(0)),i) | |
1842 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.3,-.6) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-10),rad(5)),i) | |
1843 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.7,.1) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(40),rad(-35)),i) | |
1844 | rs.C0 = rs.C0:Lerp(CFrame.new(.9,.25,-.75) * cf(random(-2,2)/20,random(-2,2)/20,random(-2,2)/20) * CFrame.Angles(rad(0),rad(60),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(60)),i) | |
1845 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.4,-.5) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(10),rad(-50)),i) | |
1846 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-120),rad(0),rad(160)),i) | |
1847 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1848 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1849 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1850 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1851 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1852 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1853 | swait() | |
1854 | end | |
1855 | using = false | |
1856 | wait(4) | |
1857 | superattackcooldown3 = false | |
1858 | elseif mode == "Star" and not superattackcooldown4 then | |
1859 | superattackcooldown4 = true | |
1860 | using = true | |
1861 | hum.WalkSpeed = 0 | |
1862 | hum.JumpPower = 0 | |
1863 | for i = 0,.95,.055 do | |
1864 | hum.WalkSpeed = 0 | |
1865 | hum.JumpPower = 0 | |
1866 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,.1) * CFrame.Angles(rad(-80),rad(0),rad(180)),i) | |
1867 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.7,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(170)),i) | |
1868 | ls.C0 = ls.C0:Lerp(CFrame.new(-.7,.4,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(2),rad(-90),rad(-91)),i) | |
1869 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-60),rad(0),rad(180)),i) | |
1870 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1871 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1872 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1873 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1874 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1875 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1876 | swait() | |
1877 | end | |
1878 | hum.WalkSpeed = 35 | |
1879 | hum.JumpPower = 85 | |
1880 | coroutine.resume(coroutine.create(function() | |
1881 | sound(376107717,10,1,h) | |
1882 | sphereefx(ra.CFrame*cf(0,-1,0),1,3,Part4.BrickColor,.2) | |
1883 | partray(ra.CFrame,v3(ra.CFrame.x,ra.CFrame.y+500,ra.CFrame.z),tostring(Part4.BrickColor),1,.5) | |
1884 | wait(.5) | |
1885 | for i = 1,random(5,8) do | |
1886 | skybeam(cf(rut.CFrame.x+random(-50,50),rut.CFrame.y+150,rut.CFrame.z+random(-50,50))) | |
1887 | end | |
1888 | end)) | |
1889 | using = false | |
1890 | wait(2) | |
1891 | superattackcooldown4 = false | |
1892 | end | |
1893 | end | |
1894 | function laseranim() | |
1895 | using = true | |
1896 | local speed1 = .03 | |
1897 | if mode == "Star" then | |
1898 | speed1 = .05 | |
1899 | end | |
1900 | for i = 0,.8,speed1 do | |
1901 | turnto(mouse.Hit.p) | |
1902 | hum.WalkSpeed = 0 | |
1903 | hum.JumpPower = 0 | |
1904 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(270)),i) | |
1905 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1906 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(0)),i) | |
1907 | rs.C0 = rs.C0:Lerp(CFrame.new(1.25,0,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-90),rad(0),rad(0)),i) | |
1908 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(-10),rad(15)),i) | |
1909 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(90)),i) | |
1910 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1911 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1912 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1913 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1914 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1915 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1916 | swait() | |
1917 | end | |
1918 | sphereefx(ra.CFrame*cf(0,-1,0),1,3,Part4.BrickColor,.2) | |
1919 | local soun = sound(376107717,5,1,h) | |
1920 | laser(Part4,mouse.Hit.p) | |
1921 | using = false | |
1922 | end | |
1923 | function skystrikeanim() | |
1924 | using = true | |
1925 | local speed1 = .03 | |
1926 | if mode == "Star" then | |
1927 | speed1 = .05 | |
1928 | end | |
1929 | for i = 0,.8,speed1 do | |
1930 | hum.WalkSpeed = 0 | |
1931 | hum.JumpPower = 0 | |
1932 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,.1,.1) * CFrame.Angles(rad(-80),rad(0),rad(180)),i) | |
1933 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1.1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-10)),i) | |
1934 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1.1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
1935 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.7,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(10),rad(-15),rad(170)),i) | |
1936 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-15),rad(0),rad(10)),i) | |
1937 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-60),rad(0),rad(180)),i) | |
1938 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
1939 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
1940 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
1941 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
1942 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
1943 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
1944 | swait() | |
1945 | end | |
1946 | skybeam(cf(mouse.Hit.x,mouse.Hit.y,mouse.Hit.z)) | |
1947 | using = false | |
1948 | end | |
1949 | ||
1950 | --Connections | |
1951 | mouse.Button1Down:Connect(function() | |
1952 | if not using then | |
1953 | if currentpunch == 1 then | |
1954 | currentpunch = currentpunch+1 | |
1955 | punch1() | |
1956 | elseif currentpunch == 2 then | |
1957 | currentpunch = currentpunch+1 | |
1958 | punch2() | |
1959 | elseif currentpunch == 3 then | |
1960 | currentpunch = 1 | |
1961 | punch3() | |
1962 | end | |
1963 | end | |
1964 | end) | |
1965 | mouse.KeyDown:Connect(function(key) | |
1966 | if key == "q" and mode == "Normal" then | |
1967 | changecolors(.25,modecolors.demoralizedcolors.color1,modecolors.demoralizedcolors.color2,modecolors.demoralizedcolors.neoncolor) | |
1968 | mode = "Demoralized" | |
1969 | text.Text = mode | |
1970 | if music or music.Parent then | |
1971 | music.SoundId = ids.demoralizedmode | |
1972 | songid = ids.demoralizedmode | |
1973 | if not deafen then | |
1974 | music.Volume = 1.5 | |
1975 | vol = 1.5 | |
1976 | end | |
1977 | end | |
1978 | elseif key == "q" and mode == "Demoralized" then | |
1979 | mode = "DEMORALIZATION" | |
1980 | text.Text = mode | |
1981 | changecolors(.25,modecolors.demoralizationcolors.color1,modecolors.demoralizationcolors.color2,modecolors.demoralizationcolors.neoncolor) | |
1982 | if music or music.Parent then | |
1983 | music.SoundId = ids.demoralizationmode | |
1984 | songid = ids.demoralizationmode | |
1985 | if not deafen then | |
1986 | music.Volume = 5 | |
1987 | vol = 5 | |
1988 | end | |
1989 | end | |
1990 | elseif key == "q" and mode == "DEMORALIZATION" then | |
1991 | changecolors(.25,modecolors.starcolors.color1,modecolors.starcolors.color2,modecolors.starcolors.neoncolor) | |
1992 | mode = "Star" | |
1993 | text.Text = mode | |
1994 | if music or music.Parent then | |
1995 | music.SoundId = ids.starmode | |
1996 | songid = ids.starmode | |
1997 | if not deafen then | |
1998 | music.Volume = 1.5 | |
1999 | vol = 1.5 | |
2000 | end | |
2001 | end | |
2002 | elseif key == "q" and mode == "Star" then | |
2003 | changecolors(.25,modecolors.normalcolors.color1,modecolors.normalcolors.color2,modecolors.normalcolors.neoncolor) | |
2004 | mode = "Normal" | |
2005 | text.Text = mode | |
2006 | if music or music.Parent then | |
2007 | music.SoundId = ids.normalmode | |
2008 | songid = ids.normalmode | |
2009 | if not deafen then | |
2010 | music.Volume = 1.5 | |
2011 | vol = 1.5 | |
2012 | end | |
2013 | end | |
2014 | end | |
2015 | if key == "x" and not using then | |
2016 | tp() | |
2017 | end | |
2018 | if key == "r" and not using then | |
2019 | throwfireanim() | |
2020 | end | |
2021 | if key == "t" and not using and mode == "Demoralized" or key == "t" and not using and mode == "DEMORALIZATION" then | |
2022 | roaranim() | |
2023 | end | |
2024 | if key == "n" and not using then | |
2025 | giantkickorstompanim() | |
2026 | end | |
2027 | if key == "f" and not using then | |
2028 | laseranim() | |
2029 | end | |
2030 | if key == "m" and not deafen then | |
2031 | deafen = true | |
2032 | music.Volume = 0 | |
2033 | vol = 0 | |
2034 | elseif key == "m" and deafen then | |
2035 | deafen = false | |
2036 | vol = 1.5 | |
2037 | if mode == "DEMORALIZATION" then | |
2038 | vol = 5 | |
2039 | end | |
2040 | music.Volume = vol | |
2041 | end | |
2042 | if key == "e" and not using then | |
2043 | skystrikeanim() | |
2044 | end | |
2045 | end) | |
2046 | ||
2047 | --Animations | |
2048 | local firewristbandeffects = coroutine.wrap(function() | |
2049 | while hum.Health >.01 do | |
2050 | if mode == "Normal" and not roaring and not landed then | |
2051 | hum.WalkSpeed = 16 | |
2052 | hum.JumpPower = 50 | |
2053 | jp = 50 | |
2054 | elseif mode == "Demoralized" and not roaring and not landed then | |
2055 | hum.WalkSpeed = 12 | |
2056 | hum.JumpPower = 50 | |
2057 | jp = 50 | |
2058 | elseif mode == "DEMORALIZATION" and not roaring and not landed then | |
2059 | hum.WalkSpeed = 10 | |
2060 | hum.JumpPower = 50 | |
2061 | jp = 50 | |
2062 | elseif mode == "Star" and not roaring and not landed then | |
2063 | hum.WalkSpeed = 35 | |
2064 | hum.JumpPower = 85 | |
2065 | jp = 85 | |
2066 | end | |
2067 | if roaring then | |
2068 | hum.WalkSpeed = 0 | |
2069 | hum.JumpPower = 0 | |
2070 | end | |
2071 | if mode == "Demoralized" then | |
2072 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
2073 | local rand = random(1,7) | |
2074 | if hit and rand == 7 then | |
2075 | placeweakfirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),random(3,6)) | |
2076 | end | |
2077 | elseif mode == "DEMORALIZATION" then | |
2078 | local hit,pos,rot = rayc(rut.Position,-rut.CFrame.UpVector,{char},500) | |
2079 | local rand = random(1,7) | |
2080 | if hit and rand == 5 then | |
2081 | placeweakfirepart(cf(pos,pos+rot)*angles(rad(-90),0,0),random(7,12)) | |
2082 | end | |
2083 | end | |
2084 | if not roar.Parent then | |
2085 | roar = ins("Sound",rut) | |
2086 | roar.Volume = 5 | |
2087 | roar.SoundId = "rbxassetid://2631687985" | |
2088 | roar.EmitterSize = 100 | |
2089 | end | |
2090 | local rand = random(1,3) | |
2091 | if rand == 2 then | |
2092 | wedgefire(Part8,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,10)/20,math.random(3,6)/20,math.random(6,10)/11,"Neon",-2,2,5,.3,1,true) | |
2093 | end | |
2094 | fire(Part8,effects,tostring(Part4.BrickColor),tostring(Part6.BrickColor),math.random(7,13)/15,math.random(3,6)/15,math.random(6,10)/12,"Neon",-1,1,"Block",3,.2,1,true) | |
2095 | wait(random(2,4)/6) | |
2096 | end | |
2097 | end) | |
2098 | local anims = coroutine.wrap(function() | |
2099 | while hum.Health > .01 do | |
2100 | signweld.C0 = angles(rad(0),rad(90),rad(0)) | |
2101 | if not lsound.Parent then | |
2102 | lsound = Instance.new("Sound",effpart) lsound.Volume = lsvol lsound.SoundId = "rbxassetid://1161221108" | |
2103 | end | |
2104 | if not music.Parent or not music then | |
2105 | music = ins("Sound",t) | |
2106 | music.Volume = vol | |
2107 | music.SoundId = songid | |
2108 | music.Looped = true | |
2109 | music.TimePosition = timepos | |
2110 | music.EmitterSize = 100 | |
2111 | music:Play() | |
2112 | end | |
2113 | if not effects or not effects.Parent then | |
2114 | effects = ins("Model",char) | |
2115 | effects.Name = "Effects" | |
2116 | end | |
2117 | timepos = music.TimePosition | |
2118 | local hit,pos,rot = rayc(rut.Position -v3(0,1,0),-rut.CFrame.UpVector,{char},2.7) | |
2119 | local grhit,grpos,grrot = rayc(grabpart.Position,-grabpart.CFrame.UpVector,{char},1) | |
2120 | phit = hit | |
2121 | if not using then | |
2122 | if grhit and grhit.Anchored == true then | |
2123 | cangrabthecorner = true | |
2124 | else | |
2125 | cangrabthecorner = false | |
2126 | end | |
2127 | end | |
2128 | ||
2129 | if cangrabthecorner and not grabbedc then | |
2130 | local shit,spos,srot = rayc(rut.Position+Vector3.new(0,2.5,0),rut.CFrame.LookVector,{char},1.5) | |
2131 | if shit then | |
2132 | grabbedc = true | |
2133 | local cf = CFrame.new(spos,spos+srot) * CFrame.Angles(rad(0),rad(180),0) * CFrame.new(0,-2,.7) | |
2134 | using = true | |
2135 | cangrabthecorner = false | |
2136 | rut.Anchored = true | |
2137 | local oldws = hum.WalkSpeed | |
2138 | hum.WalkSpeed = 0 | |
2139 | hum.JumpPower = 0 | |
2140 | rut.CFrame = cf | |
2141 | local curcf = rut.CFrame | |
2142 | for i = 0,1,.1 do | |
2143 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i) | |
2144 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i) | |
2145 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i) | |
2146 | rs.C0 = rs.C0:Lerp(CFrame.new(.85,.8,.5) * CFrame.Angles(rad(160),rad(90),rad(0)),i) | |
2147 | ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.8,.5) * CFrame.Angles(rad(160),rad(-90),rad(0)),i) | |
2148 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-30),rad(0),rad(180)),i) | |
2149 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2150 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2151 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2152 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2153 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2154 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2155 | swait() | |
2156 | end | |
2157 | for i = 0,.65,.025 do | |
2158 | rut.CFrame = rut.CFrame:Lerp(curcf * CFrame.new(0,4.5,-1.5),i) | |
2159 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(rad(-120),rad(0),rad(180)),i) | |
2160 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.6,-.6) * CFrame.Angles(rad(-20),rad(90),rad(0)),i) | |
2161 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.1,-.6) * CFrame.Angles(rad(30),rad(-90),rad(0)),i) | |
2162 | rs.C0 = rs.C0:Lerp(CFrame.new(.85,.3,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
2163 | ls.C0 = ls.C0:Lerp(CFrame.new(-.85,.3,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(10)),i) | |
2164 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),i) | |
2165 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2166 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2167 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2168 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2169 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2170 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2171 | swait() | |
2172 | end | |
2173 | hum.WalkSpeed = oldws | |
2174 | rut.Anchored = false | |
2175 | t.Anchored = false | |
2176 | using = false | |
2177 | grabbedc = false | |
2178 | end | |
2179 | end | |
2180 | ||
2181 | walkspeed = hum.WalkSpeed | |
2182 | sumthin = walkspeed/8 | |
2183 | animspeed1 = 1.5/sumthin | |
2184 | change = change +sine | |
2185 | ||
2186 | local vervel = rut.Velocity.y | |
2187 | local tvel = (rut.Velocity * v3(1,0,1)).Magnitude | |
2188 | local Ccf=rut.CFrame | |
2189 | local Walktest1 = hum.MoveDirection*Ccf.LookVector | |
2190 | local Walktest2 = hum.MoveDirection*Ccf.RightVector | |
2191 | local rotfb = Walktest1.X+Walktest1.Z | |
2192 | local rotrl = Walktest2.X+Walktest2.Z | |
2193 | ||
2194 | if lookinaround then | |
2195 | lchange = lchange +sine | |
2196 | else | |
2197 | lchange = 0 | |
2198 | end | |
2199 | ||
2200 | if anim == "fall" and not hit then | |
2201 | readytoland = true | |
2202 | end | |
2203 | ||
2204 | if readytoland then | |
2205 | hum.JumpPower = 0 | |
2206 | else | |
2207 | hum.JumpPower = jp | |
2208 | end | |
2209 | ||
2210 | if not landed then | |
2211 | if readytoland and hit then | |
2212 | land() | |
2213 | end | |
2214 | if mode == "Normal" then | |
2215 | if not hum.Sit then | |
2216 | if anim == "idle" and hit ~= nil then | |
2217 | if not using then | |
2218 | --Neck | |
2219 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,-sin(change/aa/2.5)*rad(1)),.1) | |
2220 | --Humanoid Root Part | |
2221 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1) | |
2222 | --Shoulders | |
2223 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)),.1) | |
2224 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),-sin(change/aa/2.5)*rad(2.5)),.1) | |
2225 | --Hips | |
2226 | rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2227 | lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2228 | end | |
2229 | elseif anim == "sit" then | |
2230 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2231 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2232 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2233 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2234 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2235 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2236 | elseif anim == "jump" and hit == nil then | |
2237 | if not using then | |
2238 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1) | |
2239 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1) | |
2240 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1) | |
2241 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1) | |
2242 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2243 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2244 | end | |
2245 | elseif anim == "fall" and hit == nil then | |
2246 | if not using then | |
2247 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1) | |
2248 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1) | |
2249 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1) | |
2250 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1) | |
2251 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2252 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2253 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2254 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2255 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2256 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(20)),.025) | |
2257 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(-20)),.025) | |
2258 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2259 | end | |
2260 | elseif anim == "walk" and hit ~= nil then | |
2261 | if not using then | |
2262 | --Neck | |
2263 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1)/17.5) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60),walkanimspeed) | |
2264 | --Humanoid Root Part | |
2265 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1)/15) * CFrame.Angles(sin(change/aa/animspeed1)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed) | |
2266 | --Shoulders | |
2267 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(0,0,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb),walkanimspeed) | |
2268 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb),walkanimspeed) | |
2269 | --Hips | |
2270 | rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2271 | lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(-cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2272 | end | |
2273 | end | |
2274 | else | |
2275 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2276 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2277 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2278 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2279 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2280 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2281 | end | |
2282 | elseif mode == "Demoralized" then | |
2283 | if not hum.Sit then | |
2284 | if anim == "idle" and hit ~= nil then | |
2285 | if not using then | |
2286 | --Neck | |
2287 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,-sin(change/aa*1.5)*rad(5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2288 | --Humanoid Root Part | |
2289 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1) | |
2290 | --Shoulders | |
2291 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2292 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),-sin(change/aa/2.5)*rad(2.5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2293 | --Hips | |
2294 | rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2295 | lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2296 | end | |
2297 | elseif anim == "sit" then | |
2298 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2299 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2300 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2301 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2302 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2303 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2304 | elseif anim == "jump" and hit == nil then | |
2305 | if not using then | |
2306 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1) | |
2307 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1) | |
2308 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1) | |
2309 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1) | |
2310 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2311 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2312 | end | |
2313 | elseif anim == "fall" and hit == nil then | |
2314 | if not using then | |
2315 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1) | |
2316 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1) | |
2317 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1) | |
2318 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1) | |
2319 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2320 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2321 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2322 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2323 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2324 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(20)),.025) | |
2325 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(-20)),.025) | |
2326 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2327 | end | |
2328 | elseif anim == "walk" and hit ~= nil then | |
2329 | if not using then | |
2330 | --Neck | |
2331 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1)/17.5) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),walkanimspeed) | |
2332 | --Humanoid Root Part | |
2333 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1)/15) * CFrame.Angles(sin(change/aa/animspeed1)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed) | |
2334 | --Shoulders | |
2335 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(cos(change/aa/2.5)/(1.5*10),-cos(change/aa/2.5)/(1.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2336 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(10)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(15)*rotfb,-sin(change/aa/animspeed1)*rad(35*sumthin)*rotfb or rotrl) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),walkanimspeed) | |
2337 | --Hips | |
2338 | rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2339 | lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(-cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2340 | end | |
2341 | end | |
2342 | else | |
2343 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2344 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2345 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2346 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2347 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2348 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2349 | end | |
2350 | elseif mode == "DEMORALIZATION" then | |
2351 | if not hum.Sit then | |
2352 | if anim == "idle" and hit ~= nil then | |
2353 | if not using then | |
2354 | --Neck | |
2355 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,-sin(change/aa*1.25)*rad(10)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2356 | --Humanoid Root Part | |
2357 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1) | |
2358 | --Shoulders | |
2359 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(2.5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2360 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(1),-sin(change/aa/2.5)*rad(2.5)) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),.1) | |
2361 | --Hips | |
2362 | rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2363 | lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2364 | end | |
2365 | elseif anim == "sit" then | |
2366 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2367 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2368 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2369 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2370 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2371 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2372 | elseif anim == "jump" and hit == nil then | |
2373 | if not using then | |
2374 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1) | |
2375 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1) | |
2376 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1) | |
2377 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1) | |
2378 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2379 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2380 | end | |
2381 | elseif anim == "fall" and hit == nil then | |
2382 | if not using then | |
2383 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1) | |
2384 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1) | |
2385 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1) | |
2386 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1) | |
2387 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2388 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2389 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2390 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2391 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2392 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(20)),.025) | |
2393 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(-20)),.025) | |
2394 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2395 | end | |
2396 | elseif anim == "walk" and hit ~= nil then | |
2397 | if not using then | |
2398 | --Neck | |
2399 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1)/17.5) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60) * angles(rad(random(-10,10)),rad(random(-10,10)),rad(random(-10,10))),walkanimspeed) | |
2400 | --Humanoid Root Part | |
2401 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1)/15) * CFrame.Angles(sin(change/aa/animspeed1)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed) | |
2402 | --Shoulders | |
2403 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(0,0,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,0) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(20*sumthin)*rotfb),walkanimspeed) | |
2404 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(3*sumthin)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,0) * CFrame.Angles(sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(5)*rotfb,-sin(change/aa/animspeed1)*rad(20*sumthin)*rotfb),walkanimspeed) | |
2405 | --Hips | |
2406 | rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2407 | lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1)/3.5)*rotfb or (cos(change/aa/animspeed1)/3.5)*rotrl,(-cos(change/aa/animspeed1)/4),(cos(change/aa/animspeed1)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,-sin(change/aa/animspeed1)*rad(15*sumthin)*rotrl,sin(change/aa/animspeed1)*rad(30*sumthin)*rotfb),walkanimspeed) | |
2408 | end | |
2409 | end | |
2410 | else | |
2411 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2412 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2413 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2414 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2415 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2416 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2417 | end | |
2418 | elseif mode == "Star" then | |
2419 | if not hum.Sit then | |
2420 | if anim == "idle" and hit ~= nil then | |
2421 | if not using then | |
2422 | --Neck | |
2423 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/3.5)*rad(6.5),-sin(change/aa/2.5)*rad(1)),.1) | |
2424 | --Humanoid Root Part | |
2425 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10)) * CFrame.Angles(sin(change/aa/2.5)*rad(1),0,0),.1) | |
2426 | --Shoulders | |
2427 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,0) * CFrame.Angles(sin(change/aa/1.5)*rad(1),sin(change/aa/2.5)*rad(3),sin(change/aa/2.5)*rad(2.5)),.1) | |
2428 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(change/aa/2.5)/(2.5*10),cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,0) * CFrame.Angles(sin(change/aa/2.5)*rad(1),sin(change/aa/2.5)*rad(3),-sin(change/aa/2.5)*rad(2.5)),.1) | |
2429 | --Hips | |
2430 | rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2431 | lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(-cos(change/aa/2.5)/(2.5*10),-cos(change/aa/2.5)/(2.5*10),0) * CFrame.Angles(0,0,-sin(change/aa/2.5)*rad(1)) * CFrame.Angles(0,0,0),.1) | |
2432 | end | |
2433 | elseif anim == "sit" then | |
2434 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2435 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2436 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2437 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2438 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2439 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2440 | elseif anim == "jump" and hit == nil then | |
2441 | if not using then | |
2442 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(-rotfb/3,0,rotrl/3),.1) | |
2443 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,0),.1) | |
2444 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,-rotfb/3),.1) | |
2445 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,rotfb/3),.1) | |
2446 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2447 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2448 | end | |
2449 | elseif anim == "fall" and hit == nil then | |
2450 | if not using then | |
2451 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.Angles(rotfb/2,0,rotrl),.1) | |
2452 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.Angles(-rotfb/5,rotrl/5,rotrl/5),.1) | |
2453 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.Angles(-rotrl/3,rotfb/3,rotfb/3),.1) | |
2454 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.Angles(rotrl/3,-rotfb/3,-rotfb/3),.1) | |
2455 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2456 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2457 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2458 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2459 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2460 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(20)),.025) | |
2461 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(-20)),.025) | |
2462 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2463 | end | |
2464 | elseif anim == "walk" and hit ~= nil then | |
2465 | if not using then | |
2466 | --Neck | |
2467 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,cos(change/aa/animspeed1/1.5)/15) * CFrame.Angles(-sin(change/aa/animspeed1/1.5)*rad(5),-rut.RotVelocity.y/90,rut.RotVelocity.y/60),walkanimspeed/1.3) | |
2468 | --Humanoid Root Part | |
2469 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,cos(change/aa/animspeed1/1)/6) * CFrame.Angles(sin(change/aa/animspeed1/1.5)*rad(2.5*sumthin),-rut.RotVelocity.y/100,sin(change/aa/animspeed1/1.5)*rad(5*sumthin) * -rut.RotVelocity.y/100) * CFrame.Angles(-rotfb/5,rotrl/5,0),walkanimspeed/1.3) | |
2470 | --Shouldersd | |
2471 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(0,0,0) * CFrame.Angles(-cos(change/aa/animspeed1/.75)*rad(5),-sin(change/aa/animspeed1/.75)*rad(5)*rotfb,0) * CFrame.Angles(-sin(change/aa/animspeed1/1.5)*rad(5)*rotfb,-sin(change/aa/animspeed1/1.5)*rad(5)*rotrl,-sin(change/aa/animspeed1/1.5)*rad(35*sumthin/1.3)*rotfb),walkanimspeed/1) | |
2472 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(0,0,0) * CFrame.Angles(cos(change/aa/animspeed1/.75)*rad(5),sin(change/aa/animspeed1/.75)*rad(5)*rotrl,0) * CFrame.Angles(sin(change/aa/animspeed1/1.5)*rad(5)*rotfb,-sin(change/aa/animspeed1/1.5)*rad(5)*rotfb,-sin(change/aa/animspeed1/1.5)*rad(35*sumthin/1.3)*rotfb),walkanimspeed/1) | |
2473 | --Hips | |
2474 | rh.C1 = rh.C1:Lerp(cf5 * CFrame.new((cos(change/aa/animspeed1/1.5)/1)*rotfb or (cos(change/aa/animspeed1/1.5)*1.5)*rotrl,(cos(change/aa/animspeed1/1.5)/4),(cos(change/aa/animspeed1/1.5)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1/1.5)*rad(15*sumthin)*rotrl,0,sin(change/aa/animspeed1/1.5)*rad(35*sumthin/1.3)*rotfb),walkanimspeed/1.3) | |
2475 | lh.C1 = lh.C1:Lerp(cf6 * CFrame.new((cos(change/aa/animspeed1/1.5)/1)*rotfb or (cos(change/aa/animspeed1/1.5)*1.5)*rotrl,(-cos(change/aa/animspeed1/1.5)/4),(cos(change/aa/animspeed1/1.5)/4)*rotrl) * CFrame.Angles(-sin(change/aa/animspeed1/1.5)*rad(15*sumthin)*rotrl,0,sin(change/aa/animspeed1/1.5)*rad(35*sumthin/1.3)*rotfb),walkanimspeed/1.3) | |
2476 | end | |
2477 | end | |
2478 | else | |
2479 | nec.C1 = nec.C1:Lerp(cf1,.1) | |
2480 | rutj.C1 = rutj.C1:Lerp(cf2,.1) | |
2481 | rs.C1 = rs.C1:Lerp(cf3,.1) | |
2482 | ls.C1 = ls.C1:Lerp(cf4,.1) | |
2483 | rh.C1 = rh.C1:Lerp(cf5,.1) | |
2484 | lh.C1 = lh.C1:Lerp(cf6,.1) | |
2485 | end | |
2486 | end | |
2487 | if not grabbedc then | |
2488 | if vervel > 1 and hum.Sit == false then | |
2489 | anim = "jump" | |
2490 | if not using then | |
2491 | if mode == "Normal" then | |
2492 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50) | |
2493 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50) | |
2494 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50) | |
2495 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2496 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2497 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50) | |
2498 | elseif mode == "Demoralized" then | |
2499 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50) | |
2500 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50) | |
2501 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50) | |
2502 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2503 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2504 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50) | |
2505 | elseif mode == "DEMORALIZATION" then | |
2506 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50) | |
2507 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50) | |
2508 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50) | |
2509 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2510 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2511 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50) | |
2512 | elseif mode == "Star" then | |
2513 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),animspeed*50) | |
2514 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),animspeed*50) | |
2515 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.4,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),animspeed*50) | |
2516 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.25,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2517 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-40),rad(0),rad(0)),animspeed*50) | |
2518 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50) | |
2519 | end | |
2520 | end | |
2521 | elseif vervel < -2 and hum.Sit == false then | |
2522 | anim = "fall" | |
2523 | if not using then | |
2524 | if mode == "Normal" then | |
2525 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2526 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2527 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2528 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2529 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2530 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2531 | elseif mode == "Demoralized" then | |
2532 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2533 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2534 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2535 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2536 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2537 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2538 | elseif mode == "DEMORALIZATION" then | |
2539 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2540 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2541 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2542 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2543 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2544 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2545 | elseif mode == "Star" then | |
2546 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-80),rad(0),rad(180)),.025) | |
2547 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.1,-.4) * CFrame.Angles(rad(-10),rad(85),rad(0)),.025) | |
2548 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.55,-.25) * CFrame.Angles(rad(-10),rad(-85),rad(0)),.025) | |
2549 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.35,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2550 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.25,-0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(-50),rad(0),rad(0)),.025) | |
2551 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),.025) | |
2552 | end | |
2553 | end | |
2554 | elseif tvel < 2 and hum.Sit == false then | |
2555 | anim = "idle" | |
2556 | if not using then | |
2557 | if mode == "Normal" then | |
2558 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50) | |
2559 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50) | |
2560 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50) | |
2561 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50) | |
2562 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50) | |
2563 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50) | |
2564 | elseif mode == "Demoralized" then | |
2565 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50) | |
2566 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),animspeed*50) | |
2567 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50) | |
2568 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * angles(rad(-45),rad(10),rad(165)),animspeed*50) | |
2569 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),animspeed*50) | |
2570 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)),animspeed*50) | |
2571 | elseif mode == "DEMORALIZATION" then | |
2572 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-115),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50) | |
2573 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),rad(35)),animspeed*50) | |
2574 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),rad(-35)),animspeed*50) | |
2575 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * angles(rad(0),rad(0),rad(25)),animspeed*50) | |
2576 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-25)),animspeed*50) | |
2577 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-130),rad(0),rad(180)),animspeed*50) | |
2578 | elseif mode == "Star" then | |
2579 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,-.1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(0),rad(0),rad(0)),animspeed*50) | |
2580 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-5),rad(-10)),animspeed*50) | |
2581 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(5),rad(10)),animspeed*50) | |
2582 | rs.C0 = rs.C0:Lerp(CFrame.new(.7,.4,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * angles(rad(2),rad(90),rad(90)),animspeed*50) | |
2583 | ls.C0 = ls.C0:Lerp(CFrame.new(-.7,.4,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(2),rad(-90),rad(-91)),animspeed*50) | |
2584 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-100),rad(0),rad(180)),animspeed*50) | |
2585 | end | |
2586 | end | |
2587 | elseif tvel > 1 and hum.Sit == false then | |
2588 | anim = "walk" | |
2589 | if not using then | |
2590 | if mode == "Normal" then | |
2591 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50) | |
2592 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.8+rotrl/4,-.15) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(-rotrl/5,-rotrl/5,rotfb/5),animspeed*50) | |
2593 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.8-rotrl/4,-.15) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(rotrl/5,-rotrl/5,-rotfb/5),animspeed*50) | |
2594 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(0,rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(5*sumthin)),animspeed*50) | |
2595 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0*rad(10*sumthin),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-5*sumthin)),animspeed*50) | |
2596 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(-5),rad(0),rad(-40*rotrl)),animspeed*50) | |
2597 | elseif mode == "Demoralized" then | |
2598 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50) | |
2599 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.8+rotrl/4,-.15) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(-rotrl/5,-rotrl/5,rotfb/5),animspeed*50) | |
2600 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.8-rotrl/4,-.15) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),0) * CFrame.Angles(rotrl/5,-rotrl/5,-rotfb/5),animspeed*50) | |
2601 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * angles(rad(-45),rad(10),rad(165)),animspeed*50) | |
2602 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-5*sumthin)),animspeed*50) | |
2603 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(-5),rad(0),rad(-40*rotrl)),animspeed*50) | |
2604 | elseif mode == "DEMORALIZATION" then | |
2605 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-100),rad(0),rad(180)) * CFrame.Angles(rad(0*sumthin),rad(0),rad(0)),animspeed*50) | |
2606 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-.8+rotrl/4,-.15) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(rad(0),rad(0),rad(10)) * CFrame.Angles(-rotrl/5,-rotrl/5,rotfb/5),animspeed*50) | |
2607 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-.8-rotrl/4,-.15) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(rad(0),rad(0),rad(-10)) * CFrame.Angles(rotrl/5,-rotrl/5,-rotfb/5),animspeed*50) | |
2608 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * angles(rad(0),rad(0),rad(25)),animspeed*50) | |
2609 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-25)),animspeed*50) | |
2610 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-110),rad(0),rad(180)) * CFrame.Angles(rad(-5),rad(0),rad(-40*rotrl)),animspeed*50) | |
2611 | elseif mode == "Star" then | |
2612 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-100),rad(0),rad(180)) * CFrame.Angles(rad(0),rad(0),rad(0)),animspeed*50) | |
2613 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,-.1) * CFrame.Angles(rad(0),rad(90),rad(-10)) * CFrame.Angles(0,0,rotfb/5),animspeed*50) | |
2614 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,-.1) * CFrame.Angles(rad(0),rad(-90),rad(10)) * CFrame.Angles(0,0,-rotfb/5),animspeed*50) | |
2615 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(0,rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(15)),animspeed*50) | |
2616 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(0,rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-15)),animspeed*50) | |
2617 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-80),rad(0),rad(180)) * CFrame.Angles(rad(-5),rad(0),rad(-40*rotrl)),animspeed*50) | |
2618 | end | |
2619 | end | |
2620 | elseif hum.Sit == true then | |
2621 | if plr.UserId ~= 90745958 then | |
2622 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),animspeed*50) | |
2623 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(90)),animspeed*50) | |
2624 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(0),rad(-90)),animspeed*50) | |
2625 | rs.C0 = rs.C0:Lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50) | |
2626 | ls.C0 = ls.C0:Lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(-30)) * CFrame.Angles(rad(30),rad(0),rad(0)),animspeed*50) | |
2627 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-95),rad(0),rad(180)),animspeed*50) | |
2628 | else | |
2629 | rutj.C0 = rutj.C0:Lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-105),rad(0),rad(180)),animspeed*50) | |
2630 | rh.C0 = rh.C0:Lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(15),rad(90),rad(0)) * CFrame.Angles(rad(0),rad(-20),rad(90)),animspeed*50) | |
2631 | lh.C0 = lh.C0:Lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(15),rad(-90),rad(0)) * CFrame.Angles(rad(0),rad(20),rad(-90)),animspeed*50) | |
2632 | rs.C0 = rs.C0:Lerp(CFrame.new(.5,.2,-.3) * CFrame.Angles(rad(-10),rad(95),rad(30)) * CFrame.Angles(rad(25),rad(20),rad(0)),animspeed*50) | |
2633 | ls.C0 = ls.C0:Lerp(CFrame.new(-.5,.2,-.3) * CFrame.Angles(rad(-10),rad(-95),rad(-30)) * CFrame.Angles(rad(25),rad(-20),rad(0)),animspeed*50) | |
2634 | nec.C0 = nec.C0:Lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-75),rad(0),rad(180)),animspeed*50) | |
2635 | end | |
2636 | end | |
2637 | else | |
2638 | end | |
2639 | else | |
2640 | nec.C1 = nec.C1:Lerp(cf1,animspeed*50) | |
2641 | rutj.C1 = rutj.C1:Lerp(cf2,animspeed*50) | |
2642 | rs.C1 = rs.C1:Lerp(cf3,animspeed*50) | |
2643 | ls.C1 = ls.C1:Lerp(cf4,animspeed*50) | |
2644 | rh.C1 = rh.C1:Lerp(cf5,animspeed*50) | |
2645 | lh.C1 = lh.C1:Lerp(cf6,animspeed*50) | |
2646 | end | |
2647 | coroutine.resume(coroutine.create(function() | |
2648 | if not using and anim == "idle" then | |
2649 | if not lookinaround then | |
2650 | idlenum = idlenum +.005 | |
2651 | if idlenum >= whenbored then | |
2652 | idlenum = 0 | |
2653 | local oldws = hum.WalkSpeed | |
2654 | local oldjp = hum.JumpPower | |
2655 | hum.WalkSpeed = 0 | |
2656 | hum.JumpPower = 0 | |
2657 | rut.Anchored = true | |
2658 | rh.Part0 = nil | |
2659 | lh.Part0 = nil | |
2660 | rl.Anchored = true | |
2661 | ll.Anchored = true | |
2662 | using = true | |
2663 | lookinaround = true | |
2664 | wait(3) | |
2665 | hum.WalkSpeed = oldws | |
2666 | hum.JumpPower = oldjp | |
2667 | rut.Anchored = false | |
2668 | using = false | |
2669 | rh.Part0 = t | |
2670 | lh.Part0 = t | |
2671 | rl.Anchored = false | |
2672 | ll.Anchored = false | |
2673 | whenbored = math.random(2,6) | |
2674 | lookinaround = false | |
2675 | end | |
2676 | end | |
2677 | elseif using then | |
2678 | idlenum = 0 | |
2679 | elseif anim ~= "idle" then | |
2680 | idlenum = 0 | |
2681 | end | |
2682 | end)) | |
2683 | if lookinaround then | |
2684 | --Neck | |
2685 | nec.C1 = nec.C1:Lerp(cf1 * CFrame.new(0,0,0) * CFrame.Angles(sin(lchange/aa/1.5)*rad(10),cos(lchange/aa/1.5)*rad(5),-sin(lchange/aa/3)*rad(40)),.1) | |
2686 | --Humanoid Root Part | |
2687 | rutj.C1 = rutj.C1:Lerp(cf2 * CFrame.new(0,0,0) * CFrame.Angles(cos(lchange/aa/1.5)*rad(5),cos(lchange/aa/1.5)*rad(5),-sin(lchange/aa/3)*rad(20)),.1) | |
2688 | --Shoulders | |
2689 | rs.C1 = rs.C1:Lerp(cf3 * CFrame.new(-cos(lchange/aa/3)/(3*10),cos(lchange/aa/3)/(3*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(15)),.1) | |
2690 | ls.C1 = ls.C1:Lerp(cf4 * CFrame.new(cos(lchange/aa/3)/(3*10),cos(lchange/aa/3)/(3*10),0) * CFrame.Angles(.1,0,0) * CFrame.Angles(sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(12.5),-sin(lchange/aa/3)*rad(15)),.1) | |
2691 | --Hips | |
2692 | rh.C1 = rh.C1:Lerp(cff5 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0) * CFrame.Angles(0,0,0),.1) | |
2693 | lh.C1 = lh.C1:Lerp(cff6 * CFrame.new(0,0,0) * CFrame.Angles(0,0,0) * CFrame.Angles(0,0,0),.1) | |
2694 | end | |
2695 | swait() | |
2696 | end | |
2697 | end) | |
2698 | anims() | |
2699 | firewristbandeffects() | |
2700 | print("Loaded successfully!") | |
2701 | script.Parent = plr.PlayerGui | |
2702 | --End of script |