Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My sniper tool's zoom system isnt working. And why?

Can anyone help?

So basically im making a sniper tool and im trying to make a zoom script but it doesnt work

Heres the code (LocalScript):

local Mouse = game.Players.LocalPlayer:GetMouse()
local Tool = script.Parent

local PlayerGUI = game.Players.LocalPlayer.PlayerGui --Im gonna use it later
local char = game.Players.LocalPlayer.Character
local Zoomed = false
local CurrentCamera = workspace.CurrentCamera --Also gonna use it later

Mouse.Button2Down:Connect(function()
	if Tool.Parent == char then
		if Zoomed == false then
			print("UP")
		elseif Zoomed == true then
			print("DOWN")			
		end
	end
end)

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.