Roblox gui script12/25/2023 Local bbgclone = bbg:Clone() - we need to clone our gui say if multiple players join the game they need guis as well so we can't just take the one we have in serverstorage we use it to clone other guis. :Connect(function(player) - a parameter so we get the player who joins the game local bbg = game:GetService("ServerStorage"):WaitForChild("RankGui") Next we know every player needs a BillboardGui so we will use a function called PlayerAdded so every player gets a gui. Starting off we define the BillboardGui which is in ServerStorage, using our handy local bbg = game:GetService("ServerStorage"):WaitForChild("RankGui") - this is what I renamed the BillboardGui to Moving on we move the BillboardGui and it’s child (TextLabel), which will be inside of it, to ServerStorage, which we then start to make a normal Script which will be placed in ServerScriptService. What you might notice by this point is that the BillboardGui is “in the part when you visually look at it” so when the player spawns in the BillboardGui will be “in the characters head” so what we do is move the BillboardGui by using a few studs to move it up, to do this we look at the Properties tab and click on the BillboardGui and change the StudsOffset (y integer - I recommend 2.5) this will keep the BillboardGui above the players head, resizing and moving it is up to you and you can search up how to do that yourself on the forum or the internet. Next we would insert a BillboardGui into the part we have in Workspace, then we would add a TextLabel into the BillboardGui (I recommend naming the BillboardGui something like RankGui depending on how you are using it).Īfter this we would customize and design the BillboardGui, it’s like designing a normal gui in StarterGui if you have ever had any experience. To help remove your doubts, to start off and design the BillboardGui we would need an object to act as the head as that’s where you want the overhead gui to hover over, in this case we would use a part that would be placed in Workspace. I would like to achieve an Overhead GUI that displays above characters head with information such as What Number rank they are and the text of their rank in the group.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |