wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
|
| 25 Jan 2015 04:56 PM |
local p = game.Players.LocalPlayer.Character
function k() print(p.Name) p.Head.Transparency = 1 script.Parent.BillboardGui.Adornee = p.Head script.Parent.BillboardGui.TextLabel.Visible = true script.Parent.BillboardGui.TextLabel.Text = p.Name end
script.Parent.MouseButton1Click:connect(k)
It works fine when I test it in studios, but when I go online to my game, it doesn't at all....
Note; This is in a local script, in the player's Gui, so should I put it in a regular script? |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2015 04:57 PM |
| Do you have FilteringEnabled turned on? |
|
|
| Report Abuse |
|
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
| |
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
| |
|
Tuneable
|
  |
| Joined: 16 Feb 2013 |
| Total Posts: 2932 |
|
|
| 25 Jan 2015 05:03 PM |
try adding at the top
repeat wait(1) until game.Players.LocalPlayer and game.Players.LocalPlayer.Character |
|
|
| Report Abuse |
|
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
|
| 25 Jan 2015 05:16 PM |
| Thanks but it still didn't work.... |
|
|
| Report Abuse |
|
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
| |
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
|
| 25 Jan 2015 05:29 PM |
Nevermind, I finally got it working;
local p = game.Players.LocalPlayer
wait(1) repeat until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
function k() print(p.Name) p.Character.Head.Transparency = 1 script.Parent.BillboardGui.Adornee = p.Character.Head script.Parent.BillboardGui.TextLabel.Visible = true script.Parent.BillboardGui.TextLabel.Text = p.Name end
script.Parent.MouseButton1Click:connect(k) |
|
|
| Report Abuse |
|
|
wwwo197
|
  |
| Joined: 19 Oct 2012 |
| Total Posts: 1006 |
|
|
| 25 Jan 2015 05:30 PM |
| Thanks for the help guys! :) |
|
|
| Report Abuse |
|
|