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: Can someone teach me this :)

Previous Thread :: Next Thread 
shikaro510 is not online. shikaro510
Joined: 30 Oct 2008
Total Posts: 3512
02 Nov 2012 11:55 PM
can someone help me put a script that enables a person to not zoom out in game like for example the one in paintball or apocalypse rising pls help
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
02 Nov 2012 11:56 PM
localscript:

repeat wait() until game.Players.LocalPlayer
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Report Abuse
shikaro510 is not online. shikaro510
Joined: 30 Oct 2008
Total Posts: 3512
03 Nov 2012 12:01 AM
thanks really appreciate it :))
Report Abuse
shikaro510 is not online. shikaro510
Joined: 30 Oct 2008
Total Posts: 3512
03 Nov 2012 12:01 AM
oh and were do i put it cause im not into scripting much still a beginner :)
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
03 Nov 2012 12:08 AM
I still wish we had the ability to set a specific radius that camera can zoom out to. It would make a whole lot of stuff a lot easier.
Report Abuse
ForeignLOL is not online. ForeignLOL
Joined: 15 Jul 2011
Total Posts: 735
03 Nov 2012 12:11 AM
Put it in Workspace, I believe.
Report Abuse
shikaro510 is not online. shikaro510
Joined: 30 Oct 2008
Total Posts: 3512
03 Nov 2012 12:13 AM
well if enable the zoom out it would make my game less fun and easy hope u understand :3
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
03 Nov 2012 03:10 AM
First of all you must know that not all scripts are compatible and you shouldn't just copy paste scripts thinking they would work:

Put this in a localscript inside the starterpack:

game.Players.LocalPlayer.CameraMode = "LockFirstPerson"

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞
Report Abuse
pashmi is not online. pashmi
Joined: 27 Jan 2010
Total Posts: 7120
03 Nov 2012 03:13 AM
In a game by "theRaj" or something, He somehow made it so that a GUI blocks your screen if you zoom out too far in THIRD PERSON. I'm intrigued to see how he did that.
Report Abuse
Candymaniac is not online. Candymaniac
Joined: 08 Oct 2009
Total Posts: 8985
03 Nov 2012 03:13 AM
@pashmi;
There are literally hundreds of them in free models.

☜▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬☞
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
03 Nov 2012 05:30 AM
@pashmi

Yeah, the game is called "TheCreed" and his name is TheRal. It's actually quite simple :

local Camera = Workspace.CurrentCamera
while wait(.5) do
local DistanceZoomedOut = (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude
if DistanceZoomedOut <= 25 then
script.Parent.Visible = false ---the gui it's in becomes visible.
elseif DistanceZoomedOut > 25 then
script.Parent.Visible = true
end
end
Report Abuse
vbloke2 is not online. vbloke2
Joined: 14 Jan 2011
Total Posts: 24
03 Nov 2012 06:48 AM

TG101 :OO
Report Abuse
RoShotGamer is not online. RoShotGamer
Joined: 21 Sep 2012
Total Posts: 208
03 Nov 2012 07:29 AM
please please Can someone please help me by buying this shirt: http://www.roblox.com/DONATE-item?id=96616346
Report Abuse
jobro13 is not online. jobro13
Joined: 05 Aug 2009
Total Posts: 2865
03 Nov 2012 07:33 AM
@adark

You can make it yourself? Manipulation of the camera's coordinateframe is the key to success! :)
Report Abuse
adark is not online. adark
Joined: 13 Jan 2008
Total Posts: 6412
03 Nov 2012 11:46 PM
Rereading my post, I phrased that badly.

I didn't mean a radius to zoom out to, I meant a radius to be attached to that couldn't be zoomed out or in past and didn't create camera stutter when you tried.
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