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

Why won't it clone?

Asked by 10 years ago
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

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
10 years ago
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.

Ad
Log in to vote
0
Answered by
Vividex 162
10 years ago
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()

0
After the game is done I would do beach.Parent = Lighting Vividex 162 — 10y
Log in to vote
-4
Answered by 10 years ago
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.

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 :) HexC3D 830 — 10y

Answer this question