Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. game.Players.LocalPlayer.Chatted:Connect(function(message)
  2. if message:lower() == '!remove' then
  3. game.Workspace["TheTrail"]:Remove()
  4. end
  5. end)
  6. local tool = Instance.new("HopperBin", game.Players.LocalPlayer.Backpack)
  7. tool.Name = "Trail"
  8. while wait(0.1) do
  9. if tool.Active then
  10. local b = Instance.new("Part", game.Workspace)
  11. b.Anchored = true
  12. b.Transparency = 0.1
  13. b.Material = "Glass"
  14. b.Reflectance = 5
  15. b.Size = Vector3.new(6, 0, 6)
  16. b.Name = "TheTrail"
  17. while wait(0.3) do
  18. b.Position = game.Players.LocalPlayer.Character["Right Leg"].Position - Vector3.new (0, 1, 0)
  19. if game.Players.LocalPlayer.Character.Humanoid.Health == 0 or tool.Active == false then
  20. break
  21. end
  22. end
  23. game.Workspace.TheTrail:Remove()
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement