Universal Script 📌
2.0k Views
51 Executions

It catches the head

Universal Script 📌
vobBox
vobBoxPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

😇

View Raw
--[[ Head/Waist Follow Mouse/Camera Script with Camera Tilt Effect + Handles Player Death Gracefully + Run Shake ]]

wait()

--[Pre-Funcs]:
local Ang = CFrame.Angles
local aSin = math.asin
local aTan = math.atan

--[Constants]:
local Cam = workspace.CurrentCamera
local Plr = game.Players.LocalPlayer
local Mouse = Plr:GetMouse()

--[Character Setup Function]:
local function Setup()
	local Body = Plr.Character or Plr.CharacterAdded:Wait()
	local Head = Body:WaitForChild("Head")
	local Hum = Body:WaitForChild("Humanoid")
	local Core = Body:WaitForChild("HumanoidRootPart")
	local IsR6 = Hum.RigType.Value == 0
	local Trso = IsR6 and Body:WaitForChild("Torso") or Body:WaitForChild("UpperTorso")
	local Neck = IsR6 and Trso:WaitForChild("Neck") or Head:WaitForChild("Neck")
	local Waist = not IsR6 and Trso:FindFirstChild("Waist")

	return {
		Body = Body, Head = Head, Hum = Hum, Core = Core,
		IsR6 = IsR6, Trso = Trso, Neck = Neck, Waist = Waist,
		NeckOrgnC0 = Neck.C0,
		WaistOrgnC0 = Waist and Waist.C0
	}
end

--[Rebind on Respawn]:
local characterData = Setup()

local function RebindOnCharacterAdded()
	Plr.CharacterAdded:Connect(function(char)
		char:WaitForChild("Humanoid").Died:Connect(function()
			characterData = nil


Comments

1
Log in to join the conversation. Login
illorsm's profile picture
illorsm2 years ago

Pretty cool :)

1

More universal scripts

See all
Universal Script 📌
783
5.0k
Bumped 2 hours ago
Universal Script 📌
6.2k
54.4k
Bumped 2 hours ago
Universal Script 📌
2.4k
2.1k
Bumped 3 hours ago
Key System
Script hub
14.4k
75.0k
Bumped 5 hours ago
Universal Script 📌
97
99
Approved 6 hours ago
Key System
Universal Script 📌
97
120
Approved 7 hours ago