jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 05:10 PM |
Alright, I think I found my problem, but I don't know how to go about fixing it. So basically I have a billboardgui that needs to weld to the players head. When I go in game it doesn't work though script --->
part = script.Parent part.Anchored = false
wld = Instance.new("Weld") wld.Part0 = part wld.Part1 = game.Players.LocalPlayer.Character.Torso wld.Parent = part
I am pretty sure it's because you can't move things in startergui though. Anyways, does anyone know how to fix this?
|
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Mar 2016 05:11 PM |
Bro, just use a real billboard gui.
billboard.Adornee = player.Character.Head |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 05:12 PM |
@TimeTicks I really hope I'm not that stupid that I just didn't even think of that.
|
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 05:23 PM |
Actually, it's still not working.
|
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 07:54 PM |
Does anyone know how to solve this? Any help would be appreciated.
|
|
|
| Report Abuse |
|
|
McGunz
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 759 |
|
|
| 24 Mar 2016 08:01 PM |
What error is it returning, paste it here.
#code print("McGunz") |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 08:04 PM |
Script: script.Parent.BillboardGui.Adornee = game.Players.LocalPlayer.Character.Torso
Error: attempt to index 'Character' (a nil value)
|
|
|
| Report Abuse |
|
|
McGunz
|
  |
| Joined: 26 Dec 2011 |
| Total Posts: 759 |
|
|
| 24 Mar 2016 08:07 PM |
Wheres the script located, and is it a LocalScript(yes im assuming, otherwise it would error.)
#code print("McGunz") |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 08:10 PM |
gyazo(DOT)com/c2cb45c283ba78853835b52b63ab67ca it's the script inside of the BillboardGui.
|
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:09 PM |
Does anyone else think they could help?
|
|
|
| Report Abuse |
|
|
|
| 24 Mar 2016 10:16 PM |
| What TimeTicks said. It's easier to just set the adornee as the player's head. |
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 24 Mar 2016 10:16 PM |
You have to wait for the character to load in
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char)
end) end) |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:21 PM |
I have been using what TimeTick said, and I also tried the thing lulu said, but it still does not go to the players head.
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
| |
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:25 PM |
No errors, but it's still not working.
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
| |
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:28 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) script.Parent.Parent.Adornee = game.player.Character.Head
end) end)
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 24 Mar 2016 10:33 PM |
| List or screenshot your hierarchy of children and parents |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:36 PM |
gyazo(dot)com/077dbdcd81e2e499acd0949f50f457a9
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 24 Mar 2016 10:38 PM |
| its just 1 parent script.Parent.Adornee=char.Head |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:41 PM |
It's still not working, mind if we could do multiplayer studio? It would be a lot quicker.
|
|
|
| Report Abuse |
|
|
lululukas
|
  |
| Joined: 23 Aug 2010 |
| Total Posts: 1043 |
|
|
| 24 Mar 2016 10:42 PM |
| Nah I gotta sleep, maybe tomorrow. |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 24 Mar 2016 10:46 PM |
This worked for me in a server script:
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(char) local head = char:WaitForChild("Head") local board = Instance.new("BillboardGui",head) board.Size = UDim2.new(1,0,1,0) board.StudsOffset = Vector3.new(0,3,0) board.Adornee = head local gui = Instance.new("Frame",board) gui.Size = UDim2.new(1,0,1,0) gui.BackgroundColor3 = Color3.new(1,1,1) end) end)
http://prntscr.com/ajoip4 |
|
|
| Report Abuse |
|
|
jxeu
|
  |
| Joined: 17 Oct 2014 |
| Total Posts: 80 |
|
|
| 24 Mar 2016 10:51 PM |
Well, that isn't working for me either. I hope I get it working soon, it's really making a dent in my progress.
|
|
|
| Report Abuse |
|
|