So iam actually trying to make an event replicate to the server but somwhow one of the parameters return nil.
LocalScript
if result then
local newBlock = block:Clone()
print(newBlock)
local position = round(result.Position + result.Normal, 3)
local blockParent = workspace
local anchored = true
showBlocks:FireServer(newBlock, position, blockParent, anchored)
end
ServerScript
local function onCreatePart(plr, blockName, pos, parent, anchored)
print(blockName, pos, parent, anchored)
end
showBlocks.OnServerEvent:Connect(onCreatePart)
In the localscript it prints Part as normal but in the server script it prints nil, idk y it does tht.
Thanks for any help in advance!