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: teleportation error

Previous Thread :: Next Thread 
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
27 Sep 2015 12:05 PM
when i get this function run:

--LPod vars
local p1 = false
local p2 = false
local p3 = false
local p4 = false

_G["LPodTele"] = function(player)
local target1 = CFrame.new(-149.5, 4.5, -206.5)
local target2 = CFrame.new(-149.5, 4.5, -189.5)
local target3 = CFrame.new(-149.5, 4.5, -172.5)
local target4 = CFrame.new(-149.5, 4.5, -155.5)
local p = game.Players:GetChildren()
for i = 1, #p do
if p[i].Character and p[i].Character:FindFirstChild("Torso") then
if(p[i].Name == player.Name) then
if(p1 == false) then
p[i].Character.Torso.CFrame = target1
p1 = true
elseif(p2 == false) then
p[i].Character.Torso.CFrame = target2
p2 = true
elseif(p3 == false) then
p[i].Character.Torso.CFrame = target3
p3 = true
elseif(p4 == false) then
p[i].Character.Torso.CFrame = target4
p4 = true
end
end
end
end
end



the torso does not move, and when i try to move it in game using roblox studio, it wont let me move it either, whats wrong with this code? thanks!
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
27 Sep 2015 12:29 PM
bump
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
27 Sep 2015 07:29 PM
bump 2
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
28 Sep 2015 06:09 AM
bump 3
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
28 Sep 2015 06:23 PM
Bump 4
Report Abuse
IllegallyBlind is not online. IllegallyBlind
Joined: 07 Nov 2010
Total Posts: 1691
28 Sep 2015 06:26 PM
Learning to debug code is a skill. Stop being so spoiled and think about it ffs.


Netflix and chill? I prefer Blockbuster and relax.
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
28 Sep 2015 06:33 PM
Ive already tried, but i cant figure it out, its pretty much teleports the same way as the wiki has it. Where i set the cframe to another, but another thing might that the torso is locked, because i cant set it in roblox studio either by going into its property in solo
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
28 Sep 2015 07:13 PM
Bump 1
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
28 Sep 2015 08:18 PM
Bump 2
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 05:37 AM
Bumbity bump
Report Abuse
theburnboss is not online. theburnboss
Joined: 06 Jun 2007
Total Posts: 1510
29 Sep 2015 05:56 AM
No output?
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 05:57 AM
Nope.
Report Abuse
Sorcism is not online. Sorcism
Joined: 09 Jul 2015
Total Posts: 6906
29 Sep 2015 06:12 AM
For each one, do this:

p[i].Character.Torso.CFrame = CFrame.new(target4)
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 02:40 PM
makes me get :
bad argument #1 to 'new' (Vector3 expected, got CFrame)
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 03:09 PM
bump 1
Report Abuse
CorruptBullet is not online. CorruptBullet
Joined: 16 Apr 2011
Total Posts: 88
29 Sep 2015 03:51 PM
You forgot to call the function??


i'm taking a guess.


--CorruptBullet
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
29 Sep 2015 03:52 PM
then just do target4

come on man the error code is self explanatory

➳Lɪᴛᴀʟᴇʟᴀ ɪs ᴍʏ ɴᴀᴍᴇ, Lᴜᴀ ɪs ᴍʏ ɢᴀᴍᴇツ
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 03:52 PM
that cant be it, because when i tried the last answer it gave back vector3 expected, so it does go over it
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 03:55 PM
also, p1 is true for the first player in the server, so this code is run to teleport the player, its the one line not working:

p[i].Character.Torso.CFrame = target1

so target 4 wont change anything, and im trying to move it to target 1
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 04:38 PM
bump 1
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 06:02 PM
bump 2
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 06:26 PM
bump 3
Report Abuse
UltraTechX is not online. UltraTechX
Joined: 24 Oct 2013
Total Posts: 350
29 Sep 2015 07:05 PM
bump 4
Report Abuse
kinery is not online. kinery
Joined: 12 Feb 2012
Total Posts: 1413
29 Sep 2015 07:07 PM
try Vector3.new


My youtube: https://www.youtube.com/channel/UCf7tYcQSqXhU7wMxr4q51dA | subskrieb!!! || OT and RT's 11 average year old.
Report Abuse
kinery is not online. kinery
Joined: 12 Feb 2012
Total Posts: 1413
29 Sep 2015 07:08 PM
@reply to my other post

p[i].Character.Torso.CFrame = Vector3.new(pos1,pos2,pos3)
I'm not sure if it's right, I'm new to lua.


My youtube: https://www.youtube.com/channel/UCf7tYcQSqXhU7wMxr4q51dA | subskrieb!!! || OT and RT's 11 average year old.
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