Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago

I fixed it..

Ad

Answer this question