Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- local Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- Debris = game:GetService("Debris")
- local sick = Instance.new("Sound",Torso)
- sick.SoundId = "rbxassetid://243832038"
- sick.Pitch = 1
- sick.Looped = true
- sick.Volume = 0
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 45
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local DAMAGEMULTIPLIER = 1
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 1
- local Rooted = false
- local SINE = 0
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local VALUE1 = false
- local VALUE2 = false
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local WEAPONGUI = IT("ScreenGui", PlayerGui)
- WEAPONGUI.Name = "Weapon GUI"
- local Effects = IT("Folder", Character)
- Effects.Name = "Effects"
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character.Animate
- local UNANCHOR = true
- local HITPOS = nil
- local HITFLOOR = nil
- local BODY = {}
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- game:GetService("RunService").Stepped:wait()
- else
- for i = 1, NUMBER do
- game:GetService("RunService").Stepped:wait()
- end
- end
- end
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function Clerp(a, b, t)
- return a:lerp(b,t)
- end
- ATTACK = false
- sped = 15
- for _,v in pairs (Character:children()) do
- if v:IsA("Hat") or v:IsA("Accessory") then
- v:Destroy()
- end
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function NewInstance(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- function ezweld(P1,P2,CFRAME)
- local ezw = CreateWeldOrSnapOrMotor("Weld",P1,P1,P2,CFRAME,CF(0,0,0))
- return ezw
- end
- function Snap(Part)
- local FeelGood = Instance.new("ParticleEmitter")
- FeelGood.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.new(0.0509804, 0.411765, 0.67451)), ColorSequenceKeypoint.new(1, Color3.new(0.0509804, 0.411765, 0.67451))})
- FeelGood.LightInfluence = 1
- FeelGood.Lifetime = NumberRange.new(1, 2)
- FeelGood.Speed = NumberRange.new(0, 0)
- FeelGood.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15000000596046, 0), NumberSequenceKeypoint.new(0.80000001192093, 0.15000000596046, 0), NumberSequenceKeypoint.new(1, 0, 0)})
- FeelGood.Acceleration = Vector3.new(0, 1, 3)
- FeelGood.Rate = 100
- FeelGood.Rotation = NumberRange.new(-360, 360)
- FeelGood.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0), NumberSequenceKeypoint.new(1, 0.5, 0)})
- FeelGood.Name = "FeelGood"
- FeelGood.Texture = "rbxassetid://282305485"
- U = FeelGood
- U.Parent = Part
- U.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Part.Color), ColorSequenceKeypoint.new(1, Part.Color)})
- coroutine.resume(coroutine.create(function()
- local PT = (1 - Part.Transparency)/150
- for i = 1,150 do
- game:GetService("RunService").Stepped:wait()
- Part.Transparency = Part.Transparency + PT
- end
- U.Enabled = false
- for i = 1,100 do
- game:GetService("RunService").Stepped:wait()
- end
- Part:Destroy()
- end))
- end
- function Goodbye(Model)
- local mesg = Instance.new("NumberValue",Model)
- mesg.Name = "goodbye"
- for _,v in pairs (Model:GetDescendants()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("WedgePart") or v:IsA("TrussPart") then
- Snap(v)
- end
- end
- end
- local combo = 0
- local hat = Instance.new("Part",Character)
- hat.Size = Vector3.new(0.1, 0.1, 0.1)
- hat.CanCollide = false
- hat.BrickColor = BRICKC("Lilac")
- local mesh = CreateMesh("SpecialMesh", hat, "FileMesh", 1047997, "", Vector3.new(1, 1, 1), Vector3.new(0, 0, 0))
- local decal = IT("Decal",hat)
- decal.Texture = "rbxassetid://4450677083"
- local weld = ezweld(hat, Head, CF(0, -0.15, 0))
- local punchn = 0.75
- local song = Instance.new("Sound",Head)
- song.SoundId = "rbxassetid://3207144564"
- song.Volume = 10
- song.Pitch = 1.2
- song.Looped = true
- song:Play()
- local distort = Instance.new("FlangeSoundEffect",song)
- distort.Rate = 12
- distort.Enabled = true
- hidden = false
- function punch1()
- ATTACK = true
- combo = 1
- local hitbox = RightArm.Touched:connect(function(hit)
- for i,c in pairs (hit.Parent:children()) do
- if c:IsA("Humanoid") and c.Parent ~= Character and not hit.Parent:FindFirstChild("debounce") then
- c.Health = c.Health - 35
- local debounce = Instance.new("NumberValue",hit.Parent)
- debounce.Name = "debounce"
- Debris:AddItem(debounce, 0.45)
- end
- end
- end)
- for i = 1,11 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-45)), punchn / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, punchn / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, punchn / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- end
- for i = 1,14 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(45)), punchn / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, punchn / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- end
- hitbox:disconnect()
- ATTACK = false
- end
- function punch2()
- ATTACK = true
- combo = 2
- local hitbox = RightArm.Touched:connect(function(hit)
- for i,c in pairs (hit.Parent:children()) do
- if c:IsA("Humanoid") and c.Parent ~= Character and not hit.Parent:FindFirstChild("debounce") then
- c.Health = c.Health - 35
- local debounce = Instance.new("NumberValue",hit.Parent)
- debounce.Name = "debounce"
- Debris:AddItem(debounce, 0.45)
- end
- end
- end)
- for i = 1,11 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(45)), punchn / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 * SIN(SINE / 12)), RAD(10 - 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, punchn / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 0 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, punchn / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- end
- for i = 1,14 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-45)), punchn / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 * SIN(SINE / 12)), RAD(10 - 5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, punchn / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 0 * SIN(SINE / 12)), RAD(0)) * LEFTSHOULDERC0, punchn / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), punchn / Animation_Speed)
- end
- hitbox:disconnect()
- ATTACK = false
- end
- function snap()
- local target = Mouse.Target
- if target.Parent ~= workspace then
- ATTACK = true
- Goodbye(target.Parent)
- for i = 1,8 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(180), RAD(0 * SIN(SINE / 12)), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- end
- ATTACK = false
- end
- end
- function Visible(Model)
- for i,v in pairs (Model:GetChildren()) do
- if v:IsA("Part") and v.Name ~= "HumanoidRootPart" or v:IsA("MeshPart") and v.Name ~= "HumanoidRootPart" then
- v.Transparency = 0
- end
- end
- end
- function Invisible(Model)
- for i,v in pairs (Model:GetChildren()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Transparency = 1
- end
- end
- end
- Head.face:remove()
- local OofB = Instance.new("Part",Effects)
- OofB.Size = Vector3.new(1.25, 1.25, 1.25)
- OofB.CanCollide = false
- OofB.Anchored = false
- OofB.Transparency = 1
- OofB.BrickColor = BrickColor.new("New Yeller")
- local Mesh = Instance.new("SpecialMesh",OofB)
- Mesh.MeshType = "Head"
- local Decal = Instance.new("Decal",nil)
- Decal.Name = "Face"
- Decal.Face = "Front"
- Decal.Texture = "rbxassetid://3154087082"
- local Weld = ezweld(OofB, RootPart, CFrame.new(0, 2.5, 0))
- function hide()
- if hidden then
- hidden = false
- Visible(Character)
- OofB.Transparency = 1
- Decal.Parent = nil
- decal.Parent = hat
- song.Playing = true
- ATTACK = false
- else
- hidden = true
- Decal.Parent = OofB
- decal.Parent = nil
- song.Playing = false
- ATTACK = true
- RootPart.Anchored = false
- for i = 1,8 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.75 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- end
- RootPart.Anchored = false
- Invisible(Character)
- OofB.Transparency = 0
- for i = 1,8 do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.75 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- end
- end
- end
- anim = Humanoid.Animator
- Mouse.Button1Down:connect(function()
- if ATTACK == false then
- if combo == 0 or combo == 2 then
- punch1()
- elseif combo == 1 then
- punch2()
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key == "c" then
- snap()
- end
- if key == "u" then
- hide()
- end
- end)
- while true do
- Swait()
- if not Character:FindFirstChildOfClass("ForceField") then
- local u = Instance.new("ForceField",Character)
- u.Visible = false
- end
- anim.Parent = nil
- Humanoid.BreakJointsOnDeath = false
- Humanoid.PlatformStand = false
- SINE = SINE + CHANGE
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- if(not Character:FindFirstChildOfClass'Shirt')then
- NewInstance("Shirt",Character,{ShirtTemplate='rbxassetid://593515265'})
- else
- Character:FindFirstChildOfClass'Shirt'.ShirtTemplate='rbxassetid://593515265'
- end
- if(not Character:FindFirstChildOfClass'Pants')then
- NewInstance("Pants",Character,{PantsTemplate='rbxassetid://1881920856'})
- else
- Character:FindFirstChildOfClass'Pants'.PantsTemplate='rbxassetid://1881920856'
- end
- for i,c in pairs (Character:GetChildren()) do
- if c:IsA("Part") then
- c.BrickColor = BRICKC("Lilac")
- c.Anchored = false
- c.Material = "Plastic"
- end
- end
- if ATTACK == false then
- if TORSOVELOCITY < 1 then
- MOVEMENT = "Stand"
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(0), RAD(-15)), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 8 * COS(SINE/6)), RAD(0 * SIN(SINE / 12)), RAD(170 + 6 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * COS(SINE/12)), RAD(0 - 0 * SIN(SINE / 12)), RAD(-10 - 5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 0 * SIN(SINE / 12)), RAD(85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0 + 0 * SIN(SINE / 12)), RAD(-85), RAD(0)) * ANGLES(RAD(-2.5 - 0 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
- elseif TORSOVELOCITY > 1 then
- MOVEMENT = "Walking"
- if Humanoid.WalkSpeed < 25 then
- sped = 11
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(5 + 0 * SIN(SINE / sped)), RAD(0), RAD(0 - 0 * SIN(SINE / 12))), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(30 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-30 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.2 * COS(SINE / (sped/2)), 0.2 * COS(SINE / (sped/2))) * ANGLES(RAD(-30 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.2 * COS(SINE / (sped/2)), -.2 * COS(SINE / (sped/2))) * ANGLES(RAD(30 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- end
- if Humanoid.WalkSpeed > 24 then
- sped = 8 / (Humanoid.WalkSpeed / 18)
- RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE /(sped/4))) * ANGLES(RAD(15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0)), 1 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.3 + 0. * COS(SINE / 12)) * ANGLES(RAD(-15 + 0 * SIN(SINE / sped)), RAD(0), RAD(0 - 0 * SIN(SINE / 12))), 1 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45+ 0 * COS(SINE / 3), 0) * ANGLES(RAD(50 * SIN(SINE / (sped/2))), RAD(4 - 0 * SIN(SINE / 12)), RAD(5 + 0 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45 + 0 * COS(SINE / 3), 0) * ANGLES(RAD(-50 * SIN(SINE / (sped/2))), RAD(-4 + 0 * SIN(SINE / 12)), RAD(-5 - 0 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.25 * COS(SINE / (sped/2)), 0.25 * COS(SINE / (sped/2))) * ANGLES(RAD(-50 * SIN(SINE / (sped/2))), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 + 0.25 * COS(SINE / (sped/2)), -.25 * COS(SINE / (sped/2))) * ANGLES(RAD(50 * SIN(SINE / (sped/2))), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
- end
- end
- end
- Humanoid.Health = Humanoid.MaxHealth
- script.Parent = WEAPONGUI
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement