Entity not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    an eyes clone!

  2. What is the issue? Include screenshots / videos if possible!
    idk how

local delay = false
game.ReplicatedStorage.RaycastForCreep.OnClientEvent:Connect(function(obj)
	if game.Players.LocalPlayer:GetMouse().Target and game.Players.LocalPlayer:GetMouse().Target == obj and delay == false then
		delay = true
		script["Near Miss"]:Play()
		script.SightAudio:Play()
		wait(0.5)
		game.ReplicatedStorage.JumpscareForCreep:FireServer(obj)
		script.SightAudio:Stop()
	end
	wait(1)
	delay = false
end)

i just need this code to work

1 Like

Is the entity is about the movement of the NPC along the movement of the mouse cursor ?

1 Like

its just detecting if its touching the cursor

1 Like

Are you getting any errors? What is your goal and in what way is the script not meeting that goal?

1 Like

no errors, and it just doesnt detect if the cursor touches the invisible part. (which is supposed to be an entity with a billboardgui)

1 Like