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: Script for first person lock while a tool is selected?

Previous Thread :: Next Thread 
gahou is not online. gahou
Joined: 12 Oct 2009
Total Posts: 2261
14 Aug 2014 08:05 PM
Please help.
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Aug 2014 08:08 PM
function selected(mouse)
game.Players.LocalPlayer.CameraMaxZoomDistance = 0
end

script.Parent.Selected:connect(selected)

Assuming this is inside LocalScript in a hopperbin.
Report Abuse
gahou is not online. gahou
Joined: 12 Oct 2009
Total Posts: 2261
14 Aug 2014 08:23 PM
There is no local script in this tool, where should I make one?
Report Abuse
opplo is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
14 Aug 2014 08:26 PM
Insert a local script into the tool. Then put that inside it.
Report Abuse
gahou is not online. gahou
Joined: 12 Oct 2009
Total Posts: 2261
14 Aug 2014 08:29 PM
Hmm, I tried that however it is not exactly working, Is there a difference from a script and a local script?
Report Abuse
gahou is not online. gahou
Joined: 12 Oct 2009
Total Posts: 2261
14 Aug 2014 08:33 PM
Nvm, I found how to insert a local script instead, however it still doesnt work with a local script.
Report Abuse
FaceTimeManiac is not online. FaceTimeManiac
Joined: 24 Jan 2011
Total Posts: 56
14 Aug 2014 09:32 PM
Here ya go: http://www.roblox.com/First-Person-HopperBin-item?id=172142107
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