SHOW:
|
|
- or go back to the newest paste.
| 1 | ||
| 2 | wait(2) | |
| 3 | ||
| 4 | local mouse2 = script.Parent.Parent:GetMouse() | |
| 5 | Tool=script.Parent | |
| 6 | CP,Head,g=nil,nil,nil | |
| 7 | necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 8 | armo1=CFrame.new(1, 0.5, 0, 0, 0, 1, -6.48200512e-007, 1.00000274, 0, -1.00000274, -6.48200512e-007, 0) | |
| 9 | head = game.Players.LocalPlayer.Character.Head | |
| 10 | - | return Vector3.new(Pos.x,HeadPos.y,Pos.z) |
| 10 | + | |
| 11 | return Vector3.new(Pos.x,HeadPos.y,Pos.z) | |
| 12 | end | |
| 13 | - | local Direction = mouse2.Hit.p |
| 13 | + | |
| 14 | - | local b = head.Position.Y-Direction.Y |
| 14 | + | local Direction = mouse2.Hit.p |
| 15 | - | local dist = (head.Position-Direction).magnitude |
| 15 | + | local b = head.Position.Y-Direction.Y |
| 16 | - | local answer = math.asin(b/dist)/2 |
| 16 | + | local dist = (head.Position-Direction).magnitude |
| 17 | - | |
| 17 | + | local answer = math.asin(b/dist)/2 |
| 18 | - | local Direction2 = mouse2.Hit.p |
| 18 | + | |
| 19 | - | local b2 = head.Position.X-Direction2.X |
| 19 | + | local Direction2 = mouse2.Hit.p |
| 20 | - | local dist2 = (head.Position-Direction2).magnitude |
| 20 | + | local b2 = head.Position.X-Direction2.X |
| 21 | - | local answer2 = math.asin(b2/dist2)/2 |
| 21 | + | local dist2 = (head.Position-Direction2).magnitude |
| 22 | - | local neg = head.Rotation.X |
| 22 | + | local answer2 = math.asin(b2/dist2)/2 |
| 23 | - | oldx = head.Rotation.X |
| 23 | + | local neg = head.Rotation.X |
| 24 | - | print(answer2) |
| 24 | + | oldx = head.Rotation.X |
| 25 | - | neck=Tool.Parent.Character.Torso.Neck |
| 25 | + | print(answer2) |
| 26 | - | neck.C0=necko*CFrame.fromEulerAnglesXYZ(answer,0,answer2) |
| 26 | + | neck=Tool.Parent.Character.Torso.Neck |
| 27 | - | end |
| 27 | + | neck.C0=necko*CFrame.fromEulerAnglesXYZ(answer,0,answer2) |
| 28 | - | CP=Tool.Parent.Character |
| 28 | + | end |
| 29 | - | Head=CP.Head |
| 29 | + | CP=Tool.Parent.Character |
| 30 | - | g=Instance.new("BodyGyro")
|
| 30 | + | Head=CP.Head |
| 31 | - | g.P=180 |
| 31 | + | g=Instance.new("BodyGyro")
|
| 32 | - | g.D=60 |
| 32 | + | g.P=180 |
| 33 | - | g.maxTorque=Vector3.new(800,800,800)*500000 |
| 33 | + | g.D=60 |
| 34 | - | g.cframe=Head.CFrame |
| 34 | + | g.maxTorque=Vector3.new(800,800,800)*500000 |
| 35 | g.cframe=Head.CFrame | |
| 36 | ||
| 37 | ||
| 38 | ||
| 39 | ||
| 40 | game.StarterGui:SetCoreGuiEnabled("All",false)
| |
| 41 | repeat wait() until game.Players.LocalPlayer.Character ~= nil | |
| 42 | - | if(game.Players.LocalPlayer.Character:FindFirstChild("ForceField") ~= nil) then
|
| 42 | + | |
| 43 | - | game.Players.LocalPlayer.Character:FindFirstChild("ForceField"):Destroy()
|
| 43 | + | if(game.Players.LocalPlayer.Character:FindFirstChild("ForceField") ~= nil) then
|
| 44 | - | end |
| 44 | + | game.Players.LocalPlayer.Character:FindFirstChild("ForceField"):Destroy()
|
| 45 | - | local char = game.Players.LocalPlayer.Character |
| 45 | + | end |
| 46 | - | char:WaitForChild("Head")
|
| 46 | + | local char = game.Players.LocalPlayer.Character |
| 47 | - | game.Workspace.CurrentCamera.CameraType = "Scriptable" |
| 47 | + | char:WaitForChild("Head")
|
| 48 | - | char.Head.Transparency = 1 |
| 48 | + | game.Workspace.CurrentCamera.CameraType = "Scriptable" |
| 49 | - | char.Torso.Transparency = 1 |
| 49 | + | char.Head.Transparency = 1 |
| 50 | - | for i,v in pairs(char:GetChildren()) do |
| 50 | + | char.Torso.Transparency = 1 |
| 51 | - | if(v.ClassName == "Hat") then |
| 51 | + | for i,v in pairs(char:GetChildren()) do |
| 52 | - | v:remove() |
| 52 | + | if(v.ClassName == "Hat") then |
| 53 | - | end |
| 53 | + | v:remove() |
| 54 | - | end |
| 54 | + | end |
| 55 | - | while wait() do |
| 55 | + | end |
| 56 | - | game.Workspace.CurrentCamera.CameraSubject = char.Head |
| 56 | + | while wait() do |
| 57 | - | game.Workspace.CurrentCamera.CoordinateFrame = char.Head.CFrame |
| 57 | + | game.Workspace.CurrentCamera.CameraSubject = char.Head |
| 58 | - | if Tool.Parent.Character.className~="Model" then |
| 58 | + | game.Workspace.CurrentCamera.CoordinateFrame = char.Head.CFrame |
| 59 | - | break |
| 59 | + | if Tool.Parent.Character.className~="Model" then |
| 60 | - | end |
| 60 | + | break |
| 61 | - | Turn(mouse2,Torso,g) |
| 61 | + | end |
| 62 | - | end |
| 62 | + | Turn(mouse2,Torso,g) |
| 63 | - | |
| 63 | + | end |
| 64 | - | g:Remove() |
| 64 | + | |
| 65 | g:Remove() |