|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
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 |
|
|
|
| 29 Sep 2015 02:40 PM |
makes me get : bad argument #1 to 'new' (Vector3 expected, got CFrame) |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2015 03:51 PM |
You forgot to call the function??
i'm taking a guess.
--CorruptBullet |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
| |
|
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
|
  |
| 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 |
|
|