This is the script:
local plr = game.Players.LocalPlayer
local Controller = require(game.ReplicatedStorage:WaitForChild("GetData"):WaitForChild("ReplicaController"))
local Event = game.ReplicatedStorage:WaitForChild("Events"):WaitForChild("Output")
local Info = require(game:GetService("ReplicatedStorage"):WaitForChild("Modules"):WaitForChild("SealInformation"))
local UIS = game:GetService("UserInputService")
Controller.RequestData()
local function INPUT(key)
Controller.ReplicaOfClassCreated("PlrReplica//"..plr.UserId,function(replica)
print(replica.Data.Seal)
local GetMove = Info[replica.Data.Seal]
if GetMove and GetMove["KEYBINDS"][key] then
Event:FireServer("Outputs","UseMove",plr,GetMove["KEYBINDS"][key])
end
end)
end
local function INPUTENDED(key)
end
UIS.InputBegan:Connect(function(input,isTyping)
local KEY
if input.UserInputType == Enum.UserInputType.MouseButton1 then
KEY = "M1"
elseif input.UserInputType == Enum.UserInputType.MouseButton2 then
KEY = "M2"
else
KEY = input.KeyCode.Name
end
task.spawn(INPUT,KEY)
end)
UIS.InputEnded:Connect(function(input)
local KEY
if input.UserInputType == Enum.UserInputType.MouseButton1 then
KEY = "M1"
elseif input.UserInputType == Enum.UserInputType.MouseButton2 then
KEY = "M2"
else
KEY = input.KeyCode.Name
end
task.spawn(INPUTENDED,KEY)
end)
nothing prints out in the input function