When somebody presses a button in a GUI the remote event fires but it places a wall in front of all the players in the server how do I make it so it only spawns in front of the player that made the remote event fire? This script is a server script.
The script
local RemoteEvent = game.ReplicatedStorage.BuildWall
local Wall = game.ReplicatedStorage.Wall
local character = script.Parent
RemoteEvent.OnServerEvent:connect(function()
local ClonedWall = Wall:Clone()
ClonedWall.CFrame = CFrame.new(character:WaitForChild("HumanoidRootPart").Position + (character:WaitForChild("HumanoidRootPart").CFrame.lookVector * 3))
ClonedWall.Orientation = character.HumanoidRootPart.Orientation
ClonedWall.Parent = game.Workspace
end)
