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"

1 comment
Where you put 'script.Parent.Text', Pretty sure that should be 'script.Parent.Text.Text' This is because you want to change the text value and not the 'name' of the text.