function onClicked() if game.Players.LocalPlayer.leaderstats.Euros >= 50 then game.Lightning.FakePassport:Clone().Parent = game.Players.LocalPlayer.Backpack else script.Parent.Text = "Not enough currency" wait(1) script.Parent.Text = "Buy Fake Passport - €50" end end script.Parent.MouseButton1Click:connect(onClicked)
This script wont work and doesnt even change the text to "not enough currency"
if game.Players.LocalPlayer.leaderstats.Euros >= 50 then
You forgot to put Euros.Value at the end of this line. Hope this helps!
Your new script should look something like this:
function onClicked() if game.Players.LocalPlayer.leaderstats.Euros.Value >= 50 then--Changed to ".Value" game.Lightning.FakePassport:Clone().Parent = game.Players.LocalPlayer.Backpack else script.Parent.Text = "Not enough currency" wait(1) script.Parent.Text = "Buy Fake Passport - €50" end end script.Parent.MouseButton1Click:connect(onClicked)