local G=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local z=Tool:WaitForChild("\082\101\109\111\116\101\069\118\101\110\116")local q=game:GetService("\082\117\110\083\101\114\118\105\099\101")local u=false local t=workspace.CurrentCamera Tool.Equipped:Connect(function()u=true end)Tool.Activated:Connect(function()q.RenderStepped:Connect(function()if u then local q=G:GetMouseLocation()local u=t:ScreenPointToRay(q.X,q.Y)z:FireServer(u)end wait()end)end)Tool.Unequipped:Connect(function()u=false end)
--local Mouse = player:GetMouse()
local UserInputService = game:GetService("UserInputService")
local Event = Tool:WaitForChild("RemoteEvent")
local RunService = game:GetService("RunService")
local Equipped = false
local camera = workspace.CurrentCamera

Tool.Equipped:Connect(function()
	Equipped = true
end)

Tool.Activated:Connect(function()
	RunService.RenderStepped:Connect(function()
		if Equipped then
			local mouse = UserInputService:GetMouseLocation()
			local unitray = camera:ScreenPointToRay(mouse.X, mouse.Y)
			Event:FireServer(unitray)
		end
		wait()
	end)
end)

Tool.Unequipped:Connect(function()
	Equipped = false
end)
