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

How do i move items from replicated storage?

I m making a game where random events will happen and one of the events is i want to put a sweeper onto the field

local Sweeper = game:GetService("ReplicatedStorage").Sweeper:Clone()

Sweeper.Parent = game.Workspace

That's my current script for moving it out of ReplicatedStorage to the workspace but it isn't working. please help

3 answers

My question is, where are you running that?

If it's not a server script (if the script is a localscript), make sure it is a server script. Otherwise, make sure that certain event is ran correctly.

3 comments

0

It is a server script

0

That's what I'm asking you. Check the properties of the script and see if it's a local script. If it is, copy paste the code into a server script in ServerScriptStorage.

0

yeah its a server script in server script service

try changing the position after moving it to workspace. maybe was under the map when you put it in replicated storage. did you see it pop up in the explorer when you ran the game? or make sure can-collide is on so it doesn't fall through the baseplate.

local RunService = game:GetService'RunService'
local ReplicatedStorage = game:GetService'ReplicatedStorage'

RunService.Heartbeat:Connect(function()
	local Sweeper = ReplicatedStorage.Sweeper:Clone()
	Sweeper.Parent = game.Workspace
end)	

5 comments

0

No it was still in replicated storage

0

could you send a screenshot? does the script error?

0

I am so sorry it was a mistake on my part i put the if loop in a nother if loop on accident

0

try dat scrip dos it lag u o-o

0

wot

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