Advertisement
Nullify1

FE SMG's Cursor Script

Aug 6th, 2018
1,575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local tool = script.Parent
  3. local settings = require(tool:WaitForChild("Settings"))
  4.  
  5. tool.Equipped:connect(function(mouse)
  6. mouse.Move:connect(function()
  7. mouse.Icon = "http://www.roblox.com/asset/?id="..settings.cursorneutral
  8. local hit = mouse.Target
  9. if hit then
  10. local human = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  11. if human then
  12. local torso = human.Parent:FindFirstChild("Torso")
  13. if torso and human.Health > 0 then
  14. local target = game.Players:FindFirstChild(human.Parent.Name)
  15. if target then
  16. if game.Players:FindFirstChild(human.Parent.Name).TeamColor == player.TeamColor then
  17. mouse.Icon = "http://www.roblox.com/asset/?id="..settings.cursorfriendly
  18. else
  19. mouse.Icon = "http://www.roblox.com/asset/?id="..settings.cursorenemy
  20. end
  21. end
  22. end
  23. end
  24. end
  25. end)
  26. end)
  27.  
  28. tool.Unequipped:connect(function()
  29.  
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement