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
|
  |
| Joined: 11 Jan 2009 |
| Total Posts: 1659 |
|
|
| 01 Mar 2012 05:02 PM |
| Bumping Up ^^^ the post list! |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|