Help someone. Filtering is enabled and I've tried to pass on the mouse from the local script but it just isn't working. Anyone have any ideas because I'm desperate.
01 | -- Local Script |
02 |
03 | Player = game.Players.LocalPlayer |
04 | mouse = Player:GetMouse() |
05 |
06 |
07 | anim = game.ReplicatedStorage.Caught |
08 |
09 | script.Parent.Equipped:connect( function () |
10 | mouse.Button 1 Down:connect( function () |
11 |
12 | script.Parent.RemoteEvent:FireServer(mouse,anim) |
13 | end ) |
14 | end ) |
15 |
Here's the thing, you cannot send the mouse over as an argument to be read by the server, you will have to send individual stuff over, so if you want to get the mouse.Target over you will have to send that over instead of the entire mouse.
1 | FireServer(mouse.Target,anim) |
2 |
3 | script.Parent.RemoteEvent.OnServerEvent:connect( function (Player,target,anim) |