Gives you a mouse cursor for some games in roblox that disables it. best used when you run thirdp command using infinite yield
View raw script code
do
local Cursor, Outline, RunService, InputService = Drawing.new('Triangle'), Drawing.new('Triangle'), game:GetService('RunService'), game:GetService('UserInputService')
Cursor.Visible, Cursor.Filled, Cursor.Thickness, Cursor.Color, Cursor.ZIndex = true, true, 1, Color3.new(1, 1, 1), 99999
Outline.Visible, Outline.Filled, Outline.Thickness, Outline.Color, Outline.ZIndex = true, false, 1, Color3.new(0, 0, 0), 99998
InputService.MouseIconEnabled = false
RunService.RenderStepped:Connect(function()
local M = InputService:GetMouseLocation()
Cursor.PointA, Cursor.PointB, Cursor.PointC = Vector2.new(M.X, M.Y), Vector2.new(M.X + 16, M.Y + 6), Vector2.new(M.X + 6, M.Y + 16)
Outline.PointA, Outline.PointB, Outline.PointC = Cursor.PointA, Cursor.PointB, Cursor.PointC
end)
end
function ShowCursor()
local RunService, InputService, Cursor, Outline = game:GetService('RunService'), game:GetService('UserInputService'), Drawing.new('Triangle'), Drawing.new('Triangle')
Cursor.Visible, Cursor.Filled, Cursor.Thickness, Cursor.Color, Cursor.ZIndex = true, true, 1, Color3.new(1, 1, 1), 99999
Outline.Visible, Outline.Filled, Outline.Thickness, Outline.Color, Outline.ZIndex = true, false, 1, Color3.new(0, 0, 0), 99998
local OriginalIconState = InputService.MouseIconEnabled
InputService.MouseIconEnabled = false
local Con = RunService.RenderStepped:Connect(function()
local M = InputService:GetMouseLocation()
Cursor.PointA, Cursor.PointB, Cursor.PointC = Vector2.new(M.X, M.Y), Vector2.new(M.X + 16, M.Y + 6), Vector2.new(M.X + 6, M.Y + 16)
Outline.PointA, Outline.PointB, Outline.PointC = Cursor.PointA, Cursor.PointB, Cursor.PointC
end)
return function()
Con:Disconnect()
Cursor:Remove()
Outline:Remove()
InputService.MouseIconEnabled = OriginalIconState
end
end