Advertisement
mathmasterphil

:STOMP

Mar 15th, 2015
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.09 KB | None | 0 0
  1. --SUPER STOMP BOOTS PORTED BY ARENO2002 SERVER-SIDED
  2. if (script:FindFirstChild("forCustomRun")~=nil) then
  3. local sc = script["forCustomRun"].Value
  4. assert(loadstring(sc))()
  5. return
  6. elseif (script:FindFirstChild("forCustomRunL")~=nil) then
  7. local locsc = workspace:FindFirstChild("_localrun")
  8. local sc = script["forCustomRunL"]
  9. if (locsc~=nil) then
  10. local loc = locsc:clone()
  11. loc["scrun"].Value = sc.Value
  12. loc.Name = script.Name
  13. for i,v in pairs(script:GetChildren()) do
  14. v:clone().Parent = loc
  15. end
  16. loc.Parent = script.Parent
  17. script:remove()
  18. return
  19. else
  20. assert(loadstring(sc.Value))()
  21. return
  22. end
  23. end
  24. local m = Instance.new("Model")
  25. m.Name = "LeadBoots"
  26. t1 = Instance.new("Tool", m)
  27. t1.Name = "LeadBoots"
  28. t1.GripPos = Vector3.new(1, 3.5, -1.29999995)
  29. t1.TextureId = "http://www.roblox.com/asset/?id=97180656"
  30. p1 = Instance.new("Part", t1)
  31. p1.BrickColor = BrickColor.new("Medium stone grey")
  32. p1.Name = "Handle"
  33. p1.CFrame = CFrame.new(-5.74850416, 1.57983494, -11.2524567, 3.46899033e-005, 0.0704118013, -0.997517943, 0.999999881, -0.000200629234, 2.05636024e-005, -0.000198721886, -0.997517884, -0.0704118013)
  34. p1.FormFactor = Enum.FormFactor.Custom
  35. p1.Size = Vector3.new(1, 1, 1.5999999)
  36. x1 = Instance.new("Sound", p1)
  37. x1.Name = "Jump"
  38. x1.Pitch = 2
  39. x1.SoundId = "http://www.roblox.com/Asset?ID=92628581"
  40. x1.Volume = 1
  41. x1.Looped = false
  42. x1.PlayOnRemove = false
  43. b1 = Instance.new("SpecialMesh", p1)
  44. b1.MeshId = "http://www.roblox.com/asset/?id=97180581"
  45. b1.TextureId = "http://www.roblox.com/asset/?id=97180639"
  46. b1.MeshType = Enum.MeshType.FileMesh
  47. b1.Name = "Mesh"
  48. x2 = Instance.new("Sound", p1)
  49. x2.Name = "Hit"
  50. x2.Pitch = 1
  51. x2.SoundId = "http://www.roblox.com/Asset?ID=92597264"
  52. x2.Volume = 0.5
  53. x2.Looped = false
  54. x2.PlayOnRemove = false
  55. s1 = script:clone()
  56. s2 = script:clone()
  57. s2.Name = "FreezePlayer"
  58. s2.Disabled = true
  59. so2 = Instance.new("StringValue", s2)
  60. so2.Name = "forCustomRun"
  61. so2.Value = [===[
  62. local MyCharacter = script.Parent
  63. local MyHumanoid = MyCharacter:FindFirstChild('Humanoid')
  64. local MyTorso = MyCharacter:FindFirstChild('Torso')
  65.  
  66. if MyTorso and MyHumanoid then
  67.         MyTorso.Anchored = true
  68.         MyHumanoid.WalkSpeed = 0
  69.         wait(2.5)
  70.         if MyHumanoid.Health > 0 then
  71.                 MyTorso.Anchored = false
  72.                 MyHumanoid.WalkSpeed = 16
  73.         end
  74. end
  75.  
  76. script:Destroy()
  77.  
  78. ]===]
  79. s2.Parent = s1
  80. s1.Name = "BootsScript"
  81. s1.Disabled = false
  82. so1 = Instance.new("StringValue", s1)
  83. so1.Name = "forCustomRunL"
  84. so1.Value = [===[
  85. -- Waits for parent.child to exist, then returns it
  86. local function WaitForChild(parent, childName)
  87.         assert(parent, "ERROR: WaitForChild: parent is nil")
  88.         while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
  89.         return parent[childName]
  90. end
  91.  
  92. local DebrisService = Game:GetService('Debris')
  93. local PlayersService = Game:GetService('Players')
  94. local contentProvider = game:GetService("ContentProvider")
  95.  
  96. local Tool = script.Parent
  97. local Handle = WaitForChild(Tool, 'Handle')
  98. local MyLeftBoot
  99.  
  100. local MyMouse
  101. local MyTorso
  102. local MyHumanoid
  103. local MyPlayer
  104. local MyCharacter
  105.  
  106. local BOOTS_DAMAGE = 60
  107.  
  108.  
  109. local BASE_URL = contentProvider.BaseUrl
  110.  
  111. local JumpSound
  112. local HitSound
  113.  
  114. local ToolGui
  115. local PlayerGui
  116. local COOLDOWN_TIME = 3
  117. local MAX_JUMP_DISTANCE = 60
  118. local LastUse = 0
  119.  
  120. local JumpConnection
  121.  
  122. local POINTS_ALONG_JUMP = 18
  123.  
  124. function KutuWoHaku()
  125.         KutuWoNugu()
  126.         local RightLeg = MyCharacter:FindFirstChild('Right Leg')
  127.         local LeftLeg = MyCharacter:FindFirstChild('Left Leg')
  128.         if LeftLeg then
  129.                 MyLeftBoot = Handle:Clone()
  130.                 MyLeftBoot.Name = 'LeftBoot'
  131.                 local leftBootWeld = Instance.new('Weld')
  132.                 leftBootWeld.Part0 = MyLeftBoot
  133.                 leftBootWeld.Part1 = LeftLeg
  134.                 leftBootWeld.C0 = CFrame.new(0, 0.57, 0.19)
  135.                 MyLeftBoot.Parent = Tool
  136.                 leftBootWeld.Parent = MyLeftBoot
  137.         end
  138.         if RightLeg then
  139.                 if MyCharacter:FindFirstChild('Right Arm') and MyCharacter['Right Arm']:FindFirstChild('RightGrip') then
  140.                         (MyCharacter['Right Arm']).RightGrip:Destroy()
  141.                 end
  142.                 local rightBootWeld = Instance.new('Weld')
  143.                 rightBootWeld.Name = 'RightBootWeld'
  144.                 rightBootWeld.Part0 = Handle
  145.                 rightBootWeld.Part1 = RightLeg
  146.                 rightBootWeld.C0 = CFrame.new(0, 0.57, 0.19)
  147.                 rightBootWeld.Parent = Handle
  148.         end
  149.         if Handle:FindFirstChild('BootWeld') then
  150.                 Handle.BootWeld:Destroy()
  151.         end
  152.         if Tool:FindFirstChild('LeftBoot') then
  153.                 Tool.LeftBoot:Destroy()
  154.         end
  155. end
  156.  
  157. function KutuWoNugu()
  158.         if MyLeftBoot then
  159.                 MyLeftBoot:Destroy()
  160.                 MyLeftBoot = nil
  161.         end
  162.         if Handle:FindFirstChild('RightBootWeld') then
  163.                 Handle.RightBootWeld:Destroy()
  164.         end
  165.         -- create boot weld and left boot
  166.         if Handle:FindFirstChild('BootWeld') then
  167.                 Handle.BootWeld:Destroy()
  168.         end
  169.         if Tool:FindFirstChild('LeftBoot') then
  170.                 Tool.LeftBoot:Destroy()
  171.         end
  172.         local leftBoot = Handle:Clone()
  173.         local bootWeld = Instance.new('Weld')
  174.         bootWeld.Part0 = Handle
  175.         bootWeld.Part1 = leftBoot
  176.         bootWeld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  177.         bootWeld.C1 = CFrame.new(1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  178.         bootWeld.Name = 'BootWeld'
  179.         leftBoot.Name = 'LeftBoot'
  180.         bootWeld.Parent = Handle
  181.         leftBoot.Parent = Tool
  182. end
  183.  
  184. function PointOnCircle(originX, originZ, radius, theta)
  185.         local x = originX + radius * math.cos(theta)
  186.         local z = originZ + radius * math.sin(theta)
  187.         return x, z
  188. end
  189.  
  190. function SquishCharacter(character)
  191.         local lowestY = math.huge
  192.                 for _, child in pairs(character:GetChildren()) do
  193.                 -- handle meshes too
  194.                 if child:IsA('BasePart') then
  195.                         -- subtract child size * 0.4 because he will be squished to the bottom of their body
  196.                         local squishedPoint = child.CFrame.p - (child.Size * 0.4)
  197.                         if squishedPoint.Y < lowestY then
  198.                                 lowestY = squishedPoint.Y
  199.                         end
  200.                 end
  201.         end
  202.         if not lowestY then return end
  203.         for _, child in pairs(character:GetChildren()) do
  204.                 -- handle meshes too
  205.                 if child:IsA('BasePart') then
  206.                         child.Anchored = true
  207.  
  208.                         local origCFrame = child.CFrame
  209.                         local offsetY = origCFrame.p.Y - lowestY
  210.                         child.FormFactor = "Custom"
  211.                         if child.Name ~= 'Head' then
  212.                                 child.Size = child.Size * Vector3.new(1.6,0.2,1.6)
  213.                         end
  214.                         child.CFrame = (origCFrame - Vector3.new(0, offsetY, 0))
  215.                         if child.Name == 'Torso' then
  216.                                 child.CFrame = child.CFrame + Vector3.new(0, 0.1, 0)
  217.                         end
  218.                 elseif child:IsA('CharacterMesh') then
  219.                         local bodyParts = character:GetChildren()
  220.                         local bodyPart
  221.                         for j = 1, #bodyParts do
  222.                                 for word in string.gmatch(tostring(child.BodyPart), string.gsub(bodyParts[j].Name, " ", "")) do
  223.                                         if bodyParts[j]:IsA('BasePart') then
  224.                                                 bodyPart = bodyParts[j]
  225.                                         end
  226.                                 end
  227.                         end
  228.                         if bodyPart and not bodyPart:FindFirstChild("Mesh") then
  229.                                 local newMesh = Instance.new("SpecialMesh")
  230.                                 newMesh.MeshId = BASE_URL .. "asset/?id=" .. tostring(child.MeshId)
  231.                                 newMesh.TextureId = BASE_URL .. "asset/?id=" .. tostring(child.OverlayTextureId)
  232.                                 if bodyPart.Name == "Torso" and tonumber(child.BaseTextureId) > 0 then
  233.                                         newMesh.TextureId = BASE_URL .. "asset/?id=" .. tostring(child.BaseTextureId)
  234.                                 end
  235.                                 newMesh.Scale = Vector3.new(1, 0.2, 1)
  236.                                 newMesh.Parent = bodyPart
  237.                         end
  238.                         --child.
  239.                 end
  240.         end
  241. end
  242.  
  243. function Jump(destination, targetObject)
  244.         local differenceVector = MyTorso.CFrame.p - destination
  245.         local distance = differenceVector.magnitude
  246.         local dirVector = differenceVector.unit
  247.         local halfPoint = differenceVector / 2 + MyTorso.CFrame.p
  248.         local arcedHalfPoint = dirVector:Cross(Vector3.new(0,1,0)):Cross(dirVector) * distance / 2 + halfPoint
  249.  
  250.         if distance > MAX_JUMP_DISTANCE then
  251.                 if PlayerGui and PlayerGui:FindFirstChild('RechargeText') then
  252.                         PlayerGui:FindFirstChild('RechargeText').Text = "Too Far Away!"
  253.                         -- Refund your cooldown
  254.                         LastUse = 0
  255.                 end
  256.                 return
  257.         end
  258.         StartGuiRecharge()
  259.         if targetObject and targetObject.Parent then
  260.                 local freezePlayerCopy = WaitForChild(script, 'FreezePlayer'):Clone()
  261.                 freezePlayerCopy.Parent = targetObject.Parent
  262.                 freezePlayerCopy.Disabled = false
  263.         end
  264.  
  265.         local waypoints = {}
  266.         local visitedWaypoints = {}
  267.         for i = 1, POINTS_ALONG_JUMP do
  268.                 local objectZ, objectY = PointOnCircle(distance * 0.5, 0, distance * 0.5, math.pi - (math.pi / POINTS_ALONG_JUMP) * i)
  269.                 local nextPoint = CFrame.new(MyTorso.CFrame.p, destination):pointToWorldSpace(Vector3.new(0, objectY, -objectZ))
  270.                 local nextTargetPart = Instance.new('Part')
  271.                 nextTargetPart.Transparency = 0
  272.                 nextTargetPart.CanCollide = false
  273.                 nextTargetPart.Anchored = true
  274.                 nextTargetPart.TopSurface = 'Smooth'
  275.                 nextTargetPart.BackSurface = 'Smooth'
  276.                 nextTargetPart.BrickColor = BrickColor.new("Really red")
  277.                 nextTargetPart.Shape = "Ball"
  278.                 nextTargetPart.Size = Vector3.new(1,1,1)
  279.                 nextTargetPart.CFrame = CFrame.new(nextPoint)
  280.                 nextTargetPart.Name = tostring(i)
  281.                 nextTargetPart.Parent = Workspace
  282.                 DebrisService:AddItem(nextTargetPart, 10)
  283.                 table.insert(waypoints, nextTargetPart)
  284.         end
  285.         MyHumanoid.PlatformStand = true
  286.         if JumpSound then
  287.                 JumpSound:Play()
  288.         end
  289.         local bodyPosition = Instance.new('BodyPosition')
  290.         bodyPosition.maxForce = Vector3.new(16000, 16000, 16000)
  291.         bodyPosition.P = 15000
  292.         bodyPosition.D = 500
  293.         bodyPosition.position = waypoints[1].CFrame.p
  294.         for i = 1, #waypoints do
  295.                 local connection = waypoints[i].Touched:connect(
  296.                         function(part)
  297.                                 if part.Parent == MyCharacter then
  298.                                         -- Had to comment this because lua do not preserve the connection upvalue
  299.                                         --connection:disconnect()
  300.                                         if i ~= #waypoints and bodyPosition then
  301.                                                 print('Going to position:' , i + 1)
  302.                                                 bodyPosition.position = waypoints[i + 1].CFrame.p
  303.                                         else
  304.                                                 bodyPosition:Destroy()
  305.                                                 MyHumanoid.PlatformStand = false
  306.                                         end
  307.                                         if i == #waypoints then
  308.                                                 wait(0.2)
  309.                                                 if handleConn then
  310.                                                         print('Destroying boots conn because we landed')
  311.                                                         handleConn:disconnect()
  312.                                                 end
  313.                                         end
  314.                                         visitedWaypoints[i] = true
  315.                                         waypoints[i].Parent = nil--:Destroy()
  316.                                 end
  317.                         end)
  318.         end
  319.  
  320.         MyTorso.CFrame = CFrame.new(MyTorso.CFrame.p, destination)
  321.  
  322.         local bootsTouched = false
  323.         handleConn = Handle.Touched:connect(function(hit)
  324.                 if hit.Parent then
  325.                         if bootsTouched then return end
  326.                         if hit.Parent:FindFirstChild('Humanoid') then
  327.                                 if hit.Parent.Humanoid.Health <= BOOTS_DAMAGE then
  328.                                         SquishCharacter(hit.Parent)
  329.                                 end
  330.                                 hit.Parent.Humanoid:TakeDamage(BOOTS_DAMAGE)
  331.                                 if HitSound then
  332.                                         HitSound:Play()
  333.                                 end
  334.                                 handleConn:disconnect()
  335.                                 bootsTouched = true
  336.                         end
  337.                 end
  338.         end)
  339.  
  340.         DebrisService:AddItem(bodyPosition, COOLDOWN_TIME - 1)
  341.         bodyPosition.Parent = MyTorso
  342.         wait(COOLDOWN_TIME - 2)
  343.         if MyTorso:FindFirstChild('BodyPosition') then
  344.                 MyHumanoid.PlatformStand = false
  345.         end
  346.         if handleConn then
  347.                 handleConn:disconnect()
  348.         end
  349. end
  350.  
  351. function StartGuiRecharge()
  352.         if PlayerGui and PlayerGui:FindFirstChild('Bar') and
  353.                         PlayerGui.Bar:FindFirstChild('Backing') and PlayerGui.Bar:FindFirstChild('Fill') and
  354.                         PlayerGui:FindFirstChild('RechargeText') then
  355.                 PlayerGui.RechargeText.Text = "Recharging..."
  356.                 local timeRemaining = math.min(COOLDOWN_TIME, tick() - LastUse)
  357.                 print('Start Size = ', timeRemaining / COOLDOWN_TIME)
  358.                 PlayerGui.Bar.Fill.Size = UDim2.new(timeRemaining / COOLDOWN_TIME, 0, 1, 0)
  359.                 PlayerGui.Bar.Fill:TweenSize(UDim2.new(1,0,1,0), "Out", "Linear", COOLDOWN_TIME - timeRemaining, false,
  360.                         function() if PlayerGui then PlayerGui.RechargeText.Text = "Ready" end end)
  361.         end
  362. end
  363.  
  364. function OnActivated(target)
  365.         if not target then
  366.                 local hitPart = MyMouse.Target
  367.                 if hitPart and hitPart:IsA('BasePart') and hitPart.Parent and hitPart.Parent:FindFirstChild('Humanoid') then
  368.                         target = hitPart
  369.                 end
  370.         end
  371.         if tick() - LastUse > COOLDOWN_TIME then
  372.                 if target then
  373.                         LastUse = tick()
  374.                         Jump(target.CFrame.p, target)
  375.                 else
  376.                         LastUse = tick()
  377.                         Jump(MyMouse.Hit.p)
  378.                 end
  379.                 --[[
  380.                 else
  381.                         if PlayerGui and PlayerGui:FindFirstChild('RechargeText') then
  382.                                 PlayerGui:FindFirstChild('RechargeText').Text = "Click on Someone!"
  383.                                 delay(2, StartGuiRecharge)
  384.                         end
  385.                 end
  386.         --]]
  387.         end
  388. end
  389.  
  390. function FindClosestTorso()
  391.         local nearestTorso = nil
  392.         local nearestDist = MAX_JUMP_DISTANCE
  393.         for _, player in pairs(PlayersService:GetPlayers()) do
  394.                 if player and player.Character and player.Character:FindFirstChild('Torso') and MyPlayer and player ~= MyPlayer then
  395.                         local currDist = (player.Character.Torso.CFrame.p - MyTorso.CFrame.p).magnitude
  396.                         if currDist < nearestDist then
  397.                                 nearestTorso = player.Character.Torso
  398.                                 neatestDist = currDist
  399.                         end
  400.                 end
  401.         end
  402.         return nearestTorso
  403. end
  404.  
  405. local Equipping = false
  406. function OnEquipped(mouse)
  407.         if Equipping then return end
  408.         Equipping = true
  409.         MyCharacter = Tool.Parent
  410.         MyPlayer = PlayersService:GetPlayerFromCharacter(MyCharacter)
  411.         MyTorso = MyCharacter:FindFirstChild('Torso')
  412.         MyMouse = mouse
  413.         MyHumanoid = MyCharacter:FindFirstChild('Humanoid')
  414.         JumpSound = WaitForChild(Handle, 'Jump')
  415.         HitSound = WaitForChild(Handle, 'Hit')
  416.         ToolGui = WaitForChild(Tool, 'RechargeGui')
  417.         PlayerGui = ToolGui:Clone()
  418.         PlayerGui.Parent = PlayersService:GetPlayerFromCharacter(MyCharacter).PlayerGui
  419.         --JumpConnection = MyHumanoid.Jumping:connect(function() OnActivated(FindClosestTorso()) end)
  420.         wait(0.1)
  421.         KutuWoHaku()
  422.         StartGuiRecharge()
  423.         Equipping = false
  424. end
  425.  
  426. local UnEquipping = false
  427. function OnUnequipped()
  428.         if UnEquipping then return end
  429.         UnEquipping = true
  430.         if PlayerGui then
  431.                 PlayerGui:Destroy()
  432.                 PlayerGui = nil
  433.         end
  434.         if JumpConnection then
  435.                 JumpConnection:disconnect()
  436.                 JumpConnection = nil
  437.         end
  438.         if handleConn then
  439.                 handleConn:disconnect()
  440.         end
  441.         KutuWoNugu()
  442.         UnEquipping = false
  443. end
  444.  
  445.  
  446. Tool.Activated:connect(OnActivated)
  447. Tool.Equipped:connect(OnEquipped)
  448. Tool.Unequipped:connect(OnUnequipped)
  449.  
  450. ]===]
  451. s1.Parent = t1
  452. g1 = Instance.new("ScreenGui", t1)
  453. g1.Name = "RechargeGui"
  454. o1 = Instance.new("Frame", g1)
  455. o1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  456. o1.Name = "Bar"
  457. o1.Position = UDim2.new(0.5, -100, 1, -160)
  458. o1.Size = UDim2.new(0, 200, 0, 40)
  459. o1.ZIndex = 4
  460. o1.Style = Enum.FrameStyle.RobloxRound
  461. o2 = Instance.new("Frame", o1)
  462. o2.BackgroundColor3 = Color3.new(0, 1, 0)
  463. o2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  464. o2.BorderSizePixel = 0
  465. o2.Name = "Fill"
  466. o2.Size = UDim2.new(1, 0, 1, 0)
  467. o2.ZIndex = 5
  468. o3 = Instance.new("Frame", o1)
  469. o3.BackgroundColor3 = Color3.new(0, 0, 0)
  470. o3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  471. o3.BorderSizePixel = 0
  472. o3.Name = "Backing"
  473. o3.Size = UDim2.new(1, 0, 1, 0)
  474. o3.ZIndex = 4
  475. o4 = Instance.new("TextLabel", g1)
  476. o4.BackgroundTransparency = 1
  477. o4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  478. o4.BorderSizePixel = 0
  479. o4.Name = "RechargeText"
  480. o4.Position = UDim2.new(0.5, -200, 1, -185)
  481. o4.Size = UDim2.new(0, 400, 0, 20)
  482. o4.ZIndex = 4
  483. o4.ClipsDescendants = true
  484. o4.Text = "Lead Boots"
  485. o4.TextColor3 = Color3.new(0, 0, 0)
  486. o4.TextStrokeColor3 = Color3.new(1, 1, 1)
  487. o4.TextStrokeTransparency = 0
  488. o4.TextTransparency = 0.20000000298023
  489. o4.Font = Enum.Font.ArialBold
  490. o4.FontSize = Enum.FontSize.Size18
  491. s3 = script:clone()
  492. s3.Name = "AnimationScript"
  493. s3.Disabled = false
  494. so3 = Instance.new("StringValue", s3)
  495. so3.Name = "forCustomRunL"
  496. so3.Value = [===[
  497. -- Waits for the child of the specified parent
  498. local function WaitForChild(parent, childName)
  499.         while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
  500.         return parent[childName]
  501. end
  502.  
  503. local Tool = script.Parent
  504.  
  505. local Animations = {}
  506. local MyHumanoid
  507. local MyCharacter
  508.  
  509.  
  510. local function PlayAnimation(animationName)
  511.         if Animations[animationName] then
  512.                 Animations[animationName]:Play()
  513.         else
  514.                 print("Can't find animation:" , animationName)
  515.         end
  516. end
  517.  
  518. local function StopAnimation(animationName)
  519.         if Animations[animationName] then
  520.                 Animations[animationName]:Stop()
  521.         end
  522. end
  523.  
  524. local function ConnectAnimationToValueChange(valueName, animationName)
  525.         return WaitForChild(Tool, valueName).Changed:connect(
  526.                 function (value)
  527.                                 PlayAnimation(animationName)
  528.                 end)
  529. end
  530.  
  531. function OnEquipped(mouse)
  532.         MyCharacter = Tool.Parent
  533.         MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
  534.         if MyHumanoid then
  535.                 Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim'))
  536.         end
  537.         wait(0.4)
  538.         PlayAnimation('IdleAnim')
  539. end
  540.  
  541. function OnUnequipped()
  542.         StopAnimation('IdleAnim')
  543. end
  544.  
  545.  
  546.  
  547. Tool.Equipped:connect(OnEquipped)
  548. Tool.Unequipped:connect(OnUnequipped)
  549.  
  550.  
  551. ]===]
  552. s3.Parent = t1
  553. x3 = Instance.new("Animation", t1)
  554. x3.Name = "IdleAnim"
  555. x3.AnimationId = "http://www.roblox.com/Asset?ID=97206298"
  556. p2 = Instance.new("Part", t1)
  557. p2.BrickColor = BrickColor.new("Medium stone grey")
  558. p2.Name = "LeftBoot"
  559. p2.CFrame = CFrame.new(-5.74853897, 0.579834998, -11.2522583, 3.46899033e-005, 0.0704118013, -0.997517943, 0.999999881, -0.000200629234, 2.05636024e-005, -0.000198721886, -0.997517884, -0.0704118013)
  560. p2.CanCollide = false
  561. p2.FormFactor = Enum.FormFactor.Custom
  562. p2.Size = Vector3.new(1, 1, 1.5999999)
  563. x4 = Instance.new("Sound", p2)
  564. x4.Name = "Jump"
  565. x4.Pitch = 2
  566. x4.SoundId = "http://www.roblox.com/Asset?ID=92628581"
  567. x4.Volume = 1
  568. x4.Looped = false
  569. x4.PlayOnRemove = false
  570. b2 = Instance.new("SpecialMesh", p2)
  571. b2.MeshId = "http://www.roblox.com/asset/?id=97180581"
  572. b2.TextureId = "http://www.roblox.com/asset/?id=97180639"
  573. b2.MeshType = Enum.MeshType.FileMesh
  574. b2.Name = "Mesh"
  575. x5 = Instance.new("Sound", p2)
  576. x5.Name = "Hit"
  577. x5.Pitch = 1
  578. x5.SoundId = "http://www.roblox.com/Asset?ID=92597264"
  579. x5.Volume = 0.5
  580. x5.Looped = false
  581. x5.PlayOnRemove = false
  582. w1 = Instance.new("Weld", p1)
  583. w1.Name = "BootWeld"
  584. w1.Part0 = p1
  585. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. w1.Part1 = p2
  587. w1.C1 = CFrame.new(1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  588. m.Parent = game:service("Workspace")
  589. m:MakeJoints()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement