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: Camera Troubles...

Previous Thread :: Next Thread 
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 04:32 PM
Yeah so it seems it works once then it doesn't. So what happens is when I test this the frame pops up becuase you know Im zoomed out when I zoom in the frame disappears, then when I zoom out again I get an output saying 'The Parent property of Blocky is locked'... so yeah, what do I need to fix or tweak?

Here's the script.

function Anti_Zoom()
local Block_Frame = game.Lighting.Blocky:clone()
local PlayGui = script.Parent.Parent.PlayerGui
while true do wait(.25)
if (Workspace.CurrentCamera.CoordinateFrame.p - Workspace.CurrentCamera.Focus.p).magnitude > 1 then --Complete Credit to Oysi93
Block_Frame.Parent = PlayGui
else
if PlayGui:FindFirstChild("Blocky") ~= nil then
PlayGui.Blocky:Destroy()
end
end
end
end


wait(0.5)
takeXd() --Is a function, not a variable to my problem.
Anti_Zoom()
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 05:02 PM
Bumping Up ^^^ the post list!
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
01 Mar 2012 05:04 PM
Force the zoom...

Yes,
there is now an actual supported way of doing so.

~ I don't script, I code ~
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 05:07 PM
No, no, no. See I want them to be zoomed in, but be able to zoom out. You know the noobies, who will freak out and say "My mouse is stuck, my computer is wrecked!!!"... yeah. :S
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
01 Mar 2012 05:09 PM
Add a KeyDown with _G.Mouse that would: Disable their game-play but will zoom them out.

~ I don't script, I code ~
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 05:18 PM
Ohh... so you mean the gui would pop up. And when you pressed a certain key down it would then force you to zoom in. Clever thinking....
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 05:21 PM
How would I zoom in. Is the Camera in Vector3.new or a new set? Best if you just lead me to a wiki on the Camera's.
Report Abuse
kools is not online. kools
Joined: 11 Jan 2009
Total Posts: 1659
01 Mar 2012 05:23 PM
Oh wait found it. Nvm and

Workspace.CurrentCamera.CoordinateFrame = CFrame.new(0, 0, 0)
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