local UserInputService = game:GetService("UserInputService")
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
character.Humanoid.WalkSpeed = 16
end
if input.KeyCode == Enum.KeyCode.F then
character.UpperTorso:FindFirstChild("Flashlight").Enabled = true
end
end
UserInputService.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode.LeftShift then
character.Humanoid.WalkSpeed = 6
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: