generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Whats wrong with this?

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
17 Sep 2011 02:38 AM
Annyone lol
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
17 Sep 2011 03:05 AM
try removing the GUI arguments.
Report Abuse
digpoe is not online. 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
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
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 is not online. 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
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
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 is not online. 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
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image