vikingboy
|
  |
| Joined: 25 Apr 2008 |
| Total Posts: 1219 |
|
|
| 31 Mar 2012 01:56 AM |
Script is placed inside a textlabel. WHat is supposed to happen is if "g1" is in a certain position specified in the script, then a button will become visible. If not, then another button will be visible.
script:
g1 = game.Workspace.g1 If g1.Position = 913.3, 781.5, 187.5 then script.Parent.Parent.Close.Visible = true else script.Parent.Parent.Open.Visible = true script.Parent.Parent.Close.Visible = false
|
|
|
| Report Abuse |
|
|
Lucrum
|
  |
| Joined: 27 Mar 2012 |
| Total Posts: 25 |
|
|
| 31 Mar 2012 02:37 AM |
g1 = game.Workspace.g1
if g1.Position = Vector3.new(913.3, 781.5, 187.5) then script.Parent.Parent.Close.Visible = true else script.Parent.Parent.Open.Visible = true script.Parent.Parent.Close.Visible = false end |
|
|
| Report Abuse |
|
|
|
| 31 Mar 2012 03:55 AM |
Almost, but you missed out an '=':
g1 = game.Workspace.g1
if g1.Position == Vector3.new(913.3, 781.5, 187.5) then script.Parent.Parent.Close.Visible = true else script.Parent.Parent.Open.Visible = true script.Parent.Parent.Close.Visible = false end |
|
|
| Report Abuse |
|
|