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: This doesnt work?

Previous Thread :: Next Thread 
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:11 PM
game.Players.PlayerAdded:connect(function(player)
local char = player.Character
if not char or not char.Parent then
local char = player.CharacterAdded:wait()
local target = workspace.SpawnPart
local v = char:FindFirstChild("Torso")
if v then
v.CFrame = CFrame.new(Vector3.new(target.Position))
end
end
end)
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Jun 2016 01:14 PM
That's because you want it to teleport them if they don't have a character. >_>


Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:17 PM
No
Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:20 PM
I need 10 years to fall out of the sky apperantly so I can learn basic lua. azz holes.
Report Abuse
Rerumu is online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
08 Jun 2016 01:20 PM
Ya, and you aren't even waiting for the torso.
Report Abuse
Inigo18 is online. Inigo18
Joined: 02 Feb 2014
Total Posts: 1041
08 Jun 2016 01:20 PM
if not char or not char.Parent then

CHECK THIS LINE.
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Jun 2016 01:22 PM
Well I fixed it now that you're being a brat and calling people names you can do it yourself, Bye newb.


Report Abuse
Rerumu is online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
08 Jun 2016 01:22 PM
Logic:
Let's teleport the character when they dont have one or when it's not parented to anything!
Profit!
Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:30 PM
This doesnt work.

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
if char and player then
local target = workspace.SpawnPart.Position
local t = char:FindFirstChild("Torso")
if t then
t.CFrame = CFrame.new(Vector3.new(target))
end
end

Or this:

game.Players.PlayerAdded:connect(function(player)
local char = player.Character or player.CharacterAdded:wait()
if player and char then
local t = char:FindFirstChild("Torso")
if t then
t.CFrame = CFrame.new(Vector3.new(-108, 3, 134.8))
end
end
end)

Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Jun 2016 01:31 PM
Good for you, if you're going to call people names no one will help you. Ungrateful brat.


Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:31 PM
Theres no excuse for it is why.
Report Abuse
Rerumu is online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
08 Jun 2016 01:34 PM
There's no excuse for being ungrateful.
Get off this forum if you don't like how we work.
Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:41 PM
I figured it out. durr logic? not like I could count on the wiki. if someone smeared their nasty leftovers on that page it would be at its prime.

local player = game.Players.LocalPlayer
local target = workspace.SpawnPart
local char = player.Character or player.CharacterAdded:wait()
if char and player then
wait()
char.Torso.CFrame = target.CFrame
end
Report Abuse
ExtremeBuilder15 is not online. ExtremeBuilder15
Joined: 01 May 2012
Total Posts: 3176
08 Jun 2016 01:42 PM
Most likely you just don't know how to read the wiki :l
Report Abuse
Rerumu is online. Rerumu
Joined: 11 Oct 2014
Total Posts: 950
08 Jun 2016 01:43 PM
Congrats? If you can't use the understand the basic wording of the wiki then you need some real help.
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Jun 2016 01:44 PM
"I figured it out. durr logic? not like I could count on the wiki. if someone smeared their nasty leftovers on that page it would be at its prime."

The wiki is very useful just because you lack the intelligence to understand something doesn't mean you insult it idiot. Hence why you call people names it's because you lack intelligence, numskull.


Report Abuse
fefi_fofum is not online. fefi_fofum
Joined: 04 May 2016
Total Posts: 503
08 Jun 2016 01:44 PM
burnt
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