drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 10:47 PM |
it isn't changing the value.
brick = script.Parent
game.Players.PlayerAdded:connect(function(player)
brick.Touched:connect(function() game.Players.player.PlayerGui.Main_Menu.GUI_Holder.Options.Detail.In_World.Value="Destiny_Islands" end) end)
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 10:53 PM |
bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 28 Sep 2013 11:02 PM |
brick = script.Parent
brick.Touched:connect(function(hit) --touched takes a parameter. if hit.Parent and game.Players:FindFirstChild(hit.Parent) then if game.Players[hit.Parent].PlayerGui:FindFirstChild("Detail.In_World", true) then local gui = game.Players[hit.Parent].PlayerGui:FindFirstChild("Detail.In_World", true) gui.Value="Destiny_Islands" -- BTW is this a string value or a gui because if it is a gui use .Text end end) |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:04 PM |
its a String value.
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:04 PM |
btw you missed a "end"
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:05 PM |
and it didn't work. =p
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:11 PM |
nothing goe into the output, the value is still not changing.
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:12 PM |
goes*
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:25 PM |
bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 28 Sep 2013 11:26 PM |
| Your actually going into the gui and checking the value in play solo/ start player? |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:30 PM |
Solo, not "start server/start player"
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 28 Sep 2013 11:31 PM |
| Put prints between the lines and see what is in the console. |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:33 PM |
while looking through the output I found this:
00:31:05.065 - In_World is not a valid member of IntValue and 00:31:12.385 - Players.Player1.PlayerGui.Main_Menu.GUI_Holder.Options.Deta:4: attempt to index global 'Child' (a nil value)
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:37 PM |
it seems to only finish up to line 3
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
kubuto2
|
  |
| Joined: 16 Jul 2008 |
| Total Posts: 1275 |
|
|
| 28 Sep 2013 11:39 PM |
Replace it with this line
local gui = game.Players.player.PlayerGui.Main_Menu.GUI_Holder.Options.Detail.In_World |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:43 PM |
same results.
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 28 Sep 2013 11:56 PM |
I'm still getting
00:54:57.173 - Players.Player1.PlayerGui.Main_Menu.GUI_Holder.Options.Deta:4: attempt to index global 'Child' (a nil value)
in the output, the script I currently have is:
brick = script.Parent print "line 1 finsihed" brick.Touched:connect(function(hit) print "line 3 finished" if hit.Parent and game.Players:FindFirstChild(hit.Parent) then print "line 5 finsished" if game.Players[hit.Parent].PlayerGui:FindFirstChild("Detail.In_World", true) then print "line 7 finished" local gui = game.Players.player.PlayerGui.Main_Menu.GUI_Holder.Options.Detail.In_World.Value gui.Value="Destiny_Islands" print "done" end end end)
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 12:12 AM |
bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 12:31 AM |
bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 12:43 AM |
Bump
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
janthran
|
  |
| Joined: 15 May 2009 |
| Total Posts: 17429 |
|
|
| 29 Sep 2013 12:44 AM |
if hit.Parent and game.Players:FindFirstChild(hit.Parent) then what da hek |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 12:54 AM |
idk .-. I want it to simply change the player's known area/world when the part is touched.
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 01:03 AM |
bump... again D=
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 29 Sep 2013 01:11 AM |
:C
When life gives you lemons, Squirt 'em in your eyes. - Drahsid5 |
|
|
| Report Abuse |
|
|