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
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 1304 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 1304 |
|
| |
|
|
| 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
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 1304 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
|
| 06 Apr 2015 12:39 PM |
| you sound like a 8 yr old. |
|
|
| Report Abuse |
|
|
FlyHD
|
  |
| Joined: 02 Oct 2011 |
| Total Posts: 1304 |
|
|
| 06 Apr 2015 12:42 PM |
| You sound like a hypocrite. |
|
|
| Report Abuse |
|
|
RobuxLife
|
  |
| Joined: 19 Sep 2012 |
| Total Posts: 13336 |
|
| |
|
|
| 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 |
|
|