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: Why does this only work once?

Previous Thread :: Next Thread 
takecover is not online. takecover
Joined: 19 Jun 2009
Total Posts: 407
20 Nov 2013 10:28 AM
-- Copy script

function P_Added(Player)
function c(cha)
script.LFP:clone().Parent = cha
end
Player.CharacterAdded:connect(c)
end
game.Players.PlayerAdded:connect(P_Added)

-- LFP

local plr = Game:GetService("Players").LocalPlayer
plr.CameraMode = Enum.CameraMode.LockFirstPerson
Report Abuse
takecover is not online. takecover
Joined: 19 Jun 2009
Total Posts: 407
20 Nov 2013 10:29 AM
Bump
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
20 Nov 2013 10:41 AM
Game.Players.PlayerAdded:connect(function(P)
P.CharacterAdded:connect(function(C)
print(C.Name)
end)
end)
Report Abuse
takecover is not online. takecover
Joined: 19 Jun 2009
Total Posts: 407
20 Nov 2013 11:11 AM
Umm, Why did you post that?
Report Abuse
takecover is not online. takecover
Joined: 19 Jun 2009
Total Posts: 407
20 Nov 2013 11:13 AM
Still only works once...
Report Abuse
Scriptural is not online. Scriptural
Joined: 06 Sep 2013
Total Posts: 2979
20 Nov 2013 11:35 AM
Try adding wait(0.03) under the connection line
Or even better
repeat
wait(0.03)
until PlayerObject.Character ~= nil
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