so i was tryna make a party system where by if a player press a textbutton it gives the sets the the party size difficulty etc then I sent the information to the server with a remote event and tried using a module to handle making the GUI for the party, issue is that I’m now getting this error
server script below
local partymodule = require(game:WaitForChild("ReplicatedStorage").Modules.PartyScript)
local rs = game:WaitForChild("ReplicatedStorage")
local createpartyEvent = rs:WaitForChild("CreatePartyEvent")
createpartyEvent.OnServerEvent:Connect(function(player, PartySize, Difficulty)
partymodule:CreateParty(player, PartySize, Difficulty)
end)
Module bellow
local module = {}
local partymaker = function(player, PartySize: number, Difficulty: string)
local rs = game:WaitForChild("ReplicatedStorage")
local frame = rs:WaitForChild("Frame"):Clone()
frame.Visible = true
frame.JoinButton.Text = "1/"..PartySize.Value
frame.Parent = player.PlayerGui.MainMenu.LobbyFrame.PartiesButton.ScrollingFrame
end
return module