Party System issue

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

try this script

local module = {}

funtion module:CreateParty(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

Now its returning a diffrent error
image

when I removed the value its gives the error
image

both errors are from this piece of code
image

The error is exactly what it says. I don’t know the structure of your game :confounded:

found the issue it was because i put player as the first param when firing the client, Thanks for the help!

Please mark it as solution if you solved your problem :slight_smile: