game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(player)
local ray = Ray.new(player.Character.AK47.Handle.Muzzle.Position, player.Character.AK47.Handle.Muzzle.Position + Vector3.new(100, 0, 0))
end)
This script works, but I want it to be yellow and visible. Any help?

3 comments
You can't make a ray visible, but you can make a part that represents it.
How?
You can make a beam with an attachment from your gun and put the other attachment at the player's mouse.hit.position