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 » Scripting Helpers
Home Search
 

Re: Rank Images/GUIs

Previous Thread :: Next Thread 
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:29 AM
--Tutorial: First, create your honor group. Get the group ID and replace the mentioned number below with it.
--Second, use your favorite program and create a cool banner to go above the person's head. Upload it, place the decal on a brick,
--and get the Asset ID. Replace the asset below with the new asset you got, it is also tagged where this needs to be done.
--Third, make a new model named "WepsGroup" (CAPS SENSITIVE!!) and put it in the lighting. Put any guns or tools you want your honor
--troops to spawn with inside that model. After all this, your good to go!

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
wait(1)
if newPlayer:IsInGroup(545811) then --Replace the number here with your group ID
if newPlayer:GetRoleInGroup(545811) == Recruit then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=98585539" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(2, 2, 1)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
elseif newPlayer:IsInGroup(545811) then --Replace the number here with your group ID
if name:GetRankInGroup(545811) == Private then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=98585454" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(2, 2, 1)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
elseif newPlayer:IsInGroup(545811) then --Replace the number here with your group ID
if name:GetRankInGroup(545811) == Private First Class then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=98585348" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(2, 2, 1)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
elseif newPlayer:IsInGroup(545811) then --Replace the number here with your group ID
if name:GetRoleInGroup(545811) == Captian then
gui=Instance.new("BillboardGui")
gui.Parent=newPlayer.Character.Head
gui.Adornee=newPlayer.Character.Head
gui.Size=UDim2.new(3,0,2,0)
gui.StudsOffset=Vector3.new(0,2,0)
text=Instance.new("ImageLabel")
text.Image = "http://www.roblox.com/asset/?id=98585244" -- Replace this with the texture ID of the header you want your honor troop to have.
text.Size=UDim2.new(2, 2, 1)
text.Position=UDim2.new(-0.125,0,-0.25,0)
text.BackgroundTransparency = 1
text.Parent=gui
w = game.Lighting.WepsGroup:GetChildren()
for i = 1,#w do
w[i]:Clone().Parent = newPlayer.Backpack
end
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Changed:connect(function (property)
if (property == "Character") then
onPlayerRespawned(newPlayer)
end
end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)









Trying to have a Image over someones head, for each rank. No errors, but yet it doesnt work. Help?
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 02:38 AM
How did you check it for errors. IsInGroup only works in online mode.
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:41 AM
That does not matter, all you need to know is that I checked.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 02:44 AM
You are no real scripter, you've made some really stupid mistakes, and this is a free model. Not going to help.
Report Abuse
888daniel888 is not online. 888daniel888
Joined: 08 Apr 2010
Total Posts: 438
23 Nov 2012 02:44 AM
Did you try adding if?
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:45 AM
@breuning

Firstly, you know NOTHING about me, and also, if you take a look at the original, I greatly enhanced it. Judging by you, your lack of grammar and knowledge, and your personality, you can not script for a penny, or for your life at that. Do not go around judging me, when I know more than you, child.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 02:48 AM
coroutine.resume(coroutine.create(function () print("You forgot the string quotes for the ranks, fool")
end))
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:50 AM
Hey Fool, that was what I had originally, it didn't work, so I tried deleting them, then I came here. Nice try child, now go play your Pokemon..
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 02:51 AM
Also your if-statements have wrong structures. You are just a random guy copying things from random scripts into another and breaks then, then he comes here to asks his scripter slaves to fix it.
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 02:53 AM
Calling me kid, when we joined the same year. What are you even doing on a kids game then?
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:54 AM
Mhm. And explain that? If you are talking about how they where not "ElseIf's" up there, I changed it, as I was in a rush before.

Also, I have been scripting since I first joined. Now, this is the point to where I wish ROBLOX had a Block feature. You are an annoying kid looking for attention, and trying to be a "troll." Good day.



Anyone else that will help, please do so.


(ALSO: Is this what the Scripting community is coming to? A bunch of kids who think they know it all?)
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 02:55 AM
"Calling me kid, when we joined the same year. What are you even doing on a kids game then?"

.. You do not even know the level of Irony in that sentence..

"we joined the same year"

"What are you even doing on a kids game then?"

Average age of Roblox: 13-18

"Kids" Game.

I never called ROBLOX a Kids game, I called you a kid. Good day.
Report Abuse
Tuition is not online. Tuition
Joined: 10 Jun 2012
Total Posts: 557
23 Nov 2012 02:58 AM
When you joined has nothing to do with it...
Report Abuse
breuning is not online. breuning
Joined: 30 Oct 2008
Total Posts: 4268
23 Nov 2012 03:00 AM
And you are the typical kind of "ultra cool" robloxians:
Either VAK or Hellghast as main group.
Amount of friends as low as possible, because you are just too cool to have friends.
And just so damn arrogant, because you think you are something better.

I joined 08 and started scripting 10, but I don't mix free model scripts together.
Strange that I am making weapons, if I can't script. Oh and believe me, if I wanted to troll you, then I would give you a script which crashes your game and destroys all your unsaved work.
Report Abuse
Tuition is not online. Tuition
Joined: 10 Jun 2012
Total Posts: 557
23 Nov 2012 03:01 AM
-Breu,

You just won.
Report Abuse
dradra44 is not online. dradra44
Joined: 11 Jul 2008
Total Posts: 1040
23 Nov 2012 03:03 AM
Alright, you win. Cool story. I wished I gave a [CD'ed]. I fixed it, along help with dan. Also, why script from 100% scratch, when I can get reference from something else?
Report Abuse
ChernayaAkula is not online. ChernayaAkula
Joined: 10 Mar 2012
Total Posts: 1073
30 Jan 2014 01:19 PM
Breuning doesn't usually win arguments so, he's decided to put this one on his BIO.
Report Abuse
lemonbutt24 is not online. lemonbutt24
Joined: 01 Apr 2010
Total Posts: 28
17 Mar 2014 02:15 PM
omgomgomg breuning won a thread guis
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
17 Mar 2014 02:21 PM
@lemon Wins.

When life gives you lemons... BURN HIS HOUSE DOWN! >:D
Report Abuse
lemonbutt24 is not online. lemonbutt24
Joined: 01 Apr 2010
Total Posts: 28
20 Mar 2014 09:15 PM
thx, im happy to say that i now live inside a box in the meantime
Report Abuse
dserra is not online. dserra
Joined: 30 Nov 2010
Total Posts: 40
21 Mar 2014 05:53 PM
Is it a magical box?
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
22 Mar 2014 11:09 AM
@ds It's probably a TARDIS.

When life gives you lemons... BURN HIS HOUSE DOWN! >:D
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
22 Mar 2014 11:49 AM
This is not winning. Both of these individuals are extremely immature and neither of them help the community in any way.

The OBC runt is extremely arrogant for not knowing advanced scripting concepts.
The BC runt took a model and edited it to try to get his own flavor. This is not bad at all. The bad thing is he kept arguing with mr high and mighty OBC over there and turned his help request into a flame war.

If I were a mod, I'd give mr high and mighty OBC over there a nice warning with my banhammer. This is uncalled for and should not happen in SH forum. We're here to help people with their scripts. If they attempt to modify an existing script to add their flavor, so be it. They attempted to modify it themselves, so they should be awarded with help.


By the way, please do not bump old threads.
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
22 Mar 2014 01:09 PM
@Agent Sorry Firefox, forgot to check the date of the last post. :P

When life gives you lemons... BURN HIS HOUSE DOWN! >:D
Report Abuse
spitfire1111111 is not online. spitfire1111111
Joined: 15 Jul 2011
Total Posts: 7140
29 Mar 2014 03:19 PM
Apparently Breuning found this SO great to him
That he put it in his bio
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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