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

Why won't it clone?

Message=game.Workspace.Message
Text=Message.Text

Message.Text="Loading Map."
wait(1)
Message.Text="Loading Map.."
wait(1)
Message.Text="Loading Map..."
wait(5)
game.Lighting.BeachHouse:Clone(204, 0.6, 153)
Message.Text="The system chose 'Beach House' as the map for this round."
wait(3)
Message.Text="Survive the killer, follow the defender of the innocents."
wait(5)


Line 10, it won't clone. WHy???

3 answers

game.Lighting.BeachHouse:Clone().Parent = game.Workpsace

If you want to use the map again then clone it not take it from lighting forever then when you remove the map you won't be able to use it again.

Message=game.Workspace.Message
Text=Message.Text

local beach = game.Lighting.BeachHouse

Message.Text="Loading Map."
wait(1)
Message.Text="Loading Map.."
wait(1)
Message.Text="Loading Map..."
wait(5)
beach.Parent = Workspace -- Before Placing the Beach House into lighting, build it were you want it to appear when transferring Parents
Message.Text="The system chose 'Beach House' as the map for this round."
wait(3)
Message.Text="Survive the killer, follow the defender of the innocents."
wait(5)


Sorry I thought this would be easier then :Clone()

1 comment

0

After the game is done I would do beach.Parent = Lighting

map1 = game.Lighting:findFirstChild("BeachHouse")
Message=game.Workspace.Message
Text=Message.Text

Message.Text="Loading Map."
wait(1)
Message.Text="Loading Map.."
wait(1)
Message.Text="Loading Map..."
wait(1)
Message.Text="Survive the killer, follow the defender of the innocents."
wait(5)
Message:Destroy()

clone = map1:clone() 
wait()
map1:remove()
while true do 
local map = clone:clone()
map.Parent = game.Workspace
wait(time)
map:remove()
end

Any questions? Pm me on Sarcasticly on ROBLOX. Hope this helped.

1 comment

0

Though the second time you run the map you will get an error.., Because you already used the clone it's good to create a clone on the post and use it all the time.I knot the effort you put in there :)

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