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 » Scripters
Home Search
 

Re: Why wont this teleport the player?

Previous Thread :: Next Thread 
TheHidden0892 is not online. TheHidden0892
Joined: 07 Nov 2012
Total Posts: 285
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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