How to Create R To Die? Roblox Studio Tutorial

Опубликовано: 08 Сентябрь 2024
на канале: fil1pex
27
1

script:
---------------------------------
local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")

UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.R then
if player.Character and player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.Health = 0
end
end
end)
------------------------------