--Zoom in
Mouse.Button2Down:Connect(function()
clicked2 = false
while true do
if Zoomcount < Zoomtime/0.01 then
if clicked2 == true then
clicked2 = true
break
end
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0,(-1*(ZoomPower*0.01)/Zoomtime))
Zoomcount = Zoomcount +1
wait(0.01)
else
break
end
end
end)
Mouse.Button2Up:Connect(function()
clicked2 = true
while true do
if Zoomcount > 0 then
if clicked2 == false then
clicked2 = false
break
end
camera.CoordinateFrame = camera.CoordinateFrame * CFrame.new(0,0,((ZoomPower*0.01)/Zoomtime))
Zoomcount = Zoomcount - 1
wait(0.01)
else
break
end
end
end)
Everythign works, except for the fact that the lines of code that moves the camera dont even move the camera, no errors no nothing.
