Why can't I change workspace to ReplicatedStorage? {Not Answered}
Asked by
4 years ago Edited 4 years ago
Orignal Scirpt But I Wanna Change The workspace on the 6 line To ReplicatedStorage.
2 | local plrs = game.Players:GetChildren() |
4 | local num = math.random( 1 , 32 ) |
5 | plrs [ i ] .Character.HumanoidRootPart.CFrame = CFrame.new(workspace.Teleporters.Teleparts [ "Part" ..num ] .Position) |
6 | plrs [ i ] .Character.Parent = workspace.Ingame |
This Is The How I Want To Change It But It Does Not Work And Theres A Error.
2 | local plrs = game.Players:GetChildren() |
4 | local num = math.random( 1 , 32 ) |
5 | plrs [ i ] .Character.HumanoidRootPart.CFrame = CFrame.new(ReplicatedStorage.Teleporters.Teleparts [ "Part" ..num ] .Position) |
6 | plrs [ i ] .Character.Parent = workspace.Ingame |
Please Help!