Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. mouse.Move:Connect(function()
  5. script.Parent.Position = UDim2.new(0,mouse.X + 10, 0, mouse.Y +5)
  6. script.Parent.Visible = false
  7. local target = mouse.Target
  8. if target and target.Parent then
  9. if target.Parent.ClassName == "Model" then
  10. script.Parent.Text = target.Parent.Name
  11. script.Parent.Visible=true
  12. end
  13. if target.Parent:FindFirstChild("HumanoidRootPart")then
  14. script.Parent.Text = target.Parent.Name
  15. script.Paren.Visible = true
  16.  
  17. end
  18.  
  19. if target:FindFirstChild("Mouseover") then
  20. script.Parent.Text = target.Mouseover.Value
  21. script.Parent.Visible = true
  22. end
  23. end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement