I've been trying to do this, but I can't, this is all new stuff so sorry if its painfully obvious. I'm trying to make an area system, so if someone buys it, it will save, of course I can't store this on the server, so I moved it to the client. But the folder/part isn't showing up. Here is the code:

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local remoteFunction = ReplicatedStorage:WaitForChild("RemoteFunctionTest")


local function teleport(player)
	script.Parent = workspace.obby
end

remoteFunction.OnServerInvoke = teleport
teleport()

I also have a remote function in replicated storage, I have never used remote functions/ remote events. Also pretty new to scripting. Thanks Edit: the reason why I have "folder/parts" in the title is because I can move either one of them, the part is inside of the folder that can move, or I can move the parts inside of another folder inside the workspace

2 comments

0

Why are you running the function after assiging the remote function?

0

I don't know, I don't know how to use these