when u fire that RemotEvent from the client, send LocalPlayer:GetMouse().Hit.CFrame to the Server, and use that cframe for the wall. I think that will work im not sure though:
local Replicated = game:GetService("ReplicatedStorage")
local Storage = game:GetService("ServerStorage")
local Remote = Replicated:FindFirstChild("CreateWall")
Remote.OnServerEvent:Connect(function(Player,MouseCFrame)
local Wall = Storage:FindFirstChild("Wall"):Clone()
Wall.CFrame = MouseCFrame -- put offsets if u want to
Wall.Parent = workspace
task.wait(3)
Wall.Anchored = false
Wall.CanCollide = false
end)
Are you sending the player instance from the local script to the remoteevent?
if so, remove it since remotevents sends the player automatically from client to server.
It should be just