Advertisement
cat568

Untitled

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