|
| 25 Feb 2009 08:24 PM |
This doesn't seem to be working. I've checked over it a few times, but found no errors. I was hoping that somebody here could help me. The script is supposed to be for a minigames place.
while true do wait(5) local m = math.random(1,5) local player = game.Players:GetPlayers() for i = 1, #player do msg = Instance.new("Message") msg.Parent = nil if m == 1 then msg.Parent = game.Workspace msg.Text = "Choosing Minigame..." wait(4) msg.Text = "Minigame Choosen Is: Death Plate Sword Fight!" wait(3) msg.Text = "Begin!" wait(3) player[i].Character:MoveTo(Vector3.new(206, 89.4, -188)) msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace game.Lighting.Sword:clone().Parent = player[i].Backpack wait(60) msg.Parent = game.Workspace msg.Text = "The minigame has ended." wait(3) msg:remove() game.Workspace.Minigame1:Remove() end if m == 2 then msg.Parent = game.Workspace msg.Text = "Choosing Minigame..." wait(4) msg.Text = "Minigame Choosen Is: Death Plate Rocket Fight!" wait(3) msg.Text = "Begin!" wait(3) player[i].Character:MoveTo(Vector3.new(206, 89.4, -188)) msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace game.Lighting.Rocket:clone().Parent = player[i].Backpack wait(60) msg.Parent = game.Workspace msg.Text = "The minigame has ended." wait(3) msg:remove() game.Workspace.Minigame1:Remove() end if m == 3 then msg.Parent = game.Workspace msg.Text = "Choosing Minigame..." wait(5) msg.Text = "Minigame Choosen Is: Death Plate Slingshot Fight!" wait(3) msg.Text = "Begin!" wait(3) player[i].Character:MoveTo(Vector3.new(206, 89.4, -188)) msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace game.Lighting.Slingshot:clone().Parent = player[i].Backpack wait(60) msg.Parent = game.Workspace msg.Text = "The minigame has ended." wait(3) msg:remove() game.Workspace.Minigame1:Remove() end if m == 4 then msg.Parent = game.Workspace msg.Text = "Choosing Minigame..." wait(4) msg.Text = "Minigame Choosen Is: Death Plate Superball Fight!" wait(3) msg.Text = "Begin!" wait(3) player[i].Character:MoveTo(Vector3.new(206, 89.4, -188)) msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace game.Lighting.Superball:clone().Parent = player[i].Backpack wait(60) msg.Parent = game.Workspace msg.Text = "The minigame has ended." wait(3) msg:remove() game.Workspace.Minigame1:Remove() end if m == 5 then msg.Parent = game.Workspace msg.Text = "Choosing Minigame..." wait(4) msg.Text = "Minigame Choosen Is: Death Plate Paintball Fight!" wait(3) msg.Text = "Begin!" wait(3) player[i].Character:MoveTo(Vector3.new(206, 89.4, -188)) msg:remove() game.Lighting.Minigame1:clone().Parent = game.Workspace game.Lighting.PBG:clone().Parent = player[i].Backpack wait(60) msg.Parent = game.Workspace msg.Text = "The minigame has ended." wait(3) msg:remove() game.Workspace.Minigame1:Remove() end end end end |
|
|
| Report Abuse |
|
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 25 Feb 2009 08:36 PM |
| You used :moveto on the player. Try replacing that with torso.CFrame = CFrame.new(0, 0, 0) or whatever position |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:37 PM |
Where?
And :MoveTo() is safer because if the person is dead it won't break... |
|
|
| Report Abuse |
|
|
| |
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 25 Feb 2009 08:39 PM |
*spellshock Try not using a lv when you declare a new cframe. That fixes it. Also theyoyo cframe won't break when the person is dead. The torso will still go to the stadium. Even if the rest doesn't follow. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:40 PM |
| Nope, I've tried it before clc, when I was testing my minigames, and I was dead, the script broke. Then AFF suggested I used :MoveTo(), and it didn't break when I was dead. :D |
|
|
| Report Abuse |
|
|
zuloo37
|
  |
| Joined: 23 Feb 2008 |
| Total Posts: 999 |
|
|
| 25 Feb 2009 08:43 PM |
| Then you just typed it wrong. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:43 PM |
| No, I'm absolutely sure I typed it right zuloo... |
|
|
| Report Abuse |
|
|
zuloo37
|
  |
| Joined: 23 Feb 2008 |
| Total Posts: 999 |
|
|
| 25 Feb 2009 08:46 PM |
It should have worked... player.Character.Torso.CFrame = CFrame.new(0, 10, 0) That would work if you were dead. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:47 PM |
| Try it yourself, and when you're dead. It'll break. :P |
|
|
| Report Abuse |
|
|
zuloo37
|
  |
| Joined: 23 Feb 2008 |
| Total Posts: 999 |
|
|
| 25 Feb 2009 08:50 PM |
| Heh, i tried it, and it worked perfectly. I don't know what you're talking about.. |
|
|
| Report Abuse |
|
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 25 Feb 2009 08:50 PM |
if humanoid.Health <= 0 then return end There. Problem solved. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:54 PM |
I still don't think that will work clc. I tried something similar to that, and it still broke.
Btw you must not have of been dead when it teleported you zuloo, because it still breaks for me. |
|
|
| Report Abuse |
|
|
zuloo37
|
  |
| Joined: 23 Feb 2008 |
| Total Posts: 999 |
|
|
| 25 Feb 2009 08:55 PM |
| i tried it both dead and alive, and it worked... |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 08:56 PM |
| You are so using :MoveTo()... :P |
|
|
| Report Abuse |
|
|
zuloo37
|
  |
| Joined: 23 Feb 2008 |
| Total Posts: 999 |
|
|
| 25 Feb 2009 08:59 PM |
| no, that exact script i posted above, in the command bar. i think youre just typing it wrong. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 25 Feb 2009 09:01 PM |
| LOL. That's why... Do it in a real script. |
|
|
| Report Abuse |
|
|
clc02
|
  |
| Joined: 30 Dec 2007 |
| Total Posts: 7393 |
|
|
| 25 Feb 2009 09:03 PM |
I did. It still works. Trust me on this. Do you spell it cframe.new() Cframe.new() or CFrame.new()? Only theyyoyo |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 26 Feb 2009 03:33 PM |
*Bumps thread*
I spelled it CFrame.new(BLARGH)
And it broke when I tried it... >.> Trust meh! |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2009 03:48 PM |
| I'll try CFrame. I'll tell you guys if it works... |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
|
| 26 Feb 2009 03:51 PM |
Try it when you're dead... :P
Oh, and btw, everyone, I'm using this script, and when I'm dead, it breaks:
for i,v in ipairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(60, 60, 60) end
Above's script is not the best way to go, to vulnerable to breaking...
Below script has a smaller chance of breaking. :D
for i,v in ipairs(game.Players:GetChildren()) do v.Character:MoveTo(Vector3.new(60, 60, 60)) end |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2009 03:51 PM |
| Still nothing. It won't even start the script, it seems. The messages don't even appear. |
|
|
| Report Abuse |
|
|
theyyoyo
|
  |
| Joined: 28 Jul 2008 |
| Total Posts: 6319 |
|
| |
|
| |
|
Altair7
|
  |
| Joined: 09 Feb 2008 |
| Total Posts: 86 |
|
|
| 26 Feb 2009 05:06 PM |
| Erm, buddy. Use the Output bar. It will tell you whats wrong, on exactly what line. |
|
|
| Report Abuse |
|
|