I am currently trying to make an event that occurs when a player looks at a brick, I've tried a lot of things, but none was successful, anyone?
One "hacky" of doing this is using the Camera:WorldToScreenPoint method.
local m = game.Players.LocalPlayer:GetMouse() m.Button1Down:Connect(function() local camera = workspace.CurrentCamera local worldPoint = workspace.Baseplate.Position local vector, onScreen = camera:WorldToScreenPoint(worldPoint) print(onScreen) -- true if it's on the screen print(vector) end)
A problem with this can be found by AllYourBlox's post here
Closed as Too Broad by Leamir, IcyEvil, Vulkarin, and User#21908
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?