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

How do I move something from Workspace to ReplicatedStorage?

local target1 = CFrame.new(0 - 178, 79, 0)
local target2 = CFrame.new(0 - 178, 205, 0)

if #(game.Players:GetChildren()) > 1 then
	for i, player in pairs(game.Players:GetChildren()) do
		repeat wait() until player.Character ~= nil
		if player.Character.Humanoid.Health ~= 0 then
			game.Workspace.Spawn.Spawn.Enabled = true
			game.Workspace.Lobby.Spawn.Enabled = false
			game.ReplicatedStorage.arena1.Parent = workspace
			player.Character.Torso.CFrame = target1
		end
	end
end

if #(game.Players:GetChildren()) < 1 then
	for i, player in pairs(game.Players:GetChildren()) do
		repeat wait() until player.Character ~= nil
		if player.Character.Humanoid.Health ~= 0 then
			game.Workspace.Spawn.Spawn.Enabled = false
			game.Workspace.Lobby.Spawn.Enabled = true
			game.Workspace.arena1.Parent = ReplicatedStorage
			player.Character.Torso.CFrame = target2
		end
	end
end

Please help me! (I've asked a lot of questions)

1 comment

0

game.ReplicatedStorage

1 answer

✓ Accepted answer

Change line 22 of your code to game.Workspace.arena1.Parent = game.ReplicatedStorage. You just weren't referencing it correctly.

2 comments

0

mmm still some problems

0

are you getting any errors? could you post them?

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