generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GUI Problem

Previous Thread :: Next Thread 
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
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
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
27 Nov 2013 12:40 PM
Why repost?
Please be patient when asking for help.
Report Abuse
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
27 Nov 2013 12:41 PM
Why don't you just help instead of complaining?
Report Abuse
SamuelKingx is not online. SamuelKingx
Joined: 27 Jan 2012
Total Posts: 3472
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
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
27 Nov 2013 12:46 PM
@Sam. I explained in the first sentence -.- Can you read?
Report Abuse
Cr4shImp4ct is not online. Cr4shImp4ct
Joined: 23 Nov 2013
Total Posts: 107
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
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
27 Nov 2013 01:32 PM
Said Question?
Report Abuse
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
28 Nov 2013 10:22 AM
Bump.
Report Abuse
mic144 is not online. 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
EternityOfMagic is not online. EternityOfMagic
Joined: 16 Dec 2010
Total Posts: 709
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
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
02 Dec 2013 02:30 PM
Start Server-> Start Player.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image