Advertisement
ZKiller

Control Script [Roblox]

Jun 28th, 2018
7,886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local mouse = game.Players.LocalPlayer:GetMouse()
  2. function control()
  3. local target = mouse.Target
  4. if target ~= nil then
  5. local h = target.Parent:findFirstChildOfClass("Humanoid")
  6. if h ~= nil then
  7. game.Players.LocalPlayer.Character = target.Parent
  8. game.Workspace.CurrentCamera.CameraSubject = h
  9. end
  10. end
  11. end
  12. mouse.Button1Down:connect(control)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement