function getMouse(Player)
local T = Instance.new("Tool",Player.Backpack)
local P = Instance.new("Part",T)
local Mouse = nil
P.Name = "Handle"
T.Equipped:connect(function (m) Mouse = m end)
T.Parent = Player.Character
wait(5)
T:Remove()
return Mouse
end
local Mouse = getMouse(game.Players.LocalPlayer)
if Mouse ~= nil then
Mouse.Button1Down:connect(function () mouseDown(Mouse) end)
end
print(Mouse.Target)
print("FINISHED")
When I do this the script stops at print(Mouse.Target) saying mouse is nil. Help?

1 comment
Why not use Player:GetMouse() instead of hopperbins?