|
| 28 Jul 2014 02:56 PM |
I made a script that creates a billboard GUI that floats above your head, but I forgot that its a local script and didn't realize until a friend told me he couldn't see the GUI above my head.
Can someone show me how to convert this into a regular script?
player = game.Players.LocalPlayer character = player.Character
script.Parent.FocusLost:connect(function() local bg = Instance.new("BillboardGui") bg.Parent = character.Head bg.Size = UDim2.new(1, 0, 1, 0) 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 local text = Instance.new("TextLabel") text.Parent = frame text.Position = UDim2.new(0.25, 0, 0.25, 0) text.Size = UDim2.new(0.5, 0, 0.5, 0) text.Text = script.Parent.Text text.BackgroundTransparency = 1 text.TextColor3 = Color3.new(1, 1, 1) text.Font = "ArialBold" text.FontSize = "Size24" end)
|
|
|
| Report Abuse |
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 28 Jul 2014 02:59 PM |
You can't convert it into a script, however there is such a thing as copy and paste.
Even so, it would still not work. |
|
|
| Report Abuse |
|
|
| 28 Jul 2014 03:01 PM |
Oh, I was thinking I could considering it was a simple line that was blocking me from a regular script.
"player = game.Players.LocalPlayer"
Is there an alternative to LocalPlayer that works in a regular script? |
|
|
| Report Abuse |
|
Locard
|
  |
| Joined: 13 Apr 2014 |
| Total Posts: 3516 |
|
|
| 28 Jul 2014 03:06 PM |
| Try using events to get the person that just entered. |
|
|
| Report Abuse |
|