Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can Someone Help With Mouse.Hit?

Hello, What I did is take the paintball Roblox Model and deleted everything inside, except the handle. I inserted the following LocalScript below:

player = game:GetService("Players").LocalPlayer
tool = script.Parent
tool.Equipped:connect(function(mouse)
	print(mouse.Hit.p)
end)

Am I using the wrong method? I have a completely empty baseplate, and whenever I equip the tool, it returns (0, 0, 0). How can I get the exact position of where the mouse is pointing? Thanks for reading.

1 answer

✓ Accepted answer

I don't know if this is the answer you are looking for but you could get the mouse from the player using

local mouse = player:Getmouse()

1 comment

0

Thanks! ... Man, how could I be so stupid! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.