Trying to make a simple placement system in roblox Here is the script inside the tool.
script.Parent.Activated:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer()
end)
Here is the script inside the server script service
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr)
local mouse = plr:GetMouse()
local part = Instance.new("Part", workspace)
part.Position = mouse.Hit.p
end)

2 comments
You can't access a Client Instance on the Server. Pass MouseHit.P through the LocalScript.
But when I try: ServerScriptService.Script:3: invalid argument #3 (Vector3 expected, got Instance)