Advertisement
anphu04

Roblox Compass script

Dec 31st, 2018
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. -- Compass script for exploiting --
  2. -- by Valualty --
  3. root = game:GetService('Players').LocalPlayer.Character.HumanoidRootPart
  4. function arrowme(color,angle)
  5. local ar = Instance.new('Part')
  6. ar.Name = 'compass arrow'
  7. ar.Size = Vector3.new(2, 0.4, 4)
  8. ar.CanCollide = false
  9. ar.Anchored = true
  10. ar.BrickColor = BrickColor.new(color)
  11. ar.Transparency = .1
  12. local mesh = Instance.new('SpecialMesh',ar)
  13. mesh.MeshId = "http://www.roblox.com/asset/?id=14656345"
  14. mesh.Scale = Vector3.new(.1,.1,.3)
  15. ar.CFrame = CFrame.new(root.Position) * angle * CFrame.new(0,0,-10)
  16. ar.Parent = workspace
  17. spawn(function()
  18. for i = 1,360*8/10 do -- it will spin 8 times, each time will increase by 10 degrees
  19. ar.CFrame = ar.CFrame * CFrame.Angles(0,0,math.rad(10))
  20. if i >= 360*8/10/2 then
  21. ar.Transparency = i / (360*8/10)
  22. end
  23. wait()
  24. end
  25. ar:Destroy()
  26. end)
  27. end
  28.  
  29. arrowme('Really red', CFrame.Angles(0,math.rad(-90),math.rad(180)))
  30. arrowme('Really blue', CFrame.Angles(0,math.rad(180),math.rad(180)))
  31. arrowme('Lime green', CFrame.Angles(math.rad(90),0,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement