How to make press 'R' to Reset character in Roblox Studio? . (Easy) .

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ต.ค. 2024
  • Heyy looking for script ?
    Here's the Script :D
    SCRIPT :
    --SanMemePlays
    local function onKeyPress(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.R then --Change "R"to whatever u want to!
    local Player = game.Players.LocalPlayer
    local Character = Player.Character
    local Humanoid = Character:FindFirstChild("Humanoid")
    if Humanoid then
    Humanoid.Health = 0--health of the player when presses "R"
    end
    end
    end
    game:GetService("UserInputService").InputBegan:Connect(onKeyPress)
    --SanMemePlays
    ---------------------------------------------------------------------------------------------------------------------------------
    That's all!
    Subscribe?

ความคิดเห็น • 3

  • @Itsmethe-1
    @Itsmethe-1 11 วันที่ผ่านมา +2

    Bro does it work for two keycodes?

    • @SANTHOSH_3119
      @SANTHOSH_3119  11 วันที่ผ่านมา +3

      No , For two keycodes copy paste the same script in the starterplayerscripts then change the keycodes to whatever u want!

    • @Itsmethe-1
      @Itsmethe-1 11 วันที่ผ่านมา +2

      ​@@SANTHOSH_3119Tysm tried and it works 🔥🔥🔥