I’m trying to make a script that changes the CFrame of its parent, but it doesn’t change the CFrame of the ones inside the part? I tried welding them and it doesn’t seem to work.
local part = script.Parent
local teleports = game.Workspace.stealthSodaTeleport
function stealthMode()
local tpTo = math.random(1,#teleports:GetChildren())
part.CFrame = teleports:WaitForChild(tpTo).CFrame
task.wait(10)
part.Parent = game.ReplicatedStorage.cache
task.wait(9)
part.Parent = game.Workspace.Sodas
end
while wait(10) do
stealthMode()
end
Hierachy: