Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local LocalPlayerPla = game:GetService("Players").LocalPlayer
- local LocalPlayerCHAR = LocalPlayerPla.Character
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.Button1Down:connect(function()
- if Mouse.Target ~= nil and Mouse.Target.Parent.Name ~= "Workspace" and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- local Char = Mouse.Target.Parent
- Player.Character = Mouse.Target.Parent
- workspace.CurrentCamera.CameraSubject = Char
- Char.Animate.Disabled = true
- wait(0.01)
- Char.Animate.Disabled = false
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(Key)
- if Key.KeyCode == Enum.KeyCode.T then
- Player.Character = LocalPlayerCHAR
- workspace.CurrentCamera.CameraSubject = LocalPlayerCHAR
- LocalPlayerCHAR.Animate.Disabled = true
- wait(0.01)
- LocalPlayerCHAR.Animate.Disabled = false
- end
- end)
- local LocalPlayerPla = game:GetService("Players").LocalPlayer
- local LocalPlayerCHAR = LocalPlayerPla.Character
- local Player = game:GetService("Players").LocalPlayer
- local Mouse = Player:GetMouse()
- Mouse.Button1Down:connect(function()
- if Mouse.Target ~= nil and Mouse.Target.Parent.Name ~= "Workspace" and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- local Char = Mouse.Target.Parent
- Player.Character = Mouse.Target.Parent
- workspace.CurrentCamera.CameraSubject = Char
- wait()
- Char.Animate.Disabled = false
- end
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(Key)
- if Key.KeyCode == Enum.KeyCode.T then
- Player.Character = LocalPlayerCHAR
- workspace.CurrentCamera.CameraSubject = LocalPlayerCHAR
- wait()
- Char.Animate.Disabled = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment