|
| 07 Jun 2015 12:20 AM |
I am working on a gamepass teleporter yet this script is broken or just has a few errors, would there be anyway to fix or change it so that it will teleport the players who own the gamepass?
list = {"", ""}
gamepassId = 00000000
exitName = "Exit" Exit = script.Parent.Parent:FindFirstChild(ExitName)
local gm = game.GetService("GamePassService") function onTouch(hit)
if game.Players:FindFirstChild(hit.Parent.Name) ~= nil and hit.Parent:FindFirstChild("Torso") ~= nil then for i = 1, #list do if hit.Parent.Name == list[i] then isallowed = true end end if isallowed or gm:PlayerHasPass(game.Players:FindFirstChild(hit.Parent.Name), gamepassId)then hit.Parent:FindFirstChild("Torso").MoveTo() = MoveTo().new(Exit.MoveTo().X, Exit.MoveTo().Y + 3, Exit.MoveTo().Z) end end isallowed = false end
script.Parent.Touched:connect(onTouch) |
|
|
| Report Abuse |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 07 Jun 2015 12:21 AM |
wtf is this sht
hit.Parent:FindFirstChild("Torso").MoveTo() = MoveTo().new(Exit.MoveTo().X, Exit.MoveTo().Y + 3, Exit.MoveTo().Z) |
|
|
| Report Abuse |
|