Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2)
- local mouse2 = script.Parent.Parent:GetMouse()
- Tool=script.Parent
- CP,Head,g=nil,nil,nil
- necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- armo1=CFrame.new(1, 0.5, 0, 0, 0, 1, -6.48200512e-007, 1.00000274, 0, -1.00000274, -6.48200512e-007, 0)
- head = game.Players.LocalPlayer.Character.Head
- getPos=function(Pos,HeadPos)
- return Vector3.new(Pos.x,HeadPos.y,Pos.z)
- end
- Turn=function(mouse2,Head,Gyro)
- local Direction = mouse2.Hit.p
- local b = head.Position.Y-Direction.Y
- local dist = (head.Position-Direction).magnitude
- local answer = math.asin(b/dist)/2
- local Direction2 = mouse2.Hit.p
- local b2 = head.Position.X-Direction2.X
- local dist2 = (head.Position-Direction2).magnitude
- local answer2 = math.asin(b2/dist2)/2
- local neg = head.Rotation.X
- oldx = head.Rotation.X
- print(answer2)
- neck=Tool.Parent.Character.Torso.Neck
- neck.C0=necko*CFrame.fromEulerAnglesXYZ(answer,0,answer2)
- end
- CP=Tool.Parent.Character
- Head=CP.Head
- g=Instance.new("BodyGyro")
- g.P=180
- g.D=60
- g.maxTorque=Vector3.new(800,800,800)*500000
- g.cframe=Head.CFrame
- game.StarterGui:SetCoreGuiEnabled("All",false)
- repeat wait() until game.Players.LocalPlayer.Character ~= nil
- game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
- if(game.Players.LocalPlayer.Character:FindFirstChild("ForceField") ~= nil) then
- game.Players.LocalPlayer.Character:FindFirstChild("ForceField"):Destroy()
- end
- local char = game.Players.LocalPlayer.Character
- char:WaitForChild("Head")
- game.Workspace.CurrentCamera.CameraType = "Scriptable"
- char.Head.Transparency = 1
- char.Torso.Transparency = 1
- for i,v in pairs(char:GetChildren()) do
- if(v.ClassName == "Hat") then
- v:remove()
- end
- end
- while wait() do
- game.Workspace.CurrentCamera.CameraSubject = char.Head
- game.Workspace.CurrentCamera.CoordinateFrame = char.Head.CFrame
- if Tool.Parent.Character.className~="Model" then
- break
- end
- Turn(mouse2,Torso,g)
- end
- g:Remove()
Advertisement
Add Comment
Please, Sign In to add comment