mouseRemote.OnClientEvent:Connect(function(plr)
local mouse = plr:GetMouse()
local mousePos = mouse.Hit
print(mousePos)
end)
mousePos errors nil, except on the player that is sent through the remote. How do i fix this?
mouseRemote.OnClientEvent:Connect(function(plr)
local mouse = plr:GetMouse()
local mousePos = mouse.Hit
print(mousePos)
end)
mousePos errors nil, except on the player that is sent through the remote. How do i fix this?
Get player using game.Players.LocalPlayer
OnClientEvent doesn’t return player.