Universal Script 📌
9.2k Views
341 Executions

Crouch and sprint R6

Universal Script 📌
skibidimariodisney
skibidimariodisneyPublished 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

Sprint crouch R6

View Raw
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local hrp = character:WaitForChild("HumanoidRootPart")
local cam = workspace.CurrentCamera
local uis = game:GetService("UserInputService")
local runService = game:GetService("RunService")
local debris = game:GetService("Debris")

humanoid.CameraOffset = Vector3.new(0, 0, 0)
humanoid.AutoRotate = true
humanoid.RequiresNeck = false

uis.InputChanged:Connect(function()
	if cam.CameraSubject == humanoid and cam.FieldOfView <= 70 then
		for _, part in pairs(character:GetChildren()) do
			if part:IsA("BasePart") then
				part.LocalTransparencyModifier = 0
			end
		end
	end
end)

local gui = Instance.new("ScreenGui", game.CoreGui)
gui.ResetOnSpawn = false

local function makeButton(name, text, pos)
	local b = Instance.new("TextButton", gui)
	b.Name = name
	b.Size = UDim2.new(0, 100, 0, 40)
	b.Position = pos
	b.Text = text
	b.Font = Enum.Font.SourceSansBold
	b.TextSize = 18
	b.TextColor3 = Color3.new(1, 1, 1)
	b.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
	Instance.new("UICorner", b).CornerRadius = UDim.new(0, 8)
	return b
end



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
126
459
Bumped 10 minutes ago
Key System
Universal Script 📌
1.3M
592.0k
Bumped 2 hours ago
Script hub
2.5k
19.5k
Bumped 3 hours ago
Universal Script 📌
298
603
Approved 4 hours ago
Universal Script 📌
74
858
Approved 5 hours ago
Universal Script 📌
104
96
Approved 6 hours ago