So I have a shop gui and it wont work I used a regular script it wont say I clicked.If I used a local script it will work only for the client.Plz help
Script:
script.Parent.MouseButton1Click:Connect(function() print("yes") local player = script.Parent.Parent.Parent.Parent.Parent local stats = player:WaitForChild("leaderstats") local popularity = stats:WaitForChild("Popularity") local boost = stats:WaitForChild("Boost") if popularity and boost then print("good") if popularity.Value >= 25 then popularity.Value = popularity.Value - 25 boost.Value = boost.Value + 1 end end end)