SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ------------------------------------------------------------------------------- | |
145 | --[[ UBERIFY! Made By: WafflesAreVeryGood If leaked, thanks a fucking lot.]]-- | |
146 | --[[ | |
147 | q = Left punch C | |
148 | e = Right punch C | |
149 | r = Beam C | |
150 | t = Double beam C | |
151 | y = Pick up then throw C | |
152 | p = Play music C | |
153 | l = Stop music C | |
154 | f = Stop scripts near you Failure. | |
155 | h = Barrage C | |
156 | j = Enable/Disable UBERIFY! C(maybe) | |
157 | k = Backflip C | |
158 | z = Inincerate C | |
159 | x = Record frame C | |
160 | c = Play C | |
161 | v = Shield C | |
162 | b = EX-U-PLO-SION! C | |
163 | n = Dash attack C | |
164 | m = Huge jump C | |
165 | g = Eye shot C | |
166 | shift = Sprint with cool effect and stuff | |
167 | ||
168 | --]] | |
169 | local plr = game.Players.LocalPlayer | |
170 | local char = plr.Character | |
171 | local mouse = plr:GetMouse() | |
172 | local torso = char.Torso | |
173 | local rs = torso["Right Shoulder"] | |
174 | local ls = torso["Left Shoulder"] | |
175 | local rh = torso["Right Hip"] | |
176 | local lh = torso["Left Hip"] | |
177 | local rj = char.HumanoidRootPart.RootJoint | |
178 | local neck = torso.Neck | |
179 | local animpose = "Idle" | |
180 | local attacking = false | |
181 | local cananim = true | |
182 | local rage = false | |
183 | local shield = nil | |
184 | local sprint = false | |
185 | local canrage = true | |
186 | local legs = false | |
187 | local bc = char:WaitForChild("Body Colors") | |
188 | local multiplier = 1 | |
189 | local lac = char["Body Colors"].LeftArmColor | |
190 | local rac = char["Body Colors"].RightArmColor | |
191 | local rlc = char["Body Colors"].RightArmColor | |
192 | local llc = char["Body Colors"].LeftLegColor | |
193 | local hc = char["Body Colors"].HeadColor | |
194 | local tc = char["Body Colors"].TorsoColor | |
195 | local humanoid = char:FindFirstChildOfClass("Humanoid") | |
196 | local huge = Vector3.new(math.huge,math.huge,math.huge) | |
197 | local mobs = Instance.new("Sound", char) | |
198 | mobs.SoundId = "rbxassetid://189224548" | |
199 | mobs.Looped = true | |
200 | mobs.Volume = 3 | |
201 | mobs:Play() | |
202 | local shirt = nil | |
203 | local pants = nil | |
204 | local speed = 100 | |
205 | local push = 100 | |
206 | if char:FindFirstChild("Animate") then char.Animate:Destroy() end | |
207 | if char:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator") then char:FindFirstChildOfClass("Humanoid").Animator:Destroy() end | |
208 | local particlecolor = ColorSequence.new(Color3.new(1,1,1)) | |
209 | function swait(t) | |
210 | if t == nil or t == 0 then | |
211 | game:service('RunService').Stepped:wait(0) | |
212 | else | |
213 | for i = 0, t do | |
214 | game:service('RunService').Stepped:wait(0) | |
215 | end | |
216 | end | |
217 | end | |
218 | function hurt(hit, dmg) | |
219 | if hit.Parent then | |
220 | if hit.Parent.Name == "box" then print("bocks!11") hit.Parent:Destroy() end | |
221 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
222 | if hum then | |
223 | if hum.Parent.Name ~= plr.Name then | |
224 | if dmg == "Kill" or hum.Health > 100000 then | |
225 | hit.Parent:BreakJoints() | |
226 | return true | |
227 | else | |
228 | if math.random(0, 100) == 50 then | |
229 | hum.Health = hum.Health - dmg*multiplier*2.5 | |
230 | else | |
231 | hum.Health = hum.Health -dmg*multiplier | |
232 | end | |
233 | return true | |
234 | end | |
235 | end | |
236 | end | |
237 | end | |
238 | end | |
239 | function soundeffect(id, volume, speed, parent) | |
240 | spawn(function() | |
241 | local s = Instance.new("Sound") | |
242 | s.SoundId = id | |
243 | s.Volume = volume | |
244 | s.PlaybackSpeed = speed | |
245 | s.Parent = parent | |
246 | s:Play() | |
247 | repeat wait() until not s.Playing | |
248 | s:Destroy() | |
249 | end) | |
250 | end | |
251 | function gethum(obj) | |
252 | if obj.Parent then | |
253 | if obj.Parent:FindFirstChild("Humanoid") then | |
254 | if obj.Parent.Name ~= plr.Name then | |
255 | return obj.Parent:FindFirstChildOfClass("Humanoid") | |
256 | end | |
257 | end | |
258 | end | |
259 | end | |
260 | function smooth(obj) | |
261 | local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"} | |
262 | for i,v in pairs(sides) do | |
263 | obj[v.."Surface"] = "SmoothNoOutlines" | |
264 | end | |
265 | end | |
266 | function fade(obj, dest, grow) | |
267 | spawn(function() | |
268 | local oldcf = obj.CFrame | |
269 | for i = 0, 10 do | |
270 | if grow then | |
271 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
272 | obj.CFrame = oldcf | |
273 | end | |
274 | obj.Transparency = obj.Transparency +0.1 | |
275 | swait() | |
276 | end | |
277 | if dest then | |
278 | obj:Destroy() | |
279 | end | |
280 | end) | |
281 | end | |
282 | local keyamount = 0 | |
283 | mouse.KeyDown:connect(function(key) | |
284 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
285 | keyamount = keyamount + 1 | |
286 | if animpose ~= "Falling" then | |
287 | if keyamount > 3 then keyamount = 0 end | |
288 | animpose = "Walking" | |
289 | end | |
290 | end | |
291 | end) | |
292 | mouse.KeyUp:connect(function(key) | |
293 | if key == "w" or key == "a" or key == "s" or key == "d" then | |
294 | keyamount = keyamount - 1 | |
295 | if keyamount < 0 then keyamount = 0 end | |
296 | if keyamount == 0 then | |
297 | animpose = "Idle" | |
298 | end | |
299 | end | |
300 | end) | |
301 | wait(1) | |
302 | for i,v in pairs(char:children()) do | |
303 | if v:IsA("Accessory") then | |
304 | v:Destroy() | |
305 | end | |
306 | end | |
307 | local p = Instance.new("Part") | |
308 | p.CanCollide = false | |
309 | p.Size = Vector3.new(0.2,0.2,0.2) | |
310 | smooth(p) | |
311 | p.Material = "Neon" | |
312 | p.BrickColor = BrickColor.new("Institutional white") | |
313 | p.CFrame = char.Head.CFrame | |
314 | p.Name = "Right Eye" | |
315 | local m = Instance.new("SpecialMesh", p) | |
316 | m.MeshType = "Sphere" | |
317 | m.Scale = Vector3.new(0.7,1.1,0.7) | |
318 | local p2 = p:Clone() | |
319 | p2.Name = "Left Eye" | |
320 | local reye = p | |
321 | local leye = p2 | |
322 | local reyeweld = w | |
323 | local leyeweld = w2 | |
324 | reye.Parent = char | |
325 | leye.Parent = char | |
326 | local w2 = Instance.new("Weld", p2) | |
327 | w2.Part0 = p2 | |
328 | w2.Part1 = char.Head | |
329 | w2.C0 = CFrame.new(0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
330 | local w = Instance.new("Weld", p) | |
331 | w.Part0 = p | |
332 | w.Part1 = char.Head | |
333 | w.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
334 | local p = Instance.new("Part") | |
335 | p.Size = Vector3.new(0.2,0.2,0.2) | |
336 | p.CanCollide = false | |
337 | p.CFrame = char.Head.CFrame | |
338 | p.Transparency = 1 | |
339 | p.Name = "Effect" | |
340 | p.Parent = char | |
341 | local w = Instance.new("Weld", p) | |
342 | w.Name = "justaweld" | |
343 | w.Part0 = p | |
344 | w.Part1 = char.Head | |
345 | w.C0 = CFrame.new(-0.109999999, -0.25, 0.550000012, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
346 | local effect = Instance.new("ParticleEmitter") | |
347 | effect.Color = ColorSequence.new(Color3.new(250/255,80/255,1/255)) | |
348 | effect.LightEmission = 0.7 | |
349 | effect.Size = NumberSequence.new(0.3) | |
350 | effect.Texture = "rbxassetid://243664672" | |
351 | effect.Transparency = NumberSequence.new(0.5) | |
352 | effect.Lifetime = NumberRange.new(1.5) | |
353 | effect.Rate = 500 | |
354 | effect.Speed = NumberRange.new(3) | |
355 | effect.Enabled = false | |
356 | effect.Parent = p | |
357 | local effectp = p | |
358 | mouse.KeyDown:connect(function(key) | |
359 | if key == "p" then | |
360 | if not char:FindFirstChild("Sound") then | |
361 | mobs = Instance.new("Sound", char) | |
362 | mobs.SoundId = "rbxassetid://189224548" | |
363 | mobs.Looped = true | |
364 | mobs.Volume = 3 | |
365 | end | |
366 | mobs:Stop() | |
367 | mobs:Play() | |
368 | end | |
369 | end) | |
370 | mouse.KeyDown:connect(function(key) | |
371 | if key == "l" then | |
372 | if mobs then | |
373 | mobs:Stop() | |
374 | end | |
375 | a = function(b) | |
376 | for i,v in pairs(b:children()) do | |
377 | if v:IsA("Sound") and v.Parent ~= char then | |
378 | v:Destroy() | |
379 | end | |
380 | a(v) | |
381 | end | |
382 | end | |
383 | a(workspace) | |
384 | end | |
385 | end) | |
386 | mouse.KeyDown:connect(function(key) | |
387 | if key == "j" and not rage and canrage then | |
388 | rage = true | |
389 | canrage = false | |
390 | local truenumber = 0 | |
391 | for i = 0, 1 do | |
392 | reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,0,0.7),0.6) | |
393 | leye.Mesh.Scale = reye.Mesh.Scale | |
394 | wait() | |
395 | end | |
396 | humanoid.MaxHealth = 100000 humanoid.Name = "yahaha" | |
397 | wait() | |
398 | humanoid.Health = 100000 | |
399 | multiplier = 5 | |
400 | push = 200 | |
401 | reye.BrickColor = BrickColor.new("Deep orange") | |
402 | leye.BrickColor = BrickColor.new("Deep orange") | |
403 | wait(0.1) | |
404 | mobs.SoundId = "rbxassetid://305355374" | |
405 | for i = 0, 1 do | |
406 | reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,1.1,0.7),0.6) | |
407 | leye.Mesh.Scale = reye.Mesh.Scale | |
408 | wait() | |
409 | end | |
410 | wait(0.3) | |
411 | effect.Enabled = true | |
412 | canrage = true | |
413 | particlecolor = ColorSequence.new(Color3.new(250/255,80/255,1/255)) | |
414 | repeat wait() | |
415 | truenumber = truenumber+0.05 | |
416 | local num = math.sin(truenumber)*25 | |
417 | effectp.justaweld.C0 = CFrame.new(effectp.justaweld.C0.p) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(num)) | |
418 | until not rage | |
419 | end | |
420 | if key == "j" and rage and canrage then | |
421 | canrage = false | |
422 | for i = 0, 1 do | |
423 | reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,0,0.7),0.6) | |
424 | leye.Mesh.Scale = reye.Mesh.Scale | |
425 | wait() | |
426 | end | |
427 | rage = false | |
428 | reye.BrickColor = BrickColor.new("Institutional white") | |
429 | leye.BrickColor = BrickColor.new("Institutional white") | |
430 | wait(0.1) | |
431 | mobs.SoundId = "rbxassetid://189224548" | |
432 | for i = 0, 1 do | |
433 | reye.Mesh.Scale = reye.Mesh.Scale:Lerp(Vector3.new(0.7,1.1,0.7),0.6) | |
434 | leye.Mesh.Scale = reye.Mesh.Scale | |
435 | wait() | |
436 | end | |
437 | effect.Enabled = false | |
438 | canrage = true | |
439 | particlecolor = ColorSequence.new(Color3.new(1,1,1)) | |
440 | end | |
441 | end) | |
442 | mouse.KeyDown:connect(function(key) | |
443 | if key == "g" and not attacking then | |
444 | attacking = true | |
445 | local p = Instance.new("Part") | |
446 | p.Transparency = 1 | |
447 | p.Anchored = true | |
448 | p.Size = Vector3.new(2,2,2) | |
449 | p.CanCollide = false | |
450 | local pe = Instance.new("ParticleEmitter", p) | |
451 | pe.Color = particlecolor | |
452 | pe.LightEmission = 0.7 | |
453 | pe.Size = NumberSequence.new(2) | |
454 | pe.Texture = "rbxassetid://243664672" | |
455 | pe.Transparency = NumberSequence.new(0.5) | |
456 | pe.Lifetime = NumberRange.new(0.1) | |
457 | pe.Rate = 500 | |
458 | pe.Speed = NumberRange.new(3) | |
459 | p.CFrame = reye.CFrame | |
460 | p.Parent = workspace | |
461 | p.Anchored = false | |
462 | local bv = Instance.new("BodyVelocity", p) | |
463 | bv.MaxForce = huge | |
464 | bv.Velocity = CFrame.new(char.Torso.Position, mouse.Hit.p).lookVector*push | |
465 | p.Touched:connect(function(hit) | |
466 | hurt(hit, math.random(5,10)) | |
467 | end) | |
468 | game.Debris:AddItem(p, 4) | |
469 | attacking = false | |
470 | end | |
471 | end) | |
472 | mouse.KeyDown:connect(function(key) | |
473 | if key == "q" and not attacking then | |
474 | attacking = true | |
475 | legs = true | |
476 | local con = char["Left Arm"].Touched:connect(function(hit) | |
477 | if hurt(hit, math.random(15,30)) then | |
478 | local bv = Instance.new("BodyVelocity") | |
479 | bv.MaxForce = huge | |
480 | bv.Velocity = -char["Left Arm"].CFrame.upVector*50 | |
481 | bv.Parent = hit | |
482 | game.Debris:AddItem(bv, 0.5) | |
483 | end | |
484 | end) | |
485 | for i = 0, 0.7, 0.1 do | |
486 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0348995551, 0.258661419, -0.965337634, -0.99939239, -0.00903249159, 0.0337103829, 1.15483999e-007, 0.965927243, 0.258819371), 0.8) | |
487 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.8) | |
488 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.94551903, 0.325568229, 0, 0, 0, 1, 0.325568229, 0.94551903, 0), 0.8) | |
489 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.920505404, -0.390731245, -0, 0, 0, 1, -0.390731245, 0.920505404, 0), 0.8) | |
490 | wait() | |
491 | end | |
492 | con:disconnect() | |
493 | wait(0.05) | |
494 | attacking = false | |
495 | legs = false | |
496 | end | |
497 | end) | |
498 | mouse.KeyDown:connect(function(key) | |
499 | if key == "e" and not attacking then | |
500 | attacking = true | |
501 | legs = true | |
502 | local con = char["Right Arm"].Touched:connect(function(hit) | |
503 | if hurt(hit, math.random(15,30)) then | |
504 | local bv = Instance.new("BodyVelocity") | |
505 | bv.MaxForce = huge | |
506 | bv.Velocity = -char["Right Arm"].CFrame.upVector*50 | |
507 | bv.Parent = hit | |
508 | game.Debris:AddItem(bv, 0.5) | |
509 | end | |
510 | end) | |
511 | for i = 0, 0.7, 0.1 do | |
512 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359589, -0.998629689, 0, 0.998629689, 0.0523359589, 1, 0, 0), 0.8) | |
513 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0348783135, 0.00121797505, 0.99939096, 0.998783648, -0.0348783135, 0.034899503, 0.0348993987, 0.999392271, 0), 0.8) | |
514 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.956305265, -0.292371809, 0, 0, 0, 1, -0.292371809, 0.956305265, 0), 0.8) | |
515 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.913546026, 0.406736761, 0, 0, 0, 1, 0.406736761, 0.913546026, 0), 0.8) | |
516 | wait() | |
517 | end | |
518 | con:disconnect() | |
519 | wait(0.05) | |
520 | attacking = false | |
521 | legs = false | |
522 | end | |
523 | end) | |
524 | mouse.KeyDown:connect(function(key) | |
525 | if key == "r" and not attacking then | |
526 | legs = true | |
527 | attacking = true | |
528 | local p = Instance.new("Part") | |
529 | p.CanCollide = false | |
530 | p.Anchored = true | |
531 | smooth(p) | |
532 | p.Transparency = 1 | |
533 | p.Size = Vector3.new(0.2,0.2,0.2) | |
534 | local pe = Instance.new("ParticleEmitter", p) | |
535 | pe.Color = particlecolor | |
536 | pe.LightEmission = 0.7 | |
537 | pe.Size = NumberSequence.new(2) | |
538 | pe.Texture = "rbxassetid://243664672" | |
539 | pe.Transparency = NumberSequence.new(0.5) | |
540 | pe.Lifetime = NumberRange.new(0.3) | |
541 | pe.Rate = 500 | |
542 | pe.Speed = NumberRange.new(3) | |
543 | local p2 = p:Clone() | |
544 | p.Parent = char | |
545 | p2.Parent = char | |
546 | spawn(function() | |
547 | local num = 0 | |
548 | repeat swait() | |
549 | num = num + 0.5 | |
550 | local sin = math.sin(num)*2 | |
551 | local cos = math.cos(num)*2 | |
552 | p.CFrame = char["Right Arm"].CFrame *CFrame.new(sin,0,cos) *CFrame.new(0,-2,0) | |
553 | until not attacking | |
554 | p:Destroy() | |
555 | p2:Destroy() | |
556 | end) | |
557 | for i = 0, 1, 0.1 do | |
558 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359589, -0.998629689, 0, 0.998629689, 0.0523359589, 1, 0, 0), 0.4) | |
559 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0348783135, 0.00121797505, 0.99939096, 0.998783648, -0.0348783135, 0.034899503, 0.0348993987, 0.999392271, 0), 0.4) | |
560 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.956305265, -0.292371809, 0, 0, 0, 1, -0.292371809, 0.956305265, 0), 0.4) | |
561 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.913546026, 0.406736761, 0, 0, 0, 1, 0.406736761, 0.913546026, 0), 0.4) | |
562 | wait() | |
563 | end | |
564 | wait(0.5) | |
565 | for i = 0, 50 do | |
566 | local p = Instance.new("Part") | |
567 | p.Transparency = 1 | |
568 | p.Size = Vector3.new(5,5,5) | |
569 | p.Name = "ignore" | |
570 | p.CanCollide = false | |
571 | p.CFrame = char["Right Arm"].CFrame | |
572 | smooth(p) | |
573 | local pe = Instance.new("ParticleEmitter") | |
574 | pe.Color = particlecolor | |
575 | pe.LightEmission = 0.7 | |
576 | pe.Size = NumberSequence.new(5) | |
577 | pe.Texture = "rbxassetid://243664672" | |
578 | pe.Transparency = NumberSequence.new(0.5) | |
579 | pe.Lifetime = NumberRange.new(0.3) | |
580 | pe.Rate = 500 | |
581 | pe.Speed = NumberRange.new(3) | |
582 | pe.Parent = p | |
583 | p.Parent = workspace | |
584 | p.Touched:connect(function(hit) | |
585 | if hit.Name ~= "ignore" then | |
586 | hurt(hit, 50) | |
587 | end | |
588 | end) | |
589 | local bv = Instance.new("BodyVelocity") | |
590 | bv.MaxForce = huge | |
591 | bv.Velocity = CFrame.new(char["Right Arm"].Position, mouse.Hit.p).lookVector*push | |
592 | bv.Parent = p | |
593 | game.Debris:AddItem(p, 5) | |
594 | swait() | |
595 | end | |
596 | attacking = false | |
597 | legs = false | |
598 | end | |
599 | end) | |
600 | mouse.KeyDown:connect(function(key) | |
601 | if key == "t" and not attacking then | |
602 | attacking = true | |
603 | legs = true | |
604 | for i = 1, 2 do | |
605 | local arm = "" | |
606 | if i == 1 then arm = "Right Arm" end | |
607 | if i == 2 then arm = "Left Arm" end | |
608 | local p = Instance.new("Part") | |
609 | p.CanCollide = false | |
610 | p.Anchored = true | |
611 | smooth(p) | |
612 | p.Transparency = 1 | |
613 | p.Size = Vector3.new(0.2,0.2,0.2) | |
614 | local pe = Instance.new("ParticleEmitter", p) | |
615 | pe.Color = particlecolor | |
616 | pe.LightEmission = 0.7 | |
617 | pe.Size = NumberSequence.new(2) | |
618 | pe.Texture = "rbxassetid://243664672" | |
619 | pe.Transparency = NumberSequence.new(0.5) | |
620 | pe.Lifetime = NumberRange.new(0.3) | |
621 | pe.Rate = 500 | |
622 | pe.Speed = NumberRange.new(3) | |
623 | local p2 = p:Clone() | |
624 | p.Parent = char | |
625 | p2.Parent = char | |
626 | spawn(function() | |
627 | local num = 0 | |
628 | repeat swait() | |
629 | num = num + 0.5 | |
630 | local sin = math.sin(num)*2 | |
631 | local cos = math.cos(num)*2 | |
632 | p.CFrame = char[arm].CFrame *CFrame.new(sin,0,cos) *CFrame.new(0,-2,0) | |
633 | until not attacking | |
634 | p:Destroy() | |
635 | p2:Destroy() | |
636 | end) | |
637 | end | |
638 | for i = 0, 1, 0.1 do | |
639 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0348517336, -0.0018264954, -0.999390841, -0.998022854, -0.0523041189, 0.0348994955, -0.0523358807, 0.998631001, 0), 0.4) | |
640 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0348517336, 0.0018264954, 0.999390841, 0.998022854, -0.0523041189, 0.0348994955, 0.0523358211, 0.998630881, 0), 0.4) | |
641 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.4) | |
642 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.4) | |
643 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
644 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
645 | wait() | |
646 | end | |
647 | for i = 0, 50 do | |
648 | local arm = "" | |
649 | if i%2 == 0 then | |
650 | arm = "Right Arm" | |
651 | else | |
652 | arm = "Left Arm" | |
653 | end | |
654 | local p = Instance.new("Part") | |
655 | p.Transparency = 1 | |
656 | p.Size = Vector3.new(5,5,5) | |
657 | p.Name = "ignore" | |
658 | p.CanCollide = false | |
659 | p.CFrame = char[arm].CFrame | |
660 | smooth(p) | |
661 | local pe = Instance.new("ParticleEmitter") | |
662 | pe.Color = particlecolor | |
663 | pe.LightEmission = 0.7 | |
664 | pe.Size = NumberSequence.new(2) | |
665 | pe.Texture = "rbxassetid://243664672" | |
666 | pe.Transparency = NumberSequence.new(0.5) | |
667 | pe.Lifetime = NumberRange.new(0.2) | |
668 | pe.Rate = 500 | |
669 | pe.Speed = NumberRange.new(3) | |
670 | pe.Parent = p | |
671 | p.Parent = workspace | |
672 | p.Touched:connect(function(hit) | |
673 | if hit.Name ~= "ignore" then | |
674 | hurt(hit, 10) | |
675 | end | |
676 | end) | |
677 | local bv = Instance.new("BodyVelocity") | |
678 | bv.MaxForce = huge | |
679 | bv.Velocity = CFrame.new(char[arm].Position, mouse.Hit.p).lookVector*push | |
680 | bv.Parent = p | |
681 | game.Debris:AddItem(p, 5) | |
682 | swait() | |
683 | end | |
684 | wait(0.5) | |
685 | attacking = false | |
686 | legs = false | |
687 | end | |
688 | end) | |
689 | mouse.KeyDown:connect(function(key) | |
690 | if key == "y" and not attacking then | |
691 | attacking = true | |
692 | legs = true | |
693 | for i = 0, 0.7, 0.1 do | |
694 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.7) | |
695 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0347083807, -0.321920633, 0.946130574, 0.993917823, -0.110135622, -0.00101229548, 0.104528494, 0.940340519, 0.323785156), 0.7) | |
696 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.984808087, 0.173648223, 0, 0, 0, 1, 0.173648223, 0.984808087, 0), 0.7) | |
697 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.96592617, -0.258819103, -0, 0, 0, 1, -0.258819103, 0.96592617, 0), 0.7) | |
698 | wait() | |
699 | end | |
700 | local w = nil | |
701 | scon = char["Right Arm"].Touched:connect(function(hit) | |
702 | if gethum(hit) then | |
703 | if hit.Parent:FindFirstChild("Head") then | |
704 | w = Instance.new("Weld") | |
705 | w.Part0 = char["Right Arm"] | |
706 | w.Part1 = hit.Parent.Head | |
707 | w.C0 = CFrame.new(0,-2,0) | |
708 | w.Parent = hit.Parent.Head | |
709 | scon:disconnect() | |
710 | scon = nil | |
711 | end | |
712 | end | |
713 | end) | |
714 | for i = 0, 0.7, 0.1 do | |
715 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.8) | |
716 | rs.C0 = rs.C0:Lerp(CFrame.new(0.779308438, 0.539296746, -0.44693622, -0.0347083807, 0.441383421, 0.896648288, 0.993917823, -0.0785935149, 0.0771619156, 0.104528494, 0.89387244, -0.435970813), 0.8) | |
717 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.984808445, -0.173648283, 0, 0, 0, 1, -0.173648283, 0.984808445, 0), 0.8) | |
718 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.961262584, 0.275637597, 0, 0, 0, 1.00000012, 0.275637567, 0.961262703, 0), 0.8) | |
719 | wait() | |
720 | end | |
721 | local save = char.Torso.CFrame | |
722 | for i = 0, 0.4, 0.1 do | |
723 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.6) | |
724 | rs.C0 = rs.C0:Lerp(CFrame.new(1.50524855, 0.565971315, -0.459527433, -0.0347083807, -0.999394238, 0.00364828855, 0.993917823, -0.0348996557, -0.104465209, 0.104528494, 5.77419996e-008, 0.994526088), 0.6) | |
725 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.874620974, 0.484810293, 0, 0, 0, 1, 0.484810293, 0.874620974, 0), 0.6) | |
726 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.798636913, -0.601815939, 0, 0, 0, 1.00000012, -0.601815999, 0.798636913, 0), 0.6) | |
727 | wait() | |
728 | end | |
729 | if w then | |
730 | if w.Parent then | |
731 | local character = w.Parent.Parent | |
732 | character.Head.CanCollide = false | |
733 | w:Destroy() | |
734 | local bv = Instance.new("BodyVelocity") | |
735 | bv.MaxForce = huge | |
736 | bv.Velocity = -save.lookVector*push | |
737 | bv.Parent = character.Torso | |
738 | game.Debris:AddItem(bv, 0.5) | |
739 | spawn(function() | |
740 | wait(0.25) | |
741 | character.Head.CanCollide = true | |
742 | end) | |
743 | character:FindFirstChildOfClass("Humanoid").PlatformStand = false | |
744 | end | |
745 | end | |
746 | wait(0.1) | |
747 | if scon then scon:disconnect() end | |
748 | attacking = false | |
749 | legs = false | |
750 | end | |
751 | end) | |
752 | local deb = false | |
753 | mouse.KeyDown:connect(function(key) | |
754 | if key == "h" and not deb and not attacking then | |
755 | deb = true | |
756 | for i = 0, 10 do | |
757 | spawn(function() | |
758 | local p = Instance.new("Part") | |
759 | p.Anchored = true | |
760 | p.CanCollide = false | |
761 | p.CFrame = char.Torso.CFrame *CFrame.new(math.random(-5,5),-10,math.random(-5,5)) | |
762 | smooth(p) | |
763 | p.BrickColor = BrickColor.DarkGray() | |
764 | p.Material = Enum.Material.Slate | |
765 | p.Size = Vector3.new(1,1,1) | |
766 | p.Transparency = 1 | |
767 | local pe = Instance.new("ParticleEmitter") | |
768 | pe.Color = particlecolor | |
769 | pe.LightEmission = 0.7 | |
770 | pe.Size = NumberSequence.new(1) | |
771 | pe.Texture = "rbxassetid://243664672" | |
772 | pe.Transparency = NumberSequence.new(0.5) | |
773 | pe.Lifetime = NumberRange.new(0.2) | |
774 | pe.Rate = 500 | |
775 | pe.Speed = NumberRange.new(3) | |
776 | pe.Parent = p | |
777 | p.Parent = workspace | |
778 | local endcf = p.CFrame *CFrame.new(0,30,0) | |
779 | for i = 0, 20 do | |
780 | p.CFrame = p.CFrame:Lerp(endcf, 0.3) | |
781 | wait() | |
782 | end | |
783 | local z = Instance.new("Part") | |
784 | z.CFrame = p.CFrame | |
785 | z.CFrame = CFrame.new(z.Position, mouse.Hit.p) | |
786 | local bv = Instance.new("BodyVelocity", p) | |
787 | bv.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
788 | bv.Velocity = z.CFrame.lookVector*140 | |
789 | p.Anchored = false | |
790 | z:Destroy() | |
791 | p.CanCollide = false | |
792 | local connection | |
793 | spawn(function() | |
794 | local angle = CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))) | |
795 | repeat wait() | |
796 | p.CFrame = p.CFrame *angle | |
797 | until not p or p.CanCollide | |
798 | end) | |
799 | connection = p.Touched:connect(function(hit) | |
800 | hurt(hit, math.random(5,5)) | |
801 | if not hit.Anchored and hit.Parent.Name ~= plr.Name and hit.Parent.ClassName ~= "Accessory" then | |
802 | p.CanCollide = true | |
803 | end | |
804 | end) | |
805 | game.Debris:AddItem(p, 5) | |
806 | end) | |
807 | wait() | |
808 | deb = false | |
809 | end | |
810 | end | |
811 | end) | |
812 | mouse.KeyDown:connect(function(key) | |
813 | if key == "k" and not attacking then | |
814 | attacking = true | |
815 | for i = 0, 0.7, 0.1 do | |
816 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0697564781, -0.997564137, 0, 0.997564137, 0.0697564781, 1, 0, 0), 0.7) | |
817 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0697564855, 0.997564256, 0, 0.997564256, 0.0697564855, -1, 0, 0), 0.7) | |
818 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.915699959, -0.141025871, 0, 0, -1, 0.838671386, 0.544639707, 0, 0.544639707, -0.838671386, 0), 0.7) | |
819 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -0.399999917, -0.700000048, 0, 0, 1, 0.224951148, 0.974370599, 0, -0.974370599, 0.224951148, 0), 0.7) | |
820 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
821 | rj.C0 = rj.C0:Lerp(CFrame.new(0, -0.700000048, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
822 | wait() | |
823 | end | |
824 | local bv = Instance.new("BodyVelocity") | |
825 | bv.MaxForce = huge | |
826 | bv.Velocity = -char.Torso.CFrame.lookVector*100 | |
827 | bv.Velocity = bv.Velocity +Vector3.new(0,100,0) | |
828 | bv.Parent = char.Torso | |
829 | game.Debris:AddItem(bv, 0.5) | |
830 | repeat | |
831 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) | |
832 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.13917312, 0.99026823, 0, 0.99026823, 0.13917312, -1, -0, 0), 0.2) | |
833 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.599999905, -0.400000006, -0, -0, -1, 0, 1, 0, 1, 0, 0), 0.2) | |
834 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, 0, 1, -0.529919565, 0.848048747, 0, -0.848048747, -0.529919565, 0), 0.2) | |
835 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1.00000024, -1.80731718e-009, 4.5061474e-010, 0, 0.241921946, 0.970296025, -1.86264515e-009, 0.970296264, -0.241922006), 0.2) | |
836 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) | |
837 | wait() | |
838 | until char.HumanoidRootPart.Velocity.Y < 0 | |
839 | local num2 = 0.5 | |
840 | local bv = Instance.new("BodyForce") | |
841 | bv.Force = -char.Torso.CFrame.lookVector*1000 | |
842 | bv.Parent = char.Torso | |
843 | repeat | |
844 | if num2 < 5 then | |
845 | num2 = num2+0.5 | |
846 | end | |
847 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0321390443, -0.899457872, -0.435827494, -0.903263509, 0.212814748, -0.37259686, 0.427884579, 0.381691694, -0.819286048), 0.2) | |
848 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.166612521, 0.861375272, 0.47987023, 0.814885736, 0.153724328, -0.558868229, -0.555161953, 0.484153807, -0.67630893), 0.2) | |
849 | lh.C0 = lh.C0:Lerp(CFrame.new(-0.988398254, -0.309396505, -0.610682189, 0.00854844693, 0.0146014411, -0.999856889, 0.498114854, 0.866946518, 0.0169191808, 0.867069304, -0.498188108, 0.00013788142), 0.2) | |
850 | rh.C0 = rh.C0:Lerp(CFrame.new(0.988217235, -0.304208815, -0.86811024, 0.00891196821, -0.0143678738, 0.999857128, -0.528013527, 0.849068403, 0.0169073474, -0.849189758, -0.528088629, -1.95365774e-005), 0.2) | |
851 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.788011312, 0.615662038, 0, 0.61566186, -0.788011372), 0.2) | |
852 | rj.C0 = rj.C0:Lerp(rj.C0 *CFrame.Angles(math.rad(-(10*num2)),0,0), 0.5) | |
853 | wait() | |
854 | until char.HumanoidRootPart.Velocity.Y >= -3 | |
855 | bv:Destroy() | |
856 | attacking = false | |
857 | end | |
858 | end) | |
859 | mouse.KeyDown:connect(function(key) | |
860 | if key == "z" and not attacking then | |
861 | attacking = true | |
862 | local p = Instance.new("Part") | |
863 | p.Anchored = true | |
864 | smooth(p) | |
865 | p.Material = "Neon" | |
866 | local bc = BrickColor.new("Deep orange") | |
867 | if particlecolor == ColorSequence.new(Color3.new(1,1,1)) then | |
868 | bc = BrickColor.new("Institutional White") | |
869 | end | |
870 | p.BrickColor = bc | |
871 | local m = Instance.new("SpecialMesh", p) | |
872 | m.MeshType = "Sphere" | |
873 | p.Size = Vector3.new(1,1,1) | |
874 | p.CFrame = char.Torso.CFrame | |
875 | p.CanCollide = false | |
876 | local pe = Instance.new("ParticleEmitter") | |
877 | pe.Color = particlecolor | |
878 | pe.LightEmission = 0.7 | |
879 | pe.Size = NumberSequence.new(3) | |
880 | pe.Texture = "rbxassetid://243664672" | |
881 | pe.Transparency = NumberSequence.new(0.5) | |
882 | pe.Lifetime = NumberRange.new(5) | |
883 | pe.Rate = 500 | |
884 | pe.Speed = NumberRange.new(50) | |
885 | pe.VelocitySpread = 360 | |
886 | pe.Parent = p | |
887 | p.Parent = workspace | |
888 | local rate = 5 | |
889 | local oldcf = p.CFrame | |
890 | local con = p.Touched:connect(function(hit) | |
891 | if hit.Parent then | |
892 | if hit.Anchored == false then | |
893 | if hit.Parent.Name ~= plr.Name then | |
894 | if not hit.Parent:IsA("Accessory") then | |
895 | fade(hit, true) | |
896 | end | |
897 | end | |
898 | end | |
899 | end | |
900 | end) | |
901 | attacking = false | |
902 | for i = 0, 10*rate do | |
903 | p.Size = p.Size +Vector3.new(5,5,5)/rate | |
904 | p.Transparency = p.Transparency+0.1/rate | |
905 | p.CFrame = oldcf | |
906 | swait() | |
907 | end | |
908 | pe.Enabled = false | |
909 | con:disconnect() | |
910 | game.Debris:AddItem(p, 5) | |
911 | end | |
912 | end) | |
913 | local timetravel = false | |
914 | local recording = false | |
915 | local frames = 0 | |
916 | local objects = 0 | |
917 | local data = { | |
918 | ["Objects"] = { | |
919 | ||
920 | } | |
921 | } | |
922 | function animate() | |
923 | a = function(b) | |
924 | for i,v in pairs(b:children()) do | |
925 | if v:IsA("BasePart") then | |
926 | if v.Anchored == false then | |
927 | local val = Instance.new("StringValue", v) | |
928 | val.Name = "Anchoredz" | |
929 | v.Anchored = true | |
930 | end | |
931 | end | |
932 | a(v) | |
933 | end | |
934 | end | |
935 | a(workspace) | |
936 | end | |
937 | function unanimate() | |
938 | a = function(b) | |
939 | for i,v in pairs(b:children()) do | |
940 | if v:IsA("BasePart") then | |
941 | if v:FindFirstChild("Anchoredz") then | |
942 | v.Anchoredz:Destroy() | |
943 | v.Anchored = false | |
944 | end | |
945 | end | |
946 | a(v) | |
947 | end | |
948 | end | |
949 | a(workspace) | |
950 | end | |
951 | mouse.KeyDown:connect(function(key) | |
952 | if key == "c" and not timetravel then | |
953 | timetravel = true | |
954 | local currentframe = frames+1 | |
955 | animate(true) | |
956 | for i = 1, frames do | |
957 | currentframe = currentframe - 1 | |
958 | local currentobj = 0 | |
959 | for i = 1, objects do | |
960 | currentobj = currentobj + 1 | |
961 | obj = data["Objects"]["obj"..currentobj] | |
962 | if obj["Object"] then | |
963 | if obj["Frame"..currentframe] then | |
964 | obj["Object"].CFrame = obj["Frame"..currentframe]["CFrame"] | |
965 | end | |
966 | end | |
967 | end | |
968 | wait() | |
969 | end | |
970 | unanimate() | |
971 | timetravel = false | |
972 | objects = 0 | |
973 | frames = 0 | |
974 | data = { | |
975 | ["Objects"] = { | |
976 | ||
977 | } | |
978 | } | |
979 | ||
980 | end | |
981 | end) | |
982 | mouse.KeyDown:connect(function(key) | |
983 | if key == "x" and not recording and not timetravel then | |
984 | recording = true | |
985 | if not timetravel and recording then | |
986 | frames = frames+1 | |
987 | local num = 0 | |
988 | a = function(b) | |
989 | for i,v in pairs(b:children()) do | |
990 | if v:IsA("BasePart") then | |
991 | num = num + 1 | |
992 | if not data["Objects"]["obj"..num] then | |
993 | data["Objects"]["obj"..num] = { | |
994 | ["Object"] = nil | |
995 | ||
996 | } | |
997 | data["Objects"]["obj"..num]["Object"] = v | |
998 | objects = objects + 1 | |
999 | end | |
1000 | data["Objects"]["obj"..num]["Frame"..frames] = {} | |
1001 | data["Objects"]["obj"..num]["Frame"..frames]["Size"] = v.Size | |
1002 | data["Objects"]["obj"..num]["Frame"..frames]["CFrame"] = v.CFrame | |
1003 | end | |
1004 | a(v) | |
1005 | end | |
1006 | end | |
1007 | a(workspace) | |
1008 | end | |
1009 | recording = false | |
1010 | end | |
1011 | end) | |
1012 | mouse.KeyDown:connect(function(key) | |
1013 | if key == "v" and not attacking then | |
1014 | attacking = true | |
1015 | shielding = true | |
1016 | local p = Instance.new("Part") | |
1017 | p.Anchored = true | |
1018 | smooth(p) | |
1019 | shield = p | |
1020 | local bc = BrickColor.Random() | |
1021 | if ragetype == "???" and rage then bc = BrickColor.new("Really black") end | |
1022 | p.BrickColor = bc | |
1023 | p.Size = Vector3.new(30,30,0) | |
1024 | p.Material = "Neon" | |
1025 | local m = Instance.new("SpecialMesh", p) | |
1026 | m.MeshType = "Sphere" | |
1027 | p.CFrame = char.HumanoidRootPart.CFrame *CFrame.new(0,0,-4) | |
1028 | local num2 = -0.5 | |
1029 | for i = 0, 10 do | |
1030 | if shielding then | |
1031 | local p = Instance.new("Part") | |
1032 | p.Size = Vector3.new(0.2,0.2,0.2) | |
1033 | p.CanCollide = false | |
1034 | p.Anchored = true | |
1035 | p.Transparency = 1 | |
1036 | local pe = Instance.new("ParticleEmitter") | |
1037 | pe.Color = particlecolor | |
1038 | pe.LightEmission = 0.7 | |
1039 | pe.Size = NumberSequence.new(1) | |
1040 | pe.Texture = "rbxassetid://243664672" | |
1041 | pe.Transparency = NumberSequence.new(0.5) | |
1042 | pe.Lifetime = NumberRange.new(0.2) | |
1043 | pe.Rate = 500 | |
1044 | pe.Speed = NumberRange.new(3) | |
1045 | pe.Parent = p | |
1046 | p.Parent = shield | |
1047 | num2 = num2 + 1 | |
1048 | local num = num2 | |
1049 | local neg = false | |
1050 | spawn(function() | |
1051 | repeat wait() | |
1052 | num = num + 0.1 | |
1053 | local sin = math.sin(num)*15 | |
1054 | local cos = math.cos(num)*15 | |
1055 | if shield then | |
1056 | p.CFrame = shield.CFrame *CFrame.new(sin,cos,0) | |
1057 | end | |
1058 | until not shielding | |
1059 | end) | |
1060 | else | |
1061 | break | |
1062 | end | |
1063 | end | |
1064 | p.Transparency = 1 | |
1065 | p.Parent = workspace | |
1066 | p.Touched:connect(function(hit) | |
1067 | if hurt(hit, math.random(50, 100)) then | |
1068 | fade(hit) | |
1069 | elseif hit.Anchored == false and hit.Parent.Name ~= plr.Name and hit.Parent.ClassName ~= "Accessory" then | |
1070 | fade(hit, true) | |
1071 | end | |
1072 | end) | |
1073 | char:FindFirstChildOfClass("Humanoid").WalkSpeed = 0 | |
1074 | for i = 0, 1, 0.1 do | |
1075 | if attacking or shielding then | |
1076 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.6) | |
1077 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0173860267, -0.69564718, 0.71817416, 0.996044099, -0.0505616963, -0.0730885938, 0.087155737, 0.716603398, 0.692016065), 0.6) | |
1078 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.6) | |
1079 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.6) | |
1080 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.777146578, -0.629320741, -0, 0, 0, 1, -0.629320741, 0.777146578, 0), 0.6) | |
1081 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.694658995, 0.719340265, 0, 0, 0, 1, 0.719340265, 0.694658995, 0), 0.6) | |
1082 | wait() | |
1083 | else | |
1084 | break | |
1085 | end | |
1086 | end | |
1087 | end | |
1088 | end) | |
1089 | mouse.KeyUp:connect(function(key) | |
1090 | if key == "v" and attacking then | |
1091 | if shield then | |
1092 | fade(shield, true) | |
1093 | attacking = false | |
1094 | shielding = false | |
1095 | char:FindFirstChildOfClass("Humanoid").WalkSpeed = 16 | |
1096 | end | |
1097 | end | |
1098 | end) | |
1099 | mouse.KeyDown:connect(function(key) | |
1100 | if key == "b" and not attacking then | |
1101 | attacking = true | |
1102 | local p = Instance.new("Part") | |
1103 | p.Anchored = true | |
1104 | smooth(p) | |
1105 | p.Material = "Neon" | |
1106 | local bc = BrickColor.new("Deep orange") | |
1107 | if particlecolor == ColorSequence.new(Color3.new(1,1,1)) then | |
1108 | bc = BrickColor.new("Institutional White") | |
1109 | end | |
1110 | p.BrickColor = bc | |
1111 | local m = Instance.new("SpecialMesh", p) | |
1112 | m.MeshType = "Sphere" | |
1113 | p.Size = Vector3.new(1,1,1) | |
1114 | p.CFrame = char.Torso.CFrame | |
1115 | p.CanCollide = false | |
1116 | local pe = Instance.new("ParticleEmitter") | |
1117 | pe.Color = particlecolor | |
1118 | pe.LightEmission = 0.7 | |
1119 | pe.Size = NumberSequence.new(10) | |
1120 | pe.Texture = "rbxassetid://243664672" | |
1121 | pe.Transparency = NumberSequence.new(0.5) | |
1122 | pe.Lifetime = NumberRange.new(5) | |
1123 | pe.Rate = 500 | |
1124 | pe.Speed = NumberRange.new(50) | |
1125 | pe.VelocitySpread = 360 | |
1126 | pe.Parent = p | |
1127 | p.Parent = workspace | |
1128 | local rate = 20 | |
1129 | local oldcf = p.CFrame | |
1130 | local con = p.Touched:connect(function(hit) | |
1131 | if hit.Parent then | |
1132 | if hit.Anchored == false then | |
1133 | if hit.Parent.Name ~= plr.Name then | |
1134 | if not hit.Parent:IsA("Accessory") then | |
1135 | fade(hit, true) | |
1136 | end | |
1137 | end | |
1138 | end | |
1139 | end | |
1140 | end) | |
1141 | attacking = false | |
1142 | for i = 0, 10*rate do | |
1143 | p.Size = p.Size +Vector3.new(20,20,20)/rate | |
1144 | p.Transparency = p.Transparency+0.1/rate | |
1145 | p.CFrame = oldcf | |
1146 | swait() | |
1147 | end | |
1148 | pe.Enabled = false | |
1149 | con:disconnect() | |
1150 | game.Debris:AddItem(p, 5) | |
1151 | end | |
1152 | end) | |
1153 | mouse.KeyDown:connect(function(key) | |
1154 | if key == "n" and not attacking then | |
1155 | attacking = true | |
1156 | local bv = Instance.new("BodyVelocity") | |
1157 | bv.MaxForce = huge | |
1158 | bv.Velocity = char.HumanoidRootPart.CFrame.lookVector*push/1.5 | |
1159 | bv.Parent = char.Torso | |
1160 | game.Debris:AddItem(bv, 0.5) | |
1161 | local con = char["Right Arm"].Touched:connect(function(hit) | |
1162 | if hurt(hit, math.random(30,50)) then | |
1163 | local bv = Instance.new("BodyVelocity") | |
1164 | bv.MaxForce = huge | |
1165 | bv.Velocity = char.HumanoidRootPart.CFrame.lookVector*char.HumanoidRootPart.Velocity.Z*(push/1) | |
1166 | bv.Parent = hit | |
1167 | game.Debris:AddItem(bv, 0.5) | |
1168 | end | |
1169 | end) | |
1170 | for i = 0, 1, 0.1 do | |
1171 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.207911745, -0.978147984, 0, 0.978147984, 0.207911745, 1, 0, 0), 0.6) | |
1172 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, 0.325568229, 0.94551903, 0.999849021, 0.0165017936, -0.00568202185, -0.0174526293, 0.945375919, -0.325519055), 0.6) | |
1173 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0), 0.6) | |
1174 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, 0, 0), 0.6) | |
1175 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -0.224951565, -0.974371314, 0, 0, 0, 1, -0.974371314, 0.224951565, 0), 0.6) | |
1176 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.156434745, 0.987689376, 0, 0, 0, 1, 0.987689376, 0.156434745, 0), 0.6) | |
1177 | wait() | |
1178 | end | |
1179 | wait(0.5) | |
1180 | con:disconnect() | |
1181 | attacking = false | |
1182 | end | |
1183 | end) | |
1184 | mouse.KeyDown:connect(function(key) | |
1185 | if key == "m" and not attacking and animpose ~= "Falling" then | |
1186 | attacking = true | |
1187 | char:FindFirstChildOfClass("Humanoid").JumpPower = 500 | |
1188 | char:FindFirstChildOfClass("Humanoid").Jump = true | |
1189 | wait() | |
1190 | char:FindFirstChildOfClass("Humanoid").JumpPower = 100 | |
1191 | repeat wait() until char.HumanoidRootPart.Velocity.Y < 0 | |
1192 | local num = 0.5 | |
1193 | local num2 = 0.5 | |
1194 | repeat wait() | |
1195 | num = num + 0.5 | |
1196 | if num2 < 10 then | |
1197 | num2 = num2+0.5 | |
1198 | end | |
1199 | if num%3 == 0 then soundeffect("rbxassetid://541909814", 2, 1, char.Torso) end | |
1200 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0321390443, -0.899457872, -0.435827494, -0.903263509, 0.212814748, -0.37259686, 0.427884579, 0.381691694, -0.819286048), 0.2) | |
1201 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.166612521, 0.861375272, 0.47987023, 0.814885736, 0.153724328, -0.558868229, -0.555161953, 0.484153807, -0.67630893), 0.2) | |
1202 | lh.C0 = lh.C0:Lerp(CFrame.new(-0.988398254, -0.309396505, -0.610682189, 0.00854844693, 0.0146014411, -0.999856889, 0.498114854, 0.866946518, 0.0169191808, 0.867069304, -0.498188108, 0.00013788142), 0.2) | |
1203 | rh.C0 = rh.C0:Lerp(CFrame.new(0.988217235, -0.304208815, -0.86811024, 0.00891196821, -0.0143678738, 0.999857128, -0.528013527, 0.849068403, 0.0169073474, -0.849189758, -0.528088629, -1.95365774e-005), 0.2) | |
1204 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, 0, 0, 0, 0.788011312, 0.615662038, 0, 0.61566186, -0.788011372), 0.2) | |
1205 | rj.C0 = rj.C0:Lerp(rj.C0 *CFrame.Angles(math.rad((10*num2)),0,0), 0.5) | |
1206 | until char.HumanoidRootPart.Velocity.Y > -1 | |
1207 | soundeffect("rbxassetid://165969964", 3, 1, char.Torso) | |
1208 | for i = 0, 1.3, 0.1 do | |
1209 | if i == 0.6 then | |
1210 | local ring = Instance.new("Part") | |
1211 | ring.Size = Vector3.new(1.16, 1.16, 0.16) | |
1212 | local bc = BrickColor.new("Institutional white") | |
1213 | if rage then | |
1214 | bc = BrickColor.new("Deep orange") | |
1215 | end | |
1216 | ring.BrickColor = bc | |
1217 | ring.Anchored = true | |
1218 | ring.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) | |
1219 | ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0) | |
1220 | local m = Instance.new("SpecialMesh", ring) | |
1221 | m.MeshId = "rbxassetid://3270017" | |
1222 | ring.Parent = workspace | |
1223 | local thing = Instance.new("Part") | |
1224 | thing.Size = Vector3.new(1.866, 1.421, 2.155) | |
1225 | thing.BrickColor = bc | |
1226 | thing.Anchored = true | |
1227 | thing.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) | |
1228 | local m2 = Instance.new("SpecialMesh", thing) | |
1229 | m2.MeshId = "rbxassetid://20329976" | |
1230 | thing.Parent = workspace | |
1231 | local oldcf2 = thing.CFrame | |
1232 | local multiplier2 = Vector3.new(1.866, 1.421, 2.155)*3 | |
1233 | local oldcf = ring.CFrame | |
1234 | local multiplier = Vector3.new(1.16, 1.16, 0.16)*3 | |
1235 | thing.Touched:connect(function(hit) | |
1236 | hurt(hit, math.random(30,35)) | |
1237 | end) | |
1238 | ring.Touched:connect(function(hit) | |
1239 | if hurt(hit, math.random(10,15)) then | |
1240 | hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
1241 | end | |
1242 | end) | |
1243 | spawn(function() | |
1244 | for i = 0, 20 do | |
1245 | ring.Size = multiplier*i | |
1246 | m.Scale = m.Scale +Vector3.new(3,3,3) | |
1247 | ring.CFrame = oldcf | |
1248 | ring.Transparency = ring.Transparency +0.05 | |
1249 | thing.Size = multiplier*i | |
1250 | m2.Scale = m2.Scale +Vector3.new(3,3,3) | |
1251 | thing.CFrame = oldcf2 | |
1252 | thing.Transparency = thing.Transparency +0.05 | |
1253 | wait(0.01) | |
1254 | end | |
1255 | thing:Destroy() | |
1256 | ring:Destroy() | |
1257 | end) | |
1258 | end | |
1259 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.13917312, -0.99026823, 0, 0.99026823, 0.13917312, 1, 0, 0), 0.7) | |
1260 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.190809026, 0.981627405, 0, 0.981627405, 0.190809026, -1, 0, 0), 0.7) | |
1261 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -0.297612011, -0.327801049, 0, 0, -1, 0.374606699, 0.927184403, 0, 0.927184403, -0.374606699, 0), 0.7) | |
1262 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -0.399999917, -0.5, 0, 0, 1, 0.121869355, 0.99254632, 0, -0.99254632, 0.121869355, 0), 0.7) | |
1263 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
1264 | rj.C0 = rj.C0:Lerp(CFrame.new(0, -0.800000072, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) | |
1265 | wait() | |
1266 | end | |
1267 | attacking = false | |
1268 | ||
1269 | end | |
1270 | end) | |
1271 | mouse.KeyDown:connect(function(key) | |
1272 | if key:byte() == 48 and not shielding then | |
1273 | sprint = true | |
1274 | char:FindFirstChildOfClass("Humanoid").WalkSpeed = speed | |
1275 | local mod = Instance.new("Model", workspace) | |
1276 | mod.Name = "MobModel" | |
1277 | for i,v in pairs(char:children()) do | |
1278 | if v:IsA("Accessory") and not rage then | |
1279 | if v:FindFirstChild("Handle") then | |
1280 | v.Handle.Transparency = 1 | |
1281 | end | |
1282 | end | |
1283 | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" then | |
1284 | v.Transparency = 1 | |
1285 | end | |
1286 | end | |
1287 | if char.Head:FindFirstChild("face") then | |
1288 | char.Head.face.Transparency = 1 | |
1289 | end | |
1290 | repeat wait() | |
1291 | if not workspace:FindFirstChild("MobModel") then | |
1292 | mod = Instance.new("Model", workspace) | |
1293 | mod.Name = "MobModel" | |
1294 | end | |
1295 | for i,v in pairs(char:children()) do | |
1296 | if v:IsA("Part") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" then | |
1297 | local new = v:Clone() | |
1298 | smooth(new) | |
1299 | new.Transparency = 0 | |
1300 | new.Anchored = true | |
1301 | new.CanCollide = false | |
1302 | new.Material = "Neon" | |
1303 | for i,v in pairs(new:children()) do if not v:IsA("SpecialMesh") then v:Destroy() end end | |
1304 | new.Parent = mod | |
1305 | fade(new, true) | |
1306 | end | |
1307 | end | |
1308 | until not sprint | |
1309 | if mod then | |
1310 | spawn(function() | |
1311 | repeat wait() until not mod or #mod:children() == 0 | |
1312 | mod:Destroy() | |
1313 | end) | |
1314 | end | |
1315 | char:FindFirstChildOfClass("Humanoid").WalkSpeed = 16 | |
1316 | end | |
1317 | end) | |
1318 | mouse.KeyUp:connect(function(key) | |
1319 | if key:byte() == 48 then | |
1320 | sprint = false | |
1321 | for i,v in pairs(char:children()) do | |
1322 | if v:IsA("Accessory") and not rage then | |
1323 | if v:FindFirstChild("Handle") then | |
1324 | v.Handle.Transparency = 0 | |
1325 | end | |
1326 | end | |
1327 | if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and v.Name ~= "Percent" and not v:FindFirstChildOfClass("ParticleEmitter") then | |
1328 | v.Transparency = 0 | |
1329 | end | |
1330 | end | |
1331 | if char.Head:FindFirstChild("face") then | |
1332 | char.Head.face.Transparency = 0 | |
1333 | end | |
1334 | end | |
1335 | end) | |
1336 | ||
1337 | ||
1338 | local idlesine = 0 | |
1339 | while wait() do | |
1340 | if animpose == "Walking" and cananim and not attacking and not legs then | |
1341 | for i = 0, 0.7, 0.1 do | |
1342 | if animpose == "Walking" and cananim and not attacking and not legs then | |
1343 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0.0475738533, 0.051016707, -0.997564137, 0.680338025, 0.72957325, 0.0697564781, 0.731354535, -0.681998909, 0), 0.4) | |
1344 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, -0.0626967475, -0.0305792596, 0.997564137, 0.896606028, 0.43730399, 0.0697564781, -0.438371748, 0.898795009, -1.29931566e-010), 0.4) | |
1345 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4) | |
1346 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4) | |
1347 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
1348 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
1349 | wait() | |
1350 | else | |
1351 | break | |
1352 | end | |
1353 | end | |
1354 | for i = 0, 0.7, 0.1 do | |
1355 | if animpose == "Walking" and cananim and not attacking and not legs then | |
1356 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, -0.0585028417, 0.0379922055, -0.997564137, -0.836630702, 0.543314457, 0.0697564781, 0.544640183, 0.838672042, 0), 0.4) | |
1357 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0.0475739017, -0.051016774, 0.997564137, -0.680339456, 0.729574919, 0.0697564781, -0.731355429, -0.681999743, -1.29931566e-010), 0.4) | |
1358 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4) | |
1359 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4) | |
1360 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
1361 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.4) | |
1362 | wait() | |
1363 | else | |
1364 | break | |
1365 | end | |
1366 | end | |
1367 | end | |
1368 | if animpose == "Walking" and cananim and legs then | |
1369 | for i = 0, 0.7, 0.1 do | |
1370 | if animpose == "Walking" and cananim and legs then | |
1371 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, -0.0219629817, 0.02712203, -0.999390841, -0.628937364, 0.776673257, 0.0348994955, 0.777146697, 0.6293208, 0), 0.4) | |
1372 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0.0238014236, -0.0255239103, 0.999390841, -0.681583524, 0.73090899, 0.0348994955, -0.731354535, -0.681998909, 0), 0.4) | |
1373 | wait() | |
1374 | else | |
1375 | break | |
1376 | end | |
1377 | end | |
1378 | for i = 0, 0.7, 0.1 do | |
1379 | if animpose == "Walking" and cananim and legs then | |
1380 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0.0205134545, 0.0282343514, -0.999390841, 0.587428331, 0.808525503, 0.0348994955, 0.809018135, -0.587786257, 0), 0.4) | |
1381 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, -0.0224330258, -0.0267346334, 0.999390841, 0.642397523, 0.765579402, 0.0348994955, -0.76604569, 0.642788768, 0), 0.4) | |
1382 | wait() | |
1383 | else | |
1384 | break | |
1385 | end | |
1386 | end | |
1387 | end | |
1388 | if animpose == "Idle" and cananim and legs then | |
1389 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.5) | |
1390 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.5) | |
1391 | end | |
1392 | if animpose ~= "Idle" and not legs then idlesine = 0 end | |
1393 | if animpose == "Idle" and cananim and not attacking and not legs then | |
1394 | idlesine = idlesine + 0.01 | |
1395 | local sin = math.sin(idlesine)*2.5 | |
1396 | ls.C0 = ls.C0:Lerp(CFrame.new(-1, 0.5, 0, 0, 0.0697564781, -0.997564137, 0, 0.997564137, 0.0697564781, 1, 0, 0)*CFrame.Angles(math.rad(sin),0,0), 0.5) | |
1397 | rs.C0 = rs.C0:Lerp(CFrame.new(1, 0.5, 0, 0, -0.0697564781, 0.997564137, -1.86264515e-009, 0.997564256, 0.0697564781, -1.00000012, -1.858108e-009, -1.29931566e-010)*CFrame.Angles(math.rad(sin),0,0), 0.5) | |
1398 | lh.C0 = lh.C0:Lerp(CFrame.new(-1, -1, 0, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.5) | |
1399 | rh.C0 = rh.C0:Lerp(CFrame.new(1, -1, 0, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.5) | |
1400 | neck.C0 = neck.C0:Lerp(CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.5) | |
1401 | rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.5) | |
1402 | end | |
1403 | end |