|
| 08 Oct 2012 12:05 PM |
| I am trying to make a spectate Gui and the player has to input the player's name that they want to spectate. The TextBox's Text at the moment is "Input Name". When I change it and try finding the text through a script, it is still "Input Name". How can I fix this? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:06 PM |
| Text BUTTON and moveto? Look on wiki |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:06 PM |
| Are You checking StarterGui or PlayerGui? |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:07 PM |
It didn't do that for me
--path
.TextBox.Text = --Text here
Make sure nothing else is name TextBox
~xXTheRobotXx,Machination |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:09 PM |
Err. Is the only TextBox and I'm not trying to change the text. I'm looking for the text. Like:
print(TextBox.Text)
It won't print the text I changed it to, it will print the text it normally had. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:10 PM |
| Can You show the rest of the Script please? It may Identify the Problem. |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:11 PM |
It's in a local script:
local text = script.Parent.Parent.TextBox.Text script.Parent.MouseButton1Down:connect(function() local player = game.Players:findFirstChild(text) if player and player ~= script.Parent.Parent.Parent.Parent.Parent.Name then for _,v in pairs(script.Parent.Parent.Parent.Parent.Parent.Character:GetChildren()) do if v:IsA("BasePart") then v.Anchored = true end end Workspace.CurrentCamera = player.Character.Humanoid script.Parent.Parent.Parent.DoneSpectating:TweenPosition(UDim2.new(0, 0, 0.45, 0)) end end) |
|
|
| Report Abuse |
|
|
|
| 08 Oct 2012 12:15 PM |
local text = script.Parent.Parent.TextBox.Text
There lys the Problem
"text" will stay the ORIGINAL Text
Do this instead:
local text = script.Parent.Parent.TextBox
local player = game.Players:findFirstChild(text.Text) |
|
|
| Report Abuse |
|
|
| |
|