script.Parent.ClickDetector.MouseClick:Connect(function()
game.ReplicatedStorage.Brick:Clone(). parent = game.Workspace
end)
COMMUNITY QUESTION
I need help with this clone script. I have the brick in replicated storage. What's wrong?
2 answers
There is a space between :Clone(). and **Parent. **
Line 2 should be
game.ReplicatedStorage.Brick:Clone().Parent = game.Workspace
Change Line 2 to this:
game.ReplicatedStorage.Brick:Clone().Parent = game.Workspace
You need to remove the space and Capitalize the P in Parent.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
parent has to have a capital P and there shouldn't be a space between the period and "parent'.