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: Looking for "Group Only Teleporters"

Previous Thread :: Next Thread 
BloodDrops is not online. BloodDrops
Joined: 15 May 2009
Total Posts: 5246
12 Nov 2013 08:45 PM
I've actually been trying to find this for a while. I really can't script for life, but if you know of any that works, or if you're actually willing to make one, then please respond onto this thread.

Side note: If someone does want to make one for me, could you make it so it'll kill a player that tries to use a teleport pad that isn't in the group?
Report Abuse
BloodDrops is not online. BloodDrops
Joined: 15 May 2009
Total Posts: 5246
12 Nov 2013 09:05 PM
B1.
Report Abuse
BloodDrops is not online. BloodDrops
Joined: 15 May 2009
Total Posts: 5246
13 Nov 2013 11:07 AM
B2
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
13 Nov 2013 11:43 AM
Well....

You would need a

IsInGroup(ID HERE)

Then something like

else if




\chocolate brownies/
Report Abuse
BloodDrops is not online. BloodDrops
Joined: 15 May 2009
Total Posts: 5246
13 Nov 2013 03:35 PM
Very helpful, mate.
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
13 Nov 2013 03:54 PM
else if... no. its one word. elseif. and the IsInGroup() would work, but then u have to CFrame their torso. that will teleport them to a new spot
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
13 Nov 2013 04:01 PM
workspace
>model
>>pad1
>>>script
>>pad2
>>>script2

script:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) then
hit.Parent:MoveTo(script.Parent.Parent.pad2.Position)
end
end)

script2:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) then
hit.Parent:MoveTo(script.Parent.Parent.pad1.Position)
end
end)

should work,
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
13 Nov 2013 04:03 PM
oh u wanted isingroup too #

script:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) and
if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(GROUP ID HERE) then
hit.Parent:MoveTo(script.Parent.Parent.pad2.Position)
else hit.Parent:BreakJoints()
end
end
end)

script2:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) and
if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(GROUP ID HERE) then
hit.Parent:MoveTo(script.Parent.Parent.pad2.Position)
else hit.Parent:BreakJoints()
end
end
end)
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
13 Nov 2013 04:04 PM
failed


script:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) then
if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(GROUP ID HERE) then
hit.Parent:MoveTo(script.Parent.Parent.pad2.Position)
else hit.Parent:BreakJoints()
end
end
end)

script2:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and
game.Players:findFirstChild(hit.Parent.Name) then
if game.Players:findFirstChild(hit.Parent.Name):IsInGroup(GROUP ID HERE) then
hit.Parent:MoveTo(script.Parent.Parent.pad2.Position)
else hit.Parent:BreakJoints()
end
end
end)
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
13 Nov 2013 04:54 PM
Domo, I forgot xD


\chocolate brownies/
Report Abuse
BloodDrops is not online. BloodDrops
Joined: 15 May 2009
Total Posts: 5246
13 Nov 2013 07:55 PM
I understand this is late....

Thank you Prestigious! :D
Report Abuse
kingbowler1040 is not online. kingbowler1040
Joined: 03 Oct 2011
Total Posts: 1202
14 Nov 2013 09:56 AM
Don't understand why people are making things for you, besides, whenever I post something like this it's "Fight on King".
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
14 Nov 2013 03:22 PM
You might want to use a table
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