|
Idk what's wrong with this script, it won't load the level for some reason. (NOTE: This is only part of the script.)
while true do
wait(15)
local m = math.random(1,2)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = Level1.Workspace
msg.Text = "Loading Level..."
wait(2)
if competitors >= 1 then
msg.Text = "Level Complete!"
wait(2)
msg.Text = "Level: Brickbattle Arena"
wait(2)
msg.Text = "Minigame: Swordfight Showdown"
wait(3)
msg.Text = "Use your sword to fight. Last person standing wins!"
wait(3)
msg.Text = "Ready to play?"
wait(2)
msg.Text = "5"
wait(1)
msg.Text = "4"
wait(1)
msg.Text = "3"
wait(1)
msg.Text = "2"
wait(1)
msg.Text = "1"
wait(1)
msg.Text = "Go!!"
wait(1)
player[i].Character:MoveTo(Vector3.new(-18, 0.6, 9))
msg:remove()
game.Lighting.Level1:clone().Parent = game.Workspace
game.Lighting.Sword:clone().Parent = player[i].Backpack
wait(90)
if #remaining <= 2 then
msg.Parent = game.Workspace
msg.Text = "Finish!"
wait(3)
msg:remove()
game.Workspace.Level1:Remove()
end |
|
|
umm you never copied/inserted level1 from lightning.. |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
'msg.Parent = Level1.Workspace'
How is that possible? |
|
|
Ah crap, forgot that. I guess it should be Level1.Lighting? |
|
|
No. Lighting is not a child of Level1, nor is Workspace. |
|
|
So lemme get this straight, Level1 should be a model with the childs (bricks) inside? |
|
|
Sheesh, this is complicated. I don't think this'll ever get through... |
|
|
while true do
wait(15)
local m = math.random(1,2)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = Level1.Workspace
msg.Text = "Loading Level..."
wait(2)
if competitors >= 1 then
msg.Text = "Level Complete!"
wait(2)
msg.Text = "Level: Brickbattle Arena"
wait(2)
msg.Text = "Minigame: Swordfight Showdown"
wait(3)
msg.Text = "Use your sword to fight. Last person standing wins!"
wait(3)
msg.Text = "Ready to play?"
wait(2)
msg.Text = "5"
wait(1)
msg.Text = "4"
wait(1)
msg.Text = "3"
wait(1)
msg.Text = "2"
wait(1)
msg.Text = "1"
wait(1)
msg.Text = "Go!!"
wait(1)
player[i].Character:MoveTo(Vector3.new(-18, 0.6, 9))
msg:remove()
game.Lighting.Level1:clone().Parent = game.Workspace
game.Lighting.Sword:clone().Parent = player[i].Backpack
wait(90)
if #remaining <= 2 then
msg.Parent = game.Workspace
end
msg = Instance.new("Message")
msg.Parent = game.Workspace
msg.Text = "Finish!"
wait(3)
msg:remove()
game.Workspace.Level1:Remove()
end |
|
|
That should fix it. There were to errrors. |
|
|
Nevermind, lol.
while true do
wait(15)
local m = math.random(1,2)
local player = game.Players:GetPlayers()
for i = 1, #player do
msg = Instance.new("Message")
msg.Parent = nil
if m == 1 then
msg.Parent = Level1.Workspace
msg.Text = "Loading Level..."
wait(2)
if competitors >= 1 then
msg.Text = "Level Complete!"
wait(2)
msg.Text = "Level: Brickbattle Arena"
wait(2)
msg.Text = "Minigame: Swordfight Showdown"
wait(3)
msg.Text = "Use your sword to fight. Last person standing wins!"
wait(3)
msg.Text = "Ready to play?"
wait(2)
msg.Text = "5"
wait(1)
msg.Text = "4"
wait(1)
msg.Text = "3"
wait(1)
msg.Text = "2"
wait(1)
msg.Text = "1"
wait(1)
msg.Text = "Go!!"
wait(1)
player[i].Character:MoveTo(Vector3.new(-18, 0.6, 9))
msg:remove()
d = game.Lighting.Level1:clone().Parent = game.Workspace
d:MakeJoints
game.Lighting.Sword:clone().Parent = player[i].Backpack
wait(90)
remaining = game.Players:GetChildren()
if #remaining <= 2 then
msg.Parent = game.Workspace
msg.Text = "Finish!"
wait(3)
msg:remove()
game.Workspace.Level1:Remove()
end
Now it should be fixed lol.
Sorry for the spam D: |
|
|
It's completely ok. Thanks. |
|
|
That won't work!
msg.Parent = Level1.Workspace --It's impossible for Level1 to be a child of Workspace. >.<
|
|
|
OK, I'm getting confused. So the msg.Parent is Level1. then it's what? Parent? Child? Or what? |
|
|
Well, I found it out. But it's still having problems. I'll se what's wrong. |
|