manolitogamer11111

Mustard Gas

Jun 8th, 2020
850
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 KB | None | 0 0
  1. -- mustard gas
  2. -- game link: https://www.roblox.com/games/3264958220/Horror-Tycoon
  3.  
  4. local lp = game.Players.LocalPlayer
  5. local anims = lp.Character.Animate
  6. local hat = lp.Character:FindFirstChildOfClass("Accessory")
  7. local bp = Instance.new("BodyPosition",hat.Handle)
  8.  
  9. bp.P = 10000
  10. bp.D = 65
  11.  
  12. local hathandle = hat.Handle
  13.  
  14. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  15. hathandle.Massless = true
  16. hathandle:FindFirstChildOfClass("SpecialMesh"):Destroy()
  17.  
  18. spawn(function()
  19. lp.Character.HumanoidRootPart.CFrame = hathandle.CFrame
  20.  
  21. wait()
  22. lp.Character.HumanoidRootPart.CFrame = hathandle.CFrame
  23.  
  24. wait()
  25. lp.Character.HumanoidRootPart.CFrame = hathandle.CFrame
  26.  
  27. end)
  28.  
  29. anims.idle.Animation2:Destroy()
  30.  
  31. anims.idle:FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://30235165"
  32.  
  33. anims.walk:FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://30235165"
  34.  
  35. anims.run:FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://30235165"
  36.  
  37. anims.toolnone:FindFirstChildOfClass("Animation").AnimationId = "rbxassetid://0"
  38.  
  39. local function destroy(arg1)
  40. game:GetService("ReplicatedStorage").Events.destryObj:FireServer(arg1)
  41. end
  42.  
  43.  
  44. spawn(function()
  45. while wait() do
  46. bp.Position = lp.Character["Left Arm"].CFrame.p + Vector3.new(0,1,0)
  47. end
  48. end)
  49.  
  50. spawn(function()
  51. repeat
  52. wait()
  53. for i,v in pairs(game.Players:GetChildren()) do
  54. if v:DistanceFromCharacter(lp.Character.HumanoidRootPart.CFrame.p)<= 20 and v.Name ~= lp.Name then
  55. local c = game.Workspace:FindFirstChild(v.Name)
  56. if c ~= nil then
  57. local h = c:FindFirstChildOfClass("Humanoid")
  58. if h ~= nil then
  59. destroy(h)
  60. end
  61. end
  62. end
  63. end
  64. until lp.Character.Humanoid.Health == 0
  65. end)
  66.  
  67. lp.Character.Humanoid.WalkSpeed = 30
  68.  
  69. print("ScriptX#3145")
  70.  
  71.  
  72. game link: https://www.roblox.com/games/3264958220/Horror-Tycoon
Add Comment
Please, Sign In to add comment