|
| 05 Sep 2013 09:16 AM |
I have just written this code: local player = game.Players.LocalPlayer local char = player.Character
local bg = Instace.new("BillboardGui") bg.Parent = player.PlayerGui bg.Adornee = char.Head bg.Size = UDim2.new(1, 0, 1, 0) -- Makes above head(defaults to inside the head) bg.StudsOffset = Vector3.new(0, 2, 0)
local frame = Instance.new("Frame") frame.Parent = bg frame.Size = UDim2.new(1, 0, 1, 0) frame.BackgroundTransparency = 1 frame.BorderSizePixel = 0
local text = Instance.new("TextBox") text.Parent = frame text.Position = UDim2.new(0.25, 0, 0.25, 0) text.Size = UDim2.new(0.5, 0, 0.5, 0) if char.Name ~= "coolyoshi579" then text.Text = "Newcomer" else text.Text = "Creator" end
The debugger is not showing errors in the script, yet it does not work. By this I mean no text will show above the player. If anyone knows how I can fix this, please respond. Thanks! |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:19 AM |
That script should work. Which line does the script stop working at. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:24 AM |
I can't say for certain as I just began scripting :/. But I have the script in the workspace, should that affect it?
|
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:26 AM |
Put the script in the starter gear.
Also is the script a Local Script? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:28 AM |
| The script is a normal script, not local. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:30 AM |
| Make it local, that should fix it. |
|
|
| Report Abuse |
|
|
Nick24r7
|
  |
| Joined: 13 Sep 2010 |
| Total Posts: 4434 |
|
|
| 05 Sep 2013 09:33 AM |
| Make it a local script and put it in playergui. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 09:39 AM |
How would I access playerGui in studio mode? (Again, sorry I'm really new :/) |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Sep 2013 09:52 AM |
| Put it in playerGUI, but it still doesnt work :C |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 10:59 AM |
Did you even write the script? :l
~ I eat haxors ~ |
|
|
| Report Abuse |
|
|
Nick24r7
|
  |
| Joined: 13 Sep 2010 |
| Total Posts: 4434 |
|
|
| 05 Sep 2013 12:19 PM |
| Before playing solo make sure put it in starter gui then make it a local script. [ My mistake ] |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2013 12:52 PM |
@Nick24r7 Oh Thank you! @Other guy who asked if I wrote the script :S I sort of wrote it. I got the script up to the textbox part from the wikia, past that point I wanted to experiment with an if statement, thus I did write that. |
|
|
| Report Abuse |
|
|