Advertisement
IsaacFG1

Roblox Mouse Cursor

Oct 5th, 2024 (edited)
263
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | Gaming | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2. local cursor = Instance.new("Part", game.Workspace)
  3. cursor.BrickColor = BrickColor.random()
  4. cursor.Size = Vector3.new(1, 1, 1)
  5. cursor.CanCollide = false
  6. cursor.Anchored = true
  7. cursor.Position = mouse.Hit.Position
  8. mouse.TargetFilter = cursor
  9. cursor.CanQuery = false
  10. mouse.Move:Connect(function()
  11.     cursor.Position = mouse.Hit.Position
  12. end)
  13. mouse.Idle:Connect(function()
  14.     cursor.Position = mouse.Hit.Position
  15. end)
  16.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement