so I'm trying to make a raycast with a tool that when activated and the mouse clicks on a humanoid, it should do a fire the server from the local script to the server script, this would create a raycast from the end of the pistol to the humanoidrootpart of the enemie, the problem I have is that it gives the warning that origin is not a valid type for event, got type: player which I don't get why because the tool (gun) is script.parent and the script is found inside the tool (gun).
#Aim Bot gun giving a error
1 messages · Page 1 of 1 (latest)
You are firing with the argument player on the client, the argument player from the callback is automatically the first argument, wich means that even though on the client you are firing with (player, origin, direction) the server recieves (player, player, origin, direction) Remove the player from the arguments of the FireServer Method
** You are now Level 1! **