|
| 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 |
|
|
| |
|
| |
|
|
| 13 Nov 2013 11:43 AM |
Well....
You would need a
IsInGroup(ID HERE)
Then something like
else if
\chocolate brownies/ |
|
|
| Report Abuse |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Nov 2013 04:54 PM |
Domo, I forgot xD
\chocolate brownies/ |
|
|
| Report Abuse |
|
|
|
| 13 Nov 2013 07:55 PM |
I understand this is late....
Thank you Prestigious! :D |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 14 Nov 2013 03:22 PM |
| You might want to use a table |
|
|
| Report Abuse |
|
|