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: First-Person view problem.

Previous Thread :: Next Thread 
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
19 Feb 2013 04:45 PM
I don't know if it's related to building or scripting, but I'll post here because it's probably a script that's doing that...

The problem is that when you go in first person view, the mouse doesn't lock and instead the player could move the mouse everywhere but the screen doesn't follow...

You can check in my place when zooming in maximum it's not like other games.

Is there a specific line that does that? How can I fix it?

Thank you!
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
19 Feb 2013 04:46 PM
No it is hardcoded into the roblox engine....
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
19 Feb 2013 04:54 PM
It doesn't do that in other places... So there must be a kind of fix.
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
19 Feb 2013 04:55 PM
To be a little short:

Problem=

>Mouse moving when in first person view
>Screen not moving in first person view
>Must right click and drag to make screen move

Need=

>A way to fix it...
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 04:21 PM
Bump?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
20 Feb 2013 04:29 PM
[ Content Deleted ]
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 07:33 PM
I don't understand... I'm a noob in scripting...
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:36 PM
game.Players.playername (or onentered name)CameraType.LockedFirstPerson = true
i think

RED MAN IS RED™
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:36 PM
WAIT REMOVE = TRUE

RED MAN IS RED™
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 07:43 PM
Ok cool thanks.
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 07:44 PM
Onentered name??

game.Players.OnEntered.CameraType.LockedFirstPerson
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:46 PM
if it doesnt work go in build mode and find the things in your player

RED MAN IS RED™
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:47 PM
if you have a OnEntered function what is inside (these) will count as player. for this case

these:Remove()
kicks the player

RED MAN IS RED™
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 07:48 PM
OK I'll try thanks for the help :D
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 07:49 PM
game.Players.playername (OnEntered)CameraType.LockedFirstPerson

Is it that? Sorry, I'm kinda of a noob as I said D:
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:51 PM
Wait getting a script for you

RED MAN IS RED™
Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 07:53 PM
game.Players.ChildAdded:connect(new)
new.CameraType.LockedFirstPerson = true
end
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:54 PM
game.Players.ChildAdded:connect(player)
player.CameraMode = LockFirstPerson
end
player.CameraMode = Classic
if it doesnt work add quotes before LockFirstPerson and after "like" this
i think
to fix it do

RED MAN IS RED™
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
20 Feb 2013 07:55 PM
player.CameraMode = Classic undoes ti

RED MAN IS RED™
Report Abuse
GenerallyUnused is not online. GenerallyUnused
Joined: 18 Feb 2013
Total Posts: 20
20 Feb 2013 07:55 PM
^
game.Players.PlayerEntered:connect(function(new)
new.CameraMode = Enum.CameraMode.LockFirstPerson
end)
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 08:03 PM
I'm confused... Is two scripters fighting over? Because I don't know which one to use D:

Generally's one seems shorter but yet Old's script seems more complex...

I'll try both of them...
Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 08:05 PM
Use Generally's.
Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 08:20 PM
I just tried it in the command bar in build mode, and the code is actually:

game.Players.ChildAdded(functoin(new)
new.CameraMode = "LockedFirstPerson"
end
Report Abuse
Th30racle is not online. Th30racle
Joined: 03 Nov 2012
Total Posts: 214
20 Feb 2013 08:21 PM
Oops, typo. Fix:

game.Players.ChildAdded(function(new)
new.CameraMode = "LockedFirstPerson"
end
Report Abuse
Powerhalo is not online. Powerhalo
Joined: 16 Jun 2010
Total Posts: 1504
20 Feb 2013 08:23 PM
Ok thanks :D
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