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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: What's wrong with this script? D:

Previous Thread :: Next Thread 
Jammintoad is not online. Jammintoad
Joined: 08 Feb 2009
Total Posts: 10239
29 Dec 2011 04:51 PM
    function onTouched(hit)
    if hit.Parent:FindFirstChild("Humanoid") and debounce == false then --change this to the teamcolor of the team you want to be able to open this door
    tournamentactivated = true
    debounce = true
    local h = Instance.new("Message")
    h.Parent = Workspace
    h.Text = "The tournament has been activated"
    lol = true
    e = 0
    c = 0
    wait(5)
    h:Destroy()
    debounce = false
    end
    while lol == true do
    wait(2)
    if e == 8 then
    local t = Instance.new("Message")
    t.Text = "The bagels have won the tournament!"
    e = 0
    c = 0
    lol = false
    tournamentactivated = false
    elseif c == 8 then
    local z = Instance.new("Message")
    z.Text = "The Jalepenos have won the tournament"
    e = 0
    c = 0
    lol = false
    tournamentactivated = false
            
            end
        end
    end
    
    script.Parent.Touched:connect(onTouched)

Report Abuse
Xsitsu is not online. Xsitsu
Joined: 28 Jul 2009
Total Posts: 2921
29 Dec 2011 04:51 PM
What does the output say?
Report Abuse
Jammintoad is not online. Jammintoad
Joined: 08 Feb 2009
Total Posts: 10239
29 Dec 2011 04:51 PM
The message does not display...
Report Abuse
Jammintoad is not online. Jammintoad
Joined: 08 Feb 2009
Total Posts: 10239
29 Dec 2011 04:52 PM
Output says nothing apparently...
Report Abuse
Jammintoad is not online. Jammintoad
Joined: 08 Feb 2009
Total Posts: 10239
29 Dec 2011 05:57 PM
Bumpo D:
Report Abuse
Jammintoad is not online. Jammintoad
Joined: 08 Feb 2009
Total Posts: 10239
29 Dec 2011 06:09 PM
Aren't you guys supposed to *help* people with their scripts?
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
29 Dec 2011 06:41 PM
h:Destroy()
should be
h:remove()
Report Abuse
Phellem is not online. Phellem
Joined: 04 Aug 2011
Total Posts: 1984
29 Dec 2011 06:42 PM
@jode6543

That does not matter.
Report Abuse
jode6543 is not online. jode6543
Joined: 16 Jun 2009
Total Posts: 5363
29 Dec 2011 06:43 PM
...
*wiki's*
http://wiki.roblox.com/index.php/Destroy

... You learn something new every day.
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