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

1

You can't make a ray visible, but you can make a part that represents it.

0

How?

0

You can make a beam with an attachment from your gun and put the other attachment at the player's mouse.hit.position