A Custom Cursor application.
Uses Render Stepped to update a image every frame.
Uses:
The main purpose for this is to expand upon normal cursor applications and allow things such as UI Effects on your cursor, Besides that this is absolute due to “Mouse Icon”
Pros:
Simple.
Optimized.
Smoother Cursor Movement.
Cons:
Trying to do anything UI related with this will create extra random instances…
Kind of Unnecessary
Preview Code:
--//Services
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
--//Variables
local GuiInset = GuiService:GetGuiInset()
local Icon = script.Parent.Cursor
--//UserInputService
UserInputService.MouseIconEnabled = false
--//Runservice
RunService.RenderStepped:Connect(function(DeltaTime)
--Define
local MousePosition = UserInputService:GetMouseLocation() - GuiInset
--Set
Icon.Position = UDim2.fromOffset(MousePosition.X,MousePosition.Y)
end)
Rbxm File:
CustomCursor.rbxm