Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I need help with this clone script. I have the brick in replicated storage. What's wrong?

script.Parent.ClickDetector.MouseClick:Connect(function()
game.ReplicatedStorage.Brick:Clone(). parent = game.Workspace
	end)

1 comment

0

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

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.