How can I start a script that can make a GUI button move items to ServerStorage?

  1. What do you want to achieve? Keep it simple and clear!
    Have a UI button move models and parts to a folder in ServerStorage (to help reduce lag)

  2. What is the issue? Include screenshots / videos if possible!
    I have no idea on how to even start the script to get the parts to move to different places.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried searching for YouTube videos and looked on the DevForum but can’t find anything about it.

I’m not asking for anyone to type out whole scripts for me, but I would highly appreciate it if someone could point me in the right direction to get my planned idea working as smoothly as possible. Thank you!

So you want a player when mousebutton1click its moves a part to serverstorage right

The issue with this, in general, is that UI should be handled by the client, but ServerStorage cannot be accessed by the client. Consider using ReplicatedStorage instead. If you really don’t want to do that, though, just insert a ServerScript into the button and then
local part = something script.Parent.MouseButton1Down:Connect(function() part.Parent = game.ServerStorage end)

I’ll give this a go when I have some time later. Thank you!

I didn’t realise I left this for 5 days…
I’ll give you some better context on what I’m trying to do.

I want to move trees to either ReplicatedStorage or ServerStorage (anywhere that will reduce the lag). The script above didn’t work with the error shown below: