GregTame
(GregTame)
#1
so, i’m trying to use the normal Tool API, because it already works well with humanoids, but i need to get the mouse for accurate firing…
the system i have now just sends the local mouse.Hit.P every 20th of a second, but it seems ineffective, and can easily be exploited.
but whenever i try to use the mouse given from Tool.Equipped, it says ‘this mouse is no longer active’
what am I to do?
Khodin
(Kal)
#2
Get the mouse from the Player instead, using Player:GetMouse().
I can’t remember the cause of the error - but it’s not important as you should be using ContextActionService, UserInputService, or Player:GetMouse().
local Mouse = game.Players.LocalPlayer:GetMouse()
print(Mouse.Hit)
This is the simplest solution - ContextActionService and UserInputService work fine, but they’re rather complex to do.