View difference between Paste ID: MDqXvGqd and 8CFQFPtN
SHOW: | | - or go back to the newest paste.
1
spawn(function()
2
  while wait() do
3
    game.Players.LocalPlayer.MaximumSimulationRadius = math.huge;
4
    setsimulationradius(math.huge);
5
  end
6
end)
7
8
local OGPN = game.Players.LocalPlayer.Name
9
local Player = game.Players.LocalPlayer
10
local Mouse = Player:GetMouse()
11
Mouse.Button1Down:connect(function()
12
  if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) and Mouse.Target ~= nil and Mouse.Target.Parent.Name ~= "Workspace" and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
13
    local Char = Mouse.Target.Parent
14
    Player.Character = Mouse.Target.Parent
15
    workspace.CurrentCamera.CameraSubject = Char
16
    Char.Animate.Disabled = true
17
   wait(0.1)
18
    Char.Animate.Disabled = false
19
  end
20
end)
21
22
Mouse.KeyDown:connect(function()
23
  if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.Quote) then
24
    for i,v in pairs(game.Workspace:GetDescendants()) do
25
      if v.Name == OGPN then
26
        local Char = v
27
        Player.Character = v
28
        workspace.CurrentCamera.CameraSubject = Char
29
        Char.Animate.Disabled = true
30
       wait(0.1)
31
        Char.Animate.Disabled = false
32
      end
33
    end
34
  end
35
end)