Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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 wait(0.1)
- local p = game.Players.LocalPlayer
- local ma = p.Character
- local p = game.Players.LocalPlayer
- local char = p.Character
- local mouse = p:GetMouse()
- local larm = char["Left Arm"]
- local rarm = char["Right Arm"]
- local lleg = char["Left Leg"]
- idk = false
- local CFAngles = CFrame.Angles
- rock = false
- local RbxUtility = LoadLibrary("RbxUtility")
- local vt = Vector3.new
- euler = CFrame.fromEulerAnglesXYZ
- local Create = RbxUtility.Create
- local Character = char
- sizem = 1.5
- local yellow = false
- local red = false
- NoAnims = false
- local green = false
- local distance = 0
- local rleg = char["Right Leg"]
- local hed = char.Head
- local torso = char.Torso
- local hum = char.Humanoid
- local cam = game.Workspace.CurrentCamera
- local root = char.HumanoidRootPart
- local deb = false
- local shot = 0
- local debris=game:service"Debris"
- local l = game:GetService("Lighting")
- local rs = game:GetService("RunService").RenderStepped
- ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
- math.randomseed(os.time())
- for i,v in pairs (hed:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- local acos = math.acos
- local sqrt = math.sqrt
- local Vec3 = Vector3.new
- local fromAxisAngle = CFrame.fromAxisAngle
- local function toAxisAngle(CFr)
- local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
- local Angle = math.acos((R00+R11+R22-1)/2)
- local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- A = A == 0 and 0.00001 or A
- local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- B = B == 0 and 0.00001 or B
- local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- C = C == 0 and 0.00001 or C
- local x = (R21-R12)/sqrt(A)
- local y = (R02-R20)/sqrt(B)
- local z = (R10-R01)/sqrt(C)
- return Vec3(x,y,z),Angle
- end
- char["Body Colors"].HeadColor = BrickColor.new("Really black")
- char["Body Colors"].TorsoColor = BrickColor.new("Really black")
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
- char["Body Colors"].RightLegColor = BrickColor.new("Really black")
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- rayModel = Instance.new("Model",char)
- ids = {463804032,282572614}
- pcall(function()
- torso.Sound:Destroy()
- end)
- local s = Instance.new("Sound",torso)
- s.SoundId = "rbxassetid://282572614"
- s.Volume = .8
- s.Pitch = 1
- s.Looped = true
- s:Play()
- hum.MaxHealth = 650
- hum.Health = hum.MaxHealth
- hum.Health = math.huge
- Debounces = {
- CanAttack = true;
- NoIdl = false;
- Slashing = false;
- Slashed = false;
- RPunch = false;
- RPunched = false;
- LPunch = false;
- LPunched = false;
- attackNumber = 0;
- NoAnims = false;
- MaxEnergy = 285;
- FPS=0;
- Energy = 285;
- }
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- it=Instance.new
- function weldkek(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
- coroutine.resume(coroutine.create(function()
- for i=1, math.huge, 4 do
- rs:wait()
- if angles1 or angles2 or angles3 == nil then angles1 = 0,0,0 end
- if cframe1 or cframe2 or cframe3 == nil then cframe1 = 0,0,0 end
- if prt == nil then print("Error:Code 1;Not found first part") end
- if obj == nil then print("Error:Code 2;Not found second part") end
- prt.CFrame = obj.CFrame*CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
- end
- end))
- end
- function weld2(prt,obj,cframe1,cframe2,cframe3,angles1,angles2,angles3)
- local w = Instance.new("Weld",obj)
- w.Part0 = prt
- w.Part1 = obj
- w.Parent = obj
- w.C0 = CFrame.new(cframe1,cframe2,cframe3) * CFrame.Angles(angles1,angles2,angles3)
- end
- local AddNew = Instance.new
- function rainbowgui2(kek)
- coroutine.wrap(function()
- while true do
- for i = 0,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/26, 255/255, 225/255), i / 100)
- wait()
- end
- for i = 0,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
- wait()
- end
- wait()
- end
- end)()
- end
- function rainbowgui(kek)
- coroutine.wrap(function()
- while true do
- for i = 0,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 26/255, 225/255), i / 100)
- wait()
- end
- for i = 0,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(30/255, 41/ 255, 255/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 170/255, 255/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(43/255, 255/255, 50/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(245/255, 255/255, 46/255), i / 100)
- wait()
- end
- for i = 1,2,0.01 do
- kek.BackgroundColor3 = kek.BackgroundColor3:lerp(Color3.new(255/255, 0/255, 0/255), i / 100)
- wait()
- end
- wait()
- end
- end)()
- end
- function LerpCFrame(CFrame1,CFrame2,Num)
- local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
- return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
- end
- function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- function weld(a, b)
- local weld = Instance.new("Weld")
- weld.Name = "W"
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- weld.Parent = a
- return weld;
- end
- ----------------------------------------------------
- ypcall(function()
- hed.face.Texture = "rbxassetid://49585816"
- char.Shirt:Destroy()
- char.Pants:Destroy()
- shirt = Instance.new("Shirt", char)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", char)
- pants.Name = "Pants"
- char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=236410507"
- char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
- end)
- ----------------------------------------------------
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- ----------------------------------------------------
- function weld5(part0, part1, c0, c1)
- weeld=Instance.new("Weld", part0)
- weeld.Part0=part0
- weeld.Part1=part1
- weeld.C0=c0
- weeld.C1=c1
- return weeld
- end
- ----------------------------------------------------
- larm.Size = larm.Size * sizem
- rarm.Size = rarm.Size * sizem
- lleg.Size = lleg.Size * sizem
- rleg.Size = rleg.Size * sizem
- torso.Size = torso.Size * sizem
- hed.Size = hed.Size * sizem
- root.Size = root.Size *sizem
- hum.JumpPower = hum.JumpPower * sizem
- hum.WalkSpeed = hum.WalkSpeed * sizem
- hum.HipHeight = hum.HipHeight * sizem
- function NoOutline(Part)
- Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function swait(num)
- if num == 0 or num == nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i = 0, num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- function nooutline(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
- local fp = Create("Part"){
- formFactor = formfactor,
- Parent = parent,
- Reflectance = reflectance,
- Transparency = transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(brickcolor)),
- Name = name,
- Size = size,
- Position = Character.Torso.Position,
- Material = material,
- }
- nooutline(fp)
- return fp
- end
- function mesh(Mesh, part, meshtype, meshid, offset, scale)
- local Msh = Create(Mesh){
- Parent = part,
- Offset = offset,
- Scale = scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = meshtype
- Msh.MeshId = meshid
- end
- return Msh
- end
- function so(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = Sounds[id].Id or id
- swait()
- sou:play()
- swait(6)
- sou:Remove()
- end))
- end
- function weld(parent, part0, part1, c0, c1)
- local Weld = Create("Weld"){
- Parent = parent,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return Weld
- end
- ----------------------------------------------------
- ----------------------------------------------------
- local m = Instance.new("Model")
- m.Name = "Hat"
- p1 = Instance.new("Part", m)
- p1.BrickColor = BrickColor.new("Really black")
- p1.FormFactor = Enum.FormFactor.Symmetric
- p1.Size = Vector3.new(1*sizem, 1*sizem, 1*sizem)
- p1.CFrame = CFrame.new(-2.49043155, 8.24595642, -3.40113306, -5.48362732e-006, -0.978699088, 0.205299795, 3.27825546e-007, -0.205299854, -0.978699148, 1, -5.28991222e-006, 1.48639083e-006)
- p1.CanCollide = false
- p1.Locked = true
- p1.Name = "Head"
- p1.BottomSurface = Enum.SurfaceType.Smooth
- p1.TopSurface = Enum.SurfaceType.Smooth
- b1 = Instance.new("SpecialMesh", p1)
- b1.MeshId = "http://www.roblox.com/asset/?id=83499032"
- b1.TextureId = ""
- b1.MeshType = Enum.MeshType.FileMesh
- b1.Name = "Mesh"
- b1.VertexColor = Vector3.new(0, 0, 0)
- b1.Scale = Vector3.new(1*sizem, 1*sizem, 1*sizem)
- m.Parent = char
- m:BreakJoints()
- m:MakeJoints()
- local cor = Instance.new("Part", char.Hat)
- cor.Name = "Link"
- cor.Locked = true
- cor.BottomSurface = 0
- cor.CanCollide = false
- cor.Size = Vector3.new(1, 9, 1)
- cor.Transparency = 1
- cor.TopSurface = 0
- corw = Instance.new("Weld", cor)
- corw.Part0 = hed
- corw.Part1 = cor
- corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- weld1 = Instance.new("Weld", char.Hat)
- weld1.Part0 = cor
- weld1.Part1 = char.Hat.Head
- weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- ----------------------------------------------------
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0,0,0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0) * CFrame.Angles(0,0,0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(0,0,0)
- local Touche = {char.Name, }
- ----------------------------------------------------
- attack = false
- attackhit = false
- attacknumber = 0
- coroutine.wrap(function()
- while true do
- rs:wait()
- if attacknumber >= 2 then
- attacknumber = 0
- end
- end
- end)()
- throw = false
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- if attack == false then attack = true
- attackhit = true
- attacknumber = attacknumber + 1
- NoAnims = true
- local sine = 1
- char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
- char["Body Colors"].RightArmColor = BrickColor.new("Really red")
- lleg.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45,70))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70,177))
- hit.Parent.Humanoid.PlatformStand = true
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- end
- end
- end)
- for i = 1, 10 do
- rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0 * sizem)*CFrame.Angles(0,0,0),0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5* sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0 * sizem)*CFrame.Angles(10.3,0,0),0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(10.3,0,0),0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-3.5 * sizem,0)*CFrame.Angles(math.rad(70),0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- rs:wait()
- end
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- wait(.5)
- attackhit = false
- attack = false
- NoAnims = false
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "f" then
- if attack == false then
- attack = true
- attacknumber = attacknumber + 1
- attackhit = true
- NoAnims = true
- local sine = 1
- char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
- char["Body Colors"].RightArmColor = BrickColor.new("Really red")
- for i = 1, 10 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 *sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, .5 * sizem, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -.5 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
- rs:wait()
- end
- wait(.5)
- for i = 1, 10 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(-90),5,-15+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(90),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0),0, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(0), 0, 0), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.5 * sizem) * CFrame.Angles(math.rad(0), -1, 0), .4)
- rs:wait()
- end
- local s1 = AddNew("Sound",hed)
- s1.SoundId = "rbxassetid://231917744"
- s1.Name = "sm000sh"
- s1.Volume = 0.5
- s1.Pitch = 1
- s1:Play()
- for i,v in pairs(FindNearestTorso(rleg.CFrame.p,15 * sizem))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(26 * 5 * sizem,59 * 5 * sizem))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 60 * sizem
- end
- end
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- NoAnims = false
- attackhit = false
- attack = false
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "r" then
- if attack == false then
- attack = true
- attacknumber = attacknumber + 1
- attackhit = true
- NoAnims = true
- local sine = 1
- char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
- char["Body Colors"].RightArmColor = BrickColor.new("Really red")
- for i = 1, 3 do
- larm.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,27 * sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15 * sizem,45 * sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- end
- end
- end
- end
- end)
- rarm.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- end
- end
- end
- end
- end)
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5* sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(80,-0,-0),0.4) -- punching arm
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(160,0,20),0.4) -- punching arm
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- rs:wait()
- end
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- NoAnims = false
- attackhit = false
- attack = false
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "t" then
- if attack == false then
- attack = true
- attacknumber = attacknumber + 1
- attackhit = true
- NoAnims = true
- local sine = 1
- char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
- char["Body Colors"].RightArmColor = BrickColor.new("Really red")
- for i = 1, 20 do
- rleg.Weld.C0 = Lerp(rleg.Weld.C0,CFrame.new(.5 * sizem,-1 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0,CFrame.new(-.5 * sizem,-1.25 * sizem,-.5 * sizem)*CFrame.Angles(-30,0,0),0.4) -- attacking leg
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-25.6,0,0),0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0,CFrame.new(0,-1 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- rs:wait()
- end
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- lleg.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(45* sizem,70* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(70* sizem,177* sizem))
- hit.Parent.Humanoid.PlatformStand = true
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- end
- end
- end)
- wait()
- attack = false
- atackhit = false
- NoAnims = false
- end
- end
- end)
- mouse.KeyDown:connect(function(k)
- if k == "e" then
- if attack == false then
- attack = true
- attackhit = true
- NoAnims = true
- local sine = 1
- char["Body Colors"].LeftArmColor = BrickColor.new("Really red")
- char["Body Colors"].RightArmColor = BrickColor.new("Really red")
- attacknumber = attacknumber + 1
- if attacknumber == 1 then
- rarm.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(19* sizem,27* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- end
- end
- end)
- for i = 1, 10 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5,0.5,-0.5)*CFrame.Angles(math.rad(0),-0.5,-33.5), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,1+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),0,-15+ -math.sin(sine/7)/9), 0.2)
- rs:wait()
- end
- attackhit = false
- end
- if attacknumber == 2 then
- rarm.Touched:connect(function(ht)
- hit = ht.Parent
- if attackhit == true then
- if ht and hit:IsA("Model") then
- if hit:FindFirstChild("Humanoid") then
- if hit.Name ~= p.Name then
- hit:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,27* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- elseif ht and hit:IsA("Hat") then
- if hit.Parent.Name ~= p.Name then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(15* sizem,45* sizem))
- z = Instance.new("Sound",hed)
- z.SoundId = "rbxassetid://294188918"
- z.Volume = 1
- z:Play()
- attackhit = false
- end
- end
- end
- end
- end)
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(1.5 * sizem,0.5 * sizem,0)*CFrame.Angles(-80,-0,-0),0.4) -- punching arm
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- for i = 1, 5 do
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1), .4)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0,CFrame.new(0.5 * sizem,0.5 * sizem,-.8 * sizem)*CFrame.Angles(-80,0,-20),0.4) -- punching arm
- larm.Weld.C0 = Lerp(larm.Weld.C0,CFrame.new(-1.5 * sizem,.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0,CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(0,0,0),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem+ math.sin(sine/7)/8, 0) * CFrame.Angles(math.rad(0), 0, math.rad(0)), 0.6)
- rs:wait()
- end
- attackhit = false
- end
- char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
- char["Body Colors"].RightArmColor = BrickColor.new("Really black")
- wait(.3)
- attackhit = false
- attack = false
- NoAnims = false
- end
- end
- end)
- ----------------------------------------------------
- mouse.KeyDown:connect(function(key)
- if string.byte(key) == 52 then
- char.Humanoid.WalkSpeed = 60 * sizem
- end
- end)
- mouse.KeyUp:connect(function(key)
- if string.byte(key) == 52 then
- char.Humanoid.WalkSpeed = 8
- end
- end)
- -------------------------------
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
- local jump = false
- -------------------------------
- game:GetService("RunService").RenderStepped:connect(function()
- --[[if char.Humanoid.Jump == true then
- jump = true
- else
- jump = false
- end]]
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end)
- sine = sine + change
- if jump == true then
- animpose = "Jumping"
- elseif ffing == true then
- animpose = "Freefalling"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- animpose = "Idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- animpose = "Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 * sizem then
- animpose = "Running"
- end
- if animpose ~= lastanimpose then
- sine = 0
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- for i = 1, 0.5 do
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem, -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
- wait()
- end
- end
- elseif animpose == "Jumping" then
- for i = 1, 0.5 do
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
- rs:wait()
- end
- end
- elseif animpose == "Walking" then
- for i = 1, 1.5 do
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem-0.3*math.cos(sine/7)/2, -1 * sizem-0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem+0.3*math.cos(sine/7)/2, -1 * sizem+0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
- wait()
- end
- end
- elseif animpose == "Running" then
- for i = 1, 1 do
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
- larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
- torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- rs:wait()
- end
- end
- end
- else
- end
- end
- lastanimpose = animpose
- if Debounces.NoIdl == false then
- if animpose == "Idle" then
- change = 0.5
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(-10), 0, -0.3-.1- math.sin(sine/7)/20), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem, -1 * sizem , -.05 * sizem) * CFrame.Angles(math.rad(10), 0, .3-.1+ math.sin(sine/7)/20), .4)
- end
- elseif animpose == "Jumping" then
- change = 1
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(30.5), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0,0, math.rad(0)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(0, 0, math.rad(0)), 0.4)
- rs:wait()
- end
- elseif animpose == "Walking" then
- change = 1
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.5 * sizem,0.5 * sizem+ -math.sin(sine/7)/5,-0.5 * sizem)*CFrame.Angles(math.rad(0),-0.5,-33.5+ -math.sin(sine/7)/9), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem * .7,0.5 * sizem+ -math.sin(sine/7)/5,0)*CFrame.Angles(math.rad(0),5,-15+ -math.sin(sine/7)/9), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem- math.sin(sine/7)/38,0)*CFrame.Angles(math.rad(0), math.rad(45), math.rad(0)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 * sizem, 0) * CFrame.Angles(math.rad(0), 30.5, math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5 * sizem - 0.3*math.cos(sine/7)/2, -1 * sizem - 0.3*math.cos(sine/7)/2, -.05 * sizem + math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ math.sin(sine/7)/2.3), .4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5 * sizem + 0.3*math.cos(sine/7)/2, -1 * sizem+ 0.3*math.cos(sine/7)/2, -.05 * sizem + -math.sin(sine/7)/5) * CFrame.Angles(math.rad(0), -18 + math.sin(sine/7)/2.3, 0+ -math.sin(sine/7)/2.3), .4)
- end
- elseif animpose == "Running" then
- change = 1
- if NoAnims == false then
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0), 0.2)
- larm.Weld.C0 =Lerp(larm.Weld.C0, CFrame.new(-1.5 * sizem,.3 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5 * sizem,0)*CFrame.Angles(math.rad(0),0,0),0.2)
- torso.Weld.C0 =Lerp(torso.Weld.C0, CFrame.new(0,1,0)*CFrame.Angles(math.rad(-30),0,0),0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5 * sizem - .2,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5 * sizem,-1 * sizem,.1 * sizem)*CFrame.Angles(math.rad(-30),0,0),0.2)
- end
- end
- end
- end)
- --------calcs------
- -- +2*math.cos(sine/14)
- -----------------------------
- wait(1)
- hum.Health = math.huge
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement