|
| 17 Sep 2011 02:18 AM |
This?
print("Close button loaded")
button = script.Parent window = script.Parent.Parent.Parent.Parent
function onClicked(GUI) for i, v in pairs(game.Players:GetChildren()) do v.Character.Torso.CFrame = CFrame.new(-93, 1.6, -14) wait(0.1) end end script.Parent.MouseButton1Down:connect(onClicked)
function onTouch(MAP) for i, v in pairs(game.Players:GetChildren()) do if game.NumPlayers = 4 .Touched.Zombie Start then local hint = Instance.new("Hint") hint.Parent = game.Workspace hint.Text = "Great you Have 4 Players Now The Game Can Start! in (5)" local debounce = false wait(1) hint.Text = "(4)" wait(1) hint.Text = "(3)" wait(1) hint.Text = "(2)" wait(1) hint.Text = "(1)" wait(1) hint.Text = "(The Zombies Are Invading)" wait(2) Message:remove() end
script.Parent.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|
|
| |
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 17 Sep 2011 03:05 AM |
| try removing the GUI arguments. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 17 Sep 2011 03:07 AM |
| and the MAP arguments, in the function name ofcourse. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 03:28 AM |
What I don't get is, you've done script.Parent.Touched:connect() and script.Parent.MouseButton1Down:connect()
How do you 'Touch' a Gui? Isn't it just that you have to click it? That, boi, is your problem. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 17 Sep 2011 03:29 AM |
| kingmod, he touches a brick and it pops up. |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 04:28 AM |
| No, no. Just look at the connection lines. You can't touch a Gui. It should be 'script.Parent.Parent' not 'script.Parent' or then it won't work. |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 17 Sep 2011 04:41 AM |
| ..How can you know they are in same script? |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 07:40 AM |
hey guys this is the line in my script im worried about take a look at this plz
if game.NumPlayers = 4 .Touched.Zombie Start then
would that work if you don't know what it's for just look at my script it's in there |
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 08:07 AM |
What are you trying to do?
You can try making a bool and check to see if it's on. |
|
|
| Report Abuse |
|
|