generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Scripting help

Previous Thread :: Next Thread 
jxeu is not online. 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 is not online. 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 is not online. 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 is not online. jxeu
Joined: 17 Oct 2014
Total Posts: 80
24 Mar 2016 05:23 PM
Actually, it's still not working.


Report Abuse
jxeu is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. jxeu
Joined: 17 Oct 2014
Total Posts: 80
24 Mar 2016 10:09 PM
Does anyone else think they could help?


Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
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 is not online. 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 is not online. 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 is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
24 Mar 2016 10:23 PM
No errors this time?
Report Abuse
jxeu is not online. 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 is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
24 Mar 2016 10:26 PM
Post the script.
Report Abuse
jxeu is not online. 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 is not online. 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 is not online. jxeu
Joined: 17 Oct 2014
Total Posts: 80
24 Mar 2016 10:36 PM
gyazo(dot)com/077dbdcd81e2e499acd0949f50f457a9


Report Abuse
lululukas is not online. 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 is not online. 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 is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
24 Mar 2016 10:42 PM
Nah I gotta sleep, maybe tomorrow.
Report Abuse
jxeu is not online. jxeu
Joined: 17 Oct 2014
Total Posts: 80
24 Mar 2016 10:42 PM
Alright.


Report Abuse
TimeTicks is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image