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: Someone help fix this script?

Previous Thread :: Next Thread 
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 11:06 AM
I understand that this is the wrong forum...

Can someone help me make this script include group rank after groupid? (2nd line, after IsInGroup i'd like to add group rank also but it says its wrong)

function Click(mouse)
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(1035571) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Really black")
end
end

script.Parent.MouseButton1Click:connect(Click)
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 11:10 AM
bump
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
06 Apr 2015 11:29 AM
I understand that this is the wrong forum...

Thank you for knowing but if it is the wrong forum don't post on it -_-

Anyways, I don't really see your script as much of a request so I'll let it slide, not like you are asking us to script you a giant game for free.

I have a few questions

Do you want to do rank or roleset?

Rank:
Returns the player's rank in the group as an integer between 0 and 255, where 0 is a non-member and 255 is the group's owner.
Meaning the number you include when you create a group, the rank number.

Roleset:
Returns the player's role in the group as a string, or "Guest" if the player isn't part of the group.
Meaning something like: Enlist[LR]

"I like to program" - Bosswalrus
Report Abuse
fishguy100 is not online. fishguy100
Joined: 16 Feb 2013
Total Posts: 3679
06 Apr 2015 11:30 AM
function Click(mouse)
if game.Players.LocalPlayer:IsInGroup(1035571) then
game.Players.LocalPlayer.TeamColor = BrickColor.new("Really black")
end
end

script.Parent.MouseButton1Click:connect(Click)


This has to be in a localscript
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 11:33 AM
Its a team change gui. I have all the ranks set already but I need to add the rank id, but it says its wrong. If its not wrong when I go and test it, it wont work. It'll work when I dont use group rank thouhg. But it gives access to everyone to go onto that team thats in my group. Im trying to make it "rank restricted" meaning you have to be that rank (0-255) to join that team from the gui.
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
06 Apr 2015 11:37 AM
local RankAllowed = 0 --Put the rank number here. It will allow Players this rank and bigger than this rank on the team.
--If you don't want it that way just remove the >= RankAllowed with == RankAllowed

function Click(mouse)
if game.Players.LocalPlayer:IsInGroup(1035571) then
if game.Players.LocalPlayer:GetRankInGroup(1035571) >= RankAllowed then
game.Players.LocalPlayer.TeamColor = BrickColor.new("Really black")
end
end
end

script.Parent.MouseButton1Click:connect(Click)



"I like to program" - Bosswalrus
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 11:51 AM
That didnt work..
Report Abuse
fualtyhellboy is not online. fualtyhellboy
Joined: 26 Aug 2012
Total Posts: 283
06 Apr 2015 11:54 AM
Where did you learn to script, wow dude.... lol


function OnClick() is the function to use!
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 11:58 AM
still not working..
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
06 Apr 2015 11:58 AM
your function can be anything... the connection at the end is what matters.

function RobuxLife()
if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(1035571) then
script.Parent.Parent.Parent.Parent.Parent.TeamColor = bleh
end
end

script.Parent.MouseButton1Down:connect(RobuxLife)
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 12:12 PM
alright im done with roblox scripting. its such bs. i fixed that script about 50 times and changed it. stiill not working. ROBLOX = worst scripting ever.
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
06 Apr 2015 12:21 PM
u can even script bro. don't get mad because it's so "hard"
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 12:30 PM
but still edited this script about 30 times, got different scripts, and guess what? STILL DOESNT WORK. Even the most LEGIT script doesnt work. if roblox wants to make a quality scripting system, they need to make it legit themselves cause at roblox they cant make anything. most unnecasary updates EVER.
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
06 Apr 2015 12:39 PM
you sound like a 8 yr old.
Report Abuse
FlyHD is not online. FlyHD
Joined: 02 Oct 2011
Total Posts: 1304
06 Apr 2015 12:42 PM
You sound like a hypocrite.
Report Abuse
RobuxLife is not online. RobuxLife
Joined: 19 Sep 2012
Total Posts: 13336
06 Apr 2015 12:42 PM
don't we all
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
06 Apr 2015 03:02 PM
Don't rage at scripting. You need to understand scripting is trial and error. This reason you are getting different scripts is because everyone scripts differently. Some may be inefficient and some may be efficient.

But you decide if you want to act like a sore loser and stop scripting.

"I like to program" - Bosswalrus
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