|
| 27 Nov 2013 12:38 PM |
Whenever I click the to type in the player name. It starts typing then Player Name Here just appears again. What is wrong with it?
Here:
gui = script.Parent rec = gui.Recipient
frame = gui.Frame tb = frame.TextBoxPlayer notrib = frame.TextLabelNoTribute trib = frame.TextLabelTribute
function cancel() rec.Value = "" notrib.Visible = false trib.Visible = false tb.Text = "Player Name Here" gui.NoteSend.Value = false gui.NoteContent.Value = "" updateNote() end
function updateNote() local before = frame.TextBoxNote.Visible frame.TextBoxNote.Visible = gui.NoteSend.Value frame.TextButtonNote.Text = gui.NoteSend.Value and "Do send note" or "Don't send note" if not before and gui.NoteSend.Value then frame.TextBoxNote.Text = "Type your message here." elseif before and not gui.NoteSend.Value then frame.TextBoxNote.Text = "" gui.NoteContent.Value = "" end end updateNote() cancel()
frame.TextButtonNote.MouseButton1Down:connect(function () gui.NoteSend.Value = not gui.NoteSend.Value updateNote() end)
frame.TextBoxNote.Changed:connect(function (p) if p == "Text" and frame.TextBoxNote.Text ~= "Type your message here." then gui.NoteContent.Value = frame.TextBoxNote.Text end end)
frame.Changed:connect(function (p) if p == "Visible" then cancel() end end)
tb.Changed:connect(function (p) if p ~= "Text" then return end if tb.Text == "Player Name Here" then return end print("Text changed") wait() rec.Value = "" notrib.Visible = false trib.Visible = false local name = tb.Text local plr = game.Players:FindFirstChild(name) if plr then if plr.Character and plr.Character:FindFirstChild("Survival") then rec.Value = plr.Name trib.Visible = true plr.Character.Humanoid.Died:wait() if plr.Name == rec.Value then cancel() end else notrib.Visible = true end else notrib.Visible = true end if notrib.Visible then cancel() notrib.Visible = true wait(3) notrib.Visible = false end end)
game.Players.ChildRemoved:connect(function (plr) if plr.Name == rec.Value then cancel() end end)
|
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 12:40 PM |
Why repost? Please be patient when asking for help. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 12:41 PM |
| Why don't you just help instead of complaining? |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 12:45 PM |
Any output?
Where's the problem occuring at?
These types of things help, because a lot of people don't want to look through that long list of code. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 12:46 PM |
| @Sam. I explained in the first sentence -.- Can you read? |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2013 12:50 PM |
@Eternity I was thinking about it, but I came to the conclusion to not. I wasn't complaining, I was asking a question, and kindly telling you to be patient.
Now, would you care to answer said question? I rather am curious. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
mic144
|
  |
| Joined: 14 Oct 2009 |
| Total Posts: 1598 |
|
|
| 28 Nov 2013 10:33 AM |
Any output?
-- $$ Get on my level, here use this ladder. Don't fall down on the way up! $$ -- |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2013 02:18 PM |
| I need multiple people in the game for the GUI to work and so I can't get the output. It is the same problem with the command Bar in Kolh's Admin. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2013 02:30 PM |
| Start Server-> Start Player. |
|
|
| Report Abuse |
|
|