Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to remove default Roblox crosshair?

Asked by 5 years ago

So what I want is to remove the default Roblox crosshair and add my own. This is the script I made, my crosshair is added but the Roblox one is not removed, thanks!

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = game.StarterGui.Crosshair.CrosshairGUI

"Crosshair" is the LocalScript which the above script is located and "CrosshairGUI" is the Crosshair GUI which is located inside the LocalScript. So basically, what I want is to remove the Roblox default crosshair.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

First of all, you should use image urls like "rbxassetid://" or "rbxgameasset://" to make the icon. If you make a url of your icon and replace it with the mouse.Icon, the Roblox default will be removed.

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = --"rbxgameasset://YOURNUMBERS" or "rbxassetid://YOURNUMBERS"

To get the links, either use image URLs from Roblox or create an image label in Starter GUI, paste the image you want and copy the link.

Hope this kinda helps, tell me if anything is not working.

0
Hey it didnt work btw the roblox default crosshair is still there ItsMagmaCream -5 — 4y
Ad

Answer this question