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?
Bro does it work for two keycodes?
No , For two keycodes copy paste the same script in the starterplayerscripts then change the keycodes to whatever u want!
@@SANTHOSH_3119Tysm tried and it works 🔥🔥🔥