Something is not right with my game

So I only now noticed this during gameplay where when I try to pick up the items I have made, they don’t actually pick up or it doesn’t register that I am prompting to gather these items (I have made a currency you pick up is what I am saying) . But in Roblox studio it works perfectly fine… I don’t get it?

These are all the scripts involved in making this system. As simple as it may be it works perfectly fine in roblox studio… I feel like the remote event isn’t working or something when I join but I’m really not sure what’s happening.

EDIT:

Wait is it because PlayerAdded doesn’t run in local scripts?

EDIT2:

nope changing that didn’t do anything either.

Why is there a PlayerAdded connection in the module script? Both of your scripts should look like this.

local module = {}

function module.GiveTix(Player:Player?)
	--
	getRemoteEvent:FireClient(Player, ...)
	--
end

return module

--
proximityPrompt.Triggered:Connect(function(Player)
	getModule.giveTix(Player)
end)

LocalScript - ChangeTixText

getRemote.OnClineEvent:Connect(function(GetTix)
local GetTixvalue = Instance.new(“StringValue”) – or NumberValue
GetTixvalue.Value = GetTix

local getFrame = script.Parent.Frame
getFrame.TextBox.Text = GetTixvalue.Value
end)

I’ve done that similar before to get Textbox from value.