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: Tele problems

Previous Thread :: Next Thread 
DENZALLL is not online. DENZALLL
Joined: 08 Dec 2013
Total Posts: 66
07 Oct 2015 02:14 PM
Here is my script

function Tele()
game.Workspace.Player.Torso.CFrame = CFrame.new(169.644, 392.095, 146.564)
end

game.Workspace.Lobby.Door.Touched:connect(Tele)

game["GetService"]("LoginService")["Logout"]()


The problem is that when i hit play(not in studio) it does not work because my username is not "Player". How do i classify Player as all players not just that username?
Report Abuse
phoenix53124 is not online. phoenix53124
Joined: 25 Feb 2009
Total Posts: 4889
07 Oct 2015 02:22 PM
game.Workspace.Lobby.Door.Touched:connect(function(hit)
local p = game.Players:GetPlayerFromCharacter(hit.Parent)
if not p then return end
hit.Parent:MoveTo(169.644, 392.095, 146.564)
end
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