Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Doesn't show the cloned to the workspace, but things after runs. Please help?

Asked by 3 years ago

local status = game.ReplicatedStorage.Status game.Players.PlayerAdded:Connect(function(player) local function intermission(duration) for i = duration,0,-1 do status.Value = "Next Round Starts In "..i.." Seconds." wait(1) end end local function selectChapter() local chapters = game.ReplicatedStorage.Chapters:GetChildren() local chosenChapter = chapters[math.random(1,#chapters)] return chosenChapter end intermission(10) status.Value = "Chosing Chapter..." local chosenChapter = selectChapter() local clonedChapter = chosenChapter:Clone() clonedChapter.Name = "Map" clonedChapter.Parent = game.Workspace wait(5) status.Value = "Chapter "..chosenChapter.Name.." Has Been Chosen." end)

This script shows the Status bar value and everything. But the clonedChapter is not to be found in the Workspace. But all the status works correctly. Even the last

status.Value = "Chapter "..chosenChapter.Name.." Has Been Chosen."
0
did u state the parent of the part? imagoodlolboyeee 30 — 3y

Answer this question