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
 

Can I quit this script midway if need be?

Previous Thread :: Next Thread 
tweetytime is not online. tweetytime
Joined: 19 Apr 2008
Total Posts: 397
14 Feb 2013 06:05 PM
-- Its supose to check the base and if the value of owner in the base is == none then it is supose to make u the owner. BUt if it is taken already then it souldent be == "None" and if it isent == to that then I want to dispay to the pwerson clicking this "T" a msg that says just that. and after it displays that i would like it to end the script and wait until the player clicks the buton agian not proceed on. Please help

function Click(plr)

local CurentGUI = script.Parent.Parent
local GUI = script.Parent.Parent.Parent
local FutureGUI = GUI.TycoonsPIKER
local P = plr.Name
local Tt = script.Parent.Parent
local T = Tt.T

if script.Parent.Name == "Base1" then

if game.Workspace.Base1.Owner.Value == "None" then
game.Workspace.Base1.Owner.Value = "".. P ..""
else
T.Visible = true
wait(5)
T.Visible = false -- Here
end

plr.Character.Torso.CFrame = CFrame.new(202, 27.4, 1126)
CurentGUI.Visible = false
FutureGUI.Visible = true


elseif script.Parent.Name == "Base2" then

if game.Workspace.Base2.Owner.Value == "None" then
game.Workspace.Base2.Owner.Value = "".. P ..""
else
T.Visible = true
wait(5)
T.Visible = false
end

plr.Character.Torso.CFrame = CFrame.new(202, 27.4, 566)
CurentGUI.Visible = false
FutureGUI.Visible = true


elseif script.Parent.Name == "Base3" then

if game.Workspace.Base3.Owner.Value == "None" then
game.Workspace.Base3.Owner.Value = "".. P ..""
else
T.Visible = true
wait(5)
T.Visible = false
end

end
end

script.Parent.MouseButton1Down:connect(function() Click(game.Players.LocalPlayer) end)
Report Abuse
Fattycat17 is not online. Fattycat17
Joined: 26 Jun 2011
Total Posts: 1527
14 Feb 2013 07:31 PM
Lol too lazy to actually run this on Studio
FYI You can just do Game.BLAH.Value = VARIABLENAME
Report Abuse
bigdaddy92 is not online. bigdaddy92
Joined: 17 Jan 2010
Total Posts: 1684
14 Feb 2013 07:37 PM
If you'd like, I could remake this entirely for you.
As, sometimes it is hard to debug others code, all people have their coding styles, but mine is a bit different than yours.

-bigdaddy92, Professional Web Developer & Master Scripter
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