I was creating a building system, and I wanted to make the placement server-sided, so I added a remote event into ReplicatedStorage and had this portion of a LocalScript typed up:
(it's specificly this part that isnt working)
function placeItem()
local place = clone:Clone()
place.Parent = workspace
place.PrimaryPart.Transparency = 0
place.PrimaryPart.CanCollide = true
end
mouse.Button1Down:Connect(function()
game.ReplicatedStorage.PlaceItem:FireServer(clone)
end)
then, I made a ServerScript in the ServerScriptService and typed up:
game.ReplicatedStorage.PlaceItem.OnServerEvent:Connect(function(player,clone)
local place = clone:Clone()
place.Parent = workspace
place.PrimaryPart.Transparency = 0
place.PrimaryPart.CanCollide = true
end)
However, it keeps saying that the clone in the serverscript is nil. I clearly defined the object, but it's not detecting it.
What on earth??!! Help please!

1 comment
ty