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

RPG Aim [closed]

Asked by 10 years ago

sry thought ya meant just scripts, i had this zoom script:

a=false
cam=nil



function onEquipped(mouse2)
    mouse2.KeyDown:connect(onkeyDown)
    mouse = mouse2
end
function onkeyDown(key) 
    if key == "z" then
    if not a then 
        cam=game.Workspace.CurrentCamera:clone()
        cam.Parent=game.Workspace
        game.Workspace.CurrentCamera.CameraSubject = mouse.Target
        game.Workspace.CurrentCamera.CameraType=4
        a=true
    else
        game.Workspace.CurrentCamera.CameraSubject=game.Players.LocalPlayer.Character
        game.Workspace.CurrentCamera:Remove()
        game.Workspace.CurrentCamera=cam
        a=false
    end
end 
end





script.Parent.Equipped:connect(onEquipped)

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?