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
 

Re: Whats wrong with this script?

Previous Thread :: Next Thread 
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
31 Jul 2012 05:50 PM
Code = script.Parent.Code.Value -- Change "Code's" value to your code located in the frame in the gui.
time = 4 -- Change to the time you want the door to close when opened. How many seconds you need to wait...

function clear()
script.Parent.Input.Text = nil
end

function one()
script.Parent.Input.Text = script.Parent.Input.Text.."1"
end

function two()
script.Parent.Input.Text = script.Parent.Input.Text.."2"
end

function three()
script.Parent.Input.Text = script.Parent.Input.Text.."3"
end

function four()
script.Parent.Input.Text = script.Parent.Input.Text.."4"
end

function five()
script.Parent.Input.Text = script.Parent.Input.Text.."5"
end


function six()
script.Parent.Input.Text = script.Parent.Input.Text.."6"
end

function seven()
script.Parent.Input.Text = script.Parent.Input.Text.."7"
end

function eight()
script.Parent.Input.Text = script.Parent.Input.Text.."8"
end

function nine()
script.Parent.Input.Text = script.Parent.Input.Text.."9"
end

function zero()
script.Parent.Input.Text = script.Parent.Input.Text.."0"
end

function ent()
if script.Parent.Input.Text == Code then
game.Workspace["Gui Code Door"].Door.Transparency = 0.4
game.Workspace["Gui Code Door"].Door.CanCollide = false
wait(time)
game.Workspace["Gui Code Door"].Door.Transparency = 0
game.Workspace["Gui Code Door"].Door.CanCollide = true
end
end

script.Parent.cle.MouseButton1Down:connect(clear)
script.Parent.en.MouseButton1Down:connect(ent)
script.Parent.1.MouseButton1Down:connect(one)
script.Parent.2.MouseButton1Down:connect(two)
script.Parent.3.MouseButton1Down:connect(three)
script.Parent.4.MouseButton1Down:connect(four)
script.Parent.5.MouseButton1Down:connect(five)
script.Parent.6.MouseButton1Down:connect(six)
script.Parent.7.MouseButton1Down:connect(seven)
script.Parent.8.MouseButton1Down:connect(eight)
script.Parent.9.MouseButton1Down:connect(nine)
script.Parent.0.MouseButton1Down:connect(0)


Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
31 Jul 2012 05:51 PM
script.Parent.Input.Text = nil ?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
31 Jul 2012 05:52 PM
Change what captain said to

script.Parent.Input.Text = ""

Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
31 Jul 2012 05:56 PM
Ok
Report Abuse
awas3 is not online. awas3
Joined: 24 Oct 2010
Total Posts: 2854
31 Jul 2012 05:57 PM
Nvm I lost the gui code door D:
Report Abuse
DarkKrystalo3o is not online. DarkKrystalo3o
Joined: 25 Feb 2012
Total Posts: 30
02 Aug 2012 03:30 PM
script.Parent.cle.MouseButton1Down:connect(clear)
script.Parent.en.MouseButton1Down:connect(ent)
script.Parent.1.MouseButton1Down:connect(one)
script.Parent.2.MouseButton1Down:connect(two)
script.Parent.3.MouseButton1Down:connect(three)
script.Parent.4.MouseButton1Down:connect(four)
script.Parent.5.MouseButton1Down:connect(five)
script.Parent.6.MouseButton1Down:connect(six)
script.Parent.7.MouseButton1Down:connect(seven)
script.Parent.8.MouseButton1Down:connect(eight)
script.Parent.9.MouseButton1Down:connect(nine)
script.Parent.0.MouseButton1Down
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