Meliodas0_0

Rainbow Path

Jul 26th, 2019
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tabDown = false
  2. local player = game:GetService('Players').LocalPlayer
  3. local input = player:GetMouse()
  4. local folder = Instance.new('Folder',workspace)
  5. function pathbrick(x,time,name)
  6. x = Instance.new('Part',folder)
  7. x.Name = name
  8. x.Size = Vector3.new(6,0.5,6)
  9. x.TopSurface = 'Smooth'
  10. x.BottomSurface = 'Smooth'
  11. x.Anchored = true
  12. x.Transparency = 0.3
  13. x.Color = (player.PlayerGui.ProductGui.DevProduct.Money.TextStrokeColor3)
  14. x.CFrame = CFrame.new(player.Character.UpperTorso.Position) + Vector3.new(0,-3,0)
  15. game.Debris:AddItem(x,time)
  16. end
  17. input.KeyUp:connect(function(k)
  18. if k == 't' or k == 'T' then
  19. tabDown = false
  20. folder.pltf:Destroy()
  21. end
  22. end)
  23. input.KeyDown:connect(function(k)
  24. if k == 'T' or k == 't' then
  25. tabDown = true
  26. repeat wait()
  27. if tabDown and player.Character and player.Character:FindFirstChild('UpperTorso') then
  28. pathbrick(x,3,'Part')
  29. end
  30. until not tabDown
  31. pathbrick(a,9e9,'pltf')
  32. end
  33. end)
RAW Paste Data