织梦CMS - 轻松建站从此开始!

欧博ABG官网-欧博官方网址-会员登入

How to make a Custom Curs欧博or

时间:2026-01-22 09:29来源: 作者:admin 点击: 6 次
How would I change the default Roblox cursor to my own image?

I suppose you could do this by changing the Icon, which works but isn’t practical because it will change back when you hover a button or something. Instead turn off the Mouse:

UserInputService.MouseIconEnabled = false

Then you could make an image follow the mouse:

mouse.Move:Connect(function() Image.Position = UDim2.new(0, Mouse.X, 0, Mouse.Y) end)

It may not be centered, to do that change the anchor point to 0.5,0.5

Screenshot

Make sure the Zindex is higher than all other UI’s so the mouse doesn’t go under.
Due to security reasons the image will not go above CoreUi.

Full script:

local inputServ = game:GetService("UserInputService"); local players = game:GetService("Players"); local player = players.LocalPlayer; --player local mouse = player:GetMouse(); -- mouse local Image = -- put directory here inputServ.MouseIconEnabled = false; -- disables the mouse icon (makes the mouse 'invisible') mouse.Move:Connect(function() -- fires when the mouse moves Image.Position = UDim2.new(mouse.X, 0, mouse.Y, 0); -- Changes image position to the mouse position end)

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2026-01-24 00:01 最后登录:2026-01-24 00:01
栏目列表
推荐内容