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

Is there a way to clone/Move a part with a local script without making it a local part?

So basically i want to move a part and name it with the players name but once i move it to workspace only i can see my part, is there a way i can prevent this?

wait(2)
local Pos = game.Workspace.Spawn.Position
local Player = script.Parent:Clone()
local NM = script.Parent.Parent.NM.Value
	Player.Name = NM
	Player.Parent = game.Workspace.Players
	Player.Position = Pos
script.Parent.Parent.Parent.Controls.ControlMain.Disabled = false

5 comments

0

If it's in a local script then put it in a normal script, unless if not then when making a variable don't put "local" before it

0

It has to be a local script as it is located in PlayerGui

0

don't put it in there then

0

That's how i get the players name.

0

use remote events

1 answer

✓ Accepted answer

There's no way.

If you want the part to be replicated through all clients, it'll need to be server-side.

You can use RemoteEvents and RemoteFunctions to achieve this, but there is no way you can replicate it client-side.

2 comments

0

Then i am stuck, I have no way to fix it... Thank you for the help.

0

You can read articles on the roblox dev hub on how to make FE compatible places. https://www.robloxdev.com/articles/Converting-From-Experimental-Mode

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