Hello there, I'm trying to make a GUI that will clone a part in ServerStorage then move it to Workspace. For some weird reason, it just says "TestPart is not a valid member of ServerStorage".
Here's my script(It's a local script in the button):
script.Parent.MouseButton1Click:Connect(function()
local storage = game:GetService("ServerStorage")
local part = storage["TestPart"]:clone() -- Change "Part" to the part name.
part.Parent = game.Workspace
end)

6 comments
So do I put that in 1 local script???
The client side script
I mean do I put both of the code in 1 local script in the button?
I think I know what to do.
put the client side code where you had your local script, and put the server side code in a server script (prefereably in server script service)
Thank you.