Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --este script fue echo por el dev (DEVJORDAN22)
- local STG = game:GetService("StarterGui")
- local uis = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local cam = game.Workspace.CurrentCamera
- local mouse = plr:GetMouse()
- local RS = game:GetService("RunService")
- local focused = nil
- local enabled = false
- wait(3)
- STG:SetCore("SendNotification", {
- Title = "Auto Camera Follow Script";
- Text = "Press V to Toggle";
- Icon = "rbxassetid://11346388439";
- Duration = "5";
- })
- uis.InputBegan:Connect(function(key, gp)
- if key.KeyCode == Enum.KeyCode.V and not gp then
- if cam.CameraType == Enum.CameraType.Custom then
- if enabled == false then
- if mouse.Target.Parent:FindFirstChild("Humanoid") then
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraSubject = plr.Character.Humanoid
- focused = mouse.Target.Parent
- enabled = true
- end
- else
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraSubject = plr.Character.Humanoid
- focused = nil
- enabled = false
- end
- end
- end
- end)
- RS.Stepped:Connect(function()
- if enabled == true then
- cam.CFrame = CFrame.new(cam.CFrame.Position + Vector3.new(0,1,0), focused.Head.Position)
- cam.Focus = CFrame.new(focused.Head.Position)
- if focused.Humanoid.Health <= 0 then
- cam.CameraType = Enum.CameraType.Custom
- cam.CameraSubject = plr.Character.Humanoid
- focused = nil
- enabled = false
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement