Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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!

0
are you sure `nerdbux` is actually something that exists in the replicatedstorage? Miniller 562 — 2y
0
yeah, it is. CodedWRLD 0 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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.

Ad

Answer this question