So for the last week i am trying to make a keycard to my game
Keycard Code:
local GetServ = game:GetService("ServerScriptService")
local prox = script.Parent.ProximityPrompt
KeycardLvlP = game.Workspace.CardLevel.Value --the "CardLevel" is a NumberValue
KeycardLvlI = 5
script.parent.ProximityPrompt.Triggered:Connect(function()
if KeycardLvlP < KeycardLvlI then
KeycardLvlP = KeycardLvlI
print("Player now has keycard level " ..KeycardLvlP.. "!")
else
print("already has that card")
end
end)
But it dosen't work when i try to pick up a card with less value it dosen't block and the CardLevel dosen't even change PLEASE HELP
There are 5 levels of a card

3 comments
THANK YOU SO MUCH IT WORKED
Your welcome, but mark it as your answer so other developers / scripters don't waste time checking / answering your question.
Hey its me i lost password to the "anots66" acc and now cant mark it sorry