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

nerdbux is not a valid member of ReplicatedStorage "ReplicatedStorage" How do I fix this?

local nerd = script.Parent nerd.ClickDetector.MouseClick:Connect(function(player) local dollar = game.ReplicatedStorage.nerdbux:Clone() dollar.Parent = script.Parent dollar.Position = script.Parent.Position end) I've tried switching over from serverstorage to replicated storage.

And the script wasn't cloning even in replicated storage. Nothing has been working and I cant seem to find out the error. If someone can fix my script, that would be great!

2 comments

0

are you sure nerdbux is actually something that exists in the replicatedstorage?

0

yeah, it is.

1 answer


local nerd = script.Parent
nerd.ClickDetector.MouseClick:Connect(function(player)
	print("Cloned!")
	local nerd = game.Workspace.nerdbux:Clone()
	nerd.Name = "fard"
	nerd.Position = script.Parent.Position
	nerd.Parent = game.Workspace
end)

I fixed it by changing the original parent of the part that I was trying to clone.

This discussion is preserved as it was. New answers, comments, and votes are closed.