I want a laser too end when it hits something
The laser is currently going everywhere…
I’ve looked for solutions but that failed
local mouse = game.Players.LocalPlayer:GetMouse() local g = workspace.CurrentCamera:WaitForChild("m1") local laser = g.sight.stop while true do local pos = mouse.Hit.p laser.Position = pos game:GetService("RunService").RenderStepped:Wait() end
I think I’ve had something like this. Have you tried WorldPosition and not Position? (If it’s an attachment where the laser is pointing)
Forgot about that lol… thanks!
Why don’t you use raycasting to find the endpoint of the attachment?
raycasting
Because I have no idea how it works…