How I can make UI hitmarker to Another Player

no hitmarker:

with hitmarker:

this hitmarker UI, not 3d object

???

1 Like

You can just change the cursor once they’re hit, or add a billboard UI on said player, raycasting can help with finding the player that was hit.

How can I place the hitmarker exactly in the UI after finding it?

If you use the cursor method, just simply change the cursor:

local Mouse = player:GetMouse()

Mouse.Cursor = " " -- id

The UI method would just be enabling the screengui, and the billboard UI would be:

-- make sure to make your UI and to place the gui somewhere like.. replicated storage
local BillboardUI = game:GetService("ReplicatedStorage").HitmarkerGUI -- name this whatever

-- some raycasting here
BillboardUI.Parent = hit.Parent.HumanoidRootPart -- You can either disable this or just parent it back to replicated storage, if you want to destroy it, make sure to clone the gui like: 
--- local BillboardUI = game:GetService("ReplicatedStorage").HitmarkerGUI:Clone()

is HitmarkerGUI 3D object ? beucase if its UI, how working on 3d object

Billboard UI can be displayed on 3d objects.

Wouldn’t it be easier to use this?:
localscript:

Screen:

it worked

2 Likes