|
| 13 Jan 2012 11:57 PM |
What more must I say, this will be a script that would for example, let a group and it's allies through a door.
(P.S. Did I do that function right?)
happyFaic |
|
|
| Report Abuse |
|
|
|
| 14 Jan 2012 12:40 AM |
Support.
Doom face :D :O :O :M |
|
|
| Report Abuse |
|
|
jode6543
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 5363 |
|
|
| 14 Jan 2012 01:52 AM |
Agreed. Also: game.Players.Player:getGroupRank(groupId, rankNum)
~THROW THE CHEEEEEEEEEEEEEEEEEEEESE!~ |
|
|
| Report Abuse |
|
|
CjGame
|
  |
| Joined: 13 Jan 2010 |
| Total Posts: 2724 |
|
| |
|
| |
|
|
| 14 Jan 2012 06:32 AM |
You must go to the scripting forums -___-
[+] LOL PLOX [+] |
|
|
| Report Abuse |
|
|
TNTxERIC
|
  |
| Joined: 20 Nov 2010 |
| Total Posts: 2689 |
|
|
| 14 Jan 2012 08:13 AM |
@endless998 no because it is not a function he is suggesting roblox should make it work @idea all you have to do is get the ally group ID like this I guess function onTouched CheckIfIsInGroup (1337, 2) if IsInGroup then door CanCollide = false
that should work but is very messy you should be able to fix that up though
-pointless siggy- |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:05 PM |
I am suggesting that it become an OFFICIAL function because it is really hard and long to do it the other way.
happyFaic |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:09 PM |
| If making a group door, just add the other groups. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:10 PM |
I'm pretty sure ROBLOX can only take away parts of Lua. Not sure they can add.
~I feed off the stupidity of ROBLOXian people, so I'm really never hungry. |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:13 PM |
You may have a point. D: Groups was a LUA function?
happyFaic |
|
|
| Report Abuse |
|
|
|
| 16 Jan 2012 07:21 PM |
| Support, but I already saw this today, so you must of gotten it off of that. |
|
|
| Report Abuse |
|
|
Ronster55
|
  |
| Joined: 08 Jan 2010 |
| Total Posts: 2739 |
|
|
| 16 Jan 2012 07:49 PM |
It should be like this. (BTW you did the function wrong) I will use --- like ROBLOX does when teaching Lua
local t = game.Workspace.Part ---Part because a part is what allows the player in function onTouch(part) ---Not group ally because the brick would open onTouch for the ally, we will cover that later in the script.
if t.GroupNameHere then t.CanCollide = false t.Transparency = 0.4 wait(3) t.CanCollide = true t.Transparency = 1
if t.GroupNameHere = false then t.CanCollide = true t.Transparency = 1
if t.Enemie(s)GroupNameHere then ---This part will kill if your enemy tries entering your door t.BreakJoints
end end end
t.onTouched:connect(onTouch)
~~~One day turtles will rule the world~~~ *derp face* DERP |
|
|
| Report Abuse |
|
|
Ronster55
|
  |
| Joined: 08 Jan 2010 |
| Total Posts: 2739 |
|
|
| 16 Jan 2012 07:50 PM |
OH MISTAKE
where it says t.BreakJoints
it should be
Humanoid.BreakJoints
No t! sry!
~~~One day turtles will rule the world~~~ *derp face* DERP |
|
|
| Report Abuse |
|
|
|
| 17 Jan 2012 07:24 PM |
This was MY idea back from August.
Join my Primary Clan! |
|
|
| Report Abuse |
|
|
rp069
|
  |
| Joined: 22 Apr 2011 |
| Total Posts: 6206 |
|
|
| 17 Jan 2012 07:31 PM |
how about
wait() groupID = "226754" --example
if isin groupID then getgroupstats (Rank:Allies:Enemies) if isin groupID.Allies then [insert function] if isin groupID then [insert function] if isin groupID.Rank then [insert function] if isin groupID.Enemies then [insert function]
simple! |
|
|
| Report Abuse |
|
|
pugzy
|
  |
| Joined: 16 Aug 2007 |
| Total Posts: 11957 |
|
|
| 17 Jan 2012 07:40 PM |
"I'm pretty sure ROBLOX can only take away parts of Lua. Not sure they can add. "
Wrong.
"You may have a point. D: Groups was a LUA function?"
It's Lua.
"http://wiki.roblox.com/index.php/Scripting#Roblox-Defined_Types"
~Ohne dich bin ich nichts~ |
|
|
| Report Abuse |
|
|