Roblox studio # Hướng dẫn tạo Script khiến nhân vật roblox chạy khi nhấn nút shift
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- Lệnh Script:
local UIS = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local humanoid = player.Character:WaitForChild("Humanoid")
UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = 32
end
end)
UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.RightShift then
humanoid.WalkSpeed = 32
end
end)
UIS.InputEnded:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
humanoid.WalkSpeed = 16
end
end)
UIS.InputEnded:Connect(function(input, gameProcessedEvent)
if input.KeyCode == Enum.KeyCode.RightShift then
humanoid.WalkSpeed = 16
end
end)
Hãy Subscribe (đăng ký), like và chia sẻ kênh của mình để mình làm ra thật nhiều video thú vị và hấp dẫn nha!