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: Teleporting players script won't work....?

Previous Thread :: Next Thread 
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
02 Nov 2011 04:25 PM
Here's the script:

-------------------------------

local p = game.Players:GetPlayers()
while true do()
wait(3)
for i = 1, p#
p[i].Character:MoveTo(Vector3.new((100, 22.68, 96.01))
end

-------------------------------

Here's the output:

-------------------------------

Wed Nov 02 16:24:19 2011 - Running Script "Workspace.House.Part.Script"
Wed Nov 02 16:24:20 2011 - Running Script "Workspace.Script"
Wed Nov 02 16:24:20 2011 - Workspace.Script:2: unexpected symbol near ')'

-------------------------------

I can't quiet figure out what's wrong with it....
Report Abuse
Willingroblox123 is not online. Willingroblox123
Joined: 18 Jan 2010
Total Posts: 6872
02 Nov 2011 04:26 PM
...

    while true do()

Drop the ().
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
02 Nov 2011 04:27 PM
Is that it....?
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
02 Nov 2011 04:28 PM
It still doesn't work.....
Report Abuse
Willingroblox123 is not online. Willingroblox123
Joined: 18 Jan 2010
Total Posts: 6872
02 Nov 2011 04:30 PM
What does the output say now?
Report Abuse
Willingroblox123 is not online. Willingroblox123
Joined: 18 Jan 2010
Total Posts: 6872
02 Nov 2011 04:32 PM
Oh, I see.

    for i = 1, p#

It should be #p.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
02 Nov 2011 04:35 PM
Still didn't didn't work... :?
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
02 Nov 2011 04:39 PM
[ Content Deleted ]
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
02 Nov 2011 04:40 PM
[ Content Deleted ]
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
02 Nov 2011 04:43 PM
I did those and it STILL didn't work......
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
02 Nov 2011 04:47 PM
while wait(3) do
for i,v in pairs(game.Players:GetPlayers()) do
v.Character:MoveTo(Vector3.new((100, 22.68, 96.01))
end end
Report Abuse
Pyzothon is not online. Pyzothon
Joined: 26 Oct 2011
Total Posts: 822
02 Nov 2011 04:52 PM
local p = game.Players:GetPlayers()
while wait(3) do
for i, v in pairs(p) do
v.Character.Torso.CFrame = CFrame.new(x, y, z) --Edit.
end
end

Silly goose
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
02 Nov 2011 04:54 PM
Mines better :P
Report Abuse
Pyzothon is not online. Pyzothon
Joined: 26 Oct 2011
Total Posts: 822
02 Nov 2011 04:57 PM
Mine's neater.

Silly goose
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
02 Nov 2011 05:09 PM
How?
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
02 Nov 2011 05:53 PM
p[i].Character:MoveTo(Vector3.new(100, 22.68, 96.01))
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
02 Nov 2011 05:54 PM
local p = game.Players:GetPlayers()
while true do
wait(3)
for i = 1, p#
p[i].Character:MoveTo(Vector3.new(100, 22.68, 96.01))
end
end
try this
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
02 Nov 2011 05:55 PM
local p = game.Players:GetPlayers()
while true do
wait(3)
for i = 1, p# do
p[i].Character:MoveTo(Vector3.new(100, 22.68, 96.01))
end
Report Abuse
pikminmario11 is not online. pikminmario11
Joined: 09 Feb 2010
Total Posts: 105
02 Nov 2011 05:56 PM
disaster U Need To Switch p# its #p -_-
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
02 Nov 2011 05:57 PM
kk
Report Abuse
disaster13 is not online. disaster13
Joined: 25 Aug 2010
Total Posts: 4397
02 Nov 2011 05:58 PM
Tsted and worked



local p = game.Players:GetPlayers()
while true do
wait(3)
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(100, 22.68, 96.01))
end
end
Report Abuse
pikminmario11 is not online. pikminmario11
Joined: 09 Feb 2010
Total Posts: 105
02 Nov 2011 05:58 PM
Try This:
WaitTime = [How Much U Want To Wait]
while true do
P = game.Players:GetChildren()
for i = 1, #P do
wait(WaitTime)
P[i].Character.Torso.CFrame = CFrame.new(0,0,0) -- Change Numbers To Position U Want
end
end
Report Abuse
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
02 Nov 2011 05:59 PM
:P I have the shortest code here.
Report Abuse
pikminmario11 is not online. pikminmario11
Joined: 09 Feb 2010
Total Posts: 105
02 Nov 2011 05:59 PM
disaster That Only Gets The Number Of Players Once...
Report Abuse
Pyzothon is not online. Pyzothon
Joined: 26 Oct 2011
Total Posts: 822
03 Nov 2011 03:44 PM
local p = game.Players:GetPlayers()
while true do
wait(3)
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(100, 22.68, 96.01))
end
end

Disaster, that wouldn't be good, you need to get the people in Players each time it loops, or else it would get one group of people and always use them instead of any new people that might have joined.

Silly goose
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