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
 

FPS Help

Previous Thread :: Next Thread 
Kaioj is not online. Kaioj
Joined: 19 Apr 2013
Total Posts: 126
13 May 2013 01:55 PM
My friend and I are making an FPS and we need the camera to be in first person. Help?

    print('FPS coming soon!')
Report Abuse
Kaioj is not online. Kaioj
Joined: 19 Apr 2013
Total Posts: 126
13 May 2013 01:57 PM
Bump.
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
13 May 2013 02:20 PM
I think I have one in my models you can use, it restricts zooming out if memory serves well.
Report Abuse
krazykaram is not online. krazykaram
Joined: 03 Jan 2009
Total Posts: 7140
13 May 2013 02:21 PM
function onPlayerSpawned(player, character)
player.CameraMode = "LockFirstPerson"
end

function onPlayerChatted(player, message, recipient)
if player.userId == game.CreatorId and game.CreatorType == Enum.CreatorType.User then
if message == "/thirdperson" then
player.CameraMode = "Classic"
elseif message == "/firstperson" then
player.CameraMode = "LockFirstPerson"
end
end
end

function onPlayerEntered(player)
player.CharacterAdded:connect(function (char) onPlayerSpawned(player, char) end)
player.Chatted:connect(function (msg, rec) onPlayerChatted(player, msg, rec) end)

player.CameraMode = "LockFirstPerson"
end

game.Players.PlayerAdded:connect(onPlayerEntered)
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