Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onKeyPress1(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave1:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress1", onKeyPress1, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress2(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave2:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress2", onKeyPress2, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress3(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave3:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress3", onKeyPress3, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress4(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave4:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress4", onKeyPress4, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress5(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave5:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress5", onKeyPress5, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress6(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave6:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress6", onKeyPress6, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
- function onKeyPress7(actionName, userInputState, inputObject)
- if userInputState == Enum.UserInputState.Begin then
- for i,v in pairs(workspace.DungeonTemp.Wave7:GetChildren()) do
- v.Humanoid.Health = 0
- end
- end
- end
- game.ContextActionService:BindAction("keyPress7", onKeyPress7, false, Enum.KeyCode.R) -- change "R" to whatever you'd like
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement