So I'm making a self check-in, and I'm trying to use a serverside to do all the giving tools and stuff. Here's the code for my economy class
local revent = game.ReplicatedStorage:WaitForChild('class')
local classes = 1
local Player = game.Players.LocalPlayer
local frame = script.Parent.Parent.Parent
local frame2 = script.Parent.Parent.Parent.Parent.endpoint_pass
script.Parent.MouseButton1Click:Connect(function()
frame:TweenPosition(UDim2.new(1, 0,0, 0), 'Out', 'Quint', '1')
frame2:TweenPosition(UDim2.new(0, 0,0, 0), 'Out', 'Quint', '1')
script.Parent.Parent.Parent.Parent.exit.Visible = false
revent:FireServer(Player,classes)--Here's remote
end)
Now the code for the serverside script
local revent = game:GetService('ReplicatedStorage').class
local function test (Player,classes)
print(classes)
end
revent.OnServerEvent:Connect(test)
I've ran into this same error one other time, and that was because my first value wasn't Player, but this time it is, why is this happening?

2 comments
Oh wow, thanks!
No problem, happy to help.