Hm, the problem still persist. I look in the output and see no errors but nothing seems to happen.
Is there a place where I should put the script specifically? or am I missing something?
Here is what I tried to change.(I also added some stuff but I don’t know if that effects)
--local script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
RemoteEvent:FireServer(Vector3.new(0,20,0))
--script
ReplicatedStorage = game:GetService("ReplicatedStorage")
RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
local Part = Instance.new("Part")
function PartPositioning(Player,NewPosition)
local RootPart = Player.Character.PrimaryPart
Part.Anchored = true
Part.Position = RootPart.Position + NewPosition
Part.CanCollide = false
Part.Size = Vector3.new(10,10,10)
end
--Calls on function when player fires the remoteEvent
RemoteEvent.OnServerEvent:Connect(PartPositioning)
Using dot syntax for indexing contents of ReplicatedStorage works perfectly fine, contents of ReplicatedStorage exist implicitly and are replicated by the time local scripts execute. No need for :WaitForChild() here
I just ran a few tests of my own and I tried to set up the scenario as I believe you have it set up. The problem I found was the part appeared not to be there, so I went to the explorer and realised the part was there, just at a completely different Y-value than I was expecting. This is because the local script executes as soon as it can, at which time the player’s character is still in the air (when you start a game the player spawns in the sky and drops down). I fixed the problem by adding a wait(2) before firing the RemoteEvent in the local script. Obviously this is not ideal and players will have varying loading times, however it showed what the problem for me was: the RemoteEvent is firing too early. Try putting a wait(3) before firing the RemoteEvent and see if it fixed your problem.
Nope, I looked in the workspace while firing and a part wasn’t created still so I tried increasing the wait time to 10 but nothing still appeared. This is really weird.