· 5 years ago · Mar 10, 2020, 02:52 AM
1--GRIM REAPER BY DIVCORE
2if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3local Player,game,owner = owner,game
4local RealPlayer = Player
5do
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
143end
144
145Bp = game.Players.LocalPlayer.Backpack
146jun = Bp.Parent
147local o = 0
148
149BlastRing = Instance.new("Part")
150BlastRing.Parent = game.Lighting
151BlastRing.Name = "BlastRing"
152BlastRing.formFactor = "Symmetric"
153BlastRing.Size = Vector3.new(0, 0, 0)
154BlastRing.CanCollide = false
155BlastRing.TopSurface = "Smooth"
156BlastRing.BottomSurface = "Smooth"
157BlastRing.BrickColor = BrickColor.new("Really red")
158BlastRing.Reflectance = 0
159BlastRing.Anchored = true
160Mesh2 = Instance.new("SpecialMesh")
161Mesh2.Parent = BlastRing
162Mesh2.MeshType = "FileMesh"
163Mesh2.MeshId = "http://www.roblox.com/Asset/?id=9982590"
164Mesh2.Scale = Vector3.new(1, 1, 1)
165
166ExsplosionRing = Instance.new("Part")
167ExsplosionRing.Parent = game.Lighting
168ExsplosionRing.Name = "Explosion Ring"
169ExsplosionRing.formFactor = "Symmetric"
170ExsplosionRing.Size = Vector3.new(0, 0, 0)
171ExsplosionRing.CanCollide = false
172ExsplosionRing.TopSurface = "Smooth"
173ExsplosionRing.BottomSurface = "Smooth"
174ExsplosionRing.BrickColor = BrickColor.new("Black")
175ExsplosionRing.Transparency = 0.3
176ExsplosionRing.Reflectance = 0
177ExsplosionRing.Anchored = true
178Mesh3 = Instance.new("SpecialMesh")
179Mesh3.Parent = ExsplosionRing
180Mesh3.MeshType = "FileMesh"
181Mesh3.MeshId = "http://www.roblox.com/Asset/?id=20329976"
182Mesh3.Scale = Vector3.new(1, 1, 1)
183Mesh3.Offset = Vector3.new(0,-2,0)
184
185
186jun.Character.Humanoid.WalkSpeed = 0
187
188blastring2 = BlastRing:clone()
189blastring2.Parent = jun.Character
190blastring2.Position = jun.Character.Torso.Position
191blastring2.BrickColor = BrickColor.new("Really red")
192blastring2.Transparency = 0.5
193blastring2.Reflectance = 0
194
195mk = Instance.new("Sound",blastring2)
196mk.Volume = 1
197mk.SoundId = "http://www.roblox.com/Asset?ID=211422742"
198mk:Play()
199
200c = Instance.new("Sound",blastring2)
201c.Volume = 1
202c.SoundId = "http://www.roblox.com/Asset?ID=244578827"
203c:Play()
204
205for i = 1, 50 do
206wait(0.03)
207blastring2.Mesh.Scale = blastring2.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
208blastring2.Transparency = blastring2.Transparency + 0.01
209end
210
211blastring3 = ExsplosionRing:clone()
212blastring3.Parent = jun.Character
213blastring3.Position = jun.Character.Torso.Position
214blastring3.BrickColor = BrickColor.new("Black")
215blastring3.Transparency = 0.3
216blastring3.Reflectance = 0
217
218p = Instance.new("Sound",blastring3)
219p.Volume = 1
220p.SoundId = "http://www.roblox.com/Asset?ID=180120107"
221
222for i = 1, 50 do
223wait(0.03)
224blastring3.Mesh.Scale = blastring3.Mesh.Scale + Vector3.new(0.1, 0.1, 0.1)
225blastring3.Transparency = blastring3.Transparency + 0.01
226end
227c:Stop()
228wait(.5)
229mk:Stop()
230p:Play()
231blastring2:remove()
232blastring3:Destroy()
233
234game.Players.LocalPlayer.Character.Torso.BrickColor = BrickColor.new("Dark stone grey")
235game.Players.LocalPlayer.Character['Right Arm'].BrickColor = BrickColor.new("Dark stone grey")
236game.Players.LocalPlayer.Character['Left Arm'].BrickColor = BrickColor.new("Dark stone grey")
237game.Players.LocalPlayer.Character['Right Leg'].BrickColor = BrickColor.new("Dark stone grey")
238game.Players.LocalPlayer.Character['Left Leg'].BrickColor = BrickColor.new("Dark stone grey")
239game.Players.LocalPlayer.Character.Head.BrickColor = BrickColor.new("Dark stone grey")
240game.Players.LocalPlayer.Character["Body Colors"].HeadColor = BrickColor.new("Dark stone grey")
241game.Players.LocalPlayer.Character["Body Colors"].LeftArmColor = BrickColor.new("Dark stone grey")
242game.Players.LocalPlayer.Character["Body Colors"].RightArmColor = BrickColor.new("Dark stone grey")
243game.Players.LocalPlayer.Character["Body Colors"].LeftLegColor = BrickColor.new("Dark stone grey")
244game.Players.LocalPlayer.Character["Body Colors"].RightLegColor = BrickColor.new("Dark stone grey")
245game.Players.LocalPlayer.Character["Body Colors"].TorsoColor = BrickColor.new("Dark stone grey")
246for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
247if v.ClassName == "Hat" then
248v:Destroy()
249end
250end
251for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
252if v.ClassName == "Shirt" then
253v:Destroy()
254end
255end
256for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
257if v.ClassName == "Pants" then
258v:Destroy()
259end
260end
261for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
262if v.ClassName == "ShirtGraphic" then
263v:Destroy()
264end
265end
266st = Instance.new("Shirt",game.Players.LocalPlayer.Character)
267st.ShirtTemplate = "http://www.roblox.com/asset/?id=146541677"
268pt = Instance.new("Pants",game.Players.LocalPlayer.Character)
269pt.PantsTemplate = "http://www.roblox.com/asset/?id=146542180"
270--sg = Instance.new("ShirtGraphic",game.Players.LocalPlayer.Character)
271--sg.Graphic = "http://www.roblox.com/asset/?id=273262785"
272wait(.5)
273game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 21e8
274wait(.5)
275game.Players.LocalPlayer.Character.Humanoid.Health = 21e8
276game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 32
277
278music = Instance.new("Sound", game.Players.LocalPlayer.Character)
279music.SoundId = "rbxassetid://2598782592"
280music.Volume = 10
281music.Pitch = 0.4
282music.Looped = true
283music:Play()
284
285game.Players.LocalPlayer.Character.Head.Transparency = 1
286
287hood = Instance.new("Part", game.Players.LocalPlayer.Character.Head)
288hood.Size=Vector3.new(1, 1, 1.03)
289hood.Locked = true
290
291hoodmesh = Instance.new("SpecialMesh", hood)
292hoodmesh.MeshId = "http://www.roblox.com/asset/?id=16150814"
293hoodmesh.TextureId = "http://www.roblox.com/asset/?id=16150799"
294hoodmesh.Scale = Vector3.new(1.05, 1.05, 1.05)
295
296hoodweld = Instance.new("Weld", hood)
297hoodweld.Part0 = hood
298hoodweld.Part1 = game.Players.LocalPlayer.Character.Head
299
300bill = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
301bill.Size = UDim2.new(4, 0, 4.5, 0)
302bill.AlwaysOnTop = true
303
304label = Instance.new("TextLabel", bill)
305label.Size = UDim2.new(2, 0, 1, 0)
306label.Position = UDim2.new(-0.5, 0, -0.5, 0)
307label.BackgroundTransparency = 1
308label.FontSize = "Size14"
309label.TextColor3 = Color3.new(170, 0, 0)
310label.TextStrokeColor3 = Color3.new(0 ,0 ,0)
311label.TextStrokeTransparency = 0
312label.Text = "Grim Reaper"
313
314Stick = Instance.new("Tool", Bp)
315Stick.Name = "Scythe"
316Stick.GripPos = Vector3.new(0,0.1,0.7)
317Stick.GripForward = Vector3.new(0.1,-1,0)
318Stick.GripRight = Vector3.new(-0.5,0.01,0)
319Stick.GripUp = Vector3.new(0,0,1)
320Stick.CanBeDropped = false
321
322Handle = Instance.new("Part", Stick)
323Handle.Name = "Handle"
324Handle.Size = Vector3.new(1, 1.2, 5)
325
326sm = Instance.new("SpecialMesh",Handle)
327sm.MeshId = "http://www.roblox.com/asset/?id=28140935"
328sm.TextureId = "http://www.roblox.com/asset/?id=27739981"
329
330a = Instance.new("Animation")
331a.Parent = game.Workspace
332a.Name = "Slash"
333a.AnimationId = "http://www.roblox.com/Asset?ID=28090109"
334
335v = Instance.new("StringValue")
336v.Parent = game.Players.LocalPlayer.Backpack.Scythe
337v.Name = "name"
338v.Value = "Slash"
339
340anime = Bp.Scythe.name.Value
341
342s = Instance.new("Sound",Stick)
343s.Volume = 1
344s.SoundId = "http://www.roblox.com/Asset?ID=220834000"
345
346q = Instance.new("Sound",Stick)
347q.Volume = 1
348q.SoundId = "http://www.roblox.com/Asset?ID=264486467"
349
350f = Instance.new("Sound",Stick)
351f.Volume = 1
352f.Pitch = 0.8
353f.SoundId = "http://www.roblox.com/Asset?ID=178038408"
354
355z = Instance.new("Sound",Stick)
356z.Volume = 0
357z.Pitch = 1.5
358z.SoundId = "http://www.roblox.com/Asset?ID=238510574"
359
360t = Instance.new("Sound",Stick)
361t.Volume = 1
362t.Pitch = 0.3
363t.SoundId = "http://www.roblox.com/Asset?ID=151710120"
364
365gg = Instance.new("Sound",Stick)
366gg.Volume = 1
367gg.Pitch = 0.3
368gg.SoundId = "http://www.roblox.com/Asset?ID=142392721"
369
370l = Instance.new("Sound",Stick)
371l.Volume = 1
372l.Pitch = 0.4
373l.SoundId = "http://www.roblox.com/Asset?ID=158012252"
374
375k = Instance.new("Sound",Stick)
376k.Volume = 1
377k.SoundId = "http://www.roblox.com/Asset?ID=834001699"
378
379j = Instance.new("Sound",Stick)
380j.Volume = 1
381j.Pitch = 0.4
382j.SoundId = "http://www.roblox.com/Asset?ID=148348855"
383
384u = Instance.new("Sound",Stick)
385u.Volume = 1
386u.Pitch = 0.4
387u.SoundId = "http://www.roblox.com/Asset?ID=151710118"
388
389i = Instance.new("Sound",Stick)
390i.Volume = 1
391i.Pitch = 0.7
392i.SoundId = "http://www.roblox.com/Asset?ID=271787865"
393
394qq = Instance.new("Sound",Stick)
395qq.Volume = 1
396qq.Pitch = 0.3
397qq.SoundId = "http://www.roblox.com/Asset?ID=131076695"
398
399function onChatted(msg)
400if msg == "death" then
401for i,v in pairs(game.Players:GetChildren()) do
402v.Character.Humanoid.Health = v.Character.Humanoid.Health-1000
403end
404end
405end
406game.Players.LocalPlayer.Chatted:connect(onChatted)
407
408Bp.Scythe.Equipped:connect(function(m)
409f:Play()
410wait(4.5)
411z:Play()
412m.Button1Down:connect(function()
413hum = game.Players.LocalPlayer.Character.Humanoid
414anim_feet = hum:LoadAnimation(game.Workspace.Slash)
415current = anim_feet
416current:Play()
417s:Play()
418wait(.5)
419s:Play()
420wait(.5)
421s:Play()
422end)
423end)
424
425Bp.Scythe.Unequipped:connect(function(m)
426f:Stop()
427z:Stop()
428o = 0
429end)
430
431mouse = game.Players.LocalPlayer:GetMouse()
432function onKeyed(key)
433if key == "f" then
434left = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]
435for i = 1, 15 do
436left.C0 = left.C0 *CFrame.Angles(0,0,-0.1)
437wait(0.025)
438end
439de = Instance.new("Part", game.Players.LocalPlayer.Character["Left Arm"])
440de.Transparency = 1
441de.CanCollide = false
442de.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.new(0,-2,0)
443fe = Instance.new("Fire", de)
444fe.Color = Color3.new(0,0,0)
445fe.Heat = 5
446fe.SecondaryColor = Color3.new(90,90,90)
447fe.Size = 3
448be = Instance.new("BodyVelocity", de)
449be.maxForce = Vector3.new(math.huge,math.huge,math.huge)
450be.velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector*20
451for i = 1, 15 do
452left.C0 = left.C0 *CFrame.Angles(0,0,0.1)
453wait(0.025)
454end
455function onTouched(hit)
456local humanoid = hit.Parent:findFirstChild("Humanoid")
457if (humanoid ~=nil) then
458hit.Parent.Humanoid.Health = 0
459de:Destroy()
460end
461end
462de.Touched:connect(onTouched)
463wait(15)
464de:Destroy()
465end
466end
467mouse.KeyDown:connect(onKeyed)
468
469mouse = game.Players.LocalPlayer:GetMouse()
470function onKeyed(key)
471if key == "g" then
472game.Players.LocalPlayer.Character["Right Arm"].Anchored = true
473game.Players.LocalPlayer.Character["Left Arm"].Anchored = true
474game.Players.LocalPlayer.Character["Right Leg"].Anchored = true
475game.Players.LocalPlayer.Character["Left Leg"].Anchored = true
476game.Players.LocalPlayer.Character.Torso.Anchored = true
477game.Players.LocalPlayer.Character.Head.Anchored = true
478for i = 1, 60 do
479Handle.CFrame = Handle.CFrame * CFrame.fromEulerAnglesXYZ(0,0.5,0)
480Handle.CFrame = Handle.CFrame * CFrame.new(0,-1.5,0)
481wait(0.02)
482end
483for i = 1, 60 do
484Handle.CFrame = Handle.CFrame * CFrame.fromEulerAnglesXYZ(0,-0.5,0)
485Handle.CFrame = Handle.CFrame * CFrame.new(0,1.5,0)
486wait(0.02)
487end
488wait(.5)
489game.Players.LocalPlayer.Character["Right Arm"].Anchored = false
490game.Players.LocalPlayer.Character["Left Arm"].Anchored = false
491game.Players.LocalPlayer.Character["Right Leg"].Anchored = false
492game.Players.LocalPlayer.Character["Left Leg"].Anchored = false
493game.Players.LocalPlayer.Character.Torso.Anchored = false
494game.Players.LocalPlayer.Character.Head.Anchored = false
495game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 32
496end
497end
498mouse.KeyDown:connect(onKeyed)
499
500local color1 = Color3.new(86, 86, 86)
501local color2 = Color3.new(255, 255, 255)
502local sequence = ColorSequence.new(color1,color2)
503function onTouch(part)
504local humanoid = part.Parent:findFirstChild("Humanoid")
505if (humanoid ~=nil) then
506if part.Parent.Name == game.Players.LocalPlayer.Name then
507print("Can't Kill Owner")
508else
509q:Play()
510z:Stop()
511humanoid.Health = 0
512local g = part.Parent.Torso:findFirstChild("Ghost")
513if g then
514print('Ghost Already Exists')
515else
516o = o+1
517if o == 5 then
518l:Play()
519end
520if o == 1 then
521gg:Play()
522end
523if o == 3 then
524t:Play()
525end
526if o == 10 then
527k:Play()
528end
529if o == 15 then
530j:Play()
531end
532if o == 2 then
533u:Play()
534end
535if o == 8 then
536i:Play()
537end
538if o == 13 then
539qq:Play()
540end
541pe = Instance.new("Part",part.Parent.Torso)
542pe.Position = part.Parent.Torso.Position
543pe.Name = "Ghost"
544pe.CanCollide = false
545sp = Instance.new("SpecialMesh",pe)
546sp.MeshId = "http://www.roblox.com/asset/?id=64445076"
547sp.TextureId = "http://www.roblox.com/asset/?id=64445059"
548bv = Instance.new("BodyVelocity",pe)
549bv.velocity = Vector3.new(0,4,0)
550wait(1)
551pe:Destroy()
552end
553end
554end
555end
556Bp.Scythe.Handle.Touched:connect(onTouch)
557
558local mouse = game.Players.LocalPlayer:GetMouse()
559lp = game.Players.LocalPlayer
560lpc = game.Players.LocalPlayer.Character
561
562local shock = Instance.new("Sound", lpc["Left Arm"])
563shock.Volume = 1
564shock.SoundId = "http://www.roblox.com/asset/?id=184211520"
565
566fire = false
567fired = 0
568
569mouse.Button1Down:connect(function(click)
570orb = Instance.new("Part", lpc)
571orb.Name = "orb"
572orb.Shape = "Ball"
573orb.Size = Vector3.new(1.47, 1.47, 1.47)
574orb.BrickColor = BrickColor.new("Really black")
575orb.Transparency = 0.3
576
577local w = Instance.new("Weld", orb)
578w.Part0 = orb
579w.Part1 = lpc["Left Arm"]
580w.C0 = CFrame.new(0,1,0)
581
582fire = true
583while fire do
584fired = fired+1
585
586if fired == 30 then
587fired = 0
588for i,v in pairs(game.Workspace:GetChildren()) do
589if v.Name == "strike" then
590v:Destroy()
591end
592end
593end
594
595wait(0)
596local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 300)
597local part, position = workspace:FindPartOnRay(ray, lp.Character, false, true)
598
599local strike = Instance.new("Part", workspace)
600strike.BrickColor = BrickColor.new("Really black")
601strike.FormFactor = "Custom"
602strike.Transparency = 0.25
603strike.Name = "strike"
604strike.BottomSurface = "Smooth"
605strike.TopSurface = "Smooth"
606strike.Anchored = true
607strike.Locked = true
608strike.CanCollide = false
609
610local distance = (orb.CFrame.p - position).magnitude
611strike.Size = Vector3.new(0.3, 0.3, distance)
612strike.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
613shock:Stop()
614shock:Play()
615
616game:GetService("Debris"):AddItem(strike, 0.1)
617
618if part then
619local humanoid = part.Parent:FindFirstChild("Humanoid")
620
621if not humanoid then
622humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
623end
624
625if humanoid then
626humanoid:TakeDamage(2)
627end
628end
629end
630end)
631
632mouse.Button1Down:connect(function(click)
633orb:Destroy()
634fire = false
635end)
636
637for _,n in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
638if n:IsA("Accessory") then n:Remove() end
639end
640
641wait(2)
642Player = game:GetService("Players").LocalPlayer
643PlayerGui = Player.PlayerGui
644Cam = workspace.CurrentCamera
645Backpack = Player.Backpack
646Character = Player.Character
647Humanoid = Character.Humanoid
648Mouse = Player:GetMouse()
649RootPart = Character["HumanoidRootPart"]
650Torso = Character["Torso"]
651Head = Character["Head"]
652RightArm = Character["Right Arm"]
653LeftArm = Character["Left Arm"]
654RightLeg = Character["Right Leg"]
655LeftLeg = Character["Left Leg"]
656RootJoint = RootPart["RootJoint"]
657Neck = Torso["Neck"]
658RightShoulder = Torso["Right Shoulder"]
659LeftShoulder = Torso["Left Shoulder"]
660RightHip = Torso["Right Hip"]
661LeftHip = Torso["Left Hip"]
662plr = game.Players.LocalPlayer
663char = plr.Character
664
665IT = Instance.new
666CF = CFrame.new
667VT = Vector3.new
668RAD = math.rad
669C3 = Color3.new
670UD2 = UDim2.new
671BRICKC = BrickColor.new
672ANGLES = CFrame.Angles
673EULER = CFrame.fromEulerAnglesXYZ
674COS = math.cos
675ACOS = math.acos
676SIN = math.sin
677ASIN = math.asin
678ABS = math.abs
679MRANDOM = math.random
680FLOOR = math.floor
681
682
683Animation_Speed = 3
684Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
685local Speed = 20
686local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
687local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
688local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
689local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
690local DAMAGEMULTIPLIER = 1
691local ANIM = "Idle"
692local ATTACK = false
693local EQUIPPED = false
694local HOLD = false
695local COMBO = 1
696local Rooted = false
697local SINE = 0
698local KEYHOLD = false
699local CHANGE = 2 / Animation_Speed
700local WALKINGANIM = false
701local VALUE1 = false
702local VALUE2 = false
703local ROBLOXIDLEANIMATION = IT("Animation")
704ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
705ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
706--ROBLOXIDLEANIMATION.Parent = Humanoid
707local WEAPONGUI = IT("ScreenGui", PlayerGui)
708WEAPONGUI.Name = "PIXELGUI"
709local Effects = IT("Folder", Character)
710Effects.Name = "Effects"
711local ANIMATOR = Humanoid.Animator
712local ANIMATE = Character.Animate
713local UNANCHOR = true
714local SONG = 383837680
715local DEAD = false
716local WALKINGANIM = false
717local WALK = 0
718Player_Size = 1 --Size of the player.
719Animation_Speed = 3
720Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
721
722local Speed = 16
723local Effects2 = {}
724
725
726ArtificialHB = Instance.new("BindableEvent", script)
727ArtificialHB.Name = "ArtificialHB"
728
729script:WaitForChild("ArtificialHB")
730
731frame = Frame_Speed
732tf = 0
733allowframeloss = false
734tossremainder = false
735lastframe = tick()
736script.ArtificialHB:Fire()
737
738game:GetService("RunService").Heartbeat:connect(function(s, p)
739 tf = tf + s
740 if tf >= frame then
741 if allowframeloss then
742 script.ArtificialHB:Fire()
743 lastframe = tick()
744 else
745 for i = 1, math.floor(tf / frame) do
746 script.ArtificialHB:Fire()
747 end
748 lastframe = tick()
749 end
750 if tossremainder then
751 tf = 0
752 else
753 tf = tf - frame * math.floor(tf / frame)
754 end
755 end
756end)
757
758function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
759 return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
760end
761
762function PositiveAngle(NUMBER)
763 if NUMBER >= 0 then
764 NUMBER = 0
765 end
766 return NUMBER
767end
768
769function NegativeAngle(NUMBER)
770 if NUMBER <= 0 then
771 NUMBER = 0
772 end
773 return NUMBER
774end
775
776function Swait(NUMBER)
777 if NUMBER == 0 or NUMBER == nil then
778 ArtificialHB.Event:wait()
779 else
780 for i = 1, NUMBER do
781 ArtificialHB.Event:wait()
782 end
783 end
784end
785
786
787 local function weldBetween(a, b)
788 local weldd = Instance.new("ManualWeld")
789 weldd.Part0 = a
790 weldd.Part1 = b
791 weldd.C0 = CFrame.new()
792 weldd.C1 = b.CFrame:inverse() * a.CFrame
793 weldd.Parent = a
794 return weldd
795 end
796
797function QuaternionToCFrame(px, py, pz, x, y, z, w)
798 local xs, ys, zs = x + x, y + y, z + z
799 local wx, wy, wz = w * xs, w * ys, w * zs
800 local xx = x * xs
801 local xy = x * ys
802 local xz = x * zs
803 local yy = y * ys
804 local yz = y * zs
805 local zz = z * zs
806 return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
807end
808
809function QuaternionSlerp(a, b, t)
810 local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
811 local startInterp, finishInterp;
812 if cosTheta >= 0.0001 then
813 if (1 - cosTheta) > 0.0001 then
814 local theta = ACOS(cosTheta)
815 local invSinTheta = 1 / SIN(theta)
816 startInterp = SIN((1 - t) * theta) * invSinTheta
817 finishInterp = SIN(t * theta) * invSinTheta
818 else
819 startInterp = 1 - t
820 finishInterp = t
821 end
822 else
823 if (1 + cosTheta) > 0.0001 then
824 local theta = ACOS(-cosTheta)
825 local invSinTheta = 1 / SIN(theta)
826 startInterp = SIN((t - 1) * theta) * invSinTheta
827 finishInterp = SIN(t * theta) * invSinTheta
828 else
829 startInterp = t - 1
830 finishInterp = t
831 end
832 end
833 return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
834end
835
836function QuaternionFromCFrame(cf)
837 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
838 local trace = m00 + m11 + m22
839 if trace > 0 then
840 local s = math.sqrt(1 + trace)
841 local recip = 0.5 / s
842 return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
843 else
844 local i = 0
845 if m11 > m00 then
846 i = 1
847 end
848 if m22 > (i == 0 and m00 or m11) then
849 i = 2
850 end
851 if i == 0 then
852 local s = math.sqrt(m00 - m11 - m22 + 1)
853 local recip = 0.5 / s
854 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
855 elseif i == 1 then
856 local s = math.sqrt(m11 - m22 - m00 + 1)
857 local recip = 0.5 / s
858 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
859 elseif i == 2 then
860 local s = math.sqrt(m22 - m00 - m11 + 1)
861 local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
862 end
863 end
864end
865
866function Clerp(a, b, t)
867 local qa = {QuaternionFromCFrame(a)}
868 local qb = {QuaternionFromCFrame(b)}
869 local ax, ay, az = a.x, a.y, a.z
870 local bx, by, bz = b.x, b.y, b.z
871 local _t = 1 - t
872 return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
873end
874
875local S = IT("Sound")
876function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
877 local NEWSOUND = nil
878 coroutine.resume(coroutine.create(function()
879 NEWSOUND = S:Clone()
880 NEWSOUND.Parent = PARENT
881 NEWSOUND.Volume = VOLUME
882 NEWSOUND.Pitch = PITCH
883 NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
884 NEWSOUND:play()
885 if DOESLOOP == true then
886 NEWSOUND.Looped = true
887 else
888 repeat wait(1) until NEWSOUND.Playing == false
889 NEWSOUND:remove()
890 end
891 end))
892 return NEWSOUND
893end
894
895function sbchat(msg,displayname)
896 if not displayname then
897 displayname = '<Bitch Smoke>'
898 end
899 for i,v in pairs(game:GetService('Players'):GetChildren()) do
900 local st = Instance.new('StringValue')
901 st.Name = 'SB_Chat'
902 st.Value = displayname..'/'..msg
903 delay(0.2,function() st.Parent = v end)
904 end
905 end
906
907function unanchor()
908 if UNANCHOR == true then
909 for _, c in pairs(Character:GetChildren()) do
910 if c:IsA("BasePart") then
911 c.Anchored = false
912 end
913 end
914 else
915 for _, c in pairs(Character:GetChildren()) do
916 if c:IsA("BasePart") then
917 c.Anchored = true
918 end
919 end
920 end
921end
922
923function Taunt()
924 ATTACK = true
925 Rooted = true
926 CreateSound("1826625760", Head, 10, 1)
927 for i = 1, 3 do
928 for i = 0, 0.7, 0.1 / Animation_Speed do
929 Swait()
930 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
931 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
932 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
933 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
934 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
935 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
936 end
937 for i = 0, 0.7, 0.1 / Animation_Speed do
938 Swait()
939 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
940 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
941 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
942 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
943 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
944 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
945 end
946 end
947 ATTACK = false
948 Rooted = false
949end
950
951
952--//=================================\\
953--|| ASSIGN THINGS TO KEYS
954--\\=================================//
955
956function KeyDown(Key)
957
958 if Key == "t" and ATTACK == false then
959 Taunt()
960 end
961end
962
963function KeyUp(Key)
964 KEYHOLD = false
965end
966
967 Mouse.KeyDown:connect(function(NEWKEY)
968 KeyDown(NEWKEY)
969 end)
970 Mouse.KeyUp:connect(function(NEWKEY)
971 KeyUp(NEWKEY)
972 end)
973
974--//=================================\\
975--|| WRAP THE WHOLE SCRIPT UP
976--\\=================================//
977
978local JUMPED = false
979
980Humanoid.Changed:connect(function(Jump)
981 if Jump == "Jump" and (Disable_Jump == true) then
982 Humanoid.Jump = false
983 elseif Jump == "Jump" and Disable_Jump == false and JUMPED == false then
984 JUMPED = true
985 --CreateSound(158309736, Torso, 10, 1, false)
986 end
987end)
988
989while true do
990 Swait()
991 ANIMATE.Parent = nil
992 local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
993 IDLEANIMATION:Play()
994 SINE = SINE + CHANGE
995 local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
996 local TORSOVERTICALVELOCITY = RootPart.Velocity.y
997 local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
998 local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
999 local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1000 if ANIM == "Walk" and TORSOVELOCITY > 1 then
1001 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1002 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1003 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1004 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1005 elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1006 RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1007 Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1008 RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1009 LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1010 end
1011 if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1012 ANIM = "Jump"
1013 if ATTACK == false then
1014 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1015 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1016 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1017 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1018 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
1019 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1020 end
1021 elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1022 ANIM = "Fall"
1023 if ATTACK == false then
1024 RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1025 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1026 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1027 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1028 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1029 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1030 end
1031 elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1032 ANIM = "Idle"
1033 if ATTACK == false then
1034 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1035 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1036 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1037 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1038 RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1039 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1040 end
1041 elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1042 ANIM = "Walk"
1043 WALK = WALK + 1 / Animation_Speed
1044 if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1045 WALK = 0
1046 if WALKINGANIM == true then
1047 WALKINGANIM = false
1048 elseif WALKINGANIM == false then
1049 WALKINGANIM = true
1050 end
1051 end
1052 --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1053 --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1054 if ATTACK == false then
1055 RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1056 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1057 RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1058 LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
1059 RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
1060 LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
1061 end
1062 end
1063 unanchor()
1064 Humanoid.MaxHealth = "inf"
1065 Humanoid.Health = "inf"
1066 if Rooted == false then
1067 Disable_Jump = false
1068 Humanoid.WalkSpeed = Speed
1069 elseif Rooted == true then
1070 Disable_Jump = true
1071 Humanoid.WalkSpeed = 0
1072 end
1073end