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: Help

Previous Thread :: Next Thread 
masterbeyblade21 is not online. masterbeyblade21
Joined: 02 Jun 2012
Total Posts: 8877
28 Jul 2014 01:23 AM
my first person script does not work once you die.

wait()
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Report Abuse
MomoiroCloverZ is not online. MomoiroCloverZ
Joined: 06 Jan 2013
Total Posts: 825
28 Jul 2014 01:24 AM
wait()
game.Players.LocalPlayer.CameraMode="Classic"
wait()
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"


MomoiroCloverZ, newbag expert Lua coder.
Report Abuse
BLOXLUA is not online. BLOXLUA
Joined: 16 Mar 2013
Total Posts: 453
28 Jul 2014 01:24 AM
game.Players.LocalPlayers.Camera="Classic"
game.Players.LocalPlayers.Camera="LockFirstPerson"

--#sweayololy
Report Abuse
masterbeyblade21 is not online. masterbeyblade21
Joined: 02 Jun 2012
Total Posts: 8877
28 Jul 2014 01:33 AM
Ok that worked thanks guys
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
28 Jul 2014 01:48 AM
function waitForChild(parent, childName)
local child = parent:findFirstChild(childName)
if (child) then
return child
end
while true do
child = parent.ChildAdded:wait()
if (child.Name == childName) then
return child
end
end
return nil
end

waitForChild(game.Players.LocalPlayer, "Torso")

Use this to make sure the player is here.
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