|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|