Guest User

oolololol

a guest
Sep 7th, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. wait(2)
  2.  
  3. local mouse2 = script.Parent.Parent:GetMouse()
  4. Tool=script.Parent
  5. CP,Head,g=nil,nil,nil
  6. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  7. armo1=CFrame.new(1, 0.5, 0, 0, 0, 1, -6.48200512e-007, 1.00000274, 0, -1.00000274, -6.48200512e-007, 0)
  8. head = game.Players.LocalPlayer.Character.Head
  9. getPos=function(Pos,HeadPos)
  10. return Vector3.new(Pos.x,HeadPos.y,Pos.z)
  11. end
  12. Turn=function(mouse2,Head,Gyro)
  13. local Direction = mouse2.Hit.p
  14. local b = head.Position.Y-Direction.Y
  15. local dist = (head.Position-Direction).magnitude
  16. local answer = math.asin(b/dist)/2
  17.  
  18. local Direction2 = mouse2.Hit.p
  19. local b2 = head.Position.X-Direction2.X
  20. local dist2 = (head.Position-Direction2).magnitude
  21. local answer2 = math.asin(b2/dist2)/2
  22. local neg = head.Rotation.X
  23. oldx = head.Rotation.X
  24. print(answer2)
  25. neck=Tool.Parent.Character.Torso.Neck
  26. neck.C0=necko*CFrame.fromEulerAnglesXYZ(answer,0,answer2)
  27. end
  28. CP=Tool.Parent.Character
  29. Head=CP.Head
  30. g=Instance.new("BodyGyro")
  31. g.P=180
  32. g.D=60
  33. g.maxTorque=Vector3.new(800,800,800)*500000
  34. g.cframe=Head.CFrame
  35.  
  36.  
  37.  
  38.  
  39. game.StarterGui:SetCoreGuiEnabled("All",false)
  40. repeat wait() until game.Players.LocalPlayer.Character ~= nil
  41. game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
  42. if(game.Players.LocalPlayer.Character:FindFirstChild("ForceField") ~= nil) then
  43. game.Players.LocalPlayer.Character:FindFirstChild("ForceField"):Destroy()
  44. end
  45. local char = game.Players.LocalPlayer.Character
  46. char:WaitForChild("Head")
  47. game.Workspace.CurrentCamera.CameraType = "Scriptable"
  48. char.Head.Transparency = 1
  49. char.Torso.Transparency = 1
  50. for i,v in pairs(char:GetChildren()) do
  51. if(v.ClassName == "Hat") then
  52. v:remove()
  53. end
  54. end
  55. while wait() do
  56. game.Workspace.CurrentCamera.CameraSubject = char.Head
  57. game.Workspace.CurrentCamera.CoordinateFrame = char.Head.CFrame
  58. if Tool.Parent.Character.className~="Model" then
  59. break
  60. end
  61. Turn(mouse2,Torso,g)
  62. end
  63.  
  64. g:Remove()
Advertisement
Add Comment
Please, Sign In to add comment