Okay so my last one was to figure out if I can find the mouse position of the mouse through a server side script(It can't). So I made a script after they told me that I can make a remote event and connect it to find the mouse position on the server side. So now I have the problem of figuring out how to do it. So when I did my remote events I dont really understand it too much even after reading it. So I came up with this script which probably does nothing or is unrelated to what I am trying to accomplish which is to make a script that spawns from your torso at the direction of your mouse. I have the torso part done and finished. I just need to figure out how to get the position of the mouse

`Script(Local and in StarterGUI): local ReplicatedStorage = game:GetService("ReplicatedStorage")

local MouseEvent = ReplicatedStorage:FindFirstChild("Mouse")

local Players = game:GetService("Players")

local localPlayer = Players.LocalPlayer

local mouse = localPlayer:GetMouse()

if mouse.X == mouse.X and mouse.Y == mouse.Y then

MouseEvent:FireServer()

end`

3 comments

0

Put your code in code blocks please.

0

Well, you should know that the first parameter passed is the player. Any arguments that are put in the parenthesis get passed to the 2nd parameter and beyond.

0

Can you explain that a bit more?