So I have this and I am working with FE and in studio, this works but ingame, it doesnt work. This is in the PlayerGui. Why does this not work in-game? (The output log and server log get no output)
local function onClicked(player)
script.Parent.Parent.leaderstats.Money.Value = script.Parent.Parent.leaderstats.Money.Value +10
end
script.Parent.HomePurchase.Frame.Price.MouseButton1Click:Connect(onClicked)

3 comments
Are you working in a local script or normal script?
A RemoteEvent is needed
This is a server script