Advertisement
cat568

Untitled

Dec 27th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. Services = setmetatable({},{__index=function(s,r) return game:service(r) end})
  5. Player = Services.Players.LocalPlayer
  6. wait()script.Parent=nil
  7. BodyParts={}
  8. abs = function(int)
  9. if int < 0 then return -int else return int end
  10. end
  11. rad = function(deg)
  12. return deg * math.pi / 180
  13. end
  14. deg = function(rad)
  15. return rad * 180 / math.pi
  16. end
  17. dist = function(p1,p2)
  18. r,e = ypcall(function()
  19. p1 = p1.Position
  20. end)
  21. if not r then p1 = p1 end
  22. r,e = ypcall(function()
  23. p2 = p2.Position
  24. end)
  25. if not r then p1 = p1 end
  26. return math.sqrt( (p2.X-p1.X)^2 + (p2.Y-p1.Y)^2 + (p2.Z-p1.Z)^2 )
  27. end
  28.  
  29. function GetChar()
  30. return Player.Character
  31. end
  32. function GetHum()
  33. for i,v in pairs(GetChar():children'') do
  34. if v.ClassName == 'Humanoid' then
  35. return v
  36. end
  37. end
  38. end
  39.  
  40. function Died()
  41. for i,v in pairs(GetChar():children'') do
  42. if v.ClassName == 'Part' then
  43. table.insert(BodyParts,{v.CFrame,v})
  44. elseif v.ClassName == 'Hat' then
  45. v.Parent=workspace
  46. table.insert(BodyParts,{v.Handle.CFrame,v.Handle,1})
  47. end
  48. end
  49.  
  50. wait(3)
  51. for i,v in pairs(BodyParts) do
  52. v[2].Anchored=true
  53. if v[2].Name == 'Torso' then pos = v[1] end
  54. end
  55.  
  56. for i,v in pairs(BodyParts) do
  57. coroutine.resume(coroutine.create(function()
  58. repeat Services.RunService.Heartbeat:wait()
  59. v[2].CFrame = v[2].CFrame:lerp(v[1],.1)
  60. until dist(v[2],v[1]) < .05
  61. v[2].CFrame=v[1]
  62. end))
  63. end
  64. end
  65.  
  66. Player.CharacterAdded:connect(function(char)
  67. char:WaitForChild('Torso')
  68. for i,v in pairs(BodyParts) do
  69. if v[3] then
  70. v[2]:Remove()
  71. end
  72. end
  73. BodyParts={}
  74. char.Torso.CFrame=pos or CFrame.new(0,12,0)
  75. GetHum().Died:connect(Died)
  76. end)
  77. GetHum().Died:connect(Died)
  78. print'rannering'
  79.  
  80. --[[
  81. Stand: The World
  82. User: DIO
  83. ]]
  84.  
  85. ---Declarations
  86. local Cn=CFrame.new
  87. local CA=CFrame.Angles
  88. local mr=math.rad
  89. local rn=math.random
  90. local mc=math.cos
  91. local Vn=Vector3.new
  92. local NR=NumberRange.new
  93. local NSeq=NumberSequence.new
  94. local plrs=game:service"Players"
  95. local wrk=game:service"Workspace"
  96. local deb=game:service"Debris"
  97. local IS=game:GetService("InsertService")
  98. local p=plrs.LocalPlayer
  99. local cam=wrk.CurrentCamera
  100. local char=p.Character
  101. local mouse=p:GetMouse()
  102. local lam=char["Left Arm"]
  103. local ram=char["Right Arm"]
  104. local llg=char["Left Leg"]
  105. local rlg=char["Right Leg"]
  106. local hed=char.Head
  107. local tor=char.Torso
  108. local larm = lam
  109. local rarm = ram
  110. local lleg = llg
  111. local rleg = rlg
  112. local torso = tor
  113. local hrp=char.HumanoidRootPart
  114. local PlayerSpeed = char.Humanoid.WalkSpeed
  115. local on=false
  116. local noRig=false
  117. local curws=16
  118. local sine=0
  119. local ift={}
  120. local ifxd=false
  121. local run=false
  122. local stance="Cane"
  123. local Speed = 16
  124. local Health = 9000
  125.  
  126. PlayerSpeed = 16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement