31 lines
1.1 KiB
Plaintext
Raw Normal View History

2025-07-09 23:59:56 +08:00
local Helper = {}
--> Server
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--> Events
local RE_PlayerHelper = ReplicatedStorage.Events.RE_PlayerHelper
local RE_UpgradeAttributes = ReplicatedStorage.Events.RE_UpgradeAttributes
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.H then
RE_PlayerHelper:FireServer("CleanPlayerData")
elseif input.KeyCode == Enum.KeyCode.J then
RE_PlayerHelper:FireServer("AddItem", {1, 100})
elseif input.KeyCode == Enum.KeyCode.K then
RE_UpgradeAttributes:FireServer(1)
elseif input.KeyCode == Enum.KeyCode.L then
RE_UpgradeAttributes:FireServer(2)
elseif input.KeyCode == Enum.KeyCode.M then
RE_UpgradeAttributes:FireServer(3)
elseif input.KeyCode == Enum.KeyCode.N then
RE_UpgradeAttributes:FireServer(4)
end
end
end)
return Helper