I need a little bit of help I am trying to do a game like JailBreak.
So I decided when someone is going into the prisoner team they have a chance of 30% to get a Keycard But…I m not that good at scripting. Could anyone help me with the script please ?
PrisonerTeamInstance.PlayerAdded:Connect(function(Player) -- listen for player to join team
if math.random(10) <= 3 then -- use math.random to generate a 30% chance
keycardInstance:Clone().Parent = Player.Backpack -- clone the tool into the player's inventory
end
end)