SHARE
TWEET

hammer

ezkatka1337 Sep 9th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  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 UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  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.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86. ------------------------------------------------------------------------
  87.                         -- Made by Cronizete --
  88. ------------------------------------------------------------------------
  89.  
  90. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  91. do
  92.     --print("FE Compatibility code by Mokiros")
  93.     script.Parent = Player.Character
  94.  
  95.     --RemoteEvent for communicating
  96.     local Event = Instance.new("RemoteEvent")
  97.     Event.Name = "UserInput_Event"
  98.  
  99.     --Fake event to make stuff like Mouse.KeyDown work
  100.     local function fakeEvent()
  101.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  102.         t.connect = t.Connect
  103.         return t
  104.     end
  105.  
  106.     --Creating fake input objects with fake variables
  107.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  108.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  109.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  110.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  111.     end}
  112.     --Merged 2 functions into one by checking amount of arguments
  113.     CAS.UnbindAction = CAS.BindAction
  114.  
  115.     --This function will trigger the events that have been :Connect()'ed
  116.     local function te(self,ev,...)
  117.         local t = m[ev]
  118.         if t and t._fakeEvent and t.Function then
  119.             t.Function(...)
  120.         end
  121.     end
  122.     m.TrigEvent = te
  123.     UIS.TrigEvent = te
  124.  
  125.     Event.OnServerEvent:Connect(function(plr,io)
  126.         if plr~=Player then return end
  127.         if io.isMouse then
  128.             m.Target = io.Target
  129.             m.Hit = io.Hit
  130.         else
  131.             local b = io.UserInputState == Enum.UserInputState.Begin
  132.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  133.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  134.             end
  135.             for _,t in pairs(CAS.Actions) do
  136.                 for _,k in pairs(t.Keys) do
  137.                     if k==io.KeyCode then
  138.                         t.Function(t.Name,io.UserInputState,io)
  139.                     end
  140.                 end
  141.             end
  142.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  143.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  144.         end
  145.     end)
  146.     Event.Parent = NLS([==[
  147.     local Player = owner
  148.     local Event = script:WaitForChild("UserInput_Event")
  149.  
  150.     local UIS = game:GetService("UserInputService")
  151.     local input = function(io,a)
  152.         if a then return end
  153.         --Since InputObject is a client-side instance, we create and pass table instead
  154.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  155.     end
  156.     UIS.InputBegan:Connect(input)
  157.     UIS.InputEnded:Connect(input)
  158.  
  159.     local h,t
  160.     --Give the server mouse data 30 times every second, but only if the values changed
  161.     --If player is not moving their mouse, client won't fire events
  162.     while wait(1/30) do
  163.         if h~=Mouse.Hit or t~=Mouse.Target then
  164.             h,t=Mouse.Hit,Mouse.Target
  165.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  166.         end
  167.     end]==],Player.Character)
  168.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  169. end
  170.  
  171. ------------------------------------------------------------------------
  172.                             -- Things --
  173. ------------------------------------------------------------------------
  174.  
  175. plr = owner
  176. char = plr.Character
  177. lleg,rleg,larm,rarm,hed = char["Left Leg"],char["Right Leg"],char["Left Arm"],char["Right Arm"],char["Head"]
  178. rutprt,torso = char.HumanoidRootPart,char.Torso
  179. otheranims,swimming,hum,stopanim,cooldown = false,false,char:FindFirstChildOfClass'Humanoid',false,false
  180. TweenService = game:GetService("TweenService")
  181. stopanim2 = false -- larm
  182. stopanim3 = false -- head
  183.  
  184. hammer = Instance.new('Part', char)
  185. hammer.Name = "Hammer"
  186. hammer.CanCollide = true
  187. hammer.Position = char.Head.Position
  188. hammer.Size = Vector3.new(1.71, 1.31, 3.2)
  189. hammer.Locked = true
  190. mesh = Instance.new('SpecialMesh', hammer)
  191. mesh.MeshId = "rbxassetid://12592754"
  192. mesh.TextureId = "rbxassetid://12592745"
  193. mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
  194.  
  195. fx = Instance.new('Part', char)
  196. fx.Anchored = false
  197. fx.CanCollide = false
  198. fx.Transparency = 1
  199. fx.Size = Vector3.new(1.77, 0.85, 1.05)
  200. weld = Instance.new('Weld', fx)
  201. weld.Part0 = fx
  202. weld.Part1 = hammer
  203. weld.C0 = CFrame.new(0, 0, -1.2)
  204.  
  205. func = hammer.Touched:connect(function(hit)
  206.     if not hit.Parent:FindFirstChildOfClass'Humanoid' then
  207.         wait(1)
  208.         hammer.Anchored = true
  209.         func:disconnect()
  210.     end
  211. end)
  212.  
  213. function gettorso(a)
  214.     return a:FindFirstChild'Torso' or a:FindFirstChild'UpperTorso' or a:FindFirstChild'LowerTorso' or a:FindFirstChild'HumanoidRootPart'
  215. end
  216.  
  217. ------------------------------------------------------------------------
  218.                         -- Animate Stuff --
  219. ------------------------------------------------------------------------
  220. char.Animate.Disabled=true
  221. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  222. local RunSpeed=30
  223.  
  224. local WlkSpeed=16
  225. local SwimSpeed=14
  226. local SwimDashSpeed=28
  227. local anim = "Idling"
  228. local lastanim = "Idling"
  229. local val = 0
  230. local syne = 0
  231. local num = 0
  232. local runtime = 0
  233. local pseudohead=hed:Clone()
  234. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  235. pseudohead.Name='PseudoHead'
  236. pseudohead.Parent=char.Head
  237. local pseudoweld=Instance.new('Weld',torso)
  238. pseudoweld.Part0=hed
  239. pseudoweld.Name='PseudoHedWld'
  240. pseudoweld.Part1=pseudohead
  241. hed.Transparency=1
  242.  
  243. coroutine.wrap(function() for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  244.  
  245. function Lerp(a, b, i)
  246.     local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  247.     local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  248.     local calx = com1[1] + (com2[1] - com1[1]) * i
  249.     local caly = com1[2] + (com2[2] - com1[2]) * i
  250.     local calz = com1[3] + (com2[3] - com1[3]) * i
  251.     local cala = com1[4] + (com2[4] - com1[4]) * i
  252.     local calb = com1[5] + (com2[5] - com1[5]) * i
  253.     local calc = com1[6] + (com2[6] - com1[6]) * i
  254.     return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  255. end
  256.  
  257. function TwnSingleNumber(s,f,m)
  258.     local wot=s+(f-s)*m
  259.     return wot
  260. end
  261.  
  262. function TwnVector3(q,w,e)
  263.     local begin={q.x,q.y,q.z}
  264.     local ending={w.x,w.y,w.z}
  265.     local bgx=begin[1]+(ending[1]-begin[1])*e
  266.     local bgy=begin[2]+(ending[2]-begin[2])*e
  267.     local bgz=begin[3]+(ending[3]-begin[3])*e
  268.     return Vector3.new(bgx,bgy,bgz)
  269. end
  270.  
  271. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  272.     wld = Instance.new("Weld", wp1)
  273.     wld.Part0 = wp0
  274.     wld.Part1 = wp1
  275.     wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  276. end
  277.  
  278. local angles = CFrame.Angles
  279. function clerp(a, b, t)
  280.     return a:lerp(b, t)
  281. end
  282.  
  283. newWeld(law, torso, larm, -1.5, 0.5, 0)
  284. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  285. newWeld(llw, torso, lleg, -.5, -2, 0)
  286. newWeld(rlw, torso, rleg, .5, -2, 0)
  287. newWeld(hw, torso, hed, 0, 1.5, 0)
  288. local rutwald=Instance.new('Weld',rutprt)
  289. rutwald.Part0=rutprt
  290. rutwald.Part1=torso
  291. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  292. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  293. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  294. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  295. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  296.  
  297. ------------------------------------------------------------------------
  298.                              -- idk --
  299. ------------------------------------------------------------------------
  300.  
  301. wind = Instance.new('Sound', hammer)
  302. wind.SoundId = "rbxassetid://866649671"
  303. wind.PlaybackSpeed = 1.5
  304. wind.Volume = 1
  305. wind.Looped = true
  306.  
  307. grab = Instance.new('Sound', rarm)
  308. grab.SoundId = "rbxassetid://1296135936"
  309. grab.Volume = 1
  310. grab.Looped = false
  311.  
  312. drop = Instance.new('Sound', hammer)
  313. drop.SoundId = "rbxassetid://873196972"
  314. drop.Volume = 1
  315. drop.Looped = false
  316.  
  317. ghit = Instance.new('Sound', hammer)
  318. ghit.SoundId = "rbxassetid://873196789"
  319. ghit.Volume = 5
  320. ghit.Looped = false
  321.  
  322. gyro = Instance.new('BodyGyro', hammer)
  323. gyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  324. gyro.CFrame = CFrame.Angles(math.rad(90), 0, 0)
  325.  
  326. holding = false
  327.  
  328. fakearm = rarm:Clone()
  329. fakearm.Name = "fakearm"
  330. fakearm:ClearAllChildren''
  331. fakearm.Parent = char
  332. fakearm.Transparency = 1
  333. fakearm.CanCollide = false
  334. weld = Instance.new('Weld', fakearm)
  335. weld.Part0 = fakearm
  336. weld.Part1 = rarm
  337. weld.C0 = CFrame.new(0, 0, 1)
  338.  
  339. ------------------------------------------------------------------------
  340.                             -- Lightning --
  341. ------------------------------------------------------------------------
  342.  
  343. Part0 = Instance.new("Part")
  344. ParticleEmitter1 = Instance.new("ParticleEmitter")
  345. Part0.Name = "lightning"
  346. Part0.Parent = nil
  347. Part0.Transparency = 1
  348. Part0.FormFactor = Enum.FormFactor.Symmetric
  349. Part0.Size = Vector3.new(0.820000052, 1.76999962, 2)
  350. Part0.CFrame = CFrame.new(26.3400002, 0.884999812, 44.9500122, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  351. Part0.Position = Vector3.new(26.3400002, 0.884999812, 44.9500122)
  352. ParticleEmitter1.Name = "Lightning"
  353. ParticleEmitter1.Parent = Part0
  354. ParticleEmitter1.Rotation = NumberRange.new(0, 360)
  355. ParticleEmitter1.Size = NumberSequence.new(1.0429447889328,3.3742332458496,0,3.3435583114624,0,3.3742332458496,0,3.6503071784973,0.030674934387207,3.7730062007904,0,3.8036811351776,0,3.8343560695648,0,3)
  356. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.27451, 0.607843, 1),Color3.new(1, 1, 1))
  357. ParticleEmitter1.LightEmission = 1
  358. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=243098098"
  359. ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
  360. ParticleEmitter1.Rate = 12312311808
  361. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  362. ParticleEmitter1.Enabled = true
  363. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.27451, 0.607843, 1),Color3.new(1, 1, 1))
  364.  
  365. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans)
  366.     local magz = (Part0 - Part1).magnitude
  367.     local curpos = Part0
  368.     local trz = {-Offset,Offset}
  369.     for i=1,Times do
  370.         local li = Instance.new("Part", torso)
  371.         li.Name = "Lightning"
  372.         li.TopSurface =0
  373.         li.Material = "Neon"
  374.         li.BottomSurface = 0
  375.         li.Anchored = true
  376.         li.Locked = true
  377.         li.Transparency = Trans or 0.4
  378.         li.BrickColor = BrickColor.new(Color)
  379.         li.formFactor = "Custom"
  380.         li.CanCollide = false
  381.         li.Size = Vector3.new(Thickness,Thickness,magz/Times)
  382.         local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  383.         local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  384.        
  385.         if Times == i then
  386.             local magz2 = (curpos - Part1).magnitude
  387.             li.Size = Vector3.new(Thickness,Thickness,magz2)
  388.             li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  389.         else
  390.             li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  391.         end
  392.  
  393.         curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  394.         game.Debris:AddItem(li,.1)
  395.     end
  396. end
  397.  
  398. BodyParts = {}
  399. Bounding = {}
  400. --table.insert(BodyParts, fx)
  401.  
  402. for _, v in pairs(BodyParts) do
  403.     local temp = {X=nil, Y=nil, Z=nil}
  404.     temp.X = v.Size.X/2 * 10
  405.     temp.Y = v.Size.Y/2 * 10
  406.     temp.Z = v.Size.Z/2 * 10
  407.     Bounding[v.Name] = temp
  408. end
  409.  
  410. spawn(function()
  411.     while wait(math.random(1,7)/10) do
  412.         if #BodyParts ~= 0 and #Bounding ~= 0 then
  413.             local Body1 = BodyParts[math.random(#BodyParts)]
  414.             local Body2 = BodyParts[math.random(#BodyParts)]
  415.             local Pos1 = Vector3.new(
  416.                 math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/10,
  417.                 math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/10,
  418.                 math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/10
  419.         )
  420.             local Pos2 = Vector3.new(
  421.                 math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/10,
  422.                 math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/10,
  423.                 math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/10
  424.         )
  425.             local SPos1 = Body1.Position + Pos1
  426.             local SPos2 = Body2.Position + Pos2
  427.             Lightning(SPos1, SPos2, 4, 3, "Cyan", .3, .56)
  428.         end
  429.     end
  430. end)
  431.  
  432. ------------------------------------------------------------------------
  433.                             -- Keys --
  434. ------------------------------------------------------------------------
  435.  
  436. using = false
  437.  
  438. function weldhammer()
  439.     hammer.Anchored = false
  440.     hammer.CanCollide = false
  441.     grab:Play()
  442.     weld = Instance.new('Weld', hammer)
  443.     weld.Part0 = rarm
  444.     weld.Part1 = hammer
  445.     weld.C0 = CFrame.new(0, -0.6, -0.7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90))
  446. end
  447.  
  448. function gethammer()
  449.     if (fakearm.Position - hammer.Position).magnitude >= 15 then
  450.         stopanim = true
  451.         using = true
  452.         hammer.CanCollide = false
  453.         hammer.Anchored = true
  454.         wind:Play()
  455.        
  456. --      a = hammer.Touched:connect(function(hit)
  457. --          if hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= plr.Name then
  458. --              ghit:Play()
  459. --              if hit.Parent:FindFirstChildOfClass'Humanoid'.MaxHealth <= 100 and hit.Parent:FindFirstChild'HumanoidRootPart' then
  460. --                  hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(hit.Parent:FindFirstChildOfClass'Humanoid'.MaxHealth/2/2/2)
  461. --              elseif not hit.Parent:FindFirstChildOfClass'Humanoid'.MaxHealth <= 100 then
  462. --                  hit.Parent:BreakJoints''
  463. --              elseif hit:IsA'Part' or hit:IsA'MeshPart' or hit:IsA'BasePart' or hit:IsA'UnionOperation' then
  464. --                  hit.Anchored = false
  465. --                  bv = Instance.new('BodyVelocity', hit)
  466. --                  bv.MaxForce = Vector3.new(2e9, 2e9, 2e9)
  467. --                  bv.Velocity = -hit.CFrame.lookVector * 50
  468. --                  game:service'Debris':AddItem(bv, 0.2)
  469. --              end
  470. --          end
  471. --      end)
  472.        
  473.         for i = 0,4 do
  474.             wait()
  475.             rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(140)), .1)
  476.         end
  477.         repeat wait()
  478.         hammer.CFrame = clerp(hammer.CFrame, fakearm.CFrame * CFrame.new(0, -0.6, 0) * CFrame.Angles(0, math.rad(180), math.rad(90)), .1)
  479.         if (fakearm.Position - hammer.Position).magnitude >= 3 then
  480.             wind.Volume = 3
  481.         else
  482.             wind.Volume = (fakearm.Position - hammer.Position).magnitude
  483.         end
  484.         until (fakearm.Position - hammer.Position).magnitude <= .7
  485.        
  486.         a:disconnect()
  487.         hammer.Anchored = false
  488.         hammer.CanCollide = false
  489.         weldhammer()
  490.         wind:Stop()
  491.         wait(.3)
  492.         stopanim = false
  493.         using = false
  494.     end
  495. end
  496.  
  497. function drophammer()
  498.     a = hammer.Touched:connect(function(hit)
  499.         if not hit.Parent:FindFirstChildOfClass'Humanoid' then
  500.             drop:Play()
  501.             wait(1)
  502.             hammer.Anchored = true
  503.             a:disconnect()
  504.         end
  505.     end)
  506.    
  507.     hammer.Anchored = false
  508.     for _, a in pairs(hammer:children'') do
  509.         if a:IsA'Weld' then
  510.             a:Destroy''
  511.         end
  512.     end
  513.     hammer.CanCollide = true
  514. end
  515.  
  516. function attacktargets()
  517.     if #targets >= 1 and holding then
  518.         using = true
  519.         hum.WalkSpeed = 0
  520.         hum.JumpPower = 0
  521.        
  522.         for i = 1,75 do
  523.             swait()
  524.             larm.Weld.C0 = clerp(larm.Weld.C0, larm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(math.rad(91), math.rad(-6), math.rad(-19)), 0.1)
  525.             rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(-math.rad(-165), math.rad(0), math.rad(0)), 0.1)
  526.         end
  527.         hum.WalkSpeed = 16
  528.         hum.JumpPower = 50
  529.         hammer.Anchored = true
  530.         for _, a in pairs(hammer:children'') do
  531.             if a:IsA'Weld' then
  532.                 a:Destroy''
  533.             end
  534.         end
  535.         hammer.CanCollide = false
  536.         holding = false
  537.         for _, a in pairs(targets) do
  538.             ttorso = gettorso(a)
  539.             if a ~= nil and gettorso(a) and a:FindFirstChildOfClass'Humanoid' then
  540.                 repeat wait() a:FindFirstChildOfClass'Humanoid'.WalkSpeed = 5 hammer.CFrame = clerp(hammer.CFrame, ttorso.CFrame * CFrame.Angles(0, math.rad(ttorso.CFrame.lookVector.Y), 0), 0.1) until (hammer.Position - ttorso.Position).magnitude <= 6
  541.                 a:BreakJoints''
  542.                 ghit:Play()
  543.             end
  544.         end
  545.         for _, a in pairs(rotate) do
  546.             if a ~= nil then
  547.                 a:Destroy''
  548.             end
  549.         end
  550.         targets = {}
  551.         rotate = {}
  552.         hammer.CanCollide = false
  553.        
  554.        
  555.        
  556.         stopanim = true
  557.         hammer.CanCollide = false
  558.         hammer.Anchored = true
  559.         wind:Play()
  560.        
  561.         for i = 0,4 do
  562.             wait()
  563.             rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(math.rad(0), math.rad(0), math.rad(140)), .1)
  564.         end
  565.         repeat wait()
  566.         hammer.CFrame = clerp(hammer.CFrame, fakearm.CFrame * CFrame.new(0, -0.6, 0) * CFrame.Angles(0, math.rad(180), math.rad(90)), .13)
  567.         if (fakearm.Position - hammer.Position).magnitude >= 3 then
  568.             wind.Volume = 3
  569.         else
  570.             wind.Volume = (fakearm.Position - hammer.Position).magnitude
  571.         end
  572.         until (fakearm.Position - hammer.Position).magnitude <= .7
  573.        
  574.         hammer.Anchored = false
  575.         hammer.CanCollide = false
  576.         weldhammer()
  577.         wind:Stop()
  578.         holding = true
  579.         wait(.3)
  580.         stopanim = false
  581.         using = false
  582.     end
  583. end
  584.  
  585. function bgrab()
  586.     for _, a in pairs(workspace:children'') do
  587.         if a:FindFirstChildOfClass'Humanoid' and gettorso(a) and a.Name ~= plr.Name then
  588.             ttorso = gettorso(a)
  589.             if (ttorso.Position - rutprt.Position).magnitude <= 3 then
  590.                 using = true
  591.                 target2 = a
  592.                 stopanim2 = true
  593.                 target:FindFirstChildOfClass'Humanoid'.WalkSpeed = 0
  594.                 target:FindFirstChildOfClass'Humanoid'.JumpPower = 0
  595.                 hum.WalkSpeed = 0
  596.                 hum.JumpPower = 0
  597.                 for i = 0,25 do
  598.                     swait()
  599.                     larm.Weld.C0 = clerp(larm.Weld.C0, CFrame.new(-1.5,.525,0) * CFrame.Angles(math.rad(100), math.rad(20), math.rad(20)), 0.1)
  600.                 end
  601.                 weld = Instance.new('Weld', rutprt)
  602.                 weld.Part0 = rutprt
  603.                 weld.Part1 = ttorso
  604.                 weld.C0 = CFrame.new(-0.5, 0, -1.2)
  605.                
  606.                 wait(.1)
  607.                
  608.                
  609.                 ttorso.Anchored = true
  610.                 b = Instance.new('Part', char)
  611.                 b.Anchored = true
  612.                 b.CanCollide = false
  613.                 b.Transparency = 1
  614.                 b.CFrame = hed.CFrame
  615.                 b.Position = hed.Position + Vector3.new(0, 50, 0) + hed.CFrame.lookVector * 500
  616.                
  617.                 d = Instance.new('Part', char)
  618.                 d.Anchored = true
  619.                 d.CanCollide = false
  620.                 d.Transparency = 1
  621.                 d.CFrame = hed.CFrame
  622.                 d.Position = hed.Position - Vector3.new(0, 5.6, 0) + hed.CFrame.lookVector * -45
  623.                
  624.                 wait(.5)
  625.                 for i = 1,75 do
  626.                     swait()
  627.                     rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(-math.rad(-165), math.rad(0), math.rad(0)), 0.1)
  628.                 end
  629.                 drophammer()
  630.                 wind:Play()
  631.                
  632.                 repeat wait()
  633.                     hammer.Anchored = true
  634.                     hammer.CFrame = clerp(hammer.CFrame, b.CFrame, 0.1)
  635.                     wind.Volume = (hammer.Position - d.Position).magnitude
  636.                 until (hammer.Position - b.Position).magnitude <= 5
  637.                
  638.                 repeat wait()
  639.                     hammer.Anchored = true
  640.                     hammer.CFrame = clerp(hammer.CFrame, d.CFrame, 0.1)
  641.                     wind.Volume = (hammer.Position - d.Position).magnitude
  642.                 until (hammer.Position - d.Position).magnitude <= 45
  643.                
  644.                 target2:BreakJoints''
  645.                 ghit:Play()
  646.                 wind:Stop()
  647.                 wait(.1)
  648.                 stopanim2 = false
  649.                 hum.WalkSpeed = 16
  650.                 hum.JumpPower = 50
  651.                 b:Destroy''
  652.                 d:Destroy''
  653.                 hammer.Anchored = false
  654.                 weldhammer()
  655.                 grab:Play()
  656.                 using = false
  657.             end
  658.         end
  659.     end
  660. end
  661.  
  662. function shield()
  663.     using = true
  664.     hum.WalkSpeed = 0
  665.     hum.JumpPower = 0
  666.     for i = 1,75 do
  667.         swait()
  668.         larm.Weld.C0 = clerp(larm.Weld.C0, larm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(math.rad(91), math.rad(-6), math.rad(-19)), 0.1)
  669.         rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(-math.rad(-165), math.rad(0), math.rad(0)), 0.1)
  670.     end
  671.     hum.WalkSpeed = 16
  672.     hum.JumpPower = 50
  673.     drophammer()
  674.     hammer.Anchored = true
  675.     hammer.CanCollide = true
  676.     using = false
  677. end
  678.  
  679. function stopshield()
  680.     gethammer()
  681. end
  682.  
  683. --function transform()
  684. --  stopanim = true
  685. --  stopanim3 = true
  686. --  hum.WalkSpeed = 0
  687. --  hum.JumpPower = 0
  688. --  for i = 0,7 do
  689. --      wait()
  690. --      hammer.Weld.C0 = clerp(hammer.Weld.C0, CFrame.new(0, -2.5, -0.7) * CFrame.Angles(math.rad(-85), math.rad(180), math.rad(90)), 0.1)
  691. --      rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(-math.rad(-179), math.rad(0), math.rad(15)), 0.1)
  692. --      hed.Weld.C0 = clerp(hed.Weld.C0, hed.Weld.C0 * CFrame.new(0,0,0.2)*CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.1)
  693. --  end
  694. --  a = Instance.new('Part', char)
  695. --  a.Name = "hello"
  696. --  a.Size = Vector3.new(0.2, 0.2, 0.2)
  697. --  a.Anchored = true
  698. --  a.CanCollide = false
  699. --  a.Position = hammer.Position + Vector3.new(0, 75, 0)   
  700. -- 
  701. --  wait(3)
  702. --  table.insert(BodyParts, fx)
  703. --  wait(4)
  704. -- 
  705. --  spawn(function()
  706. --      for i = 0,45 do
  707. --          swait()
  708. --          hammer.Weld.C0 = clerp(hammer.Weld.C0, CFrame.new(0, -0.6, -0.7) * CFrame.Angles(math.rad(0), math.rad(180), math.rad(90)), 0.07)
  709. --      end
  710. --  end)
  711. -- 
  712. --  hum.WalkSpeed = 16
  713. --  hum.JumpPower = 50
  714. --  stopanim = false
  715. --  stopanim3 = false
  716. --end
  717.  
  718. ------------------------------------------------------------------------
  719.                             -- Target --
  720. ------------------------------------------------------------------------   
  721.  
  722. bg = Instance.new('BillboardGui', plr.PlayerGui)
  723. bg.Size = UDim2.new(15, 0, 15, 0)
  724. bg.AlwaysOnTop = true
  725. il = Instance.new('ImageLabel', bg)
  726. il.Image = "rbxassetid://142406345"
  727. il.BackgroundTransparency = 1
  728. il.Size = UDim2.new(1, 0, 1, 0)
  729. il.ImageColor3 = Color3.new(0,0,0)
  730.  
  731. home = false
  732. down = false
  733. barrier = false
  734. targets = {}
  735. rotate = {}
  736.  
  737. mouse.KeyDown:connect(function(k)
  738.     key = k:lower()
  739.     if key == "g" and not barrier and not using then
  740.         attacktargets()
  741.     end
  742.    
  743.     if key == "e" and not cooldown and not barrier and not using then
  744.         cooldown = true
  745.         if not holding and (fakearm.Position - hammer.Position).magnitude >= 15 then
  746.             holding = true
  747.             gethammer()
  748.         elseif holding then
  749.             holding = false
  750.             drophammer()
  751.         end
  752.         wait(.3)
  753.         cooldown = false
  754.     end
  755.        
  756.     if key == "q" and not cooldown and holding and not barrier and not using then
  757.         cooldown = true
  758.         using = true
  759.         hum.WalkSpeed = 0
  760.         hum.JumpPower = 0
  761.         for i = 1,75 do
  762.             swait()
  763.             larm.Weld.C0 = clerp(larm.Weld.C0, larm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(math.rad(91), math.rad(-6), math.rad(-19)), 0.1)
  764.             rarm.Weld.C0 = clerp(rarm.Weld.C0, rarm.Weld.C0 * CFrame.new(0,0,0)*CFrame.Angles(-math.rad(-165), math.rad(0), math.rad(0)), 0.1)
  765.         end
  766.         hum.WalkSpeed = 16
  767.         hum.JumpPower = 50
  768.         holding = false
  769.         drophammer()
  770.         for i = 1,25 do
  771.             wait()
  772.             hammer.CFrame = clerp(hammer.CFrame, CFrame.new(9999,0,9999), 0.1)
  773.         end
  774.         wait(.5)
  775.         cooldown = false
  776.         using = false
  777.     end
  778.    
  779.     if key == "f" and holding and not cooldown and not barrier and not using then
  780.         cooldown = true
  781.         bgrab()
  782.         wait(.2)
  783.         cooldown = false
  784.     end
  785.    
  786.     if key == "v" and holding and not using then
  787.         if not barrier then
  788.             shield()
  789.             barrier = true
  790.         else
  791.             barrier = false
  792.             stopshield()
  793.         end
  794.     end
  795. end)
  796.  
  797. mouse.Button1Down:connect(function()
  798.     if home and holding then
  799.         clone = bg:clone()
  800.         clone.Parent = plr.PlayerGui
  801.         clone.ImageLabel.ImageColor3 = Color3.new(255,255,255)
  802.         clone.Name = "hi"
  803.         if gettorso(mouse.Target.Parent) then
  804.             clone.Adornee = gettorso(mouse.Target.Parent)
  805.             table.insert(targets, mouse.Target.Parent)
  806.             table.insert(rotate, clone)
  807.         elseif not gettorso(mouse.Target.Parent) then
  808.             clone:Destroy''
  809.         end
  810.     end
  811. end)
  812.  
  813. spawn(function()
  814.     while wait() do
  815.        
  816.         il.Rotation = il.Rotation + 5
  817.         if holding and mouse.Target and mouse.Target.Parent and gettorso(mouse.Target.Parent) and mouse.Target.Parent:FindFirstChildOfClass'Humanoid' and mouse.Target.Parent:FindFirstChildOfClass'Humanoid'.Health ~= 0 then
  818.             target = mouse.Target.Parent
  819.            
  820.             home = true
  821.             il.ImageTransparency = 0
  822.             bg.Adornee = gettorso(target)
  823.         elseif not mouse.Target then
  824.             il.ImageTransparency = 1
  825.             home = false
  826.         elseif not mouse.Target.Parent then
  827.             il.ImageTransparency = 1
  828.             home = false
  829.         elseif not mouse.Target.Parent:FindFirstChildOfClass'Humanoid' then
  830.             il.ImageTransparency = 1
  831.             home = false
  832.         end
  833.        
  834.     end
  835. end)
  836.  
  837. spawn(function()
  838.     while wait() do
  839.         for _, a in pairs(rotate) do
  840.             if a ~= nil then
  841.                 a.ImageLabel.Rotation = a.ImageLabel.Rotation + 5
  842.             elseif targets <= 0 then
  843.                 a:Destroy''
  844.             end
  845.         end
  846.     end
  847. end)
  848.  
  849. ------------------------------------------------------------------------
  850.                           -- Manual Pickup --
  851. ------------------------------------------------------------------------   
  852.  
  853. hammer.Touched:connect(function(hit)
  854.     if not holding and not using and hammer.Anchored and hit.Parent.Name == plr.Name then
  855.         holding = true
  856.         hammer.Anchored = false
  857.         hammer.CanCollide = false
  858.         weldhammer()
  859.     end
  860. end)
  861.  
  862. ------------------------------------------------------------------------
  863.                      -- Important functions --
  864. ------------------------------------------------------------------------
  865.  
  866. died = false
  867.  
  868. function swait(num)
  869.     if num == 0 or num == nil then
  870.         game:service("RunService").Stepped:wait(0)
  871.     else
  872.         for i = 0, num do
  873.             game:service("RunService").Stepped:wait(0)
  874.         end
  875.     end
  876. end
  877.  
  878. spawn(function()
  879.     while wait() do
  880.         if holding and hammer:FindFirstChildOfClass'Weld' then
  881.             hammer.Anchored = false
  882.         end
  883.     end
  884. end)
  885.  
  886. x = 0
  887. spawn(function()
  888.     while wait() do
  889.         if barrier then
  890.             x = x + 0.6
  891.             hammer.CFrame = rutprt.CFrame * CFrame.Angles(0,0.1-x,0) * CFrame.new(25,0,0)
  892.            
  893.             for _, a in pairs(workspace:children'') do
  894.                 ttorso = gettorso(a)
  895.                 if a:FindFirstChildOfClass'Humanoid' and a:FindFirstChildOfClass'Humanoid'.Health ~= 0 and a.Name ~= plr.Name and gettorso(a) and (ttorso.Position - hammer.Position).magnitude <= 15 then
  896.                     a:BreakJoints''
  897.                     ghit:Play()
  898.                 elseif a:FindFirstChildOfClass'Humanoid' and not gettorso(a) then
  899.                     a:BreakJoints''
  900.                 end
  901.             end
  902.            
  903.             for _, a in pairs(workspace:children'') do
  904.                 ttorso = gettorso(a)
  905.                 if a:FindFirstChildOfClass'Humanoid' and a:FindFirstChildOfClass'Humanoid'.Health ~= 0 and a.Name ~= plr.Name and gettorso(a) and (ttorso.Position - rutprt.Position).magnitude <= 10 then
  906.                     a:BreakJoints''
  907.                     ghit:Play()
  908.                 elseif a:FindFirstChildOfClass'Humanoid' and not a:FindFirstChild'HumanoidRootPart' then
  909.                     a:BreakJoints''
  910.                 end
  911.             end
  912.            
  913.             if x == 1 then
  914.                 x = 0.1
  915.             end
  916.         end
  917.     end
  918. end)
  919.  
  920. ------------------------------------------------------------------------
  921.                            -- Animations --
  922. ------------------------------------------------------------------------
  923.  
  924. while true do
  925.     swait()
  926.    
  927.     if holding then
  928.         gyro.Parent = nil
  929.     elseif not holding then
  930.         gyro.Parent = hammer
  931.         gyro.Name = "hamma"
  932.     end
  933.    
  934.     ypcall(function()
  935.         if anim~=lastanim then
  936.             runtime=0
  937.         end
  938.         lastanim=anim
  939.         hum.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  940.         syne=syne+.95
  941.         if not otheranims and not swimming then
  942.             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
  943.                 anim="Idling"
  944.             elseif hum.FloorMaterial ~= Enum.Material.Air and (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
  945.                 anim="Walking"
  946.             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
  947.                 anim="Sprinting"
  948.             elseif torso.Velocity.y < -1 then
  949.                 anim='Falling'
  950.             end
  951.         end
  952.    
  953.         if anim=="Idling" and hum.WalkSpeed ~= 0 then
  954.             idlesineinc=35
  955.            
  956.             if not stopanim then
  957.                 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)
  958.             end
  959.            
  960.             if not stopanim2 then
  961.                 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)
  962.             end
  963.            
  964.             if not stopanim3 then
  965.                 hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  966.             end
  967.            
  968.             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)
  969.             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)
  970.             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)
  971.         end
  972.        
  973.         if anim=="Walking" and hum.WalkSpeed ~= 0 then
  974.             if not stopanim then
  975.                 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)
  976.             end
  977.            
  978.             if not stopanim2 then
  979.                 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)
  980.             end
  981.            
  982.             if not stopanim3 then
  983.                 hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  984.             end
  985.            
  986.             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)
  987.             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)
  988.             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)
  989.         end
  990.        
  991.         if hum.WalkSpeed == 0 then
  992.             if not stopanim then
  993.                 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)
  994.             end
  995.            
  996.             if not stopanim2 then
  997.                 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)
  998.             end
  999.            
  1000.             if not stopanim3 then
  1001.                 hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,0,0),.1)
  1002.             end
  1003.            
  1004.             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)
  1005.             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)
  1006.             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)
  1007.         end
  1008.        
  1009.         if 1 < rutprt.Velocity.y and hum.FloorMaterial == Enum.Material.Air and hum.JumpPower ~= 0 then
  1010.             hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.065)
  1011.             rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.1)
  1012.             larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.1)
  1013.             lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.1)
  1014.             rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.1)
  1015.             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)),.1)
  1016.         elseif -1 > rutprt.Velocity.y and hum.FloorMaterial == Enum.Material.Air then
  1017.             hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.065) 
  1018.             rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.06)
  1019.             larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.06)
  1020.             lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.06)
  1021.             rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.06)
  1022.             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)),.06)
  1023.         end
  1024.     end)
  1025. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top