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 » Scripters
Home Search
 

Re: Player Who Clicked TextButton

Previous Thread :: Next Thread 
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:03 PM
Im looking for the name of the player who clicked the text button any help? i tried game.Players.LocalPlayer it didn't work.
Report Abuse
MulletBoi is not online. MulletBoi
Joined: 14 Nov 2009
Total Posts: 280
30 Mar 2015 05:05 PM
Is your script a LocalScript?
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:07 PM
Yes here is the line "(HOST) " .. Game.Players.LocalPlayer(Enum.KeyCode.CapsLock, true)
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:08 PM
Im showing you the line i dont wanna give the whole script
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
30 Mar 2015 05:09 PM
No full script for us.
No help for you.
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:11 PM
:O ill give full line.
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
30 Mar 2015 05:12 PM
Not enough for us.
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:13 PM
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer(Enum.KeyCode.CapsLock, true)
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:14 PM
stop it im not gonna give full script
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
30 Mar 2015 05:20 PM
Try this (put it in the TextButton):

local obj = script;
repeat obj = obj.Parent
until obj:FindFirstChild'Join';

local t = obj.Join.Game.Game1.GameBoard.Players.Host;
script.Parent.MouseButton1Down:connect(function()
t.Text = game.Players.LocalPlayer.Name;
end)
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:23 PM
Full script and its localscript
function Start()
if script.Parent.Parent.Parent.Parent.Join.Games.Games2.Visible == false then
script.Parent.Parent.Parent.Parent.Join.Games.Games1.Visible = true
script.Parent.Parent.Parent.Parent.Join.Games.Games1.Players.Text = "1/" .. script.Parent.Parent.PlayersAmount.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games1.ServerIcon.Image = "rbxassetid://" .. script.Parent.Parent.ServerID.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games1.Host.Text = Game.Players.LocalPlayer.Name
script.Parent.Parent.Parent.Parent.Join.Games.Games1.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer.Name(Enum.KeyCode.CapsLock, true)
script.Parent.Parent.Parent.Parent.Join.game.Game1.GameBoard.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
elseif script.Parent.Parent.Parent.Parent.Join.Games.Games2.Visible == false then
script.Parent.Parent.Parent.Parent.Join.Games.Games2.Visible = true
script.Parent.Parent.Parent.Parent.Join.Games.Games2.Players.Text = "1/" .. script.Parent.Parent.PlayersAmount.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games2.ServerIcon.Image = "rbxassetid://" .. script.Parent.Parent.ServerID.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games2.Host.Text = Game.Players.LocalPlayer.Name
script.Parent.Parent.Parent.Parent.Join.Games.Games2.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer.Name(Enum.KeyCode.CapsLock, true)
script.Parent.Parent.Parent.Parent.Join.game.Game1.GameBoard.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
elseif script.Parent.Parent.Parent.Parent.Join.Games.Games3.Visible == false then
script.Parent.Parent.Parent.Parent.Join.Games.Games3.Visible = true
script.Parent.Parent.Parent.Parent.Join.Games.Games3.Players.Text = "1/" .. script.Parent.Parent.PlayersAmount.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games3.ServerIcon.Image = "rbxassetid://" .. script.Parent.Parent.ServerID.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games3.Host.Text = Game.Players.LocalPlayer.Name
script.Parent.Parent.Parent.Parent.Join.Games.Games3.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer.Name(Enum.KeyCode.CapsLock, true)
script.Parent.Parent.Parent.Parent.Join.game.Game1.GameBoard.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
elseif script.Parent.Parent.Parent.Parent.Join.Games.Games4.Visible == false then
script.Parent.Parent.Parent.Parent.Join.Games.Games4.Visible = true
script.Parent.Parent.Parent.Parent.Join.Games.Games4.Players.Text = "1/" .. script.Parent.Parent.PlayersAmount.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games4.ServerIcon.Image = "rbxassetid://" .. script.Parent.Parent.ServerID.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games4.Host.Text = Game.Players.LocalPlayer.Name
script.Parent.Parent.Parent.Parent.Join.Games.Games4.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer.Name(Enum.KeyCode.CapsLock, true)
script.Parent.Parent.Parent.Parent.Join.game.Game1.GameBoard.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
elseif script.Parent.Parent.Parent.Parent.Join.Games.Games5.Visible == false then
script.Parent.Parent.Parent.Parent.Join.Games.Games5.Visible = true
script.Parent.Parent.Parent.Parent.Join.Games.Games5.Players.Text = "1/" .. script.Parent.Parent.PlayersAmount.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games5.ServerIcon.Image = "rbxassetid://" .. script.Parent.Parent.ServerID.Text
script.Parent.Parent.Parent.Parent.Join.Games.Games5.Host.Text = Game.Players.LocalPlayer.Name
script.Parent.Parent.Parent.Parent.Join.Games.Games5.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
script.Parent.Parent.Parent.Parent.Join.Game.Game1.GameBoard.Players.Host.Text = "(HOST) " .. Game.Players.LocalPlayer.Name(Enum.KeyCode.CapsLock, true)
script.Parent.Parent.Parent.Parent.Join.game.Game1.GameBoard.ServerName.Text = script.Parent.Parent.ServerNameCreate.Text
end
end

script.Parent.MouseButton1Click:connect(Start)
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:24 PM
If you could tell me what i need to fix that would be great... I think its an issue in the script
Report Abuse
xXRevengeCreeperXx is not online. xXRevengeCreeperXx
Joined: 22 Nov 2012
Total Posts: 699
30 Mar 2015 05:48 PM
Fixed It!
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
30 Mar 2015 05:50 PM
No one wants your script :P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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