Advertisement
FishGreyHair

anti death

Aug 7th, 2016
2,561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2. function damage(hit)
  3. if hit then
  4. plr = game.Players:GetPlayerFromCharacter(hit.Parent)
  5. if plr then
  6. char = plr.Character
  7. testchar = game.Workspace:FindFirstChild(char.Name)
  8. if char and testchar and plr.Name ~= player.Name then
  9. humanoid = char:FindFirstChild("Humanoid")
  10. if humanoid:FindFirstChild("ACIDSLIP") == nil then
  11. acidslip=Instance.new("StringValue",humanoid)
  12. acidslip.Name = "ACIDSLIP"
  13. game:GetService("Debris"):AddItem(acidslip,1)
  14. humanoid:TakeDamage(5)
  15. clonehit = hit:Clone()
  16. clonehit.CanCollide = true
  17. clonehit.Parent = plr.Character
  18. clonehit.Material = Enum.Material.CorrodedMetal
  19. clonehit.CFrame = clonehit.CFrame
  20. clonehit.Name="CorrodedBodyPart"
  21. weld=Instance.new("Weld",clonehit) weld.Part0 = weld.Parent weld.Part1 = hit
  22. cd=math.random(1,2)
  23. hit.Transparency = 1
  24. game:GetService("Debris"):AddItem(clonehit,cd)
  25. game:GetService("Debris"):AddItem(hit,cd)
  26. end
  27. end
  28. end
  29. end
  30. end
  31.  
  32.  
  33.  
  34.  
  35. part2 = Instance.new("Part")
  36. tool2 = Instance.new("Tool")
  37. part2.Parent = tool2
  38. tool2.Parent = game.Players.timothy_teakettle.Backpack
  39. tool2.Name = "off you go"
  40. part2.Name = "Handle"
  41. part2.Size = Vector3.new(1,1,1)
  42.  
  43. function activate2()
  44. print("Activated.")
  45. torso = game.Players.timothy_teakettle.Character:FindFirstChild("UpperTorso")
  46. if torso then
  47. for i,v in pairs(game.Workspace:GetChildren()) do
  48. torso2 = v:FindFirstChild("UpperTorso")
  49. if torso2 and v ~= game.Workspace.timothy_teakettle then
  50. if game.Players.timothy_teakettle:DistanceFromCharacter(torso2.Position) < 5 then
  51. infront = torso.CFrame * CFrame.new(0,0,-3)
  52. infrontpos = infront.p
  53. kiddo = game.Players:GetPlayerFromCharacter(v)
  54. if kiddo then
  55. if kiddo:DistanceFromCharacter(infrontpos) <= 10 then
  56. if v:FindFirstChild("Humanoid") then
  57. v.Humanoid.Sit = true
  58. end
  59. velocity = Instance.new("BodyVelocity")
  60. velocity.Velocity = torso.CFrame.lookVector * 100 + Vector3.new(0,20,0)
  61. velocity.MaxForce = Vector3.new(1000000,1000000,1000000)
  62. velocity.Parent = torso2
  63. game:GetService("Debris"):AddItem(velocity,0.2)
  64. end
  65. end
  66. end
  67. end
  68. end
  69. end
  70. end
  71. tool2.Activated:connect(activate2)
  72.  
  73.  
  74.  
  75.  
  76. tool3 = Instance.new("Tool")
  77. part3 = Instance.new("Part")
  78. part3.Name = "Handle"
  79. tool3.Name = "no gaster pls"
  80. part3.Parent = tool3
  81. tool3.Parent = game.Players.timothy_teakettle.Backpack
  82.  
  83. function activate3()
  84. for i,v in pairs(game.Workspace:GetChildren()) do
  85. plra = game.Players:GetPlayerFromCharacter(v)
  86. if plra then
  87. for a,b in pairs(v:GetChildren()) do
  88. if b.className == "Part" then
  89. for c,d in pairs(b:GetChildren()) do
  90. if d.className == "Decal" then
  91. if d.Texture == "rbxassetid://400387868" then
  92. v:BreakJoints()
  93. end
  94. end
  95. end
  96. end
  97. end
  98. end
  99. end
  100. end
  101. tool3.Activated:connect(activate3)
  102.  
  103.  
  104. tool4 = Instance.new("Tool")
  105. tool4.Name = "lets go over there"
  106. tool4.RequiresHandle = false
  107. tool4.Parent = game.Players.timothy_teakettle.Backpack
  108.  
  109. function activate4()
  110. game.Players.timothy_teakettle.Character.UpperTorso.CFrame = game.Players.timothy_teakettle.Character.UpperTorso.CFrame * CFrame.new(0,0,-15)
  111. end
  112. tool4.Activated:connect(activate4)
  113.  
  114.  
  115.  
  116.  
  117. tool5 = Instance.new("Tool")
  118. tool5.Name = "no thanks"
  119. tool5.RequiresHandle = false
  120. tool5.Parent = game.Players.timothy_teakettle.Backpack
  121.  
  122. function activate5()
  123. for i,v in pairs(game.Workspace:GetChildren()) do
  124. for a,b in pairs(v:GetChildren()) do
  125. if b.Name == "Head" then
  126. if game.Players.timothy_teakettle:DistanceFromCharacter(b.Position) < 11 then
  127. if v:FindFirstChild("Humanoid") then
  128. v.Humanoid.Health = 0
  129. end
  130. end
  131. end
  132. end
  133. end
  134. end
  135. tool5.Activated:connect(activate5)
  136.  
  137.  
  138. tool6 = Instance.new("Tool")
  139. part6 = Instance.new("Part")
  140. part6.Name = "Handle"
  141. tool6.Name = "respawn kiddos"
  142. part6.Parent = tool6
  143. tool6.Parent = game.Players.timothy_teakettle.Backpack
  144.  
  145. function activate6()
  146. print("activited")
  147. for i,v in pairs(game.Workspace:GetChildren()) do
  148. player = game.Players:GetPlayerFromCharacter(v)
  149. if player then
  150. if v:FindFirstChild("Head") then
  151. if game.Players.timothy_teakettle:DistanceFromCharacter(v.Head.Position) < 11 then
  152. print("hey now")
  153. cframe = v.UpperTorso.CFrame
  154. player:LoadCharacter()
  155. if player.Character:FindFirstChild("UpperTorso") then
  156. player.Character.UpperTorso.CFrame = cframe
  157. end
  158. end
  159. end
  160. end
  161. end
  162. end
  163. tool6.Activated:connect(tool6)
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175. USER = "timothy_teakettle"
  176. function revive()
  177. plr = game.Players:FindFirstChild(USER)
  178. if plr then
  179. char = plr.Character
  180. torso = char:FindFirstChild("UpperTorso")
  181. if torso then
  182. torsocframe = torso.CFrame
  183. plr:LoadCharacter()
  184. plr.Character.UpperTorso.CFrame = torsocframe
  185. game.Players:FindFirstChild(USER).Character.Humanoid.HealthChanged:connect(hpchange)
  186. game.Players:FindFirstChild(USER).Character.Humanoid.Died:connect(revive)
  187. tool.Parent = plr.Backpack
  188. tool2.Parent = plr.Backpack
  189. tool3.Parent = plr.Backpack
  190. tool4.Parent = plr.Backpack
  191. tool5.Parent = plr.Backpack
  192. end
  193. end
  194. end
  195. function heal()
  196. plr = game.Players:FindFirstChild(USER)
  197. if plr then
  198. char = plr.Character
  199. humanoid = char:FindFirstChild("Humanoid")
  200. if humanoid then
  201. if humanoid.Health ~= 100 then
  202. wait()
  203. humanoid.Health = humanoid.Health + 100
  204. heal() -- because you should make sure your healed
  205. end
  206. end
  207. end
  208. end
  209. function hpchange()
  210. plr = game.Players:FindFirstChild(USER)
  211. if plr then
  212. char = plr.Character
  213. humanoid = char:FindFirstChild("Humanoid")
  214. if humanoid then
  215. health = humanoid.Health
  216. if health < 1 then
  217. revive()
  218. else
  219. heal()
  220. end
  221. end
  222. end
  223. end
  224. game.Players:FindFirstChild(USER).Character.Humanoid.HealthChanged:connect(hpchange)
  225. game.Players:FindFirstChild(USER).Character.Humanoid.Died:connect(revive)
  226.  
  227. part = Instance.new("Part")
  228. part.Name = "Handle"
  229.  
  230. tool = Instance.new("Tool")
  231. function activate()
  232. emp(Workspace)
  233. end
  234. tool.Activated:connect(activate)
  235.  
  236. tool.Name = "rip weapons"
  237. part.Parent = tool
  238. part.TopSurface = "Smooth"
  239. part.BottomSurface = "Smooth"
  240. part.Size = Vector3.new(1,1,1)
  241. tool.Parent = game.Players.timothy_teakettle.Backpack
  242.  
  243. function emp(where)
  244. for i,v in pairs(where:GetChildren()) do
  245. if v.className == "Part" and v ~= part and v.Parent ~= game.Players.timothy_teakettle.Character and v.Parent.className ~= "Hat" then
  246. if v.Size.X < 100 and v.Size.Y < 100 and v.Size.Z < 100 then
  247. if game.Players.timothy_teakettle:DistanceFromCharacter(v.Position) < 25 and v.Name ~= "Left Leg" and v.Name ~= "Right Leg" and v.Name ~= "Left Arm" and v.Name ~= "Right Arm" and v.Name ~= "Torso" and v.Name ~= "Head" and v.Name ~= "HumanoidRootPart" then
  248. v.Parent = nil
  249. end
  250. end
  251. end
  252. emp(v)
  253. end
  254. end
  255.  
  256.  
  257. while true do
  258. wait(0.2)
  259. player.Character.Humanoid.WalkSpeed = 25
  260. player.Character.Humanoid.JumpPower = 0
  261. test = PhysicalProperties.new(0,0,0,30,0)
  262. acid=Instance.new("Part")
  263. acid.Touched:connect(damage)
  264. acid.CustomPhysicalProperties = test
  265. acid.CanCollide = true
  266. acid.Anchored = true
  267. acid.Shape = "Cylinder"
  268. acid.BrickColor = BrickColor.new("Slime green")
  269. ab = math.random(12,16)
  270. acid.Size=Vector3.new(0.1,ab,ab)
  271. acid.Parent = player.Character
  272. acid.Material = Enum.Material.Neon
  273. --
  274. acid.TopSurface = "SmoothNoOutlines"
  275. acid.BottomSurface = "SmoothNoOutlines"
  276. acid.LeftSurface = "SmoothNoOutlines"
  277. acid.RightSurface = "SmoothNoOutlines"
  278. acid.BackSurface = "SmoothNoOutlines"
  279. acid.FrontSurface = "SmoothNoOutlines"
  280.  
  281.  
  282. --
  283. ray = Ray.new(player.Character.UpperTorso.Position,(player.Character.UpperTorso.CFrame * CFrame.Angles(math.pi/-2,0,0)).lookVector * 200)
  284. ignore = player.Character
  285. hit,pos, normal = game.Workspace:FindPartOnRay(ray,ignore)
  286. distance = (player.Character.UpperTorso.Position - pos).magnitude
  287. if hit and distance < 5 and not game.Players:GetPlayerFromCharacter(hit.Parent) and hit.Name ~= "Handle" then
  288. if hit.Material == Enum.Material.Metal then
  289. a = coroutine.create(nice) coroutine.resume(a,hit)
  290. end
  291. acid.CFrame = CFrame.new(pos)
  292. acid.CFrame = acid.CFrame * CFrame.Angles(0,0,math.pi/2)
  293. acid:MakeJoints()
  294. game:GetService("Debris"):AddItem(acid,4)
  295. end
  296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement