What do you want to achieve? The raycast laser reacts instantly like how it does in the world while it is put into a tool.
What is the issue? As you can see here, the laser in the workspace reacts instantly as it should.
For testing, I put the laser part in the tool and welded it with a motor6d to the handle, but for some reason it’s very delayed, and I’m not quite sure why.
This is the lasers code, it’s just a simple Raycast that’s firing with a heartbeat, how can I fix this issue?
local Part = script.Parent local Attachment1 = Part.Attachment1 local Attachment2 = Part.Attachment0 local RunService = game:GetService("RunService") Attachment1.Position = Attachment2.CFrame.LookVector * 500 RunService.Heartbeat:Connect(function() local result = workspace:Raycast(Part.Position, Part.CFrame.LookVector * 500) if result then Attachment1.WorldPosition = Vector3.new(result.Position.X, result.Position.Y, result.Position.Z) else Attachment1.Position = Attachment2.CFrame.LookVector * 500 end end)