Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by Cronizete/RA9
- --]]
- wait(1/60)
- script.Name = "L0CALSCR1PT" script.Parent = nil
- for i = 1,300 do a = Instance.new('LocalScript') a.Name = "L0CALSCR1PT" a.Parent = nil end
- for _, a in pairs(workspace.Camera:children'') do a:Destroy'' end
- local plr,p,char = game:service'Players'.LocalPlayer,game:service'Players'.LocalPlayer, game:service'Players'.LocalPlayer.Character
- local char,chr = plr.Character,plr.Character
- local maus,mouse = plr:GetMouse(),plr:GetMouse()
- local PGui=plr:FindFirstChildOfClass'PlayerGui'
- local lleg,rleg,larm,rarm,hed = char["Left Leg"],char["Right Leg"],char["Left Arm"],char["Right Arm"],char["Head"]
- local rutprt,torso = char.HumanoidRootPart,char.Torso
- local otheranims,swimming,hum,calm,activated,stopanims,cooldown = false,false,char:FindFirstChildOfClass'Humanoid',true,false,false,false
- local chams,plrs,lerphead,neck,neckC0,havegunout,y = {},game:service'Players',true,torso.Neck,torso.Neck.C0,false,-10
- --// SETTINGS \/
- local settings = {
- ["Self_Stats"] = false; -- If true then it'll show your statistics when you turn on your shades abilities.
- ["GameID"] = 0; -- No need to change this
- }
- settings.GameID = game.GameId
- --// SETTING /\
- local things = {'HeadColor','LeftArmColor','LeftLegColor','RightArmColor','RightLegColor','TorsoColor'}
- local asd = Instance.new("ManualWeld", hed) asd.Part0 = hed asd.Part1 = hed asd.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- pcall(function() if char:FindFirstChildOfClass'BodyColors' then for _, a in pairs(things) do char:FindFirstChildOfClass'BodyColors'[a]=BrickColor.new('Dark orange') end end end)
- pcall(function() hed.face.Texture = "http://www.roblox.com/asset/?id=477700541" end)
- for _, a in pairs(char:children'') do if a:IsA'CharacterMesh' or a:IsA'Accessory' or a:IsA'Shirt' or a:IsA'Pants' then a:Destroy'' end end
- if settings.GameID ~= 843468296 or settings.GameID ~= 843495510 then
- green = Instance.new('ColorCorrectionEffect', workspace.Camera)
- green.Brightness = 1
- green.Enabled = false
- green.TintColor = BrickColor.new('Forest green').Color
- else
- error("This does not work in void script builder since they fucking cap everything like fucking losers")
- end
- hat = Instance.new('Part', char)
- hat.Name = "Shades"
- hat.BrickColor = BrickColor.new('Really black')
- hat.Size = Vector3.new(1.31, 0.28, 0.96)
- mesh = Instance.new("SpecialMesh", hat)
- mesh.MeshId = "rbxassetid://1577360"
- mesh.TextureId = ""
- mesh.Scale = Vector3.new(1, 1, 1)
- weld = Instance.new('Weld', hat)
- weld.Part0 = hed
- weld.Part1 = hat
- weld.C0 = CFrame.new(0,0.2,-.15) * CFrame.Angles(0,math.rad(0),0)
- activ = Instance.new('Sound', plr.PlayerGui)
- activ.SoundId = "rbxassetid://376178316"
- activ.Volume = 3
- deactiv = Instance.new('Sound', plr.PlayerGui)
- deactiv.SoundId = "rbxassetid://297606725"
- deactiv.Volume = 3
- getgunout = Instance.new('Sound', rutprt)
- getgunout.SoundId = "rbxassetid://1273952987"
- getgunout.Volume = 2.5
- getgunin = Instance.new('Sound', rutprt)
- getgunin.SoundId = "rbxassetid://873084310"
- getgunin.Volume = 2.5
- a = Instance.new('Shirt', char)
- b = Instance.new('Pants', char)
- a.ShirtTemplate = "rbxassetid://586664913"
- b.PantsTemplate = "rbxassetid://586718913"
- if settings.Self_Stats then
- hologram1 = Instance.new("Part", workspace.Camera)
- hologram1.BrickColor = BrickColor.new("Really black")
- hologram1.Transparency = 0.4
- hologram1.Name = "Sign"
- hologram1.CanCollide = false
- hologram1.CFrame = CFrame.new(42.3900032, 3.72000003, -25.2999992, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- hologram1.Anchored = true
- hologram1.FormFactor = Enum.FormFactor.Symmetric
- hologram1.Size = Vector3.new(14.6200008, 7.44000006, 0.299999952)
- g1 = Instance.new("SurfaceGui", hologram1)
- g1.AlwaysOnTop = true
- o1 = Instance.new("TextLabel", g1)
- o1.BackgroundColor3 = Color3.new(1, 1, 1)
- o1.BackgroundTransparency = 1
- o1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o1.Size = UDim2.new(1, 0, 1, 0)
- o1.Text = "N/A"
- o1.TextScaled = true
- o1.TextWrapped = true
- o1.TextColor3 = Color3.new(1, 1, 1)
- o1.TextStrokeTransparency = 0
- o1.Font = Enum.Font.SourceSansBold
- o1.FontSize = Enum.FontSize.Size48
- hologram2 = hologram1:Clone()
- hologram2.Parent = workspace.Camera
- end
- chr.Animate.Disabled=true
- local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
- local RunSpeed=30
- local WlkSpeed=16
- local SwimSpeed=14
- local SwimDashSpeed=28
- local anim = "Idling"
- local lastanim = "Idling"
- local val = 0
- local syne = 0
- local num = 0
- local runtime = 0
- local pseudohead=hed:Clone()
- for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
- pseudohead.Name='PseudoHead'
- pseudohead.Parent=chr.Head
- local pseudoweld=Instance.new('Weld',torso)
- pseudoweld.Part0=hed
- pseudoweld.Name='PseudoHedWld'
- pseudoweld.Part1=pseudohead
- hed.Transparency=1
- coroutine.wrap(function()
- for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
- function Lerp(a, b, i)
- local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
- local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
- local calx = com1[1] + (com2[1] - com1[1]) * i
- local caly = com1[2] + (com2[2] - com1[2]) * i
- local calz = com1[3] + (com2[3] - com1[3]) * i
- local cala = com1[4] + (com2[4] - com1[4]) * i
- local calb = com1[5] + (com2[5] - com1[5]) * i
- local calc = com1[6] + (com2[6] - com1[6]) * i
- return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
- end
- function TwnSingleNumber(s,f,m)
- local wot=s+(f-s)*m
- return wot
- end
- function TwnVector3(q,w,e)
- local begin={q.x,q.y,q.z}
- local ending={w.x,w.y,w.z}
- local bgx=begin[1]+(ending[1]-begin[1])*e
- local bgy=begin[2]+(ending[2]-begin[2])*e
- local bgz=begin[3]+(ending[3]-begin[3])*e
- return Vector3.new(bgx,bgy,bgz)
- end
- newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
- wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- local angles = CFrame.Angles
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- newWeld(law, torso, larm, -1.5, 0.5, 0)
- newWeld(raw, torso, rarm, 1.5, 0.5, 0)
- newWeld(llw, torso, lleg, -.5, -2, 0)
- newWeld(rlw, torso, rleg, .5, -2, 0)
- local rutwald=Instance.new('Weld',rutprt)
- rutwald.Part0=rutprt
- rutwald.Part1=torso
- rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
- rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
- --*\\
- function info(a)
- if not workspace.Camera:FindFirstChild(a.Name) and a.Name ~= plr.Name and a.Character and a.Character:FindFirstChild'HumanoidRootPart' then
- g1 = Instance.new("BillboardGui", workspace.Camera)
- g1.AlwaysOnTop = true
- g1.Size = UDim2.new(10, 0, 5, 0)
- g1.StudsOffset = Vector3.new(0, 6.5, 0)
- g1.Adornee = a.Character.Head
- g1.Name = a.Name
- o1 = Instance.new("Frame", g1)
- o1.BackgroundColor3 = Color3.new(1, 1, 1)
- o1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o1.BorderSizePixel = 0
- o1.Size = UDim2.new(1, 0, 1, 0)
- o2 = Instance.new("TextLabel", o1)
- o2.BackgroundColor3 = Color3.new(1, 1, 1)
- o2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o2.BorderSizePixel = 2
- o2.Name = "Studs"
- o2.Size = UDim2.new(1, 0, 0.20000000298023, 0)
- o2.Text = "N/A"
- o2.TextScaled = true
- o2.TextWrapped = true
- o2.TextColor3 = Color3.new(0.760784, 0, 0)
- o2.Font = Enum.Font.Code
- o2.FontSize = Enum.FontSize.Size28
- o3 = Instance.new("TextLabel", o1)
- o3.BackgroundColor3 = Color3.new(1, 1, 1)
- o3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o3.BorderSizePixel = 2
- o3.Name = "NAME"
- o3.Position = UDim2.new(0, 0, 0.20000000298023, 0)
- o3.Size = UDim2.new(1, 0, 0.20000000298023, 0)
- o3.Text = "N/A"
- o3.TextScaled = true
- o3.TextWrapped = true
- o3.TextColor3 = Color3.new(0.760784, 0, 0)
- o3.Font = Enum.Font.Code
- o3.FontSize = Enum.FontSize.Size28
- o4 = Instance.new("TextLabel", o1)
- o4.BackgroundColor3 = Color3.new(1, 1, 1)
- o4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o4.BorderSizePixel = 2
- o4.Name = "AccountAge"
- o4.Position = UDim2.new(0, 0, 0.40000000596046, 0)
- o4.Size = UDim2.new(1, 0, 0.20000000298023, 0)
- o4.Text = "N/A"
- o4.TextScaled = true
- o4.TextWrapped = true
- o4.TextColor3 = Color3.new(0.760784, 0, 0)
- o4.Font = Enum.Font.Code
- o4.FontSize = Enum.FontSize.Size28
- o5 = Instance.new("TextLabel", o1)
- o5.BackgroundColor3 = Color3.new(1, 1, 1)
- o5.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o5.BorderSizePixel = 2
- o5.Name = "UserId"
- o5.Position = UDim2.new(0, 0, 0.60000002384186, 0)
- o5.Size = UDim2.new(1, 0, 0.20000000298023, 0)
- o5.Text = "N/A"
- o5.TextScaled = true
- o5.TextWrapped = true
- o5.TextColor3 = Color3.new(0.760784, 0, 0)
- o5.Font = Enum.Font.Code
- o5.FontSize = Enum.FontSize.Size28
- o6 = Instance.new("TextLabel", o1)
- o6.BackgroundColor3 = Color3.new(1, 1, 1)
- o6.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
- o6.BorderSizePixel = 2
- o6.Name = "Health"
- o6.Position = UDim2.new(0, 0, 0.80000001192093, 0)
- o6.Size = UDim2.new(1, 0, 0.20000000298023, 0)
- o6.Text = "N/A"
- o6.TextScaled = true
- o6.TextWrapped = true
- o6.TextColor3 = Color3.new(0.760784, 0, 0)
- o6.Font = Enum.Font.Code
- o6.FontSize = Enum.FontSize.Size28
- end
- end
- function getcam()
- for _, a in pairs(workspace:children'') do
- if a:IsA'Camera' then return a end
- end
- end
- function chamsactivate()
- for _, a in pairs(plrs:players()) do
- if a.Name ~= plr.Name and a.Character and not cam:FindFirstChild("CHAMS_"..a.Name) then
- for i=0,5 do
- cam = getcam()
- local sg = Instance.new("SurfaceGui")
- table.insert(chams, sg)
- sg.Face = i
- sg.Parent = cam
- sg.Name = "CHAMS_"..a.Name
- sg.Adornee = a.Character:FindFirstChild"HumanoidRootPart"
- sg.AlwaysOnTop = true
- local f = Instance.new("Frame", sg)
- f.Size = UDim2.new(1,0,1,0)
- f.BorderSizePixel = 0
- f.BackgroundColor3 = Color3.new(1, 0, 0)
- f.BackgroundTransparency = 0.5
- end
- end
- end
- end
- function activate()
- stopanims = true
- activ:Play()
- green.Enabled = true
- green.TintColor = BrickColor.new('Forest green').Color
- green.Brightness = 1
- y = 10
- for i = 1,45 do
- wait()
- if green.Brightness >= 0.1 then
- green.Brightness = green.Brightness - 0.08
- end
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(145), math.rad(-1), math.rad(-20)),.2)
- end
- if not char:FindFirstChild'Pistol' then
- stopanims = false
- else
- for i = 1,50 do
- wait()
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(90), math.rad(4), math.rad(-10)),.2)
- end
- end
- end
- function deactivate()
- stopanims = true
- deactiv:Play()
- y = -10
- for i = 1,45 do
- wait()
- if green.TintColor.r <= 1 then
- green.TintColor = green.TintColor:lerp(Color3.new(1, 1, 1), 0.1)
- else
- green.Enabled = false
- end
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(145), math.rad(-1), math.rad(-20)),.2)
- end
- if not char:FindFirstChild'Pistol' then
- stopanims = false
- else
- for i = 1,50 do
- wait()
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(90), math.rad(4), math.rad(-10)),.2)
- end
- end
- end
- --// credits to a friend btw lol
- function CurrentDate(z)
- local z = math.floor(z / 86400) + 719468
- local era = math.floor(z / 146097)
- local doe = math.floor(z - era * 146097)
- local yoe = math.floor((doe - doe / 1460 + doe / 36524 - doe / 146096) / 365)
- local y = math.floor(yoe + era * 400)
- local doy = doe - math.floor((365 * yoe + yoe / 4 - yoe / 100))
- local mp = math.floor((5 * doy + 2) / 153)
- local d = math.ceil(doy - (153 * mp + 2) / 5 + 1)
- local m = math.floor(mp + (mp < 10 and 3 or -9))
- return y + (m <= 2 and 1 or 0), m, d
- end
- function CurrentTime(hoursOffset)
- local unixTime = math.floor(os.time()) - (60*60*(hoursOffset or 0))
- local hours = math.floor(unixTime / 3600 % 12)
- local minutes = math.floor(unixTime / 60 % 60)
- local seconds = math.floor(unixTime % 60)
- local year, month, day = CurrentDate(unixTime)
- return {
- year = year,
- month = month,
- day = day,
- hours = hours,
- minutes = minutes < 10 and "0" .. minutes or minutes,
- seconds = seconds < 10 and "0" .. seconds or seconds
- }
- end
- --date.month .. "/" .. date.day - 1 .. "/" .. date.year .. " " .. date.hours + 1 .. ":" .. date.minutes .. ":" .. date.seconds)
- --//
- function round(E)
- return E % 1 >= 0.5 and math.ceil(E) or math.floor(E)
- end
- function gunout()
- stopanims = true
- pistol = Instance.new('Part', char)
- pistol.Name = 'Pistol'
- pistol.Size = Vector3.new(0.2, 1.2, 0.7)
- pistol.Transparency = 1
- pistol.CanCollide = false
- mesh = Instance.new('SpecialMesh', pistol)
- mesh.MeshId= "http://www.roblox.com/asset/?id=72012879"
- mesh.TextureId = "http://www.roblox.com/asset/?id=72012859"
- mesh.Scale = Vector3.new(1.55, 1.55, 1.55)
- pistol.BrickColor = BrickColor.new('Toothpaste')
- weld = Instance.new('Weld', pistol)
- weld.Part0 = pistol
- weld.Part1 = rarm
- weld.C0 = CFrame.new(0, -1.45, -.35) * CFrame.Angles(math.rad(5), math.rad(180), math.rad(180))
- for i = 1,18 do
- wait()
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-15)),.2)
- end
- pistol.Transparency = 0
- getgunout:Play()
- for i = 1,50 do
- wait()
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(90), math.rad(4), math.rad(-10)),.2)
- end
- end
- function gunin()
- stopanims = true
- getgunin:Play()
- for i = 1,18 do
- wait()
- char["Pistol"].Transparency = char["Pistol"].Transparency + 0.08
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(-7), math.rad(0), math.rad(-15)),.2)
- end
- wait(.6)
- char["Pistol"]:Destroy''
- stopanims = false
- end
- mouse.KeyDown:connect(function(k)
- local key = k:lower()
- if key == "g" and not cooldown then
- cooldown = true
- if activated then
- activated = false
- deactivate()
- elseif not activated then
- activated = true
- activate()
- end
- wait(.4)
- cooldown = false
- end
- if tostring(key) == "1" and not cooldown then
- cooldown = true
- if not havegunout then
- havegunout = true
- gunout()
- else
- havegunout = false
- gunin()
- end
- wait(.5)
- cooldown = false
- end
- end)
- --//
- game:service'RunService'.RenderStepped:connect(function()
- local torsoface = torso.CFrame.lookVector
- local dist = nil
- local diff = nil
- if lerphead then
- local _, Point = workspace:FindPartOnRay(Ray.new(hed.CFrame.p, mouse.Hit.lookVector), workspace, false, true)
- dist = (hed.CFrame.p-Point).magnitude
- diff = hed.CFrame.Y-Point.Y
- local _, Point2 = workspace:FindPartOnRay(Ray.new(larm.CFrame.p, mouse.Hit.lookVector), workspace, false, true)
- asd.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- neck.C0 = neck.C0:lerp(neckC0*CFrame.Angles((math.tan(diff/dist)*1), 0, (((hed.CFrame.p-Point).Unit):Cross(torso.CFrame.lookVector)).Y*1), .1)
- else
- --
- end
- end)
- game:service'RunService'.RenderStepped:connect(function()
- cam = getcam()
- if activated then
- for _, a in pairs(game:service'Players':players()) do
- if not workspace.Camera:FindFirstChild(a.Name) and a.Name ~= plr.Name then
- info(a)
- chamsactivate()
- else
- if a.Name ~= plr.Name and a.Character and a.Character:FindFirstChildOfClass'Humanoid' and a.Character:FindFirstChild'HumanoidRootPart' then
- if game:service'Players':FindFirstChild(a.Name) then
- pcall(function()
- workspace.Camera[a.Name].Adornee = a.Character:FindFirstChild'Head'
- workspace.Camera["CHAMS_"..a.Name].Adornee = a.Character.HumanoidRootPart
- end)
- else
- pcall(function()
- workspace.Camera[a.Name]:Destroy''
- workspace.Camera["CHAMS_"..a.Name]:Destroy''
- end)
- end
- workspace.Camera[a.Name].Frame["UserId"].Text = "ID: "..a.UserId
- workspace.Camera[a.Name].Frame["AccountAge"].Text = "Age: "..a.AccountAge
- workspace.Camera[a.Name].Frame["NAME"].Text = "Name: "..a.Name
- workspace.Camera[a.Name].Frame["Health"].Text = "Health: "..round(a.Character:FindFirstChildOfClass'Humanoid'.Health)
- workspace.Camera[a.Name].Frame["Studs"].Text = "Distance: "..round((a.Character:FindFirstChild'HumanoidRootPart'.Position - char.HumanoidRootPart.Position).magnitude)
- end
- end
- end
- else
- for _, a in pairs(workspace.Camera:children'') do
- if a:IsA'BillboardGui' or a:IsA'SurfaceGui' then
- a:Destroy''
- end
- end
- end
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if settings.Self_Stats then
- hologram1.CFrame = hologram1.CFrame:lerp(char.Torso.CFrame * CFrame.new(10, y, -12) * CFrame.Angles(0, math.rad(150), math.rad(0)), 0.1)
- hologram2.CFrame = hologram2.CFrame:lerp(char.Torso.CFrame * CFrame.new(-10, y, -12) * CFrame.Angles(0, math.rad(210), math.rad(0)), 0.1)
- if activated then
- a = "Players: "..plrs.NumPlayers
- b = "Max Players: "..plrs.MaxPlayers
- d = "UserID: "..plr.UserId
- e = "Age: "..plr.AccountAge
- hologram1.Transparency = 0.5
- hologram2.Transparency = 0.5
- local date = CurrentTime(-7)
- f = "Date: "..date.month .. "/" .. date.day - 1 .. "/" .. date.year
- g = "Time: "..date.hours + 1 .. ":" .. date.minutes .. ":" .. date.seconds
- h = "Time of Day: "..game:service'Lighting'.TimeOfDay
- i = "Speed: "..hum.WalkSpeed
- hologram1.SurfaceGui.TextLabel.Text = a.."\n"..b.."\n"..d.."\n"..e
- hologram2.SurfaceGui.TextLabel.Text = f.."\n"..g.."\n"..h.."\n"..i
- else
- a,b,c,d,e,f,g,h = "","","","","","","",""
- hologram1.Transparency = 1
- hologram2.Transparency = 1
- hologram1.SurfaceGui.TextLabel.Text = a.."\n"..b.."\n"..c.."\n"..d.."\n"..e
- hologram2.SurfaceGui.TextLabel.Text = f.."\n"..g.."\n"..h
- end
- end
- end)
- game:service'RunService'.RenderStepped:connect(function()
- if anim~=lastanim then
- runtime=0
- end
- lastanim=anim
- hum.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
- syne=syne+.95
- if not otheranims and not swimming then
- if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not hum.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Idling"
- elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not hum.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Walking"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not hum.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
- anim="Sprinting"
- elseif torso.Velocity.y < -1 then
- anim='Jumping'
- elseif torso.Velocity.y < -1 then
- anim='Falling'
- end
- end
- if anim=="Idling" and hum.WalkSpeed ~= 0 then
- idlesineinc=35
- if calm == true then
- if not stopanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.55+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(1),math.rad(0),math.rad(6)),.1)
- end
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.55+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(0),0,math.rad(-6)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(0),math.rad(0)),.1)
- end
- end
- if anim=="Walking" then
- if not stopanims then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
- end
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
- end
- if anim=="Falling" or anim=="Jumping" then
- rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
- larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
- lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
- rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
- rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
- end
- end)
- --[[
- https://hastebin.com/raw/vawejedisu
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement