|
| 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
|
  |
| Joined: 14 Nov 2009 |
| Total Posts: 280 |
|
|
| 30 Mar 2015 05:05 PM |
| Is your script a LocalScript? |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 05:07 PM |
| Yes here is the line "(HOST) " .. Game.Players.LocalPlayer(Enum.KeyCode.CapsLock, true) |
|
|
| Report Abuse |
|
|
|
| 30 Mar 2015 05:08 PM |
| Im showing you the line i dont wanna give the whole script |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
IoIiderp
|
  |
| Joined: 05 Feb 2012 |
| Total Posts: 8613 |
|
| |
|
|
| 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 |
|
|
|
| 30 Mar 2015 05:14 PM |
| stop it im not gonna give full script |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 30 Mar 2015 05:50 PM |
| No one wants your script :P |
|
|
| Report Abuse |
|
|