Universal Script 📌
18.8k Views
111 Executions

FIRST PERSON SCRIPT NOT V3

Universal Script 📌
Bluey
BlueyPublished 5
4 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

This script is made by me and my friend. Thank you for using our script! *THIS SCRIPT MAY WORK ON R6 GAMES.* *IF IT WORKS ON R15, YOUR LUCKY*

View Raw
wait()

local player = game.Players.LocalPlayer
local character = player.Character
if not character or not character.Parent then
	character = player.CharacterAdded:wait()
end
local humanoid = character:WaitForChild("Humanoid")
local torso = character:WaitForChild("Torso")
local rightShoulder = torso:WaitForChild("Right Shoulder")
local leftShoulder = torso:WaitForChild("Left Shoulder")
local head = character:WaitForChild("Head")
local rootpart = character:WaitForChild("HumanoidRootPart")
local camera = game.Workspace.CurrentCamera

updateSpeed = 0.5/2

game:GetService("RunService").RenderStepped:Connect(function()
	character["Right Arm"].LocalTransparencyModifier = character["Right Arm"].Transparency
	character["Left Arm"].LocalTransparencyModifier = character["Left Arm"].Transparency
	local camCF = camera.CoordinateFrame
	local distance = (character.Head.Position - camCF.p).magnitude
	if distance <= 2 and humanoid.Health ~= 0 then
		rightShoulder.C0 = rightShoulder.C0:lerp((camCF * CFrame.new(1, -1, -.5)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, math.pi/2, 0), updateSpeed)
		leftShoulder.C0 = leftShoulder.C0:lerp((camCF * CFrame.new(-1, -1, -.5)):toObjectSpace(torso.CFrame):inverse() * CFrame.Angles(0, -math.pi/2, 0), updateSpeed)
		humanoid.CameraOffset = (rootpart.CFrame+Vector3.new(0,1.5,0)):pointToObjectSpace(head.CFrame.p)
	else
		rightShoulder.C0 = CFrame.new(1, 0.5, 0) * CFrame.Angles(0, math.pi/2, 0)
		leftShoulder.C0 = CFrame.new(-1, 0.5, 0) * CFrame.Angles(0, -math.pi/2, 0)
		humanoid.CameraOffset = Vector3.new(0,0,0)
	end
end)


Comments

1
Log in to join the conversation. Login
ddxgaminga's profile picture
ddxgaminga4 years ago(edited)

scroll wheel script

1

Tags

More universal scripts

See all
Script hub
559
46
Bumped 2 hours ago
Script hub
171.0k
1.4M
Bumped 2 hours ago
Key System
Script hub
16.5k
3.2k
Bumped 4 hours ago
Key System
Paid
Script hub
17.1k
87.0k
Bumped 4 hours ago
Script hub
504
62
Approved 6 hours ago